1 diff -urN serial-5.05.orig/install-in-kernel serial-5.05/install-in-kernel
2 --- serial-5.05.orig/install-in-kernel Tue Apr 25 15:04:26 2000
3 +++ serial-5.05/install-in-kernel Wed Jul 17 11:18:35 2002
5 install_file circ_buf.h $ARG/include/linux
7 install_file i386_serial.h $ARG/include/asm-i386 serial.h
8 +install_file ppc_serial.h $ARG/include/asm-ppc serial.h
11 diff -urN serial-5.05.orig/ppc_serial.h serial-5.05/ppc_serial.h
12 --- serial-5.05.orig/ppc_serial.h Mon Aug 30 21:51:27 1999
13 +++ serial-5.05/ppc_serial.h Wed Jul 17 11:21:43 2002
16 #include <linux/config.h>
19 +#if defined(CONFIG_GEMINI)
20 +#include <asm/gemini_serial.h>
22 +#if defined(CONFIG_APUS)
23 #include <asm-m68k/serial.h>
27 + * This assumes you have a 1.8432 MHz clock for your UART.
29 + * It'd be nice if someone built a serial card with a 24.576 MHz
30 + * clock, since the 16550A is capable of handling a top speed of 1.5
31 + * megabits/second; but this requires the faster clock.
33 #define BASE_BAUD ( 1843200 / 16 )
35 #define SERIAL_PORT_DFNS
37 +/* Standard COM flags (except for COM4, because of the 8514 problem) */
38 +#ifdef CONFIG_SERIAL_DETECT_IRQ
39 +#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ)
40 +#define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_AUTO_IRQ)
42 +#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
43 +#define STD_COM4_FLAGS ASYNC_BOOT_AUTOCONF
46 +#ifdef CONFIG_SERIAL_MANY_PORTS
47 +#define FOURPORT_FLAGS ASYNC_FOURPORT
48 +#define ACCENT_FLAGS 0
54 + * The following define the access methods for the HUB6 card. All
55 + * access is through two ports for all 24 possible chips. The card is
56 + * selected through the high 2 bits, the port on that card with the
57 + * "middle" 3 bits, and the register on that port with the bottom
60 + * While the access port and interrupt is configurable, the default
61 + * port locations are 0x302 for the port control register, and 0x303
62 + * for the data read/write register. Normally, the interrupt is at irq3
63 + * but can be anything from 3 to 7 inclusive. Note that using 3 will
64 + * require disabling com2.
67 +#define C_P(card,port) (((card)<<6|(port)<<3) + 1)
69 +#define STD_SERIAL_PORT_DEFNS \
70 + /* UART CLK PORT IRQ FLAGS */ \
71 + { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS }, /* ttyS0 */ \
72 + { 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS }, /* ttyS1 */ \
73 + { 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS }, /* ttyS2 */ \
74 + { 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS }, /* ttyS3 */
77 #ifdef CONFIG_SERIAL_MANY_PORTS
78 #define RS_TABLE_SIZE 64
79 +#define EXTRA_SERIAL_PORT_DEFNS \
80 + { 0, BASE_BAUD, 0x1A0, 9, FOURPORT_FLAGS }, /* ttyS4 */ \
81 + { 0, BASE_BAUD, 0x1A8, 9, FOURPORT_FLAGS }, /* ttyS5 */ \
82 + { 0, BASE_BAUD, 0x1B0, 9, FOURPORT_FLAGS }, /* ttyS6 */ \
83 + { 0, BASE_BAUD, 0x1B8, 9, FOURPORT_FLAGS }, /* ttyS7 */ \
84 + { 0, BASE_BAUD, 0x2A0, 5, FOURPORT_FLAGS }, /* ttyS8 */ \
85 + { 0, BASE_BAUD, 0x2A8, 5, FOURPORT_FLAGS }, /* ttyS9 */ \
86 + { 0, BASE_BAUD, 0x2B0, 5, FOURPORT_FLAGS }, /* ttyS10 */ \
87 + { 0, BASE_BAUD, 0x2B8, 5, FOURPORT_FLAGS }, /* ttyS11 */ \
88 + { 0, BASE_BAUD, 0x330, 4, ACCENT_FLAGS }, /* ttyS12 */ \
89 + { 0, BASE_BAUD, 0x338, 4, ACCENT_FLAGS }, /* ttyS13 */ \
90 + { 0, BASE_BAUD, 0x000, 0, 0 }, /* ttyS14 (spare) */ \
91 + { 0, BASE_BAUD, 0x000, 0, 0 }, /* ttyS15 (spare) */ \
92 + { 0, BASE_BAUD, 0x100, 12, BOCA_FLAGS }, /* ttyS16 */ \
93 + { 0, BASE_BAUD, 0x108, 12, BOCA_FLAGS }, /* ttyS17 */ \
94 + { 0, BASE_BAUD, 0x110, 12, BOCA_FLAGS }, /* ttyS18 */ \
95 + { 0, BASE_BAUD, 0x118, 12, BOCA_FLAGS }, /* ttyS19 */ \
96 + { 0, BASE_BAUD, 0x120, 12, BOCA_FLAGS }, /* ttyS20 */ \
97 + { 0, BASE_BAUD, 0x128, 12, BOCA_FLAGS }, /* ttyS21 */ \
98 + { 0, BASE_BAUD, 0x130, 12, BOCA_FLAGS }, /* ttyS22 */ \
99 + { 0, BASE_BAUD, 0x138, 12, BOCA_FLAGS }, /* ttyS23 */ \
100 + { 0, BASE_BAUD, 0x140, 12, BOCA_FLAGS }, /* ttyS24 */ \
101 + { 0, BASE_BAUD, 0x148, 12, BOCA_FLAGS }, /* ttyS25 */ \
102 + { 0, BASE_BAUD, 0x150, 12, BOCA_FLAGS }, /* ttyS26 */ \
103 + { 0, BASE_BAUD, 0x158, 12, BOCA_FLAGS }, /* ttyS27 */ \
104 + { 0, BASE_BAUD, 0x160, 12, BOCA_FLAGS }, /* ttyS28 */ \
105 + { 0, BASE_BAUD, 0x168, 12, BOCA_FLAGS }, /* ttyS29 */ \
106 + { 0, BASE_BAUD, 0x170, 12, BOCA_FLAGS }, /* ttyS30 */ \
107 + { 0, BASE_BAUD, 0x178, 12, BOCA_FLAGS }, /* ttyS31 */
109 #define RS_TABLE_SIZE 4
110 +#define EXTRA_SERIAL_PORT_DEFNS
113 +/* You can have up to four HUB6's in the system, but I've only
114 + * included two cards here for a total of twelve ports.
116 +#if (defined(CONFIG_HUB6) && defined(CONFIG_SERIAL_MANY_PORTS))
117 +#define HUB6_SERIAL_PORT_DFNS \
118 + { 0, BASE_BAUD, 0x302, 3, HUB6_FLAGS, C_P(0,0) }, /* ttyS32 */ \
119 + { 0, BASE_BAUD, 0x302, 3, HUB6_FLAGS, C_P(0,1) }, /* ttyS33 */ \
120 + { 0, BASE_BAUD, 0x302, 3, HUB6_FLAGS, C_P(0,2) }, /* ttyS34 */ \
121 + { 0, BASE_BAUD, 0x302, 3, HUB6_FLAGS, C_P(0,3) }, /* ttyS35 */ \
122 + { 0, BASE_BAUD, 0x302, 3, HUB6_FLAGS, C_P(0,4) }, /* ttyS36 */ \
123 + { 0, BASE_BAUD, 0x302, 3, HUB6_FLAGS, C_P(0,5) }, /* ttyS37 */ \
124 + { 0, BASE_BAUD, 0x302, 3, HUB6_FLAGS, C_P(1,0) }, /* ttyS38 */ \
125 + { 0, BASE_BAUD, 0x302, 3, HUB6_FLAGS, C_P(1,1) }, /* ttyS39 */ \
126 + { 0, BASE_BAUD, 0x302, 3, HUB6_FLAGS, C_P(1,2) }, /* ttyS40 */ \
127 + { 0, BASE_BAUD, 0x302, 3, HUB6_FLAGS, C_P(1,3) }, /* ttyS41 */ \
128 + { 0, BASE_BAUD, 0x302, 3, HUB6_FLAGS, C_P(1,4) }, /* ttyS42 */ \
129 + { 0, BASE_BAUD, 0x302, 3, HUB6_FLAGS, C_P(1,5) }, /* ttyS43 */
131 +#define HUB6_SERIAL_PORT_DFNS
134 -#endif /* CONFIG_APUS */
135 +#define MCA_SERIAL_PORT_DFNS
137 +#define SERIAL_PORT_DFNS \
138 + STD_SERIAL_PORT_DEFNS \
139 + EXTRA_SERIAL_PORT_DEFNS \
140 + HUB6_SERIAL_PORT_DFNS \
141 + MCA_SERIAL_PORT_DFNS