diff options
Diffstat (limited to 'sim/ppc/hw_com.c')
-rw-r--r-- | sim/ppc/hw_com.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sim/ppc/hw_com.c b/sim/ppc/hw_com.c new file mode 100644 index 0000000..1153e1f --- /dev/null +++ b/sim/ppc/hw_com.c @@ -0,0 +1,23 @@ +static unsigned +hw_com_io_write_buffer_callback(device *me, + const void *source, + int space, + unsigned_word addr, + unsigned nr_bytes, + cpu *processor, + unsigned_word cia) +{ + hw_com_device *hw_com = (hw_com_device*)device_data(me); + unsigned_1 val = *(unsigned_1*)source; + + switch ((int)addr & hw_com_offset_mask) { + + default: + error("hw_com_write_callback() internal error\n"); + + } + + return nr_bytes; +} + +#endif /* _HW_COM_ */ |