IDE driver program

From: Weijie Zhu (zwj196801_at_163.net)
Date: 02/26/04


Date: Thu, 26 Feb 2004 03:26:07 -0800

Hi,

   My ATAPI driver running seems all right , but I can not find its folder. could you help me?

My registery:

IF BSP_NOATAPIDISK !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\AtapiDisk\]
   "Prefix"="IDE"
   "Dll"="atlas_atapi"
   "Order"=dword:3
   "Class"=dword:01
   "SubClass"=dword:01
   "IClass"=multi_sz:"{CDDC3621-3512-4b3f-BB6F-B4DD5E061795}"

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\AtapiDisk\Device0]
   "Prefix"="DSK"
   "Dll"="atlas_atapi"
   "Settings"=dword:B
   "DeviceId"=dword:0
   "Ioctl"=dword:4
   "IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
; Uncomment the following lines if you want to enable slave device.

My .cec file:
        ExcludeWhenSet( ANY, "BSP_NOATAPIDISK" )
        RequiredCEModules( ALL, "device" )
        Implementations
        (
                Implementation
                ( .......
                        Name ( "Atlas IDE driver" )
                        Date ( "2004-2-11" )
                        Variable( "SYSGEN_FATFS", "1" )
                        Variable( "SYSGEN_UDFS", "1" )
                        Variable( "BSP_NOATAPIDISK", )
                        SizeIsCPUDependent( 1 )
Debug messages:

0x8dfc4854: ATAPI:ResetController: Controller reset done
 0x8dfc4854: [ 0] 5a 4 ff 3f 0 0 10 0 0 7e 32 53 3f 0 0 0 Z..?.....~2S?...
 0x8dfc4854: [ 8] 0 0 54 51 37 36 31 32 33 36 31 37 36 30 34 33 ..TQ761236176043
 0x8dfc4854: [ 16] 20 20 20 20 20 20 20 20 3 0 a0 f 4 0 30 41 ......0A
 0x8dfc4854: [ 24] 2e 38 35 31 30 30 41 4d 54 58 52 4f 34 20 30 4b .85100AMTXRO4 0K
 0x8dfc4854: [ 32] 30 34 32 48 20 20 20 20 20 20 20 20 20 20 20 20 042H
 0x8dfc4854: [ 40] 20 20 20 20 20 20 20 20 20 20 20 20 20 20 10 80 ..
 0x8dfc4854: [ 48] 0 0 0 f 0 40 0 2 0 2 7 0 ff 3f 10 0 .....@.......?..
 0x8dfc4854: [ 56] 3f 0 10 fc fb 0 0 1 de 37 a9 4 0 0 7 4 ?........7......
 0x8dfc4854: [ 64] 3 0 78 0 78 0 78 0 78 0 0 0 0 0 0 0 ..x.x.x.x.......
 0x8dfc4854: [ 72] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [ 80] 3e 0 15 0 6b 34 1 5b 3 40 68 34 1 1a 3 40 >...k4.[.@h4...@
 0x8dfc4854: [ 88] 3f 0 d 0 0 0 0 0 fe ff 4b 60 80 80 0 0 ?.........K`....
 0x8dfc4854: [ 96] 0 0 0 0 0 0 0 0 dd 37 a9 4 0 0 0 0 .........7......
 0x8dfc4854: [104] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [112] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [120] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [128] 1 0 8 0 43 0 8f 0 0 0 1 0 0 0 0 0 ....C...........
 0x8dfc4854: [136] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [144] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [152] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [160] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [168] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [176] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [184] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [192] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [200] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [208] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [216] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [224] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [232] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [240] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ................
 0x8dfc4854: [248] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a5 f4 ................
 0x8dfc4854: ATDISK: Identify Data -
 0x8dfc4854: General configuration = 45a
 0x8dfc4854: Serial number: 672163710634........
 0x8dfc4854: Buffer type dual port - simultaneous transfer capable - read cache
 0x8dfc4854: Buffer size in sectors: 4000
 0x8dfc4854: Number of Ecc bytes or r/w long: 4
 0x8dfc4854: Firmware revision: A08.1500
 0x8dfc4854: Model number: MAXTOR.4K040H2..........................
 0x8dfc4854: Maximum sectors/interrupt on read/write multiple: 16
 0x8dfc4854: Can not perform double word IO
 0x8dfc4854: LBA mode supported
 0x8dfc4854: DMA supported
 0x8dfc4854: PIO cycle timing mode: 2
 0x8dfc4854: DMA cycle timing mode: 2
 0x8dfc4854: Current size fields ARE valid
 0x8dfc4854: Current number of cylinders: 16383
 0x8dfc4854: Current number of heads: 16
 0x8dfc4854: Current number of sectors/track: 63
 0x8dfc4854: Current sector capacity: 16514064
 0x8dfc4854: Sectors per interrupt with r/w multiple: 0
 0x8dfc4854: Multi sector setting valid
 0x8dfc4854: Total user addressable sectors: 78198750
 0x8dfc4854: Single word dma modes supported: 0
 0x8dfc4854: Single word transfer mode active: 0
 0x8dfc4854: Multi word dma modes supported: 7
 0x8dfc4854: Ultra dma modes supported: 3f
 0x8dfc4854: Ultra dma transfer mode active: 0
 0x8dfc4854: MediaStatusNotification: 0
 0x8dfc4854: ATAPI Version Number: 62.21
 0x8dfc4854: Security Status: 0001
 0x8dfc4854: CFAPowerMode1: 0000
 0x8dfc4854: ATDISK:ATAIssueIdentify done
 0x8dfc4854: ATAPI:Identify DevId (0 ) wDevType (4)
 0x8dfc4854: ATAPI:Identify Not a supported device ???
 0x8dfc4854: ATAPI:Identify Assuming hard disk device
 0x8dfc4854: ATAPI:Identify Completed Stage 1 Status=50
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilities target 0 IdentifyData PioCycleTimingMode (highest pio mode) = 0x78
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilities target 0 IdentifyData AdvancedPIOModes = 0x3
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilitiestarget 0 IdentifyData MultiWordDMASupport = 0x7
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilitiestarget 0 IdentifyData MultiWordDMAActive = 0x0
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilitiestarget 0 IdentifyData word 64-70 are valid
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilitiestarget 0 IdentifyData MinimumPIOxferTimeWOFlow = 0x78
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilitiestarget 0 IdentifyData ManuRecomendedDMATime = 0x78
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilitiestarget 0 IdentifyData UltraDMASupport = 0x3f
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilitiestarget 0 IdentifyData UltraDMAActive = 0x0
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilities target 0 transfer timing:
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilities PIO mode supported = 19 and best cycle time = 120 ns
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilities SWDMA mode supported = 0 and best cycle time = -1 ns
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilities MWDMA mode supported = 700 and best cycle time = -1 ns
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilities UDMA mode supported = f800 and best cycle time = 30 ns
 0x8dfc4854: ATAPI:AnalyzeDeviceCapabilities Current mode bitmap = 400
 0x8dfc4854: ATAPI:WaitForDisc - WAIT_TYPE_NOT_BUSY
 0x8dfc4854: ATAPI:WaitForDisc - WAIT_TYPE_READY
 0x8dfc4854: ATAPI:WaitForDisc - WAIT_TYPE_NOT_BUSY
 0x8dfc4854: ATAPI:SetTransferMode Mode=0C Status=50 Error=00
 0x8dfc4854: ATAConfig: RegQueryValueEx(CHSMode) failed -returned 2 Error=00000002
 0x8dfc4854: ATAPI: Idenitfy - MultipleMode Set to= 16 Sectors
 0x8dfc4854: ATAPI: Idenitfy - MultipleMode Set to= 16 Sectors
 0x8dfc4854: ATAPI:Identify Completed Stage 2 Status=50
 0x8dfc4854: ATAPI:Identify Completed Stage 2 Status=50
 0x8dfc4854: bEnableInterrupts(m_pPort->m_dwSysIntr)
 0x8dfc4854: CPCIDisk::EnableInterrupt(m_pPort->m_dwSysIntr) 21
 0x8dfc4854: OEMInterruptDone: 21
 0x8dfc4854: ATAPI:Init Device Ready!!!( DevceId; 0 )
 0x8dfc4854: ATAConfig: RegQueryValueEx(DMA) failed -returned 2 Error=00000002
 0x8dfc4854: ATAConfig: RegQueryValueEx(DVD) failed -returned 2 Error=00000002
 0x8dfc4854: ATAConfig: RegQueryValueEx(IntEnable) failed -returned 2 Error=00000002
 0x8dfc4854: ATAPI: AtaGetRegistryValue(Settings) Value(b) hKey: a8aa0
 0x8dfc4854: CPCIDisk::Init succesed DeviceId=1
 0x8dfc4854: CPCIDisk::Init succesed DeviceId= Hard Disk
 0x8dfc4854: ATAPI:DSK_Open request Handle = dwAccess=00047F50 dwShareMode=C0000000
 0x8dfc4854: ATAPI:DSK_IOControl request Handle = 00047F50 dwCode=4
 0x8dfc4854: ATAPI:DSK_Close request Handle = 00047F50
 0x8dfc4854: PNP interface class {A4E7EDDA-E575-4252-9D6B-4195D48BB865} (DSK1:) ATTACH
 0x8dfead08: ATAPI:DSK_Open request Handle = dwAccess=00047F50 dwShareMode=C0000000
 0x8dfead08: ATAPI:DSK_IOControl request Handle = 00047F50 dwCode=1
 0x8dfead08: Enter ioctl 00000001
 0x8dfead08: ATAPI:PerformIoctl: 1 DeviceId: 0
 0x8dfead08: Exit ioctl 00000001
 0x8dfead08: ATAPI:DSK_IOControl request Handle = 00047F50 dwCode=464896
 0x8dfead08: Enter ioctl 00071800
 0x8dfead08: ATAPI:PerformIoctl: 71800 DeviceId: 0
 0x8dfead08: ATAConfig: RegQueryValueEx(HDProfile) failed -returned 2 Error=00000000
 0x8dfead08: Exit ioctl 00071800
 0x8dfead08: ATAPI:DSK_IOControl request Handle = 00047F50 dwCode=465956
 0x8dfead08: Enter ioctl 00071C24
 0x8dfead08: ATAPI:PerformIoctl: 71c24 DeviceId: 0
 0x8dfead08: Exit ioctl 00071C24
 0x8dfead08: ATAPI:DSK_IOControl request Handle = 00047F50 dwCode=465956
 0x8dfead08: Enter ioctl 00071C24
 0x8dfead08: ATAPI:PerformIoctl: 71c24 DeviceId: 0
 0x8dfead08: Exit ioctl 00071C24
 0x8dfc4854: PNP interface class {CDDC3621-3512-4b3f-BB6F-B4DD5E061795} (IDE1:) ATTACH
 0x8df73914: TAPI:OldAddTapiDevice RegQueryValueEx(Tsp) returned 2
 0x8dfc4854: DEVICE!ActivateDeviceEx(Drivers\BuiltIn\autoras) entered
 
Regards
-Weijie