CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 1999
    Location
    Kathmandu, Nepal
    Posts
    1

    How to _inp(), _outp() on 0x1F6, 0x1F7and 0x1F0 under Win95/98

    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);
    }



  2. #2
    Join Date
    Sep 1999
    Location
    Santa Clara, California
    Posts
    145

    Re: How to _inp(), _outp() on 0x1F6, 0x1F7and 0x1F0 under Win95/98

    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...

  3. #3
    Join Date
    Sep 1999
    Location
    Santa Clara, California
    Posts
    145

    Re: How to _inp(), _outp() on 0x1F6, 0x1F7and 0x1F0 under Win95/98

    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...

  4. #4
    Join Date
    Sep 1999
    Location
    Santa Clara, California
    Posts
    145

    Re: How to _inp(), _outp() on 0x1F6, 0x1F7and 0x1F0 under Win95/98

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured