xref: /openbmc/linux/include/linux/sunserialcore.h (revision b2441318)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
26816383aSPaul Gortmaker /* sunserialcore.h
36816383aSPaul Gortmaker  *
46816383aSPaul Gortmaker  * Generic SUN serial/kbd/ms layer.  Based entirely
56816383aSPaul Gortmaker  * upon drivers/sbus/char/sunserial.h which is:
66816383aSPaul Gortmaker  *
76816383aSPaul Gortmaker  * Copyright (C) 1997  Eddie C. Dost  (ecd@skynet.be)
86816383aSPaul Gortmaker  *
96816383aSPaul Gortmaker  * Port to new UART layer is:
106816383aSPaul Gortmaker  *
116816383aSPaul Gortmaker  * Copyright (C) 2002 David S. Miller (davem@redhat.com)
126816383aSPaul Gortmaker  */
136816383aSPaul Gortmaker 
146816383aSPaul Gortmaker #ifndef _SERIAL_SUN_H
156816383aSPaul Gortmaker #define _SERIAL_SUN_H
166816383aSPaul Gortmaker 
175488c753SPeter Hurley #include <linux/device.h>
185488c753SPeter Hurley #include <linux/serial_core.h>
195488c753SPeter Hurley #include <linux/console.h>
205488c753SPeter Hurley 
216816383aSPaul Gortmaker /* Serial keyboard defines for L1-A processing... */
226816383aSPaul Gortmaker #define SUNKBD_RESET		0xff
236816383aSPaul Gortmaker #define SUNKBD_L1		0x01
246816383aSPaul Gortmaker #define SUNKBD_UP		0x80
256816383aSPaul Gortmaker #define SUNKBD_A		0x4d
266816383aSPaul Gortmaker 
276816383aSPaul Gortmaker extern unsigned int suncore_mouse_baud_cflag_next(unsigned int, int *);
286816383aSPaul Gortmaker extern int suncore_mouse_baud_detection(unsigned char, int);
296816383aSPaul Gortmaker 
306816383aSPaul Gortmaker extern int sunserial_register_minors(struct uart_driver *, int);
316816383aSPaul Gortmaker extern void sunserial_unregister_minors(struct uart_driver *, int);
326816383aSPaul Gortmaker 
336816383aSPaul Gortmaker extern int sunserial_console_match(struct console *, struct device_node *,
346816383aSPaul Gortmaker 				   struct uart_driver *, int, bool);
356816383aSPaul Gortmaker extern void sunserial_console_termios(struct console *,
366816383aSPaul Gortmaker 				      struct device_node *);
376816383aSPaul Gortmaker 
386816383aSPaul Gortmaker #endif /* !(_SERIAL_SUN_H) */
39