~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-m68k/serial.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * include/asm-m68k/serial.h
  3  *
  4  * currently this seems usefull only for a Q40,
  5  * its an almost exact copy of ../asm/alpha/serial.h 
  6  *
  7  */
  8 
  9 #include <linux/config.h>
 10 #if 0
 11 #define rs_init serial_rs_init
 12 #define register_serial serial_register_serial
 13 #define unregister_serial serial_unregister_serial
 14 #endif
 15 
 16 /*
 17  * This assumes you have a 1.8432 MHz clock for your UART.
 18  *
 19  * It'd be nice if someone built a serial card with a 24.576 MHz
 20  * clock, since the 16550A is capable of handling a top speed of 1.5
 21  * megabits/second; but this requires the faster clock.
 22  */
 23 #define BASE_BAUD ( 1843200 / 16 )
 24 
 25 /* Standard COM flags (except for COM4, because of the 8514 problem) */
 26 #ifdef CONFIG_SERIAL_DETECT_IRQ
 27 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ)
 28 #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_AUTO_IRQ)
 29 #else
 30 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
 31 #define STD_COM4_FLAGS ASYNC_BOOT_AUTOCONF
 32 #endif
 33 
 34 #ifdef CONFIG_SERIAL_MANY_PORTS
 35 #define FOURPORT_FLAGS ASYNC_FOURPORT
 36 #define ACCENT_FLAGS 0
 37 #define BOCA_FLAGS 0
 38 #define RS_TABLE_SIZE  64
 39 #else
 40 #define RS_TABLE_SIZE  4
 41 #endif
 42         
 43 #define STD_SERIAL_PORT_DEFNS                   \
 44         /* UART CLK   PORT IRQ     FLAGS        */                      \
 45         { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS },      /* ttyS0 */     \
 46         { 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS },      /* ttyS1 */     \
 47         { 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS },      /* ttyS2 */     \
 48         { 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS },     /* ttyS3 */
 49 
 50 
 51 #ifdef CONFIG_SERIAL_MANY_PORTS
 52 #define EXTRA_SERIAL_PORT_DEFNS                 \
 53         { 0, BASE_BAUD, 0x1A0, 9, FOURPORT_FLAGS },     /* ttyS4 */     \
 54         { 0, BASE_BAUD, 0x1A8, 9, FOURPORT_FLAGS },     /* ttyS5 */     \
 55         { 0, BASE_BAUD, 0x1B0, 9, FOURPORT_FLAGS },     /* ttyS6 */     \
 56         { 0, BASE_BAUD, 0x1B8, 9, FOURPORT_FLAGS },     /* ttyS7 */     \
 57         { 0, BASE_BAUD, 0x2A0, 5, FOURPORT_FLAGS },     /* ttyS8 */     \
 58         { 0, BASE_BAUD, 0x2A8, 5, FOURPORT_FLAGS },     /* ttyS9 */     \
 59         { 0, BASE_BAUD, 0x2B0, 5, FOURPORT_FLAGS },     /* ttyS10 */    \
 60         { 0, BASE_BAUD, 0x2B8, 5, FOURPORT_FLAGS },     /* ttyS11 */    \
 61         { 0, BASE_BAUD, 0x330, 4, ACCENT_FLAGS },       /* ttyS12 */    \
 62         { 0, BASE_BAUD, 0x338, 4, ACCENT_FLAGS },       /* ttyS13 */    \
 63         { 0, BASE_BAUD, 0x000, 0, 0 },  /* ttyS14 (spare) */            \
 64         { 0, BASE_BAUD, 0x000, 0, 0 },  /* ttyS15 (spare) */            \
 65         { 0, BASE_BAUD, 0x100, 12, BOCA_FLAGS },        /* ttyS16 */    \
 66         { 0, BASE_BAUD, 0x108, 12, BOCA_FLAGS },        /* ttyS17 */    \
 67         { 0, BASE_BAUD, 0x110, 12, BOCA_FLAGS },        /* ttyS18 */    \
 68         { 0, BASE_BAUD, 0x118, 12, BOCA_FLAGS },        /* ttyS19 */    \
 69         { 0, BASE_BAUD, 0x120, 12, BOCA_FLAGS },        /* ttyS20 */    \
 70         { 0, BASE_BAUD, 0x128, 12, BOCA_FLAGS },        /* ttyS21 */    \
 71         { 0, BASE_BAUD, 0x130, 12, BOCA_FLAGS },        /* ttyS22 */    \
 72         { 0, BASE_BAUD, 0x138, 12, BOCA_FLAGS },        /* ttyS23 */    \
 73         { 0, BASE_BAUD, 0x140, 12, BOCA_FLAGS },        /* ttyS24 */    \
 74         { 0, BASE_BAUD, 0x148, 12, BOCA_FLAGS },        /* ttyS25 */    \
 75         { 0, BASE_BAUD, 0x150, 12, BOCA_FLAGS },        /* ttyS26 */    \
 76         { 0, BASE_BAUD, 0x158, 12, BOCA_FLAGS },        /* ttyS27 */    \
 77         { 0, BASE_BAUD, 0x160, 12, BOCA_FLAGS },        /* ttyS28 */    \
 78         { 0, BASE_BAUD, 0x168, 12, BOCA_FLAGS },        /* ttyS29 */    \
 79         { 0, BASE_BAUD, 0x170, 12, BOCA_FLAGS },        /* ttyS30 */    \
 80         { 0, BASE_BAUD, 0x178, 12, BOCA_FLAGS },        /* ttyS31 */
 81 #else
 82 #define EXTRA_SERIAL_PORT_DEFNS
 83 #endif
 84 
 85 #define SERIAL_PORT_DFNS                \
 86         STD_SERIAL_PORT_DEFNS           \
 87         EXTRA_SERIAL_PORT_DEFNS
 88 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.