Simple! Include the sample basic_io.c source code (found under theWinDriver/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 andMY_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() andIO_outp(), respectively.
Compile and run!