diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-06-03 14:08:36 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-06-03 14:08:36 +0000 |
commit | 7727994d21eea75859df8f2fcfa7163a1d6f64e4 (patch) | |
tree | c51cf0665c88d3ba2ac18ec18dab115ff74f7981 /cpu-all.h | |
parent | 8a8696a3c4c2bc977a202fc80890aa170ff70812 (diff) |
support for opaque data on memory I/Os
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@877 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-all.h')
-rw-r--r-- | cpu-all.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -681,15 +681,16 @@ extern uint8_t *phys_ram_dirty; #define IO_MEM_CODE (3 << IO_MEM_SHIFT) /* used internally, never use directly */ #define IO_MEM_NOTDIRTY (4 << IO_MEM_SHIFT) /* used internally, never use directly */ -typedef void CPUWriteMemoryFunc(target_phys_addr_t addr, uint32_t value); -typedef uint32_t CPUReadMemoryFunc(target_phys_addr_t addr); +typedef void CPUWriteMemoryFunc(void *opaque, target_phys_addr_t addr, uint32_t value); +typedef uint32_t CPUReadMemoryFunc(void *opaque, target_phys_addr_t addr); void cpu_register_physical_memory(target_phys_addr_t start_addr, unsigned long size, unsigned long phys_offset); int cpu_register_io_memory(int io_index, CPUReadMemoryFunc **mem_read, - CPUWriteMemoryFunc **mem_write); + CPUWriteMemoryFunc **mem_write, + void *opaque); void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf, int len, int is_write); |