import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / drivers / acorn / char / serial-atomwide.c
1 /*
2  *  linux/arch/arm/drivers/char/serial-atomwide.c
3  *
4  *  Copyright (C) 1996 Russell King.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  *  Changelog:
11  *   02-05-1996 RMK     Created
12  *   07-05-1996 RMK     Altered for greater number of cards.
13  *   30-07-1996 RMK     Now uses generic card code.
14  */
15 #include <linux/ioport.h>
16 #include <asm/ecard.h>
17
18 #define MAX_PORTS       3
19
20 struct serial_card_type {
21         unsigned int    num_ports;
22         unsigned int    baud_base;
23         unsigned int    type;
24         unsigned int    offset[MAX_PORTS];
25 };
26
27 static struct serial_card_type atomwide_type = {
28         .num_ports      = 3,
29         .baud_base      = 7372800 / 16,
30         .type           = ECARD_RES_IOCSLOW,
31         .offset         = { 0x2800, 0x2400, 0x2000 },
32 };
33
34 static const struct ecard_id serial_cids[] = {
35         { MANU_ATOMWIDE,        PROD_ATOMWIDE_3PSERIAL, &atomwide_type  },
36         { 0xffff, 0xffff }
37 };
38
39 #include "serial-card.c"