Re: TTY Driver Vs. UART Driver

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

 



Ulises:
  AS far as I know. The normal serial driver should do the work. You
only have to match the Bar Code REader and the serial interface.


Regards 
On Tue, 2006-08-15 at 12:41, Greg KH wrote:
> On Tue, Aug 15, 2006 at 01:35:17PM -0300, Ulises wrote:
> > Hi All,
> > I'm starting to develop a serial driver for a Bar Code Reader.
> 
> Why do you need a new one?  Doesn't the kernel serial driver work for
> you?
> 
> > My questions is: Which is the relationship between the tty driver and 
> > the uart driver?
> 
> A uart driver controls the hardware, which talks to the serial core,
> which talks to the tty layer (the serial core is a tty driver).
> 
> > For instance, take a look of serial_core.c 
> > (http://lxr.linux.no/source/drivers/serial/serial_core.c#L2059).Both are 
> > related but I cannot understand the relationship and which one you 
> > should use in which case.
> > To register a serial device driver should I use:  tty_register_driver() 
> > or uart_register_driver ?
> 
> Depends on what exactly your hardware looks like.  If it is a uart like
> chip, use the serial core.  Otherwise, use the tty core.  But I'm really
> supprised that we don't support your device already, what kind is it?
> 
> thanks,
> 
> greg k-h
> 
> --
> 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