aboutsummaryrefslogtreecommitdiff
path: root/hw/fdc.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-21 18:05:23 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-21 18:05:23 +0000
commit2be17ebded1eb5add24674cc88e4833d5afaa980 (patch)
treed4c101f4d38c2c7e5678aa9834f192c933d4f150 /hw/fdc.c
parentcf2be98437dc65eb1608b3dc0ec3aeefd88661ed (diff)
downloadqemu-2be17ebded1eb5add24674cc88e4833d5afaa980.zip
qemu-2be17ebded1eb5add24674cc88e4833d5afaa980.tar.gz
qemu-2be17ebded1eb5add24674cc88e4833d5afaa980.tar.bz2
Wire up TC signal from Aux1 to FDC
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4096 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/fdc.c')
-rw-r--r--hw/fdc.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/hw/fdc.c b/hw/fdc.c
index 0bb480c..de5238d 100644
--- a/hw/fdc.c
+++ b/hw/fdc.c
@@ -766,8 +766,18 @@ fdctrl_t *fdctrl_init (qemu_irq irq, int dma_chann, int mem_mapped,
return fdctrl;
}
+static void fdctrl_handle_tc(void *opaque, int irq, int level)
+{
+ //fdctrl_t *s = opaque;
+
+ if (level) {
+ // XXX
+ FLOPPY_DPRINTF("TC pulsed\n");
+ }
+}
+
fdctrl_t *sun4m_fdctrl_init (qemu_irq irq, target_phys_addr_t io_base,
- BlockDriverState **fds)
+ BlockDriverState **fds, qemu_irq *fdc_tc)
{
fdctrl_t *fdctrl;
int io_mem;
@@ -778,6 +788,7 @@ fdctrl_t *sun4m_fdctrl_init (qemu_irq irq, target_phys_addr_t io_base,
fdctrl_mem_write_strict,
fdctrl);
cpu_register_physical_memory(io_base, 0x08, io_mem);
+ *fdc_tc = *qemu_allocate_irqs(fdctrl_handle_tc, fdctrl, 1);
return fdctrl;
}