| Doc ID: | 51 |
| Product: | WinDriver |
| Version: | -- |
How do I port a DOS driver, which uses inp() and outp() calls to access the card, into a Windows driver? |
Simple! Include the sample basic_io.c source code (found under the WinDriver/samples/basic_io/ directory) in your code. Define the I/O range your card uses in MY_IO_BASE and MY_IO_SIZE. [For example: To use range 0x378-0x37a, define MY_IO_BASE=0x378 and MY_IO_SIZE=3]. Call IO_init() at the beginning of the driver, and IO_end() before exit. Replace any inp() and outp() calls in your code with IO_inp() and IO_outp(), respectively. Compile and run! Back to Top |
Documents Navigator: