I'm not a great fan of .conf configuration files. What about using an ioctl to select the mode after opening the device? Are there any already existing API's in other OS's to allow the application to select the mode it requires? It seems to me like that's the sort of thing an application might well pick out of its own config file (things like MASTER, SLAVE), and use to configure the port appropriately, which it wouldn't be able to do with .conf file configuration.
An alternative might be providing additional minor unit number bits and suitable /dev entries (a bit like the /dev/cua no-modem-control devices, or the zs/zsh devices)? What does the API for a RS422/485 port look like? Is it the same as an RS232 port? Does having ldterm and ttcompat autopushed on make sense? Artem Kachitchkine wrote: > > I'm sponsoring this fasttrack for Guoqing Zhu. The timer is set for > 05/06/2009. > > My understanding is that even though the initial delivery is for > usbser_edge driver, the proposed interface can be adopted by other USB > serial drivers and new modes added in the future. > > -Artem > > Template Version: @(#)sac_nextcase 1.68 02/23/09 SMI > This information is Copyright 2009 Sun Microsystems > 1. Introduction > 1.1. Project/Component Working Name: > Edgeport USB serial mode configuration > 1.2. Name of Document Author/Supplier: > Author: Guoqing Zhu > 1.3 Date of This Document: > 28 April, 2009 > 4. Technical Description > 4.1. Summary > > Support Edgeport USB serial devices RS232/422/485 mode switching mode > via usbser_edge.conf. -- Andrew