/* $Id: serial.h,v 1.1 2000/01/04 10:37:18 ralf Exp $ * * 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. */ #ifndef _ASM_SERIAL_H #define _ASM_SERIAL_H #include #include /* * This assumes you have a 1.8432 MHz clock for your UART. * * It'd be nice if someone built a serial card with a 24.576 MHz * clock, since the 16550A is capable of handling a top speed of 1.5 * megabits/second; but this requires the faster clock. */ #define BASE_BAUD (1843200 / 16) /* Standard COM flags (except for COM4, because of the 8514 problem) */ #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST) /* * The IOC3 serials use a 22MHz clock rate with an additional divider by 3. */ #define IOC3_BAUD (22000000 / (3*16)) #define IOC3_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST | ASYNC_IOC3) /* Let the compiler figure out the size. */ #define RS_TABLE_SIZE #ifdef CONFIG_SGI_IP27 #define ORIGIN_SERIAL_PORT_DFNS \ { 0, IOC3_BAUD, 0x9200000008620178, IOC3_SERIAL_INT, IOC3_COM_FLAGS },\ { 0, IOC3_BAUD, 0x9200000008620170, IOC3_SERIAL_INT, IOC3_COM_FLAGS }, #else #define ORIGIN_SERIAL_PORT_DFNS #endif #define SERIAL_PORT_DFNS \ ORIGIN_SERIAL_PORT_DFNS #endif /* _ASM_SERIAL_H */