Debian Codegraph @

linux/pcmcia-cs/glue/pcmcia.c

raw
1 /*
2 * pcmcia bridge initialization
3 *
4 * Copyright (C) 2006 Free Software Foundation, Inc.
5 * Written by Stefan Siegl <[email protected]>.
6 *
7 * This file is part of GNU Mach.
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2, or (at your option)
12 * any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22 */
23
24 #include <linux/proc_fs.h>
25 #include <linux/pci.h>
26
27 #include <asm/spinlock.h>
28
29 #include <pcmcia/version.h>
30 #include <pcmcia/cs_types.h>
31 #include <pcmcia/ss.h>
32 #include <pcmcia/cs.h>
33
34 extern int init_pcmcia_cs(void);
35 extern int init_i82365(void);
36 extern int init_pcmcia_ds(void);
37
38 extern int pcmcia_modinit_pcnet_cs(void);
39 extern int pcmcia_modinit_3c589_cs(void);
40 extern int pcmcia_modinit_3c574_cs(void);
41 extern int pcmcia_modinit_3c575_cb(void);
42 extern int pcmcia_modinit_axnet_cs(void);
43 extern int pcmcia_modinit_eepro100_cb(void);
44 extern int pcmcia_modinit_epic_cb(void);
45 extern int pcmcia_modinit_fmvj18x_cs(void);
46 extern int pcmcia_modinit_nmclan_cs(void);
47 extern int pcmcia_modinit_smc91c92_cs(void);
48 extern int pcmcia_modinit_tulip_cb(void);
49 extern int pcmcia_modinit_xirc2ps_cs(void);
50
51 extern int pcmcia_modinit_orinoco_cs(void);
52
53 /*
54 * pcmcia bridge initialisation.
55 */
56 void
57 pcmcia_init(void)
58 {
59 init_pcmcia_cs();
60
61 #ifdef CONFIG_I82365
62 init_i82365();
63 #endif
64
65 init_pcmcia_ds();
66
67 /*
68 * Call te initialization routines of each driver.
69 */
70 #ifdef CONFIG_PCNET_CS
71 pcmcia_modinit_pcnet_cs();
72 #endif
73
74 #ifdef CONFIG_3C589_CS
75 pcmcia_modinit_3c589_cs();
76 #endif
77
78 #ifdef CONFIG_3C574_CS
79 pcmcia_modinit_3c574_cs();
80 #endif
81
82 #ifdef CONFIG_3C575_CB
83 pcmcia_modinit_3c575_cb();
84 #endif
85
86 #ifdef CONFIG_AXNET_CS
87 pcmcia_modinit_axnet_cs();
88 #endif
89
90 #ifdef CONFIG_EEPRO100_CB
91 pcmcia_modinit_eepro100_cb();
92 #endif
93
94 #ifdef CONFIG_EPIC_CB
95 pcmcia_modinit_epic_cb();
96 #endif
97
98 #ifdef CONFIG_FMVJ18X_CS
99 pcmcia_modinit_fmvj18x_cs();
100 #endif
101
102 #ifdef CONFIG_NMCLAN_CS
103 pcmcia_modinit_nmclan_cs();
104 #endif
105
106 #ifdef CONFIG_SMC91C92_CS
107 pcmcia_modinit_smc91c92_cs();
108 #endif
109
110 #ifdef CONFIG_TULIP_CB
111 pcmcia_modinit_tulip_cb();
112 #endif
113
114 #ifdef CONFIG_XIRC2PS_CS
115 pcmcia_modinit_xirc2ps_cs();
116 #endif
117
118 #ifdef CONFIG_ORINOCO_CS
119 pcmcia_modinit_orinoco_cs();
120 #endif
121 }