Click to See Complete Forum and Search --> : How to _inp(), _outp() on 0x1F6, 0x1F7and 0x1F0 under Win95/98


Mad
August 13th, 1999, 04:28 AM
Hi Everybody

Can anyone help me with accessing I/O port 0x1F7, 0x1F0 under Win95/98.
How can it be implemented ??
DeviceIoControl()
Thunking 16bit App
VXD
Volume Locking (Interrupt 21h Function 440Dh Minor Code 4Ah Lock Logical Volume
Interrupt 21h Function 440Dh Minor Code 4Bh Lock Physical Volume)

Thanks,


_outp(0x1F6, 0xA0);
_outp(0x1F7, 0xEC);

for(i = 0; i < 256; i++)
{
hdInfo[i] = _inpw(0x1F0);
}

Kelly
September 3rd, 1999, 05:40 PM
dude..
you have to communicate with the IDE/ESDI device driver to get the ATAPI Identify String. You can't just acccess protected ports. Ain't Protected Mode grand?

Cheers,
--Kelly


One day, health fanatics will feel stupid as they lie in a hospital bed dying of nothing...

Kelly
September 3rd, 1999, 05:44 PM
I just responded to your previous post of this same message: you have to communicate through the IDE/ESDI device driver to get ATAPI device identify data. The ports are protected by the driver and are ONLY accessible by IT.

--Kelly


One day, health fanatics will feel stupid as they lie in a hospital bed dying of nothing...

Kelly
September 3rd, 1999, 06:02 PM
sorry, I just realized that this discussion board brings old messages to the top. I thought you had re-posted your question. but I've got it now.. ;^)

--Kelly