1 #ifndef BCM63XX_PCMCIA_H_
2 #define BCM63XX_PCMCIA_H_
4 #include <linux/types.h>
5 #include <linux/timer.h>
7 #include <bcm63xx_dev_pcmcia.h>
9 /* socket polling rate in ms */
10 #define BCM63XX_PCMCIA_POLL_RATE 500
13 CARD_CARDBUS
= (1 << 0),
15 CARD_PCCARD
= (1 << 1),
26 struct bcm63xx_pcmcia_socket
{
27 struct pcmcia_socket socket
;
29 /* platform specific data */
30 struct bcm63xx_pcmcia_platform_data
*pd
;
32 /* all regs access are protected by this spinlock */
35 /* pcmcia registers resource */
36 struct resource
*reg_res
;
38 /* base remapped address of registers */
41 /* whether a card is detected at the moment */
44 /* type of detected card (mask of above enum) */
47 /* keep last socket status to implement event reporting */
48 unsigned int old_status
;
50 /* backup of requested socket state */
51 socket_state_t requested_state
;
53 /* timer used for socket status polling */
54 struct timer_list timer
;
56 /* attribute/common memory resources */
57 struct resource
*attr_res
;
58 struct resource
*common_res
;
59 struct resource
*io_res
;
61 /* base address of io memory */
62 void __iomem
*io_base
;
65 #endif /* BCM63XX_PCMCIA_H_ */