Results 1 to 2 of 2
Hi all, I want to know the address of the parallel port with in a kernel module. Is there is any kernel function to find the address of the paralle ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-13-2006 #1
- Join Date
- May 2006
How to know the address of parallel port
I want to know the address of the parallel port with in a kernel module.
Is there is any kernel function to find the address of the paralle port.Because i wrote one kernel driver as a module which uses parallel port and i #defined the address of the parallel port it is working. But when i loaded the same module into laptop which uses suse linux it is not working because the parallel port address of the laptop can be configured in that laptop the parallel port address is different so i again i changed the parallel port address and then it is working i dont want to do that. If i know the parallel port address i can use the same address in my kernel module so that no need to change every time it loaded into different system.
- 10-13-2006 #2
- Join Date
- Aug 2006
Try to retrieve that information from /proc/ioports.