This commit was generated by cvs2svn to track changes on a CVS vendor
[external/binutils.git] / sim / ppc / hw_com.c
1 static unsigned
2 hw_com_io_write_buffer_callback(device *me,
3                                  const void *source,
4                                  int space,
5                                  unsigned_word addr,
6                                  unsigned nr_bytes,
7                                  cpu *processor,
8                                  unsigned_word cia)
9 {
10   hw_com_device *hw_com = (hw_com_device*)device_data(me);
11   unsigned_1 val = *(unsigned_1*)source;
12
13   switch ((int)addr & hw_com_offset_mask) {
14
15   default:
16     error("hw_com_write_callback() internal error\n");
17
18   }
19          
20   return nr_bytes;
21 }
22
23 #endif /* _HW_COM_ */