mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 03:21:32 +00:00
c73fcc846c
The current scheme works on static interpretation of text names, which is wrong. The output-device setting, for example, must be resolved via an alias or similar to a full path name to the console device. Paths also contain an optional set of 'options', which starts with a colon at the end of the path. The option area is used to specify which of two serial ports ('a' or 'b') the path refers to when a device node drives multiple ports. 'a' is assumed if the option specification is missing. This was caught by the UltraSPARC-T1 simulator. The 'output-device' property was set to 'ttya' and we didn't pick upon the fact that this is an OBP alias set to '/virtual-devices/console'. Instead we saw it as the first serial console device, instead of the hypervisor console. The infrastructure is now there to take advantage of this to resolve the console correctly even in multi-head situations in fbcon too. Thanks to Greg Onufer for the bug report. Signed-off-by: David S. Miller <davem@davemloft.net>
32 lines
837 B
C
32 lines
837 B
C
/* suncore.h
|
|
*
|
|
* Generic SUN serial/kbd/ms layer. Based entirely
|
|
* upon drivers/sbus/char/sunserial.h which is:
|
|
*
|
|
* Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be)
|
|
*
|
|
* Port to new UART layer is:
|
|
*
|
|
* Copyright (C) 2002 David S. Miller (davem@redhat.com)
|
|
*/
|
|
|
|
#ifndef _SERIAL_SUN_H
|
|
#define _SERIAL_SUN_H
|
|
|
|
/* Serial keyboard defines for L1-A processing... */
|
|
#define SUNKBD_RESET 0xff
|
|
#define SUNKBD_L1 0x01
|
|
#define SUNKBD_UP 0x80
|
|
#define SUNKBD_A 0x4d
|
|
|
|
extern unsigned int suncore_mouse_baud_cflag_next(unsigned int, int *);
|
|
extern int suncore_mouse_baud_detection(unsigned char, int);
|
|
|
|
extern int sunserial_current_minor;
|
|
|
|
extern int sunserial_console_match(struct console *, struct device_node *,
|
|
struct uart_driver *, int);
|
|
extern void sunserial_console_termios(struct console *);
|
|
|
|
#endif /* !(_SERIAL_SUN_H) */
|