regarding parallel port

Hi All,
I want to read/write to the parallel port directly
through my kernel mode driver. Is there any way i can
find on the fly the port address of the parallel
ports. Why i am asking this is as the port address can
be changed by changing the bios setting…
i hope my qs makes some sense. … .plz correct me if i
am wrong.
plz guide me to some links to any useful material on
geting to know more on parallel port drivers.

thanks in advance


Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Are you writing a driver for NT or Win2K?

If you are using NT, your driver can query the BIOS for the I/O address and IRQ # in its driver entry routine. However your driver needs to start before the Microsoft driver so that you can use the I/O addresses and IRQ.

If you are using Win2K, your driver’s add device routine will get called with the correct I/O address and IRQ # passed to it. However you will need to replace the Microsoft driver with yours so that you can use the I/O addresses and IRQ. (Driver startup ordering is not supported in Win2K)

If possible you should call the Microsoft Parallel port driver to do the work for you.

Larry

-----Original Message-----
From: Ramakrishnan Jayaraman [mailto:xxxxx@yahoo.com]
Sent: Thursday, July 26, 2001 1:01 PM
To: NT Developers Interest List
Subject: [ntdev] regarding parallel port

Hi All,
I want to read/write to the parallel port directly
through my kernel mode driver. Is there any way i can
find on the fly the port address of the parallel
ports. Why i am asking this is as the port address can
be changed by changing the bios setting…
i hope my qs makes some sense. … .plz correct me if i
am wrong.
plz guide me to some links to any useful material on
geting to know more on parallel port drivers.

thanks in advance


Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


You are currently subscribed to ntdev as: xxxxx@diebold.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> I want to read/write to the parallel port directly

through my kernel mode driver

You cannot do this - this will ruin the operation of parallel.sys.

Max


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,
Could you plz tell me how to query the bios for the
I/O address?

Thanks a lot

Are you writing a driver for NT or Win2K?

If you are using NT, your driver can query the BIOS
for the I/O address and IRQ # in its driver entry
routine. However your driver needs to start before
the Microsoft driver so that you can use the I/O
addresses and IRQ.

If you are using Win2K, your driver’s add device
routine will get called with the correct I/O address
and IRQ # passed to it. However you will need to
replace the Microsoft driver with yours so that you
can use the I/O addresses and IRQ. (Driver startup
ordering is not supported in Win2K)

If possible you should call the Microsoft Parallel
port driver to do the work for you.

Larry

-----Original Message-----
From: Ramakrishnan Jayaraman
[mailto:xxxxx@yahoo.com]
Sent: Thursday, July 26, 2001 1:01 PM
To: NT Developers Interest List
Subject: [ntdev] regarding parallel port

Hi All,
I want to read/write to the parallel port directly
through my kernel mode driver. Is there any way i can
find on the fly the port address of the parallel
ports. Why i am asking this is as the port address can
be changed by changing the bios setting…
i hope my qs makes some sense. … .plz correct me if i
am wrong.
plz guide me to some links to any useful material on
geting to know more on parallel port drivers.

thanks in advance


Do You Yahoo!?
Make international calls for as low as $.04/minute
with Yahoo! Messenger
http://phonecard.yahoo.com/


You are currently subscribed to ntdev as:
xxxxx@diebold.com
To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as:
xxxxx@yahoo.com
To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,

We produce a number of drivers which require direct access to the parallel
port under both Window NT and 2K.

Use IoQueryDeviceDescription to get the port details you require, use
ParallelController as the query type.

Use HalTranslateBusAddress to map the port for your driver.

Use READ/WRITE_PORT_UCHAR to read/write data from/to the port.

Alun Carp
Driver Development Team Leader
Data Encryption Systems Limited


From: Ramakrishnan Jayaraman
Reply To: NT Developers Interest List
Sent: Thursday, July 26, 2001 18:00 PM
To: NT Developers Interest List
Subject: [ntdev] regarding parallel port

Hi All,
I want to read/write to the parallel port directly
through my kernel mode driver. Is there any way i can
find on the fly the port address of the parallel
ports. Why i am asking this is as the port address can
be changed by changing the bios setting…
i hope my qs makes some sense. … .plz correct me if i
am wrong.
plz guide me to some links to any useful material on
geting to know more on parallel port drivers.

thanks in advance


Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


You are currently subscribed to ntdev as: xxxxx@des.co.uk
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

HalGetBusData or something like that.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ramakrishnan
Jayaraman
Sent: Friday, July 27, 2001 12:03 AM
To: NT Developers Interest List
Subject: [ntdev] RE: regarding parallel port

Hi,
Could you plz tell me how to query the bios for the
I/O address?

Thanks a lot

Are you writing a driver for NT or Win2K?

If you are using NT, your driver can query the BIOS
for the I/O address and IRQ # in its driver entry
routine. However your driver needs to start before
the Microsoft driver so that you can use the I/O
addresses and IRQ.

If you are using Win2K, your driver’s add device
routine will get called with the correct I/O address
and IRQ # passed to it. However you will need to
replace the Microsoft driver with yours so that you
can use the I/O addresses and IRQ. (Driver startup
ordering is not supported in Win2K)

If possible you should call the Microsoft Parallel
port driver to do the work for you.

Larry

-----Original Message-----
From: Ramakrishnan Jayaraman
[mailto:xxxxx@yahoo.com]
Sent: Thursday, July 26, 2001 1:01 PM
To: NT Developers Interest List
Subject: [ntdev] regarding parallel port

Hi All,
I want to read/write to the parallel port directly
through my kernel mode driver. Is there any way i can
find on the fly the port address of the parallel
ports. Why i am asking this is as the port address can
be changed by changing the bios setting…
i hope my qs makes some sense. … .plz correct me if i
am wrong.
plz guide me to some links to any useful material on
geting to know more on parallel port drivers.

thanks in advance


Do You Yahoo!?
Make international calls for as low as $.04/minute
with Yahoo! Messenger
http://phonecard.yahoo.com/


You are currently subscribed to ntdev as:
xxxxx@diebold.com
To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as:
xxxxx@yahoo.com
To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com