Re: Example "short" of LDD / Parallel port

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

 



I have the same problem. Please, if you find the answer, let me know.
I've been going crazy about it for some weeks :~

Thanks in advance,

--
Thiago Figueredo Cardoso

On 6/15/06, Nelson Castillo <nelsoneci@xxxxxxxxx> wrote:
> >      outb(0x10,par_base+2);
> >      outb(0xFF,par_base);
> >
> > In the following snippet of code don't work.
> >
> > What should I do? I need to use an interrupt for a training course. I
> > could also use User Mode LInux but I don't know how[3]. Not yet. I'd
> > like to use the real parallel port.
> >
>
> try using outb_p(). i think it can handle slow ports.

I tried:

     outb_p(0x10, par_base+2);
     outb_p(0xFF, par_base);
     barrier();
     udelay(5);

And still, it doesn't work :(

Thanks.

--
http://arhuaco.org/

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



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