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
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html