[Opendispense] UART 16550 code

Adrian Chadd adrian@ucc.gu.uwa.edu.au
Tue Aug 12 09:07:38 2003


On Tue, Aug 12, 2003, Nick Bannon wrote:
> On Tue, Aug 12, 2003 at 04:20:09PM +0800, Bernard Blackham wrote:
> [...]
> > Meanwhile, I've been thinking of how to go about using a 16550 on
> > the board. Before I go out writing the code to drive it, does
> > anybody have experience along these lines? Or any GPL'd code that
> > could be copied across (eg, drivers/char/serial.c from a linux
> > source tree, but much simpler)?
> [...]
> 
> There must be a few options... Perhaps looking at the serial driver
> Linux 2.0.0 or 0.99.3 or something would be simpler. Or perhaps not.
> Maybe NetBSD?

Its preetty simple, actually. Try the serial code from FreeBSD, but
look at the _console_ code right down the bottom. Its damned simple.
I used it to write an 8250 driver for a DOS project (the touchscreen
stuff) last month.



adrian