diff options
Diffstat (limited to 'include/linux/serial_core.h')
| -rw-r--r-- | include/linux/serial_core.h | 199 |
1 files changed, 2 insertions, 197 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 0253c2022e53..3c430228d232 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
| @@ -20,201 +20,6 @@ | |||
| 20 | #ifndef LINUX_SERIAL_CORE_H | 20 | #ifndef LINUX_SERIAL_CORE_H |
| 21 | #define LINUX_SERIAL_CORE_H | 21 | #define LINUX_SERIAL_CORE_H |
| 22 | 22 | ||
| 23 | #include <linux/serial.h> | ||
| 24 | |||
| 25 | /* | ||
| 26 | * The type definitions. These are from Ted Ts'o's serial.h | ||
| 27 | */ | ||
| 28 | #define PORT_UNKNOWN 0 | ||
| 29 | #define PORT_8250 1 | ||
| 30 | #define PORT_16450 2 | ||
| 31 | #define PORT_16550 3 | ||
| 32 | #define PORT_16550A 4 | ||
| 33 | #define PORT_CIRRUS 5 | ||
| 34 | #define PORT_16650 6 | ||
| 35 | #define PORT_16650V2 7 | ||
| 36 | #define PORT_16750 8 | ||
| 37 | #define PORT_STARTECH 9 | ||
| 38 | #define PORT_16C950 10 | ||
| 39 | #define PORT_16654 11 | ||
| 40 | #define PORT_16850 12 | ||
| 41 | #define PORT_RSA 13 | ||
| 42 | #define PORT_NS16550A 14 | ||
| 43 | #define PORT_XSCALE 15 | ||
| 44 | #define PORT_RM9000 16 /* PMC-Sierra RM9xxx internal UART */ | ||
| 45 | #define PORT_OCTEON 17 /* Cavium OCTEON internal UART */ | ||
| 46 | #define PORT_AR7 18 /* Texas Instruments AR7 internal UART */ | ||
| 47 | #define PORT_U6_16550A 19 /* ST-Ericsson U6xxx internal UART */ | ||
| 48 | #define PORT_TEGRA 20 /* NVIDIA Tegra internal UART */ | ||
| 49 | #define PORT_XR17D15X 21 /* Exar XR17D15x UART */ | ||
| 50 | #define PORT_LPC3220 22 /* NXP LPC32xx SoC "Standard" UART */ | ||
| 51 | #define PORT_MAX_8250 22 /* max port ID */ | ||
| 52 | |||
| 53 | /* | ||
| 54 | * ARM specific type numbers. These are not currently guaranteed | ||
| 55 | * to be implemented, and will change in the future. These are | ||
| 56 | * separate so any additions to the old serial.c that occur before | ||
| 57 | * we are merged can be easily merged here. | ||
| 58 | */ | ||
| 59 | #define PORT_PXA 31 | ||
| 60 | #define PORT_AMBA 32 | ||
| 61 | #define PORT_CLPS711X 33 | ||
| 62 | #define PORT_SA1100 34 | ||
| 63 | #define PORT_UART00 35 | ||
| 64 | #define PORT_21285 37 | ||
| 65 | |||
| 66 | /* Sparc type numbers. */ | ||
| 67 | #define PORT_SUNZILOG 38 | ||
| 68 | #define PORT_SUNSAB 39 | ||
| 69 | |||
| 70 | /* DEC */ | ||
| 71 | #define PORT_DZ 46 | ||
| 72 | #define PORT_ZS 47 | ||
| 73 | |||
| 74 | /* Parisc type numbers. */ | ||
| 75 | #define PORT_MUX 48 | ||
| 76 | |||
| 77 | /* Atmel AT91 / AT32 SoC */ | ||
| 78 | #define PORT_ATMEL 49 | ||
| 79 | |||
| 80 | /* Macintosh Zilog type numbers */ | ||
| 81 | #define PORT_MAC_ZILOG 50 /* m68k : not yet implemented */ | ||
| 82 | #define PORT_PMAC_ZILOG 51 | ||
| 83 | |||
| 84 | /* SH-SCI */ | ||
| 85 | #define PORT_SCI 52 | ||
| 86 | #define PORT_SCIF 53 | ||
| 87 | #define PORT_IRDA 54 | ||
| 88 | |||
| 89 | /* Samsung S3C2410 SoC and derivatives thereof */ | ||
| 90 | #define PORT_S3C2410 55 | ||
| 91 | |||
| 92 | /* SGI IP22 aka Indy / Challenge S / Indigo 2 */ | ||
| 93 | #define PORT_IP22ZILOG 56 | ||
| 94 | |||
| 95 | /* Sharp LH7a40x -- an ARM9 SoC series */ | ||
| 96 | #define PORT_LH7A40X 57 | ||
| 97 | |||
| 98 | /* PPC CPM type number */ | ||
| 99 | #define PORT_CPM 58 | ||
| 100 | |||
| 101 | /* MPC52xx (and MPC512x) type numbers */ | ||
| 102 | #define PORT_MPC52xx 59 | ||
| 103 | |||
| 104 | /* IBM icom */ | ||
| 105 | #define PORT_ICOM 60 | ||
| 106 | |||
| 107 | /* Samsung S3C2440 SoC */ | ||
| 108 | #define PORT_S3C2440 61 | ||
| 109 | |||
| 110 | /* Motorola i.MX SoC */ | ||
| 111 | #define PORT_IMX 62 | ||
| 112 | |||
| 113 | /* Marvell MPSC */ | ||
| 114 | #define PORT_MPSC 63 | ||
| 115 | |||
| 116 | /* TXX9 type number */ | ||
| 117 | #define PORT_TXX9 64 | ||
| 118 | |||
| 119 | /* NEC VR4100 series SIU/DSIU */ | ||
| 120 | #define PORT_VR41XX_SIU 65 | ||
| 121 | #define PORT_VR41XX_DSIU 66 | ||
| 122 | |||
| 123 | /* Samsung S3C2400 SoC */ | ||
| 124 | #define PORT_S3C2400 67 | ||
| 125 | |||
| 126 | /* M32R SIO */ | ||
| 127 | #define PORT_M32R_SIO 68 | ||
| 128 | |||
| 129 | /*Digi jsm */ | ||
| 130 | #define PORT_JSM 69 | ||
| 131 | |||
| 132 | #define PORT_PNX8XXX 70 | ||
| 133 | |||
| 134 | /* Hilscher netx */ | ||
| 135 | #define PORT_NETX 71 | ||
| 136 | |||
| 137 | /* SUN4V Hypervisor Console */ | ||
| 138 | #define PORT_SUNHV 72 | ||
| 139 | |||
| 140 | #define PORT_S3C2412 73 | ||
| 141 | |||
| 142 | /* Xilinx uartlite */ | ||
| 143 | #define PORT_UARTLITE 74 | ||
| 144 | |||
| 145 | /* Blackfin bf5xx */ | ||
| 146 | #define PORT_BFIN 75 | ||
| 147 | |||
| 148 | /* Micrel KS8695 */ | ||
| 149 | #define PORT_KS8695 76 | ||
| 150 | |||
| 151 | /* Broadcom SB1250, etc. SOC */ | ||
| 152 | #define PORT_SB1250_DUART 77 | ||
| 153 | |||
| 154 | /* Freescale ColdFire */ | ||
| 155 | #define PORT_MCF 78 | ||
| 156 | |||
| 157 | /* Blackfin SPORT */ | ||
| 158 | #define PORT_BFIN_SPORT 79 | ||
| 159 | |||
| 160 | /* MN10300 on-chip UART numbers */ | ||
| 161 | #define PORT_MN10300 80 | ||
| 162 | #define PORT_MN10300_CTS 81 | ||
| 163 | |||
| 164 | #define PORT_SC26XX 82 | ||
| 165 | |||
| 166 | /* SH-SCI */ | ||
| 167 | #define PORT_SCIFA 83 | ||
| 168 | |||
| 169 | #define PORT_S3C6400 84 | ||
| 170 | |||
| 171 | /* NWPSERIAL */ | ||
| 172 | #define PORT_NWPSERIAL 85 | ||
| 173 | |||
| 174 | /* MAX3100 */ | ||
| 175 | #define PORT_MAX3100 86 | ||
| 176 | |||
| 177 | /* Timberdale UART */ | ||
| 178 | #define PORT_TIMBUART 87 | ||
| 179 | |||
| 180 | /* Qualcomm MSM SoCs */ | ||
| 181 | #define PORT_MSM 88 | ||
| 182 | |||
| 183 | /* BCM63xx family SoCs */ | ||
| 184 | #define PORT_BCM63XX 89 | ||
| 185 | |||
| 186 | /* Aeroflex Gaisler GRLIB APBUART */ | ||
| 187 | #define PORT_APBUART 90 | ||
| 188 | |||
| 189 | /* Altera UARTs */ | ||
| 190 | #define PORT_ALTERA_JTAGUART 91 | ||
| 191 | #define PORT_ALTERA_UART 92 | ||
| 192 | |||
| 193 | /* SH-SCI */ | ||
| 194 | #define PORT_SCIFB 93 | ||
| 195 | |||
| 196 | /* MAX3107 */ | ||
| 197 | #define PORT_MAX3107 94 | ||
| 198 | |||
| 199 | /* High Speed UART for Medfield */ | ||
| 200 | #define PORT_MFD 95 | ||
| 201 | |||
| 202 | /* TI OMAP-UART */ | ||
| 203 | #define PORT_OMAP 96 | ||
| 204 | |||
| 205 | /* VIA VT8500 SoC */ | ||
| 206 | #define PORT_VT8500 97 | ||
| 207 | |||
| 208 | /* Xilinx PSS UART */ | ||
| 209 | #define PORT_XUARTPS 98 | ||
| 210 | |||
| 211 | /* Atheros AR933X SoC */ | ||
| 212 | #define PORT_AR933X 99 | ||
| 213 | |||
| 214 | /* Energy Micro efm32 SoC */ | ||
| 215 | #define PORT_EFMUART 100 | ||
| 216 | |||
| 217 | #ifdef __KERNEL__ | ||
| 218 | 23 | ||
| 219 | #include <linux/compiler.h> | 24 | #include <linux/compiler.h> |
| 220 | #include <linux/interrupt.h> | 25 | #include <linux/interrupt.h> |
| @@ -225,6 +30,7 @@ | |||
| 225 | #include <linux/mutex.h> | 30 | #include <linux/mutex.h> |
| 226 | #include <linux/sysrq.h> | 31 | #include <linux/sysrq.h> |
| 227 | #include <linux/pps_kernel.h> | 32 | #include <linux/pps_kernel.h> |
| 33 | #include <uapi/linux/serial_core.h> | ||
| 228 | 34 | ||
| 229 | struct uart_port; | 35 | struct uart_port; |
| 230 | struct serial_struct; | 36 | struct serial_struct; |
| @@ -274,6 +80,7 @@ struct uart_ops { | |||
| 274 | int (*verify_port)(struct uart_port *, struct serial_struct *); | 80 | int (*verify_port)(struct uart_port *, struct serial_struct *); |
| 275 | int (*ioctl)(struct uart_port *, unsigned int, unsigned long); | 81 | int (*ioctl)(struct uart_port *, unsigned int, unsigned long); |
| 276 | #ifdef CONFIG_CONSOLE_POLL | 82 | #ifdef CONFIG_CONSOLE_POLL |
| 83 | int (*poll_init)(struct uart_port *); | ||
| 277 | void (*poll_put_char)(struct uart_port *, unsigned char); | 84 | void (*poll_put_char)(struct uart_port *, unsigned char); |
| 278 | int (*poll_get_char)(struct uart_port *); | 85 | int (*poll_get_char)(struct uart_port *); |
| 279 | #endif | 86 | #endif |
| @@ -560,6 +367,4 @@ static inline int uart_handle_break(struct uart_port *port) | |||
| 560 | (cflag) & CRTSCTS || \ | 367 | (cflag) & CRTSCTS || \ |
| 561 | !((cflag) & CLOCAL)) | 368 | !((cflag) & CLOCAL)) |
| 562 | 369 | ||
| 563 | #endif | ||
| 564 | |||
| 565 | #endif /* LINUX_SERIAL_CORE_H */ | 370 | #endif /* LINUX_SERIAL_CORE_H */ |
