diff options
Diffstat (limited to 'include/pcmcia/ds.h')
-rw-r--r-- | include/pcmcia/ds.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index bc28f96d0b5a..50b03fd67fd6 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h | |||
@@ -24,9 +24,11 @@ | |||
24 | 24 | ||
25 | #ifdef __KERNEL__ | 25 | #ifdef __KERNEL__ |
26 | #include <linux/device.h> | 26 | #include <linux/device.h> |
27 | #include <linux/interrupt.h> | ||
27 | #include <pcmcia/ss.h> | 28 | #include <pcmcia/ss.h> |
28 | #include <asm/atomic.h> | 29 | #include <asm/atomic.h> |
29 | 30 | ||
31 | |||
30 | /* | 32 | /* |
31 | * PCMCIA device drivers (16-bit cards only; 32-bit cards require CardBus | 33 | * PCMCIA device drivers (16-bit cards only; 32-bit cards require CardBus |
32 | * a.k.a. PCI drivers | 34 | * a.k.a. PCI drivers |
@@ -88,18 +90,16 @@ struct pcmcia_device { | |||
88 | 90 | ||
89 | struct list_head socket_device_list; | 91 | struct list_head socket_device_list; |
90 | 92 | ||
91 | /* deprecated, will be cleaned up soon */ | ||
92 | config_req_t conf; | ||
93 | |||
94 | /* device setup */ | 93 | /* device setup */ |
95 | unsigned int irq; | 94 | unsigned int irq; |
96 | struct resource *resource[PCMCIA_NUM_RESOURCES]; | 95 | struct resource *resource[PCMCIA_NUM_RESOURCES]; |
97 | unsigned int vpp; | 96 | unsigned int vpp; |
98 | 97 | ||
99 | unsigned int io_lines; /* number of I/O lines */ | 98 | unsigned int config_flags; /* CONF_ENABLE_ flags below */ |
100 | unsigned int config_base; | 99 | unsigned int config_base; |
101 | unsigned int config_index; | 100 | unsigned int config_index; |
102 | unsigned int config_regs; /* PRESENT_ flags below */ | 101 | unsigned int config_regs; /* PRESENT_ flags below */ |
102 | unsigned int io_lines; /* number of I/O lines */ | ||
103 | 103 | ||
104 | /* Is the device suspended? */ | 104 | /* Is the device suspended? */ |
105 | u16 suspended:1; | 105 | u16 suspended:1; |
@@ -207,8 +207,7 @@ pcmcia_request_exclusive_irq(struct pcmcia_device *p_dev, | |||
207 | int __must_check pcmcia_request_irq(struct pcmcia_device *p_dev, | 207 | int __must_check pcmcia_request_irq(struct pcmcia_device *p_dev, |
208 | irq_handler_t handler); | 208 | irq_handler_t handler); |
209 | 209 | ||
210 | int pcmcia_request_configuration(struct pcmcia_device *p_dev, | 210 | int pcmcia_enable_device(struct pcmcia_device *p_dev); |
211 | config_req_t *req); | ||
212 | 211 | ||
213 | int pcmcia_request_window(struct pcmcia_device *p_dev, struct resource *res, | 212 | int pcmcia_request_window(struct pcmcia_device *p_dev, struct resource *res, |
214 | unsigned int speed); | 213 | unsigned int speed); |
@@ -265,6 +264,12 @@ static inline int pcmcia_io_cfg_data_width(unsigned int flags) | |||
265 | #define PRESENT_IOBASE_3 0x100 | 264 | #define PRESENT_IOBASE_3 0x100 |
266 | #define PRESENT_IOSIZE 0x200 | 265 | #define PRESENT_IOSIZE 0x200 |
267 | 266 | ||
267 | /* flags to be passed to pcmcia_enable_device() */ | ||
268 | #define CONF_ENABLE_IRQ 0x01 | ||
269 | #define CONF_ENABLE_SPKR 0x02 | ||
270 | #define CONF_ENABLE_PULSE_IRQ 0x04 | ||
271 | #define CONF_ENABLE_ESR 0x08 | ||
272 | |||
268 | #endif /* __KERNEL__ */ | 273 | #endif /* __KERNEL__ */ |
269 | 274 | ||
270 | #endif /* _LINUX_DS_H */ | 275 | #endif /* _LINUX_DS_H */ |