AHCI controller surprise remove

Hi,

I am trying to support surprise removal in ATAminiport driver for PCI based SSD storage device.

On surprise removal of PCI card there will be some requests posted to driver for processing.
In this context I have following questions:

1.Would ATAPORT layer wait on the response for the request posted to driver ? timeout ? or discard?
2.Will ATAPORT layer ensure before calling STOP that there are no outstanding request queued with the driver ?

Thanks,
Rachappa K

> I am trying to support surprise removal in ATAminiport driver for PCI based SSD storage device.

Why ATAPORT? Switch to STORPORT, it is better documented.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

thanx maxim for your reply.

In case I have to support surprise removal for my AHCI device with current architecture will ATAPORT layer timeout on all the request posted to miniport driver since the device is surprise removed and then call stop on channel interface followed by stop on the controller ?

– Kolar

> In case I have to support surprise removal for my AHCI device

Device - i.e. hard disk? or controller itself?


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com