]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - drivers/tty/serial/timbuart.h
tty: add SPDX identifiers to all remaining files in drivers/tty/
[mirror_ubuntu-bionic-kernel.git] / drivers / tty / serial / timbuart.h
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * timbuart.c timberdale FPGA GPIO driver
4 * Copyright (c) 2009 Intel Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 /* Supports:
21 * Timberdale FPGA UART
22 */
23
24 #ifndef _TIMBUART_H
25 #define _TIMBUART_H
26
27 #define TIMBUART_FIFO_SIZE 2048
28
29 #define TIMBUART_RXFIFO 0x08
30 #define TIMBUART_TXFIFO 0x0c
31 #define TIMBUART_IER 0x10
32 #define TIMBUART_IPR 0x14
33 #define TIMBUART_ISR 0x18
34 #define TIMBUART_CTRL 0x1c
35 #define TIMBUART_BAUDRATE 0x20
36
37 #define TIMBUART_CTRL_RTS 0x01
38 #define TIMBUART_CTRL_CTS 0x02
39 #define TIMBUART_CTRL_FLSHTX 0x40
40 #define TIMBUART_CTRL_FLSHRX 0x80
41
42 #define TXBF 0x01
43 #define TXBAE 0x02
44 #define CTS_DELTA 0x04
45 #define RXDP 0x08
46 #define RXBAF 0x10
47 #define RXBF 0x20
48 #define RXTT 0x40
49 #define RXBNAE 0x80
50 #define TXBE 0x100
51
52 #define RXFLAGS (RXDP | RXBAF | RXBF | RXTT | RXBNAE)
53 #define TXFLAGS (TXBF | TXBAE)
54
55 #define TIMBUART_MAJOR 204
56 #define TIMBUART_MINOR 192
57
58 #endif /* _TIMBUART_H */
59