I have changed INF file of general\portio driver which is shipped with
XP DDK.

I have just just changed the ports configuration in INF file for
accessing the ECP (LPT1) printer port of my machine though before
installation I manually changed system assigned resources of ECP (LPT1)
port which were assigned by OS to avoide any confilict.


CHANGES that I've made in INF file to drive the ECP port by
genport.sys
[PortIO.LC0]
ConfigPriority=DESIRED
IOConfig=378-37b(3ff::) ; 10 bit decode ranging from 378 - 37B


Now every thing works fine as far as I'm using genport.sys to
read\write the printer port but don't know why my existing driver is
not working any more , any idea? My old driver use same port addresses.

Re: Whats wrong with my Old driver? by Ali

Ali
Fri Aug 05 13:52:09 CDT 2005

I guess i've to elaborate my problem! So here i go.

My ECP(LPT1) port was assigned 0378 to 037A I/O ranges by OS.

I changed those resources to 03BC to 03BF
And then in my general\portio drivers's INF file i assigned 0378 to
037B for my Sample device [general\portio] to access the ECP(LPT1)
printer
port through genport.sys;-)

Now every thing works fine as far as I'm using genport.sys to
read\write the printer port but don't know why my existing driver is
not working any more , any idea? My old driver use same port addresses.



I hope now i will have some precious comments and views from you guys
OR still i need to say more?


Re: Whats wrong with my Old driver? by Shazif

Shazif
Sat Aug 06 15:55:07 CDT 2005

It might be possible that your old driver is using some different port
addresses for printer port.
And if thats not the case then there should be no problem after
installing general\portio sample driver with changes in INF file. I
believe that you have just changed the port configuration in your INF
file for accessing printer port unlike 300-3004 as these are by default
for this sample driver.

-s
Ali wrote:
> I guess i've to elaborate my problem! So here i go.
>
> My ECP(LPT1) port was assigned 0378 to 037A I/O ranges by OS.
>
> I changed those resources to 03BC to 03BF
> And then in my general\portio drivers's INF file i assigned 0378 to
> 037B for my Sample device [general\portio] to access the ECP(LPT1)
> printer
> port through genport.sys;-)
>
> Now every thing works fine as far as I'm using genport.sys to
> read\write the printer port but don't know why my existing driver is
> not working any more , any idea? My old driver use same port addresses.
>
>
>
> I hope now i will have some precious comments and views from you guys
> OR still i need to say more?


Re: Whats wrong with my Old driver? by Ali

Ali
Sun Aug 07 14:53:41 CDT 2005

Hi Shazif!
Thanks for your reply. Nope its not using different port
addresses.

Sample INF port configuration:
IOConfig=300-303(3ff::) ; 10 bit decode ranging from 300 - 303 [INF
file for desired section]

Changed INF port configuration:
IOConfig=378-37b(3ff::)

Before installation of sample driver [general\portio] i manually
changed default system assigned resources of ECP (LPT1) port which were
assigned by OS to avoid any conflict.[Because we can't share same I/O
resources with different devices and it is obvious that OS will never
let this happen] I changed I/O resources from 0378- 037B to 03BC-03BF
of ECP printer port. Because i was aiming to assign 0378-037B resources
to my sample driver for accessing printer port via genport.sys.

Then i installed sample driver from INF file and it was installed
successfully with I/O reources assigned from 378 to 37B to Sample
Driver [I can see it from Device Manager].

And it is working fine as far as i'm using genport.sys to read and
write printer port. But don't know why my old driver is not working
now, it was also using 378 - 37A port addresses to access the printer
port.



Any help will be appreciated.