diff options
author | Alex Dubov <oakad@yahoo.com> | 2007-04-12 02:59:12 -0400 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-05-01 07:04:12 -0400 |
commit | 4552f0cbd45225f2c1cbadc224505f14f8749569 (patch) | |
tree | 026448e7321fa5c24f3f85c7f330fe112241c901 /include/linux/tifm.h | |
parent | 5721dbf217b073b40e31936781379ab2d17ea2ae (diff) |
tifm: hide details of interrupt processing from socket drivers
Instead of passing transformed value of adapter interrupt status to
socket drivers, implement two separate callbacks - one for card events
and another for dma events.
Signed-off-by: Alex Dubov <oakad@yahoo.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux/tifm.h')
-rw-r--r-- | include/linux/tifm.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/linux/tifm.h b/include/linux/tifm.h index 3deb0a6c1370..4470961655c5 100644 --- a/include/linux/tifm.h +++ b/include/linux/tifm.h | |||
@@ -60,13 +60,6 @@ enum { | |||
60 | SOCK_MS_SYSTEM = 0x190, | 60 | SOCK_MS_SYSTEM = 0x190, |
61 | SOCK_FIFO_ACCESS = 0x200 }; | 61 | SOCK_FIFO_ACCESS = 0x200 }; |
62 | 62 | ||
63 | |||
64 | #define TIFM_IRQ_ENABLE 0x80000000 | ||
65 | #define TIFM_IRQ_SOCKMASK(x) (x) | ||
66 | #define TIFM_IRQ_CARDMASK(x) ((x) << 8) | ||
67 | #define TIFM_IRQ_FIFOMASK(x) ((x) << 16) | ||
68 | #define TIFM_IRQ_SETALL 0xffffffff | ||
69 | |||
70 | #define TIFM_CTRL_LED 0x00000040 | 63 | #define TIFM_CTRL_LED 0x00000040 |
71 | #define TIFM_CTRL_FAST_CLK 0x00000100 | 64 | #define TIFM_CTRL_FAST_CLK 0x00000100 |
72 | 65 | ||
@@ -90,8 +83,8 @@ struct tifm_dev { | |||
90 | tifm_media_id media_id; | 83 | tifm_media_id media_id; |
91 | unsigned int socket_id; | 84 | unsigned int socket_id; |
92 | 85 | ||
93 | void (*signal_irq)(struct tifm_dev *sock, | 86 | void (*card_event)(struct tifm_dev *sock); |
94 | unsigned int sock_irq_status); | 87 | void (*data_event)(struct tifm_dev *sock); |
95 | 88 | ||
96 | struct tifm_driver *drv; | 89 | struct tifm_driver *drv; |
97 | struct device dev; | 90 | struct device dev; |