diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tifm.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/include/linux/tifm.h b/include/linux/tifm.h index 5b0baef4e61f..eaf9e1f48780 100644 --- a/include/linux/tifm.h +++ b/include/linux/tifm.h | |||
@@ -62,11 +62,10 @@ enum { | |||
62 | 62 | ||
63 | 63 | ||
64 | #define TIFM_IRQ_ENABLE 0x80000000 | 64 | #define TIFM_IRQ_ENABLE 0x80000000 |
65 | #define TIFM_IRQ_SOCKMASK 0x00000001 | 65 | #define TIFM_IRQ_SOCKMASK(x) (x) |
66 | #define TIFM_IRQ_CARDMASK 0x00000100 | 66 | #define TIFM_IRQ_CARDMASK(x) ((x) << 8) |
67 | #define TIFM_IRQ_FIFOMASK 0x00010000 | 67 | #define TIFM_IRQ_FIFOMASK(x) ((x) << 16) |
68 | #define TIFM_IRQ_SETALL 0xffffffff | 68 | #define TIFM_IRQ_SETALL 0xffffffff |
69 | #define TIFM_IRQ_SETALLSOCK 0x0000000f | ||
70 | 69 | ||
71 | #define TIFM_CTRL_LED 0x00000040 | 70 | #define TIFM_CTRL_LED 0x00000040 |
72 | #define TIFM_CTRL_FAST_CLK 0x00000100 | 71 | #define TIFM_CTRL_FAST_CLK 0x00000100 |
@@ -108,18 +107,16 @@ struct tifm_driver { | |||
108 | 107 | ||
109 | struct tifm_adapter { | 108 | struct tifm_adapter { |
110 | char __iomem *addr; | 109 | char __iomem *addr; |
111 | unsigned int irq_status; | ||
112 | unsigned int insert_mask; | ||
113 | unsigned int remove_mask; | ||
114 | spinlock_t lock; | 110 | spinlock_t lock; |
111 | unsigned int irq_status; | ||
112 | unsigned int socket_change_set; | ||
115 | unsigned int id; | 113 | unsigned int id; |
116 | unsigned int max_sockets; | 114 | unsigned int num_sockets; |
115 | struct tifm_dev **sockets; | ||
117 | char wq_name[KOBJ_NAME_LEN]; | 116 | char wq_name[KOBJ_NAME_LEN]; |
118 | unsigned int inhibit_new_cards; | 117 | unsigned int inhibit_new_cards; |
119 | struct workqueue_struct *wq; | 118 | struct workqueue_struct *wq; |
120 | struct work_struct media_inserter; | 119 | struct work_struct media_switcher; |
121 | struct work_struct media_remover; | ||
122 | struct tifm_dev **sockets; | ||
123 | struct class_device cdev; | 120 | struct class_device cdev; |
124 | struct device *dev; | 121 | struct device *dev; |
125 | 122 | ||