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! |
Technical Documents
(WinDriver related)
WinDriver: Support Center
WinDriver: Product Page
Can't find what you need?
(WinDriver related)
Documents Navigator:
WinDriver: Support Center
WinDriver: Product Page
Can't find what you need?