1
2 #ifndef BCM63XX_PCMCIA_H_
3 #define BCM63XX_PCMCIA_H_
4
5 #include <linux/types.h>
6 #include <linux/timer.h>
7 #include <pcmcia/ss.h>
8 #include <bcm63xx_dev_pcmcia.h>
9
10
11 #define BCM63XX_PCMCIA_POLL_RATE 500
12
13 enum {
14 CARD_CARDBUS = (1 << 0),
15 CARD_PCCARD = (1 << 1),
16 CARD_5V = (1 << 2),
17 CARD_3V = (1 << 3),
18 CARD_XV = (1 << 4),
19 CARD_YV = (1 << 5),
20 };
21
22 struct bcm63xx_pcmcia_socket {
23 struct pcmcia_socket socket;
24
25
26 struct bcm63xx_pcmcia_platform_data *pd;
27
28
29 spinlock_t lock;
30
31
32 struct resource *reg_res;
33
34
35 void __iomem *base;
36
37
38 int card_detected;
39
40
41 u8 card_type;
42
43
44 unsigned int old_status;
45
46
47 socket_state_t requested_state;
48
49
50 struct timer_list timer;
51
52
53 struct resource *attr_res;
54 struct resource *common_res;
55 struct resource *io_res;
56
57
58 void __iomem *io_base;
59 };
60
61 #endif