[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 09/15] PPC: dbdma: Introduce kick function
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 09/15] PPC: dbdma: Introduce kick function |
Date: |
Sun, 30 Jun 2013 03:27:03 +0200 |
The DBDMA engine really is running all the time, waiting for input. However
we don't want to waste cycles constantly polling.
So introduce a kick function that data providers can call to notify the
DBDMA controller of new input.
Signed-off-by: Alexander Graf <address@hidden>
---
hw/misc/macio/mac_dbdma.c | 5 +++++
include/hw/ppc/mac_dbdma.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/hw/misc/macio/mac_dbdma.c b/hw/misc/macio/mac_dbdma.c
index c2f15d8..6830a85 100644
--- a/hw/misc/macio/mac_dbdma.c
+++ b/hw/misc/macio/mac_dbdma.c
@@ -536,6 +536,11 @@ static void DBDMA_run_bh(void *opaque)
DBDMA_run(s);
}
+void DBDMA_kick(DBDMAState *dbdma)
+{
+ qemu_bh_schedule(dbdma_bh);
+}
+
void DBDMA_register_channel(void *dbdma, int nchan, qemu_irq irq,
DBDMA_rw rw, DBDMA_flush flush,
void *opaque)
diff --git a/include/hw/ppc/mac_dbdma.h b/include/hw/ppc/mac_dbdma.h
index 90be5d9..aaeab10 100644
--- a/include/hw/ppc/mac_dbdma.h
+++ b/include/hw/ppc/mac_dbdma.h
@@ -161,6 +161,7 @@ typedef struct {
void DBDMA_register_channel(void *dbdma, int nchan, qemu_irq irq,
DBDMA_rw rw, DBDMA_flush flush,
void *opaque);
+void DBDMA_kick(DBDMAState *dbdma);
void* DBDMA_init (MemoryRegion **dbdma_mem);
#endif
--
1.8.1.4
- [Qemu-ppc] [PATCH 00/15] PPC: Mac OS X guest bringup, Alexander Graf, 2013/06/29
- [Qemu-ppc] [PATCH 03/15] PPC: Macio: Replace tabs with spaces, Alexander Graf, 2013/06/29
- [Qemu-ppc] [PATCH 06/15] PPC: dbdma: Fix debug print, Alexander Graf, 2013/06/29
- [Qemu-ppc] [PATCH 01/15] PPC: Mac: Fix guest exported tbfreq values, Alexander Graf, 2013/06/29
- [Qemu-ppc] [PATCH 07/15] PPC: dbdma: Allow new commands in RUN state, Alexander Graf, 2013/06/29
- [Qemu-ppc] [PATCH 09/15] PPC: dbdma: Introduce kick function,
Alexander Graf <=
- [Qemu-ppc] [PATCH 12/15] PPC: dbdma: Move processing to io, Alexander Graf, 2013/06/29
- [Qemu-ppc] [PATCH 13/15] PPC: dbdma: Wait for DMA until we have data, Alexander Graf, 2013/06/29
- [Qemu-ppc] [PATCH 11/15] PPC: dbdma: macio: Add DMA callback, Alexander Graf, 2013/06/29
- [Qemu-ppc] [PATCH 10/15] PPC: dbdma: Move static bh variable to device struct, Alexander Graf, 2013/06/29
- [Qemu-ppc] [PATCH 04/15] PPC: dbdma: Replace tabs with spaces, Alexander Graf, 2013/06/29
- [Qemu-ppc] [PATCH 05/15] PPC: Mac: Add debug prints in macio and dbdma code, Alexander Graf, 2013/06/29