ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / ppc / platforms / mvme5100_serial.h
1 /*
2  * include/asm-ppc/mvme5100_serial.h
3  *
4  * Definitions for Motorola MVME5100 support
5  *
6  * Author: Matt Porter <mporter@mvista.com>
7  *
8  * 2001 (c) MontaVista, Software, Inc.  This file is licensed under
9  * the terms of the GNU General Public License version 2.  This program
10  * is licensed "as is" without any warranty of any kind, whether express
11  * or implied.
12  */
13
14 #ifdef __KERNEL__
15 #ifndef __ASM_MVME5100_SERIAL_H__
16 #define __ASM_MVME5100_SERIAL_H__
17
18 #include <linux/config.h>
19 #include <platforms/mvme5100.h>
20
21 #ifdef CONFIG_SERIAL_MANY_PORTS
22 #define RS_TABLE_SIZE  64
23 #else
24 #define RS_TABLE_SIZE  4
25 #endif
26
27 #define BASE_BAUD ( MVME5100_BASE_BAUD / 16 )
28
29 #ifdef CONFIG_SERIAL_DETECT_IRQ
30 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
31 #else
32 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
33 #endif
34
35 /* All UART IRQ's are wire-OR'd to one MPIC IRQ */
36 #define STD_SERIAL_PORT_DFNS \
37         { 0, BASE_BAUD, MVME5100_SERIAL_1, \
38                 MVME5100_SERIAL_IRQ, \
39                 STD_COM_FLAGS, /* ttyS0 */ \
40                 iomem_base: (unsigned char *)MVME5100_SERIAL_1,         \
41                 iomem_reg_shift: 4,                                     \
42                 io_type: SERIAL_IO_MEM },                               \
43         { 0, BASE_BAUD, MVME5100_SERIAL_2, \
44                 MVME5100_SERIAL_IRQ, \
45                 STD_COM_FLAGS, /* ttyS1 */ \
46                 iomem_base: (unsigned char *)MVME5100_SERIAL_2,         \
47                 iomem_reg_shift: 4,                                     \
48                 io_type: SERIAL_IO_MEM },
49
50 #define SERIAL_PORT_DFNS \
51         STD_SERIAL_PORT_DFNS
52
53 #endif /* __ASM_MVME5100_SERIAL_H__ */
54 #endif /* __KERNEL__ */