serial: 8250: fix null-ptr-deref in serial8250_start_tx()
[linux/fpc-iii.git] / drivers / tty / serial / timbuart.h
blob007e59af636d7b52b62c04fa68e55533a5714159
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * timbuart.c timberdale FPGA GPIO driver
4 * Copyright (c) 2009 Intel Corporation
5 */
7 /* Supports:
8 * Timberdale FPGA UART
9 */
11 #ifndef _TIMBUART_H
12 #define _TIMBUART_H
14 #define TIMBUART_FIFO_SIZE 2048
16 #define TIMBUART_RXFIFO 0x08
17 #define TIMBUART_TXFIFO 0x0c
18 #define TIMBUART_IER 0x10
19 #define TIMBUART_IPR 0x14
20 #define TIMBUART_ISR 0x18
21 #define TIMBUART_CTRL 0x1c
22 #define TIMBUART_BAUDRATE 0x20
24 #define TIMBUART_CTRL_RTS 0x01
25 #define TIMBUART_CTRL_CTS 0x02
26 #define TIMBUART_CTRL_FLSHTX 0x40
27 #define TIMBUART_CTRL_FLSHRX 0x80
29 #define TXBF 0x01
30 #define TXBAE 0x02
31 #define CTS_DELTA 0x04
32 #define RXDP 0x08
33 #define RXBAF 0x10
34 #define RXBF 0x20
35 #define RXTT 0x40
36 #define RXBNAE 0x80
37 #define TXBE 0x100
39 #define RXFLAGS (RXDP | RXBAF | RXBF | RXTT | RXBNAE)
40 #define TXFLAGS (TXBF | TXBAE)
42 #define TIMBUART_MAJOR 204
43 #define TIMBUART_MINOR 192
45 #endif /* _TIMBUART_H */