Skip to contentSkip to conversation

sharing UART

need suggestion Pavan Savoy 1 participant 1 message Oct 7, 2009 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

So, If I would want to implement a driver, which exposes some fake character devices such as /dev/fake[0,1,2] and every write on such a character device, I would want to send it out to UART, and when the data comes back [receive_buf?], I intrepret the header and copy it onto the relevant buffer of character device fake[0,1,2].

If such a driver has to be implemented,
PLEASE SUGGEST AS TO WHAT SORT OF A DRIVER SHOULD IT BE ?
Currently I have thought of it as a line discipline driver, can it be any other sort of a driver ? [PTY sort of driver, or something which isn't even dependent on TTY layer?]

Because I see that the serial-core and the TTY aren't seperate, every UART driver [say 8250, mcf_serial] also gets registered as a tty driver because it did an uart_register....

Any help is appreciaated...
regards,
Pavan

Quoted 52 lines · Pavan Savoy

From: Pavan Savoy <[email protected]>
Subject: Re: sharing UART
To: [email protected]
Date: Wednesday, 30 September, 2009, 6:22 PM Hi,

So is it confirmed that no one as of now, had to use 1 UART for 2 purposes?
That is, say the UART had switch between working as a normal TTY and also as a Line discipline ?

No one had to send modem commands and some unique manufacturer specific commands to modem @ the same time ?

regards,
Pavan

--- On Thu, 17/9/09, Pavan Savoy <[email protected]>

Quoted 6 lines · wrote:

From: Pavan Savoy <[email protected]>
Subject: sharing UART
To: [email protected]
Date: Thursday, 17 September, 2009, 12:46 PM Hi,
I have searched through the archives, but did not find

any

Quoted 3 lines

example or need to share a UART by 2 drivers.

Basically there is a "hci_ldisc" line discipline

driver

Quoted 1 line

which makes use of the UART which will be followed up

by

Quoted 1 line

another driver with normal char dev exposed to

user-space

Quoted 11 lines

which needs to make use of UART as well.

So some-one somewhere would have wanted such an implementation right ?
what should be done ? any suggestions are welcome.

regards,
Pavan

Quoted 4 lines

      Add whatever you love to the Yahoo! India homepage. Try now! http://in.yahoo.com/trynew
--
To unsubscribe from this list: send the line

"unsubscribe

Quoted 9 lines
Quoted 4 lines

linux-serial" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      Keep up with people you care about
with Yahoo! India Mail. Learn how. http://in.overview.mail.yahoo.com/connectmore

Connect more, do more and share more with Yahoo! India Mail. Learn more. http://in.overview.mail.yahoo.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html