2017-11-01 22:09:13 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
|
2012-10-13 17:46:48 +08:00
|
|
|
/*
|
|
|
|
* linux/drivers/char/serial_core.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2000 Deep Blue Solutions Ltd.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
#ifndef _UAPILINUX_SERIAL_CORE_H
|
|
|
|
#define _UAPILINUX_SERIAL_CORE_H
|
|
|
|
|
|
|
|
#include <linux/serial.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The type definitions. These are from Ted Ts'o's serial.h
|
|
|
|
*/
|
|
|
|
#define PORT_NS16550A 14
|
|
|
|
#define PORT_XSCALE 15
|
|
|
|
#define PORT_RM9000 16 /* PMC-Sierra RM9xxx internal UART */
|
|
|
|
#define PORT_OCTEON 17 /* Cavium OCTEON internal UART */
|
|
|
|
#define PORT_AR7 18 /* Texas Instruments AR7 internal UART */
|
|
|
|
#define PORT_U6_16550A 19 /* ST-Ericsson U6xxx internal UART */
|
|
|
|
#define PORT_TEGRA 20 /* NVIDIA Tegra internal UART */
|
|
|
|
#define PORT_XR17D15X 21 /* Exar XR17D15x UART */
|
|
|
|
#define PORT_LPC3220 22 /* NXP LPC32xx SoC "Standard" UART */
|
|
|
|
#define PORT_8250_CIR 23 /* CIR infrared port, has its own driver */
|
2012-11-19 23:12:04 +08:00
|
|
|
#define PORT_XR17V35X 24 /* Exar XR17V35x UARTs */
|
2013-01-30 09:54:44 +08:00
|
|
|
#define PORT_BRCM_TRUMANAGE 25
|
2013-03-07 10:28:37 +08:00
|
|
|
#define PORT_ALTR_16550_F32 26 /* Altera 16550 UART with 32 FIFOs */
|
|
|
|
#define PORT_ALTR_16550_F64 27 /* Altera 16550 UART with 64 FIFOs */
|
|
|
|
#define PORT_ALTR_16550_F128 28 /* Altera 16550 UART with 128 FIFOs */
|
2014-10-17 03:48:21 +08:00
|
|
|
#define PORT_RT2880 29 /* Ralink RT2880 internal UART */
|
2015-01-05 23:44:42 +08:00
|
|
|
#define PORT_16550A_FSL64 30 /* Freescale 16550 UART with 64 FIFOs */
|
2012-10-13 17:46:48 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* ARM specific type numbers. These are not currently guaranteed
|
|
|
|
* to be implemented, and will change in the future. These are
|
|
|
|
* separate so any additions to the old serial.c that occur before
|
|
|
|
* we are merged can be easily merged here.
|
|
|
|
*/
|
|
|
|
#define PORT_PXA 31
|
|
|
|
#define PORT_AMBA 32
|
|
|
|
#define PORT_CLPS711X 33
|
|
|
|
#define PORT_SA1100 34
|
|
|
|
#define PORT_UART00 35
|
2017-07-10 04:29:42 +08:00
|
|
|
#define PORT_OWL 36
|
2012-10-13 17:46:48 +08:00
|
|
|
#define PORT_21285 37
|
|
|
|
|
|
|
|
/* Sparc type numbers. */
|
|
|
|
#define PORT_SUNZILOG 38
|
|
|
|
#define PORT_SUNSAB 39
|
|
|
|
|
2018-03-05 19:47:38 +08:00
|
|
|
/* Nuvoton UART */
|
|
|
|
#define PORT_NPCM 40
|
|
|
|
|
2019-01-23 18:28:19 +08:00
|
|
|
/* NVIDIA Tegra Combined UART */
|
|
|
|
#define PORT_TEGRA_TCU 41
|
|
|
|
|
2017-08-22 21:58:20 +08:00
|
|
|
/* Intel EG20 */
|
|
|
|
#define PORT_PCH_8LINE 44
|
|
|
|
#define PORT_PCH_2LINE 45
|
|
|
|
|
2012-10-13 17:46:48 +08:00
|
|
|
/* DEC */
|
|
|
|
#define PORT_DZ 46
|
|
|
|
#define PORT_ZS 47
|
|
|
|
|
|
|
|
/* Parisc type numbers. */
|
|
|
|
#define PORT_MUX 48
|
|
|
|
|
2017-06-07 23:19:31 +08:00
|
|
|
/* Atmel AT91 SoC */
|
2012-10-13 17:46:48 +08:00
|
|
|
#define PORT_ATMEL 49
|
|
|
|
|
|
|
|
/* Macintosh Zilog type numbers */
|
|
|
|
#define PORT_MAC_ZILOG 50 /* m68k : not yet implemented */
|
|
|
|
#define PORT_PMAC_ZILOG 51
|
|
|
|
|
|
|
|
/* SH-SCI */
|
|
|
|
#define PORT_SCI 52
|
|
|
|
#define PORT_SCIF 53
|
|
|
|
#define PORT_IRDA 54
|
|
|
|
|
|
|
|
/* Samsung S3C2410 SoC and derivatives thereof */
|
|
|
|
#define PORT_S3C2410 55
|
|
|
|
|
|
|
|
/* SGI IP22 aka Indy / Challenge S / Indigo 2 */
|
|
|
|
#define PORT_IP22ZILOG 56
|
|
|
|
|
|
|
|
/* Sharp LH7a40x -- an ARM9 SoC series */
|
|
|
|
#define PORT_LH7A40X 57
|
|
|
|
|
|
|
|
/* PPC CPM type number */
|
|
|
|
#define PORT_CPM 58
|
|
|
|
|
|
|
|
/* MPC52xx (and MPC512x) type numbers */
|
|
|
|
#define PORT_MPC52xx 59
|
|
|
|
|
|
|
|
/* IBM icom */
|
|
|
|
#define PORT_ICOM 60
|
|
|
|
|
|
|
|
/* Samsung S3C2440 SoC */
|
|
|
|
#define PORT_S3C2440 61
|
|
|
|
|
|
|
|
/* Motorola i.MX SoC */
|
|
|
|
#define PORT_IMX 62
|
|
|
|
|
2019-06-27 00:05:53 +08:00
|
|
|
/* Marvell MPSC (obsolete unused) */
|
2012-10-13 17:46:48 +08:00
|
|
|
#define PORT_MPSC 63
|
|
|
|
|
|
|
|
/* TXX9 type number */
|
|
|
|
#define PORT_TXX9 64
|
|
|
|
|
|
|
|
/* NEC VR4100 series SIU/DSIU */
|
|
|
|
#define PORT_VR41XX_SIU 65
|
|
|
|
#define PORT_VR41XX_DSIU 66
|
|
|
|
|
|
|
|
/* Samsung S3C2400 SoC */
|
|
|
|
#define PORT_S3C2400 67
|
|
|
|
|
|
|
|
/* M32R SIO */
|
|
|
|
#define PORT_M32R_SIO 68
|
|
|
|
|
|
|
|
/*Digi jsm */
|
|
|
|
#define PORT_JSM 69
|
|
|
|
|
|
|
|
/* SUN4V Hypervisor Console */
|
|
|
|
#define PORT_SUNHV 72
|
|
|
|
|
|
|
|
#define PORT_S3C2412 73
|
|
|
|
|
|
|
|
/* Xilinx uartlite */
|
|
|
|
#define PORT_UARTLITE 74
|
|
|
|
|
|
|
|
/* Blackfin bf5xx */
|
|
|
|
#define PORT_BFIN 75
|
|
|
|
|
|
|
|
/* Broadcom SB1250, etc. SOC */
|
|
|
|
#define PORT_SB1250_DUART 77
|
|
|
|
|
|
|
|
/* Freescale ColdFire */
|
|
|
|
#define PORT_MCF 78
|
|
|
|
|
|
|
|
/* Blackfin SPORT */
|
|
|
|
#define PORT_BFIN_SPORT 79
|
|
|
|
|
|
|
|
/* MN10300 on-chip UART numbers */
|
|
|
|
#define PORT_MN10300 80
|
|
|
|
#define PORT_MN10300_CTS 81
|
|
|
|
|
|
|
|
#define PORT_SC26XX 82
|
|
|
|
|
|
|
|
/* SH-SCI */
|
|
|
|
#define PORT_SCIFA 83
|
|
|
|
|
|
|
|
#define PORT_S3C6400 84
|
|
|
|
|
2015-11-16 23:48:12 +08:00
|
|
|
/* NWPSERIAL, now removed */
|
2012-10-13 17:46:48 +08:00
|
|
|
#define PORT_NWPSERIAL 85
|
|
|
|
|
|
|
|
/* MAX3100 */
|
|
|
|
#define PORT_MAX3100 86
|
|
|
|
|
|
|
|
/* Timberdale UART */
|
|
|
|
#define PORT_TIMBUART 87
|
|
|
|
|
|
|
|
/* Qualcomm MSM SoCs */
|
|
|
|
#define PORT_MSM 88
|
|
|
|
|
|
|
|
/* BCM63xx family SoCs */
|
|
|
|
#define PORT_BCM63XX 89
|
|
|
|
|
|
|
|
/* Aeroflex Gaisler GRLIB APBUART */
|
|
|
|
#define PORT_APBUART 90
|
|
|
|
|
|
|
|
/* Altera UARTs */
|
|
|
|
#define PORT_ALTERA_JTAGUART 91
|
|
|
|
#define PORT_ALTERA_UART 92
|
|
|
|
|
|
|
|
/* SH-SCI */
|
|
|
|
#define PORT_SCIFB 93
|
|
|
|
|
|
|
|
/* MAX310X */
|
|
|
|
#define PORT_MAX310X 94
|
|
|
|
|
2017-08-22 21:58:22 +08:00
|
|
|
/* TI DA8xx/66AK2x */
|
|
|
|
#define PORT_DA830 95
|
|
|
|
|
2012-10-13 17:46:48 +08:00
|
|
|
/* TI OMAP-UART */
|
|
|
|
#define PORT_OMAP 96
|
|
|
|
|
|
|
|
/* VIA VT8500 SoC */
|
|
|
|
#define PORT_VT8500 97
|
|
|
|
|
2014-04-05 08:23:43 +08:00
|
|
|
/* Cadence (Xilinx Zynq) UART */
|
2012-10-13 17:46:48 +08:00
|
|
|
#define PORT_XUARTPS 98
|
|
|
|
|
|
|
|
/* Atheros AR933X SoC */
|
|
|
|
#define PORT_AR933X 99
|
|
|
|
|
2012-10-27 15:17:12 +08:00
|
|
|
/* ARC (Synopsys) on-chip UART */
|
|
|
|
#define PORT_ARC 101
|
2012-10-13 17:46:48 +08:00
|
|
|
|
2013-01-17 12:28:40 +08:00
|
|
|
/* Rocketport EXPRESS/INFINITY */
|
|
|
|
#define PORT_RP2 102
|
|
|
|
|
2013-06-07 09:20:40 +08:00
|
|
|
/* Freescale lpuart */
|
|
|
|
#define PORT_LPUART 103
|
|
|
|
|
2013-05-31 23:57:01 +08:00
|
|
|
/* SH-SCI */
|
2013-07-03 05:42:51 +08:00
|
|
|
#define PORT_HSCIF 104
|
2013-05-31 23:57:01 +08:00
|
|
|
|
2013-07-15 19:39:23 +08:00
|
|
|
/* ST ASC type numbers */
|
|
|
|
#define PORT_ASC 105
|
|
|
|
|
2013-08-13 02:11:44 +08:00
|
|
|
/* Tilera TILE-Gx UART */
|
Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile
Pull Tile arch updates from Chris Metcalf:
"These changes bring in a bunch of new functionality that has been
maintained internally at Tilera over the last year, plus other stray
bits of work that I've taken into the tile tree from other folks.
The changes include some PCI root complex work, interrupt-driven
console support, support for performing fast-path unaligned data
fixups by kernel-based JIT code generation, CONFIG_PREEMPT support,
vDSO support for gettimeofday(), a serial driver for the tilegx
on-chip UART, KGDB support, more optimized string routines, support
for ftrace and kprobes, improved ASLR, and many bug fixes.
We also remove support for the old TILE64 chip, which is no longer
buildable"
* git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile: (85 commits)
tile: refresh tile defconfig files
tile: rework <asm/cmpxchg.h>
tile PCI RC: make default consistent DMA mask 32-bit
tile: add null check for kzalloc in tile/kernel/setup.c
tile: make __write_once a synonym for __read_mostly
tile: remove support for TILE64
tile: use asm-generic/bitops/builtin-*.h
tile: eliminate no-op "noatomichash" boot argument
tile: use standard tile_bundle_bits type in traps.c
tile: simplify code referencing hypervisor API addresses
tile: change <asm/system.h> to <asm/switch_to.h> in comments
tile: mark pcibios_init() as __init
tile: check for correct compiler earlier in asm-offsets.c
tile: use standard 'generic-y' model for <asm/hw_irq.h>
tile: use asm-generic version of <asm/local64.h>
tile PCI RC: add comment about "PCI hole" problem
tile: remove DEBUG_EXTRA_FLAGS kernel config option
tile: add virt_to_kpte() API and clean up and document behavior
tile: support FRAME_POINTER
tile: support reporting Tilera hypervisor statistics
...
2013-09-07 02:14:33 +08:00
|
|
|
#define PORT_TILEGX 106
|
2013-08-13 02:11:44 +08:00
|
|
|
|
2014-04-17 21:47:58 +08:00
|
|
|
/* MEN 16z135 UART */
|
|
|
|
#define PORT_MEN_Z135 107
|
|
|
|
|
2014-04-25 08:56:06 +08:00
|
|
|
/* SC16IS74xx */
|
|
|
|
#define PORT_SC16IS7XX 108
|
|
|
|
|
2014-08-17 18:49:49 +08:00
|
|
|
/* MESON */
|
|
|
|
#define PORT_MESON 109
|
|
|
|
|
2014-12-19 03:45:24 +08:00
|
|
|
/* Conexant Digicolor */
|
|
|
|
#define PORT_DIGICOLOR 110
|
|
|
|
|
2015-01-28 19:08:44 +08:00
|
|
|
/* SPRD SERIAL */
|
|
|
|
#define PORT_SPRD 111
|
|
|
|
|
2015-02-03 06:19:20 +08:00
|
|
|
/* Cris v10 / v32 SoC */
|
|
|
|
#define PORT_CRIS 112
|
|
|
|
|
2015-06-11 03:19:36 +08:00
|
|
|
/* STM32 USART */
|
|
|
|
#define PORT_STM32 113
|
|
|
|
|
2016-02-17 02:14:53 +08:00
|
|
|
/* MVEBU UART */
|
|
|
|
#define PORT_MVEBU 114
|
|
|
|
|
2016-01-14 09:15:43 +08:00
|
|
|
/* Microchip PIC32 UART */
|
2016-05-20 01:02:26 +08:00
|
|
|
#define PORT_PIC32 115
|
2016-01-14 09:15:43 +08:00
|
|
|
|
2016-04-25 16:47:47 +08:00
|
|
|
/* MPS2 UART */
|
2016-05-21 11:57:27 +08:00
|
|
|
#define PORT_MPS2UART 116
|
2016-04-25 16:47:47 +08:00
|
|
|
|
2017-08-21 01:17:56 +08:00
|
|
|
/* MediaTek BTIF */
|
|
|
|
#define PORT_MTK_BTIF 117
|
|
|
|
|
2018-12-18 23:02:37 +08:00
|
|
|
/* RDA UART */
|
|
|
|
#define PORT_RDA 118
|
|
|
|
|
2019-04-15 19:31:40 +08:00
|
|
|
/* Socionext Milbeaut UART */
|
|
|
|
#define PORT_MLB_USIO 119
|
|
|
|
|
2019-04-13 10:01:13 +08:00
|
|
|
/* SiFive UART */
|
|
|
|
#define PORT_SIFIVE_V0 120
|
|
|
|
|
2019-08-10 03:01:29 +08:00
|
|
|
/* Sunix UART */
|
|
|
|
#define PORT_SUNIX 121
|
|
|
|
|
2019-10-16 20:48:25 +08:00
|
|
|
/* Freescale LINFlexD UART */
|
2019-10-04 21:51:13 +08:00
|
|
|
#define PORT_LINFLEXUART 122
|
2019-08-09 19:29:16 +08:00
|
|
|
|
2012-10-13 17:46:48 +08:00
|
|
|
#endif /* _UAPILINUX_SERIAL_CORE_H */
|