aboutsummaryrefslogtreecommitdiff
path: root/hw/pxa2xx_mmci.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-17 14:34:44 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-17 14:34:44 +0000
commit02ce600c1e485a7da4a26166b5a75b68c6013fe1 (patch)
treebbaf336b9ed4300dc842ab6f1ed3beaeec66a5fd /hw/pxa2xx_mmci.c
parent38641a52f2335c470349c55d9b1679112da99399 (diff)
downloadqemu-02ce600c1e485a7da4a26166b5a75b68c6013fe1.zip
qemu-02ce600c1e485a7da4a26166b5a75b68c6013fe1.tar.gz
qemu-02ce600c1e485a7da4a26166b5a75b68c6013fe1.tar.bz2
Convert SD cards code to use qemu_irq too.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3671 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pxa2xx_mmci.c')
-rw-r--r--hw/pxa2xx_mmci.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/hw/pxa2xx_mmci.c b/hw/pxa2xx_mmci.c
index ed548db..7eb7c79 100644
--- a/hw/pxa2xx_mmci.c
+++ b/hw/pxa2xx_mmci.c
@@ -545,9 +545,8 @@ struct pxa2xx_mmci_s *pxa2xx_mmci_init(target_phys_addr_t base,
return s;
}
-void pxa2xx_mmci_handlers(struct pxa2xx_mmci_s *s, void *opaque,
- void (*readonly_cb)(void *, int),
- void (*coverswitch_cb)(void *, int))
+void pxa2xx_mmci_handlers(struct pxa2xx_mmci_s *s, qemu_irq readonly,
+ qemu_irq coverswitch)
{
- sd_set_cb(s->card, opaque, readonly_cb, coverswitch_cb);
+ sd_set_cb(s->card, read, coverswitch);
}