diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2009-12-04 03:07:41 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-01-17 08:55:33 -0500 |
commit | d9dd5f7168d6a61491996fc02e4deb9d96308178 (patch) | |
tree | aa37612d5fc6af4d82119d89d7821ce145a1a4c9 /drivers/media/dvb/mantis/mantis_pcmcia.c | |
parent | 50d82602760c99d2c954c33360990c00146532cd (diff) |
V4L/DVB (13738): [Mantis] Enable IRQ0 events
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/mantis/mantis_pcmcia.c')
-rw-r--r-- | drivers/media/dvb/mantis/mantis_pcmcia.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/media/dvb/mantis/mantis_pcmcia.c b/drivers/media/dvb/mantis/mantis_pcmcia.c index 960123f1ed44..47cc720d35dd 100644 --- a/drivers/media/dvb/mantis/mantis_pcmcia.c +++ b/drivers/media/dvb/mantis/mantis_pcmcia.c | |||
@@ -32,7 +32,7 @@ void mantis_event_cam_plugin(struct mantis_ca *ca) | |||
32 | u32 gpif_irqcfg; | 32 | u32 gpif_irqcfg; |
33 | 33 | ||
34 | if (ca->slot_state == MODULE_XTRACTED) { | 34 | if (ca->slot_state == MODULE_XTRACTED) { |
35 | dprintk(mantis->verbose, MANTIS_DEBUG, 1, "Event: CAM Plugged IN: Adapter(%d) Slot(0)", mantis->num); | 35 | dprintk(verbose, MANTIS_DEBUG, 1, "Event: CAM Plugged IN: Adapter(%d) Slot(0)", mantis->num); |
36 | udelay(50); | 36 | udelay(50); |
37 | mmwrite(0xda000000, MANTIS_CARD_RESET); | 37 | mmwrite(0xda000000, MANTIS_CARD_RESET); |
38 | gpif_irqcfg = mmread(MANTIS_GPIF_IRQCFG); | 38 | gpif_irqcfg = mmread(MANTIS_GPIF_IRQCFG); |
@@ -56,7 +56,7 @@ void mantis_event_cam_unplug(struct mantis_ca *ca) | |||
56 | u32 gpif_irqcfg; | 56 | u32 gpif_irqcfg; |
57 | 57 | ||
58 | if (ca->slot_state == MODULE_INSERTED) { | 58 | if (ca->slot_state == MODULE_INSERTED) { |
59 | dprintk(mantis->verbose, MANTIS_DEBUG, 1, "Event: CAM Unplugged: Adapter(%d) Slot(0)", mantis->num); | 59 | dprintk(verbose, MANTIS_DEBUG, 1, "Event: CAM Unplugged: Adapter(%d) Slot(0)", mantis->num); |
60 | udelay(50); | 60 | udelay(50); |
61 | mmwrite(0x00da0000, MANTIS_CARD_RESET); | 61 | mmwrite(0x00da0000, MANTIS_CARD_RESET); |
62 | gpif_irqcfg = mmread(MANTIS_GPIF_IRQCFG); | 62 | gpif_irqcfg = mmread(MANTIS_GPIF_IRQCFG); |
@@ -75,15 +75,16 @@ int mantis_pcmcia_init(struct mantis_ca *ca) | |||
75 | 75 | ||
76 | u32 gpif_stat, card_stat; | 76 | u32 gpif_stat, card_stat; |
77 | 77 | ||
78 | mmwrite(mmread(MANTIS_INT_MASK) | MANTIS_INT_IRQ0, MANTIS_INT_MASK); | ||
78 | gpif_stat = mmread(MANTIS_GPIF_STATUS); | 79 | gpif_stat = mmread(MANTIS_GPIF_STATUS); |
79 | card_stat = mmread(MANTIS_GPIF_IRQCFG); | 80 | card_stat = mmread(MANTIS_GPIF_IRQCFG); |
80 | 81 | ||
81 | if (gpif_stat & MANTIS_GPIF_DETSTAT) { | 82 | if (gpif_stat & MANTIS_GPIF_DETSTAT) { |
82 | dprintk(mantis->verbose, MANTIS_DEBUG, 1, "CAM found on Adapter(%d) Slot(0)", mantis->num); | 83 | dprintk(verbose, MANTIS_DEBUG, 1, "CAM found on Adapter(%d) Slot(0)", mantis->num); |
83 | mmwrite(card_stat | MANTIS_MASK_PLUGOUT, MANTIS_GPIF_IRQCFG); | 84 | mmwrite(card_stat | MANTIS_MASK_PLUGOUT, MANTIS_GPIF_IRQCFG); |
84 | ca->slot_state = MODULE_INSERTED; | 85 | ca->slot_state = MODULE_INSERTED; |
85 | } else { | 86 | } else { |
86 | dprintk(mantis->verbose, MANTIS_DEBUG, 1, "Empty Slot on Adapter(%d) Slot(0)", mantis->num); | 87 | dprintk(verbose, MANTIS_DEBUG, 1, "Empty Slot on Adapter(%d) Slot(0)", mantis->num); |
87 | mmwrite(card_stat | MANTIS_MASK_PLUGIN, MANTIS_GPIF_IRQCFG); | 88 | mmwrite(card_stat | MANTIS_MASK_PLUGIN, MANTIS_GPIF_IRQCFG); |
88 | ca->slot_state = MODULE_XTRACTED; | 89 | ca->slot_state = MODULE_XTRACTED; |
89 | } | 90 | } |