Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    May 2006
    Posts
    24

    How to know the address of parallel port


    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 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.

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Try to retrieve that information from /proc/ioports.

    Franklin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •