there is a sample PORTIO in win2000 ddk, isn't it a demo of virtual port?
the sample is also included in softice driver suite 3.0.



I use win2k DDK to build the PORTIO sample in DDK successfully. But
something is wrong when I use the gpdread and gpdwrite to test the driver.

I use command line "GpdWrite -b 1 2" to write the number 2 to assigned 'base
port address + 1', and then "GpdRead -b 1 "to read out. But the number read
out is always 0xFF.

I also tested writing a number every 1000 milliseconds and reading every 600
millisecond, but the read-out number kept 0xFF.

what does the sample mean?
could you tell me why?

thanks

Re: isn't it a sample of virtual port? by Pavel

Pavel
Thu Oct 23 00:21:09 CDT 2003

"henry" <wangshy@tom.com> wrote in message news:%23J1kupQmDHA.2080@TK2MSFTNGP10.phx.gbl...
> there is a sample PORTIO in win2000 ddk, isn't it a demo of virtual port?

Not quite virtual. It uses real i/o ports 300-303, see the genport.inf.
You can change the target ports, or modify the driver to simulate reading ports.

- PA