atapi.sys and disk.sys

My doubt is, is disk.sys loaded right above atapi.sys? In device tree
they appear at different nodes, though the tool shows them to be
connected to teh same device.

  • Developer

pciide creates PDO for atapi stack, one PDO per channel, atapi creates PDOs
for disk, CD-rom stack. so they are different device nodes.

Here’s an example of devtree with a disk connected to channel 0 and a
DVD-rom connected to channel 1:

kd> !dnode 869e2ee8 3
Device Node at 869e2ee8
ServiceName:pciide
InstancePath:PCI\VEN_8086&DEV_2653&SUBSYS_01821028&REV_03\3&61aaa01&0&FA
869a97c0 <-FDO P-2 H-0 D-3 R-0 PciIde0 \Driver\PCIIde
8697cab8 <-FLT P-2 H-0 D-2 R-0 00000090 \Driver\ACPI

86a1ec70 <-PDO P-3 H-0 D-1 R-0 NTPNP_PCI0013 \Driver\PCI

Device Node at 869e4698
ServiceName:atapi
InstancePath:PCIIDE\IDEChannel\4&5a812e8&0&0
86a19030 <-FDO P-4 H-0 D-3 R-0 IdePort0 \Driver\atapi
86a1f1f8 <-FLT P-2 H-0 D-2 R-0 000000a7 \Driver\ACPI
>86a149c8 <-PDO P-3 H-0 D-1 R-0 PciIde0Channel0-0 \Driver\PCIIde

Device Node at 869b9ee8
ServiceName:disk
InstancePath:IDE\DiskFUJITSU_MHV2060AH_______________________00000096\5&66ae477&0&0.0.0
86a0f770 <-FLT P-3 H-0 D-3 R-0 unnamed
\Driver\PartMgr
86a0f030 <-FDO P-3 H-0 D-2 R-0 DR0
\Driver\Disk
>86a13b00 <-PDO P-7 H-0 D-1 R-0 IdeDeviceP0T0L0-3
\Driver\atapi

Device Node at 869e7960
ServiceName:atapi
InstancePath:PCIIDE\IDEChannel\4&5a812e8&0&1
869b9030 <-FDO P-4 H-0 D-3 R-0 IdePort1 \Driver\atapi
86a14c50 <-FLT P-2 H-0 D-2 R-0 000000a8 \Driver\ACPI
>869e4030 <-PDO P-3 H-0 D-1 R-0 PciIde0Channel1-1 \Driver\PCIIde

Device Node at 86a129b8
ServiceName:cdrom
InstancePath:IDE\CdRomHL-DT-ST_DVD-ROM_GDR8082N_______________0106____\5&340b0ccf&0&0.0.0
866b15e0 <-FLT P-1 H-0 D-6 R-0 unnamed
\Driver\GEARAspiWDM
866b23b0 <-FLT P-2 H-0 D-5 R-0 unnamed
\Driver\redbook
866b0b50 <-FDO P-2 H-0 D-4 R-0 CdRom0
\Driver\Cdrom
86a139e8 <-FLT P-2 H-0 D-2 R-0 000000b9
\Driver\ACPI
>86900d98 <-PDO P-8 H-0 D-1 R-0 IdeDeviceP1T0L0-e
\Driver\atapi

5 nodes dumped

Calvin Guan (Windows DDK MVP)
Staff SW Engineer NetXtreme Longhorn MINIPORT
Broadcom Corp. Irvine, CA
www.broadcom.com

----- Original Message -----
From: “Developer”
To: “Windows System Software Devs Interest List”
Sent: Thursday, August 04, 2005 2:35 AM
Subject: [ntdev] atapi.sys and disk.sys

My doubt is, is disk.sys loaded right above atapi.sys? In device tree
they appear at different nodes, though the tool shows them to be
connected to teh same device.



- Developer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Disk may be attached to a PDO exposed by the ATAPI driver. Or one from
the scsi driver, or one from usb storage driver, or …

The interface between the disk driver and whatever is below it is the
same in all cases.

-p

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Developer
Sent: Thursday, August 04, 2005 2:35 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] atapi.sys and disk.sys

My doubt is, is disk.sys loaded right above atapi.sys? In device tree
they appear at different nodes, though the tool shows them to be
connected to teh same device.

  • Developer

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

is there a sample in the DDK that deals with a driver that extends
atapi.sys or scsi.sys? are such drivers called system bus extenders?

On 8/4/05, Peter Wieland wrote:
> Disk may be attached to a PDO exposed by the ATAPI driver. Or one from
> the scsi driver, or one from usb storage driver, or …
>
> The interface between the disk driver and whatever is below it is the
> same in all cases.
>
> -p
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Developer
> Sent: Thursday, August 04, 2005 2:35 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] atapi.sys and disk.sys
>
> My doubt is, is disk.sys loaded right above atapi.sys? In device tree
> they appear at different nodes, though the tool shows them to be
> connected to teh same device.
>
>
>
> –
>
> - Developer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument:
> ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>



- Developer

Offhand I don’t remember if there’s a sample for this.

But they are not called system bus extenders. They’re called filter
drivers. They work like any other PNP filter driver.

-p

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Developer
Sent: Thursday, August 04, 2005 9:14 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] atapi.sys and disk.sys

is there a sample in the DDK that deals with a driver that extends
atapi.sys or scsi.sys? are such drivers called system bus extenders?

On 8/4/05, Peter Wieland wrote:
> Disk may be attached to a PDO exposed by the ATAPI driver. Or one
> from the scsi driver, or one from usb storage driver, or …
>
> The interface between the disk driver and whatever is below it is the
> same in all cases.
>
> -p
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Developer
> Sent: Thursday, August 04, 2005 2:35 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] atapi.sys and disk.sys
>
> My doubt is, is disk.sys loaded right above atapi.sys? In device tree
> they appear at different nodes, though the tool shows them to be
> connected to teh same device.
>
>
>
> –
>
> - Developer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
argument:
> ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>



- Developer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

ATAPI.SYS is a storage port which provides a PnP PDO for each storage LUN.
Disk.sys is a PnP functional driver for disk storage LUNs.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Developer”
To: “Windows System Software Devs Interest List”
Sent: Thursday, August 04, 2005 1:35 PM
Subject: [ntdev] atapi.sys and disk.sys

My doubt is, is disk.sys loaded right above atapi.sys? In device tree
they appear at different nodes, though the tool shows them to be
connected to teh same device.



- Developer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com