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?


Softice driver suite(driverworks) contains similar sample, things are same.
____________________________________________________________________________
_________________________
Test OS: win2000 server
Develop Environment: win2k ddk, visual studio 6.0 sp5

Re: a question about win2000 ddk PORTIO sample!!!!!! by Jeff

Jeff
Tue Oct 21 07:06:05 CDT 2003

Is there any real hardware at the base port address? If not, any read of
that port is going to return 0xFF, as the data lines on the motherboard are
pulled up to +V by resistors.

"henry" <wangshy@tom.com> wrote in message
news:OksbsM6lDHA.2488@TK2MSFTNGP12.phx.gbl...
> 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?
>
>
> Softice driver suite(driverworks) contains similar sample, things are
same.
>
____________________________________________________________________________
> _________________________
> Test OS: win2000 server
> Develop Environment: win2k ddk, visual studio 6.0 sp5
>
>



Re: a question about win2000 ddk PORTIO sample!!!!!! by henry

henry
Tue Oct 21 20:46:06 CDT 2003

no, there is no real hardware.
The sample will create a virtual port, won't it?
If not, what does the sample want to demo?

thanks for your response.


"Jeff Henkels" <jeff@mapson.privatemail.com> дÈëÏûÏ¢ÐÂÎÅ
:#b#m0u8lDHA.2592@TK2MSFTNGP10.phx.gbl...
> Is there any real hardware at the base port address? If not, any read of
> that port is going to return 0xFF, as the data lines on the motherboard
are
> pulled up to +V by resistors.
>
> "henry" <wangshy@tom.com> wrote in message
> news:OksbsM6lDHA.2488@TK2MSFTNGP12.phx.gbl...
> > 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?
> >
> >
> > Softice driver suite(driverworks) contains similar sample, things are
> same.
> >
>
____________________________________________________________________________
> > _________________________
> > Test OS: win2000 server
> > Develop Environment: win2k ddk, visual studio 6.0 sp5
> >
> >
>
>