Port IO in old NT-style driver
- From: "Mark K Vallevand" <mark.vallevand@xxxxxxxxxx>
- Date: Fri, 8 Jul 2005 13:10:58 -0500
I have an old NT-style driver that works fine. I need to make a change to
add some port reads and writes, which were never done before. I'm not
interested in changing this to a PnP driver. I just need to make a quick
fix.
I can't get the driver to read the IO ports. I even went back to the DDK,
dug up the old portio program and borrowed its code. The IO ports are at
400-47f and the kernel debugger reads them fine. My driver always gets FF
back from any IO port read. I changed to portio code to use the 16 address
decoding in the CM_RESOURCE_LIST. I changed it to use PCIBus, but then
changed it back to Isa. Nothing works.
Is there a simple way to read and write IO ports? I'll cheat and break all
the driver rules. I just need to get this fixed and off my plate.
--
Regards.
Mark K Vallevand Mark.Vallevand@xxxxxxxxxx
Beer is living proof that God loves us and wants us to be happy.
- Benjamin Franklin
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
.
- Follow-Ups:
- Re: Port IO in old NT-style driver
- From: Mark K Vallevand
- RE: Port IO in old NT-style driver
- From: Rhett Gong [MSFT]
- Re: Port IO in old NT-style driver
- From: Tim Roberts
- Re: Port IO in old NT-style
- From: Pavel A.
- Re: Port IO in old NT-style driver
- Prev by Date: Re: Any Api on win NT to get thread handle from thread id?.
- Next by Date: DeviceIOControl, USB, and cameras
- Previous by thread: OpenProcess() and system processes, access denied
- Next by thread: Re: Port IO in old NT-style
- Index(es):
Relevant Pages
|