From: Vojtech P. <vo...@su...> - 2001-12-27 09:38:30
|
On Wed, Dec 26, 2001 at 03:43:29PM -0800, James Simmons wrote: > > This sounds a somewhat Microsofty solution. Do we really want the kernel > > sending stuff like 'AT' commands at various baud rates to the connected > > machine, which might be waiting for you to "press any key" after changing > > the floppy? > > I never said anything about sending AT commands. For example in > serial_8250_pci.c you have serial_pci_guess_board. Knowing that we have > a modem means we can only use a TTY interface for that port. Unless the > device is hotpluggable. A input interface wouldn't make sense if we have > a modem. If it is possible to see what type of device we have we can use > that to determine what interface userland can have. And in case we can't figure out in the kernel in a simple way (like the first two serial ports on a Sun are keyboard and mouse) we simply make it a tty, let the userland talk to it, decide what it sees there and then tell the kernel back. What do you think? -- Vojtech Pavlik SuSE Labs |