On Tue, Mar 25, 2008 at 10:59 PM, Erik Mouw <mouw@xxxxxxxxxxxx> wrote: > > On Sun, Mar 23, 2008 at 12:12:03PM +0530, taha siddiqi wrote: > > Hi all, > > > > I have been trying the parallel port driver discussed in LDD 3rd edition > > from last few days now but with no success. Every time i read from any of > > the ports ( status, control or data ) I get 0xFF. > > On x86 systems, that means there's no hardware connected at that IO > address. > > > > I did remove parport, parport_pc, lp, ppdev and the request_region() call is > > also successful. I confirmed the port by checking out the message that > > parport_pc writes to the syslog, so port is not an issue. > > > > I tested the port in all configurations in BIOS ( SPP, ECP, EPP ) > > > > I also tried userspace ioperm, outb, inb. > > > > inb returns correct values if parport_pc is installed but fails if > > parport_pc module is removed. perror() returns "illegal seek". > > Modern systems use ACPI PNP to deal with legacy printer ports. As soon > as you remove the module, all its resources are freed, including the IO > ports it was using. > > > Erik > > -- > Erik Mouw -- mouw@xxxxxxxxxxxx > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFH6TZb/PlVHJtIto0RAmxHAJ9BIg84FOlJNRXcSaRLY4rlwl6bngCffPDB > cdV1L6olDlMT1L3wWDzxWZ0= > =NAP6 > -----END PGP SIGNATURE----- > > So what if I have to try out the LDD 3 parallel port ( short ) example ? taha -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ