aboutsummaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-02-25 23:25:55 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-02-25 23:25:55 +0000
commit16f62432c4985fa732c0c7dd63761b06f076a48f (patch)
tree05e8b95c1c2ca0101c5ecc5510086cef2e5b157e /vl.h
parent8b1f24b0903a8e43e035d5680aed2fa62c68b197 (diff)
DMA API change
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@646 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r--vl.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/vl.h b/vl.h
index ebc809a1c3..c8c22ac397 100644
--- a/vl.h
+++ b/vl.h
@@ -24,8 +24,9 @@
#ifndef VL_H
#define VL_H
+#include "cpu.h"
+
/* vl.c */
-struct CPUState;
extern int reset_requested;
extern int64_t ticks_per_sec;
@@ -128,17 +129,15 @@ int AUD_get_buffer_size (void);
void AUD_init (void);
/* dma.c */
-typedef int (*DMA_read_handler) (uint32_t addr, int size, int *irq);
-typedef int (*DMA_misc_handler) (int);
-
+typedef int (*DMA_transfer_handler) (void *opaque, target_ulong addr, int size);
int DMA_get_channel_mode (int nchan);
void DMA_hold_DREQ (int nchan);
void DMA_release_DREQ (int nchan);
+void DMA_schedule(int nchan);
void DMA_run (void);
void DMA_init (void);
void DMA_register_channel (int nchan,
- DMA_read_handler read_handler,
- DMA_misc_handler misc_handler);
+ DMA_transfer_handler transfer_handler, void *opaque);
/* sb16.c */
void SB16_run (void);