Re: Direct I/O to device on PCI card

From: arizvi (spamtrap_at_crayne.org)
Date: 03/08/05


Date: Tue, 8 Mar 2005 21:52:51 +0000 (UTC)

Hi Ben,

I understand by now that I have to go through a sequence of steps to do
IO to the device: read PCI config space to get to the device IO
address, determine if the device is indeed a hard drive, and then do IO
to the device at the address found.

Where in the PCI config space can I find the device IO address? And how
can I determine if the drive is a hard drive? I am assuming that the
BIOS has set up the address in the PCI config space..

Thanks
Ahmad