Path: blob/master/drivers/media/dvb/mantis/mantis_uart.h
15112 views
/*1Mantis PCI bridge driver23Copyright (C) Manu Abraham ([email protected])45This program is free software; you can redistribute it and/or modify6it under the terms of the GNU General Public License as published by7the Free Software Foundation; either version 2 of the License, or8(at your option) any later version.910This program is distributed in the hope that it will be useful,11but WITHOUT ANY WARRANTY; without even the implied warranty of12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13GNU General Public License for more details.1415You should have received a copy of the GNU General Public License16along with this program; if not, write to the Free Software17Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.18*/1920#ifndef __MANTIS_UART_H21#define __MANTIS_UART_H2223#define MANTIS_UART_CTL 0xe024#define MANTIS_UART_RXINT (1 << 4)25#define MANTIS_UART_RXFLUSH (1 << 2)2627#define MANTIS_UART_RXD 0xe828#define MANTIS_UART_BAUD 0xec2930#define MANTIS_UART_STAT 0xf031#define MANTIS_UART_RXFIFO_DATA (1 << 7)32#define MANTIS_UART_RXFIFO_EMPTY (1 << 6)33#define MANTIS_UART_RXFIFO_FULL (1 << 3)34#define MANTIS_UART_FRAME_ERR (1 << 2)35#define MANTIS_UART_PARITY_ERR (1 << 1)36#define MANTIS_UART_RXTHRESH_INT (1 << 0)3738enum mantis_baud {39MANTIS_BAUD_9600 = 0,40MANTIS_BAUD_19200,41MANTIS_BAUD_38400,42MANTIS_BAUD_57600,43MANTIS_BAUD_11520044};4546enum mantis_parity {47MANTIS_PARITY_NONE = 0,48MANTIS_PARITY_EVEN,49MANTIS_PARITY_ODD,50};5152struct mantis_pci;5354extern int mantis_uart_init(struct mantis_pci *mantis);55extern void mantis_uart_exit(struct mantis_pci *mantis);5657#endif /* __MANTIS_UART_H */585960