diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-21 18:05:23 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-21 18:05:23 +0000 |
commit | 2be17ebded1eb5add24674cc88e4833d5afaa980 (patch) | |
tree | d4c101f4d38c2c7e5678aa9834f192c933d4f150 /hw/fdc.c | |
parent | cf2be98437dc65eb1608b3dc0ec3aeefd88661ed (diff) |
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.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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; } |