Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* sunserialcore.h
0003  *
0004  * Generic SUN serial/kbd/ms layer.  Based entirely
0005  * upon drivers/sbus/char/sunserial.h which is:
0006  *
0007  * Copyright (C) 1997  Eddie C. Dost  (ecd@skynet.be)
0008  *
0009  * Port to new UART layer is:
0010  *
0011  * Copyright (C) 2002 David S. Miller (davem@redhat.com)
0012  */
0013 
0014 #ifndef _SERIAL_SUN_H
0015 #define _SERIAL_SUN_H
0016 
0017 #include <linux/device.h>
0018 #include <linux/serial_core.h>
0019 #include <linux/console.h>
0020 
0021 /* Serial keyboard defines for L1-A processing... */
0022 #define SUNKBD_RESET        0xff
0023 #define SUNKBD_L1       0x01
0024 #define SUNKBD_UP       0x80
0025 #define SUNKBD_A        0x4d
0026 
0027 extern unsigned int suncore_mouse_baud_cflag_next(unsigned int, int *);
0028 extern int suncore_mouse_baud_detection(unsigned char, int);
0029 
0030 extern int sunserial_register_minors(struct uart_driver *, int);
0031 extern void sunserial_unregister_minors(struct uart_driver *, int);
0032 
0033 extern int sunserial_console_match(struct console *, struct device_node *,
0034                    struct uart_driver *, int, bool);
0035 extern void sunserial_console_termios(struct console *,
0036                       struct device_node *);
0037 
0038 #endif /* !(_SERIAL_SUN_H) */