ia64/linux-2.6.18-xen.hg

view drivers/serial/8250_accent.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
line source
1 /*
2 * linux/drivers/serial/8250_accent.c
3 *
4 * Copyright (C) 2005 Russell King.
5 * Data taken from include/asm-i386/serial.h
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11 #include <linux/module.h>
12 #include <linux/init.h>
13 #include <linux/serial_8250.h>
15 #define PORT(_base,_irq) \
16 { \
17 .iobase = _base, \
18 .irq = _irq, \
19 .uartclk = 1843200, \
20 .iotype = UPIO_PORT, \
21 .flags = UPF_BOOT_AUTOCONF, \
22 }
24 static struct plat_serial8250_port accent_data[] = {
25 PORT(0x330, 4),
26 PORT(0x338, 4),
27 { },
28 };
30 static struct platform_device accent_device = {
31 .name = "serial8250",
32 .id = PLAT8250_DEV_ACCENT,
33 .dev = {
34 .platform_data = accent_data,
35 },
36 };
38 static int __init accent_init(void)
39 {
40 return platform_device_register(&accent_device);
41 }
43 module_init(accent_init);
45 MODULE_AUTHOR("Russell King");
46 MODULE_DESCRIPTION("8250 serial probe module for Accent Async cards");
47 MODULE_LICENSE("GPL");