aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/hw_com.c
blob: 1153e1faac8b464ad556f09f0ed255058afde2b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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_ */