import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / drivers / acorn / char / serial-dualsp.c
1 /*
2  *  linux/drivers/acorn/char/serial-dualsp.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  *   30-07-1996 RMK     Created
12  */
13 #include <linux/ioport.h>
14 #include <asm/ecard.h>
15
16 #define MAX_PORTS       3
17
18 struct serial_card_type {
19         unsigned int    num_ports;
20         unsigned int    baud_base;
21         unsigned int    type;
22         unsigned int    offset[MAX_PORTS];
23 };
24
25 static struct serial_card_type serport_type = {
26         .num_ports      = 2,
27         .baud_base      = 3686400 / 16,
28         .type           = ECARD_RES_IOCSLOW,
29         .offset         = { 0x2000, 0x2020 },
30 };
31
32 static const struct ecard_id serial_cids[] = {
33         { MANU_SERPORT,         PROD_SERPORT_DSPORT,    &serport_type   },
34         { 0xffff, 0xffff }
35 };
36
37 #include "serial-card.c"