parallel port problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi....
I am trying to read data from my laptop's (thinkpad R51) parallel port
(similar to the example in Linux Device Drivers 3rd Edition).
But, everytime i am reading the data it always comes to be 0xFF(255) ....
I even tried the following loop in my write function (struct file_operations)
while(count--){
   printk("writing %x\n", *ptr);
   out(*(ptr++), port);
   wmb();
   printk("reading data : %x\n", inb(port));
}
but the debug message in log shows something like
writing 116
reading 255
writing 78
reading 255
...
...

please help


thanks in advance
taha

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux