2
* linux/drivers/char/riscom8.h -- RISCom/8 multiport serial driver.
4
* Copyright (C) 1994-1996 Dmitry Gorodchanin (pgmdsg@ibi.com)
6
* This code is loosely based on the Linux serial driver, written by
7
* Linus Torvalds, Theodore T'so and others. The RISCom/8 card
8
* programming info was obtained from various drivers for other OSes
9
* (FreeBSD, ISC, etc), but no source code from those drivers were
10
* directly included in this driver.
13
* This program is free software; you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by
15
* the Free Software Foundation; either version 2 of the License, or
16
* (at your option) any later version.
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
23
* You should have received a copy of the GNU General Public License
24
* along with this program; if not, write to the Free Software
25
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28
#ifndef __LINUX_RISCOM8_H
29
#define __LINUX_RISCOM8_H
31
#include <linux/serial.h>
36
/* NOTE: RISCom decoder recognizes 16 addresses... */
38
#define RC_BOARD(line) (((line) >> 3) & 0x07)
39
#define RC_PORT(line) ((line) & (RC_NPORT - 1))
41
/* Ticks per sec. Used for setting receiver timeout and break length */
42
#define RISCOM_TPS 4000
44
/* Yeah, after heavy testing I decided it must be 6.
45
* Sure, You can change it if needed.
47
#define RISCOM_RXFIFO 6 /* Max. receiver FIFO size (1-8) */
49
#define RISCOM8_MAGIC 0x0907
51
#define RC_IOBASE1 0x220
52
#define RC_IOBASE2 0x240
53
#define RC_IOBASE3 0x250
54
#define RC_IOBASE4 0x260
64
#define RC_BOARD_PRESENT 0x00000001
65
#define RC_BOARD_ACTIVE 0x00000002
78
unsigned char mark_mask;
82
#ifdef RC_REPORT_OVERRUN
83
unsigned long overrun;
86
unsigned long hits[10];
90
#endif /* __KERNEL__ */
91
#endif /* __LINUX_RISCOM8_H */