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

  • [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)
  • Re: What have you tried?
    ... When we had the Device Driver book published in 1999, ... The only bad rating I got in my Systems Programming course was from a student who, ... The problem really starts in introductory programming courses. ... kernel thread was stupid. ...
    (microsoft.public.vc.mfc)
  • 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)