Subject: Re: common com(4) framework
To: Jesse Off <joff@embeddedARM.com>
From: Garrett D'Amore <email@example.com>
Date: 06/15/2006 12:16:06
Jesse Off wrote:
> I've actually just been tasked with writing a NetBSD driver for some
> serial ports we implemented in the FPGAs of the Technologic Systems
> TS-7260 and TS-7300 ARM boards. Does your changes only apply to 16550
> UARTs or serial drivers in general? If it applys to more than just
> 16550's, I would be interested in learning more about this work. Has
> any documentation/manpage been written?
There are no documentations.
The changes apply to 16550 and work-alikes. If the only differences are
small (different FIFO size, or different register offsets, etc.) then it
can use it. But for very different chips (different programming model,
such as USB <-> RS232 adapters) it isn't applicable.
I have not seen your chip, but there's a good chance that the
programming model loosely follows the 16550 interface. Certainly, there
is probably no real reason not to implement to the same API that I can
think of, but you'll have to check for yourself.
FWIW, this driver supports many workalikes that have differences on
embedded boards, etc.
Heck, if you send me docs for your part, I can quickly tell you (and
maybe even write a quick driver for it if it works) whether this part is
likely to be usable with com(4) or not.
> //Jesse Off
> ----- Original Message ----- From: "Garrett D'Amore"
> To: <port-arm@NetBSD.org>
> Sent: Thursday, June 15, 2006 10:00 AM
> Subject: common com(4) framework
>> I've noticed that a bunch of ARM related ports all seem to have their
>> own com-alikes in their trees. I suspect that my new com(4) changes
>> will enable some, most, or even all of them to use common com(4)
>> framework, which might make life a little simpler/better for some of
>> these ports.
>> I don't have any ARM hardware or expertise, but if folks want to look at
>> it and try to convert changes, the branch is gdamore-uart. I'm more
>> than happy to have other folks working in that branch, just please
>> contact me to let me know what you're doing.
>> Garrett D'Amore, Principal Software Engineer
>> Tadpole Computer / Computing Technologies Division,
>> General Dynamics C4 Systems
>> Phone: 951 325-2134 Fax: 951 325-2191
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
Phone: 951 325-2134 Fax: 951 325-2191