Re: Port IO in old NT-style driver
- From: "Mark K Vallevand" <mark.vallevand@xxxxxxxxxx>
- Date: Mon, 11 Jul 2005 10:12:08 -0500
Its like some kind of rule for programming: Beat your head on a problem,
ask for help, find the obvious answer.
Its a coding problem. It really works.
Times like this you feel really stooopid.
--
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.
"Mark K Vallevand" <mark.vallevand@xxxxxxxxxx> wrote in message
news:ePO6mh%23gFHA.4008@xxxxxxxxxxxxxxxxxxxxxxx
>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.
>
>
>
.
- References:
- Port IO in old NT-style driver
- From: Mark K Vallevand
- Port IO in old NT-style driver
- Prev by Date: Access Violation startig EXE from Login Script
- Next by Date: Re: Problems w. platform SDK
- Previous by thread: RE: Port IO in old NT-style driver
- Next by thread: DeviceIOControl, USB, and cameras
- Index(es):
Relevant Pages
|
|