ia64/linux-2.6.18-xen.hg

annotate drivers/serial/8250_boca.c @ 893:f994bfe9b93b

linux/blktap2: reduce TLB flush scope

c/s 885 added very coarse TLB flushing. Since these flushes always
follow single page updates, single page flushes (when available) are
sufficient.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 04 10:32:57 2009 +0100 (2009-06-04)
parents 831230e53067
children
rev   line source
ian@0 1 /*
ian@0 2 * linux/drivers/serial/8250_boca.c
ian@0 3 *
ian@0 4 * Copyright (C) 2005 Russell King.
ian@0 5 * Data taken from include/asm-i386/serial.h
ian@0 6 *
ian@0 7 * This program is free software; you can redistribute it and/or modify
ian@0 8 * it under the terms of the GNU General Public License version 2 as
ian@0 9 * published by the Free Software Foundation.
ian@0 10 */
ian@0 11 #include <linux/module.h>
ian@0 12 #include <linux/init.h>
ian@0 13 #include <linux/serial_8250.h>
ian@0 14
ian@0 15 #define PORT(_base,_irq) \
ian@0 16 { \
ian@0 17 .iobase = _base, \
ian@0 18 .irq = _irq, \
ian@0 19 .uartclk = 1843200, \
ian@0 20 .iotype = UPIO_PORT, \
ian@0 21 .flags = UPF_BOOT_AUTOCONF, \
ian@0 22 }
ian@0 23
ian@0 24 static struct plat_serial8250_port boca_data[] = {
ian@0 25 PORT(0x100, 12),
ian@0 26 PORT(0x108, 12),
ian@0 27 PORT(0x110, 12),
ian@0 28 PORT(0x118, 12),
ian@0 29 PORT(0x120, 12),
ian@0 30 PORT(0x128, 12),
ian@0 31 PORT(0x130, 12),
ian@0 32 PORT(0x138, 12),
ian@0 33 PORT(0x140, 12),
ian@0 34 PORT(0x148, 12),
ian@0 35 PORT(0x150, 12),
ian@0 36 PORT(0x158, 12),
ian@0 37 PORT(0x160, 12),
ian@0 38 PORT(0x168, 12),
ian@0 39 PORT(0x170, 12),
ian@0 40 PORT(0x178, 12),
ian@0 41 { },
ian@0 42 };
ian@0 43
ian@0 44 static struct platform_device boca_device = {
ian@0 45 .name = "serial8250",
ian@0 46 .id = PLAT8250_DEV_BOCA,
ian@0 47 .dev = {
ian@0 48 .platform_data = boca_data,
ian@0 49 },
ian@0 50 };
ian@0 51
ian@0 52 static int __init boca_init(void)
ian@0 53 {
ian@0 54 return platform_device_register(&boca_device);
ian@0 55 }
ian@0 56
ian@0 57 module_init(boca_init);
ian@0 58
ian@0 59 MODULE_AUTHOR("Russell King");
ian@0 60 MODULE_DESCRIPTION("8250 serial probe module for Boca cards");
ian@0 61 MODULE_LICENSE("GPL");