diff options
author | 2013-06-03 11:39:54 +0000 | |
---|---|---|
committer | 2013-06-03 11:39:54 +0000 | |
commit | e098aab416851304b8fd12b126c6ec98aeca6742 (patch) | |
tree | b760ba56173e31cec5ebad7a1f80814b759530e0 /src/mess/drivers/qx10.c | |
parent | c601f928555dd0a4c2772803be7b224cda0c6e62 (diff) |
Modernized the PIT8253 device. [Fabio Priuli]
Diffstat (limited to 'src/mess/drivers/qx10.c')
-rw-r--r-- | src/mess/drivers/qx10.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mess/drivers/qx10.c b/src/mess/drivers/qx10.c index 2e7b0fa5757..859310193df 100644 --- a/src/mess/drivers/qx10.c +++ b/src/mess/drivers/qx10.c @@ -513,7 +513,7 @@ WRITE_LINE_MEMBER(qx10_state::keyboard_clk) 2 Clock 1,9668MHz Memory register D7 8259 (12E) IR1 Software timer */ -static const struct pit8253_config qx10_pit8253_1_config = +static const struct pit8253_interface qx10_pit8253_1_config = { { { 1200, DEVCB_NULL, DEVCB_NULL }, @@ -529,7 +529,7 @@ static const struct pit8253_config qx10_pit8253_1_config = 1 Clock 1,9668MHz +5V Keyboard clock 1200bps (Clock / 1664) 2 Clock 1,9668MHz +5V RS-232C baud rate 9600bps (Clock / 208) */ -static const struct pit8253_config qx10_pit8253_2_config = +static const struct pit8253_interface qx10_pit8253_2_config = { { { MAIN_CLK / 8, DEVCB_LINE_VCC, DEVCB_NULL }, @@ -670,8 +670,8 @@ ADDRESS_MAP_END static ADDRESS_MAP_START( qx10_io , AS_IO, 8, qx10_state) ADDRESS_MAP_GLOBAL_MASK(0xff) - AM_RANGE(0x00, 0x03) AM_DEVREADWRITE_LEGACY("pit8253_1", pit8253_r, pit8253_w) - AM_RANGE(0x04, 0x07) AM_DEVREADWRITE_LEGACY("pit8253_2", pit8253_r, pit8253_w) + AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("pit8253_1", pit8253_device, read, write) + AM_RANGE(0x04, 0x07) AM_DEVREADWRITE("pit8253_2", pit8253_device, read, write) AM_RANGE(0x08, 0x09) AM_DEVREADWRITE("pic8259_master", pic8259_device, read, write) AM_RANGE(0x0c, 0x0d) AM_DEVREADWRITE("pic8259_slave", pic8259_device, read, write) AM_RANGE(0x10, 0x13) AM_DEVREADWRITE("upd7201", z80dart_device, cd_ba_r, cd_ba_w) |