linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dick Hollenbeck <dick@softplc.com>
To: linux-serial@vger.kernel.org
Subject: remapping advice sought
Date: Tue, 15 Sep 2009 16:35:44 -0500	[thread overview]
Message-ID: <4AB008B0.1020402@softplc.com> (raw)


I made an ARM board with 6 serial ports.  One port comes out on 
/dev/ttyAM0 and 5 others come out on /dev/ttyS0 through /dev/ttyS4.

The ttyAM0 is implemented by an ARM CPU specific driver, while the ttyS* 
ports are implemented in an FPGA and use the 8250.c driver in a 
multi-port fashion with a shared IRQ.

Our userspace code likes to think of serial ports being at /dev/ttyS0 
through /dev/ttyS5 but this naming convention has not yet been achieved.


(1) Are there any good reason why not to do this:

(A) change my copy of the kernel code so that 8250.c exposes its serial 
ports at some other name than "ttyS".

(B) use symlinks in /dev/ to map ttyS0 through ttyS5 onto ttyAM0 
followed by the 8250 FPGA ports.



(2) How hard and fast is the relationship between the name used in the 
driver 8250.c, to the name in the /dev/ directory? Can they be different 
without changing 8250.c source?



(3) Is there a better way?



Thanks,

Dick



             reply	other threads:[~2009-09-15 21:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-15 21:35 Dick Hollenbeck [this message]
2009-09-16 18:51 ` remapping advice sought Dick Hollenbeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AB008B0.1020402@softplc.com \
    --to=dick@softplc.com \
    --cc=linux-serial@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).