Re: Port IO in old NT-style driver



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


.



Relevant Pages

  • Slow 2d performance in X / opera / nvidia drivers
    ... Kernel config attached ... 2 ports with 2 removable, ... Load "extmod" ... Identifier "Keyboard0" Driver "keyboard" ...
    (freebsd-questions)
  • Re: Need guidance developing NIC driver
    ... Post the INF file with the question. ... "Getting Started with the Windows Driver Development Environment" ... > broadcast packets to all ports. ... and should leave other USB ports able to be used by ...
    (microsoft.public.development.device.drivers)
  • 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)
  • Re: aAttention MSVPs. USB 2.0 Drivers not recognised - XP is defective !
    ... General USB troubleshooting in Windows XP ... both for the latest USB 2.0 driver for my motherboard and for my USB/ ... My mobo has six ports, of which four are designated as USB 2.0. ...
    (microsoft.public.windowsxp.help_and_support)