Hiya Matt, On Sat, Jul 27, 2013 at 11:52:20PM -0700, Matt Thomas wrote: > I have several SoC targets that I've stalled on due to the need of writing > a tty driver. Sure I could cut & paste from another driver but having to > do that 3+ times seems inordinately stupid. So I've been thinking of > making that c&p'ed code into a common tty driver and exporting a small of > h/w specific functions. > > int (*t_enable)(void *); // powerup device > int (*t_disable)(void *); // powerdown device > int (*t_detach)(void *); // detach device ... > > I would like to be able to make the h/w driver < 200 lines if possible. > This is only a rough guess at what it would take. What happened to this idea? Have you ever managed to start with it? Even if just sideways to the other non-converted way? With regards, Reinoud
Attachment:
pgpMZTaSbgGtP.pgp
Description: PGP signature