Port IO in old NT-style driver



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.



.



Relevant Pages

  • [PATCH 06/13] Char: cyclades, overall cleanup
    ... * Prevent users from opening non-existing Z ports. ... * Implemented full support for non-standard baud rates. ... * Driver now reports physical instead of virtual memory addresses. ... * Fixed SMP locking in Cyclom-Y interrupt handler. ...
    (Linux-Kernel)
  • [PATCH 13/79] cyclades: overall cleanup
    ... * Prevent users from opening non-existing Z ports. ... * Implemented full support for non-standard baud rates. ... * Driver now reports physical instead of virtual memory addresses. ... * Fixed SMP locking in Cyclom-Y interrupt handler. ...
    (Linux-Kernel)
  • Slow 2d performance in X / opera / nvidia drivers
    ... Kernel config attached ... 2 ports with 2 removable, ... Load "extmod" ... Identifier "Keyboard0" Driver "keyboard" ...
    (freebsd-questions)
  • Synaptic tochpad recognize
    ... PSM driver recognizes tochpad as IntelliMouse device. ... <ACPI PCI bus> on pcib0 ... 2 ports with 2 removable, ... # Power management support ...
    (freebsd-current)
  • Re: [lm-sensors] 2.6.24-rc4 hwmon it87 probe fails
    ... The problem is that the IT87xxF chips do decode 4 ports (recent chips, ... The it87 driver only needs to access ... that is associated with the resources, and for a given device, the ...
    (Linux-Kernel)