drm/rockchip: Don't change hdmi reference clock rate
[drm/drm-misc.git] / drivers / media / pci / mantis / mantis_uart.h
blob0cc04fc3e1b3727bf83ad7d38f2478f438c3c500
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 Mantis PCI bridge driver
5 Copyright (C) Manu Abraham (abraham.manu@gmail.com)
7 */
9 #ifndef __MANTIS_UART_H
10 #define __MANTIS_UART_H
12 #define MANTIS_UART_CTL 0xe0
13 #define MANTIS_UART_RXINT (1 << 4)
14 #define MANTIS_UART_RXFLUSH (1 << 2)
16 #define MANTIS_UART_RXD 0xe8
17 #define MANTIS_UART_BAUD 0xec
19 #define MANTIS_UART_STAT 0xf0
20 #define MANTIS_UART_RXFIFO_DATA (1 << 7)
21 #define MANTIS_UART_RXFIFO_EMPTY (1 << 6)
22 #define MANTIS_UART_RXFIFO_FULL (1 << 3)
23 #define MANTIS_UART_FRAME_ERR (1 << 2)
24 #define MANTIS_UART_PARITY_ERR (1 << 1)
25 #define MANTIS_UART_RXTHRESH_INT (1 << 0)
27 enum mantis_baud {
28 MANTIS_BAUD_9600 = 0,
29 MANTIS_BAUD_19200,
30 MANTIS_BAUD_38400,
31 MANTIS_BAUD_57600,
32 MANTIS_BAUD_115200
35 enum mantis_parity {
36 MANTIS_PARITY_NONE = 0,
37 MANTIS_PARITY_EVEN,
38 MANTIS_PARITY_ODD,
41 struct mantis_pci;
43 extern int mantis_uart_init(struct mantis_pci *mantis);
44 extern void mantis_uart_exit(struct mantis_pci *mantis);
46 #endif /* __MANTIS_UART_H */