File: serial.h

package info (click to toggle)
linux-2.6 2.6.18.dfsg.1-12
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 287,316 kB
  • ctags: 831,064
  • sloc: ansic: 4,700,345; asm: 205,595; makefile: 13,019; perl: 3,208; python: 2,734; yacc: 2,632; sh: 2,301; cpp: 2,107; lex: 1,510; lisp: 218; awk: 99; pascal: 41
file content (56 lines) | stat: -rw-r--r-- 1,533 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 1999 by Ralf Baechle
 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
 */ 

#ifdef CONFIG_RTE_CB_ME2

#include <asm/rte_me2_cb.h>

#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)

#define irq_cannonicalize(x) (x)
#define BASE_BAUD	250000	/* (16MHz / (16 * 38400)) * 9600 */
#define SERIAL_PORT_DFNS \
   { 0, BASE_BAUD, CB_UART_BASE, IRQ_CB_EXTSIO, STD_COM_FLAGS },

/* Redefine UART register offsets.  */
#undef UART_RX
#undef UART_TX
#undef UART_DLL
#undef UART_TRG
#undef UART_DLM
#undef UART_IER
#undef UART_FCTR
#undef UART_IIR
#undef UART_FCR
#undef UART_EFR
#undef UART_LCR
#undef UART_MCR
#undef UART_LSR
#undef UART_MSR
#undef UART_SCR
#undef UART_EMSR

#define UART_RX		(0 * CB_UART_REG_GAP)
#define UART_TX		(0 * CB_UART_REG_GAP)
#define UART_DLL	(0 * CB_UART_REG_GAP)
#define UART_TRG	(0 * CB_UART_REG_GAP)
#define UART_DLM	(1 * CB_UART_REG_GAP)
#define UART_IER	(1 * CB_UART_REG_GAP)
#define UART_FCTR	(1 * CB_UART_REG_GAP)
#define UART_IIR	(2 * CB_UART_REG_GAP)
#define UART_FCR	(2 * CB_UART_REG_GAP)
#define UART_EFR	(2 * CB_UART_REG_GAP)
#define UART_LCR	(3 * CB_UART_REG_GAP)
#define UART_MCR	(4 * CB_UART_REG_GAP)
#define UART_LSR	(5 * CB_UART_REG_GAP)
#define UART_MSR	(6 * CB_UART_REG_GAP)
#define UART_SCR	(7 * CB_UART_REG_GAP)
#define UART_EMSR	(7 * CB_UART_REG_GAP)

#endif /* CONFIG_RTE_CB_ME2 */