diff options
Diffstat (limited to 'src/devices/machine/i6300esb.cpp')
-rw-r--r-- | src/devices/machine/i6300esb.cpp | 176 |
1 files changed, 88 insertions, 88 deletions
diff --git a/src/devices/machine/i6300esb.cpp b/src/devices/machine/i6300esb.cpp index 143b70fc63d..3e9d8089b40 100644 --- a/src/devices/machine/i6300esb.cpp +++ b/src/devices/machine/i6300esb.cpp @@ -152,12 +152,12 @@ void i6300esb_lpc_device::reset_all_mappings() rtc_conf = 0x00; } -READ32_MEMBER (i6300esb_lpc_device::pmbase_r) +uint32_t i6300esb_lpc_device::pmbase_r() { return pmbase | 1; } -WRITE32_MEMBER(i6300esb_lpc_device::pmbase_w) +void i6300esb_lpc_device::pmbase_w(offs_t offset, uint32_t data, uint32_t mem_mask) { COMBINE_DATA(&pmbase); pmbase &= 0x0000ff80; @@ -165,47 +165,47 @@ WRITE32_MEMBER(i6300esb_lpc_device::pmbase_w) remap_cb(); } -READ8_MEMBER (i6300esb_lpc_device::acpi_cntl_r) +uint8_t i6300esb_lpc_device::acpi_cntl_r() { return acpi_cntl; } -WRITE8_MEMBER(i6300esb_lpc_device::acpi_cntl_w) +void i6300esb_lpc_device::acpi_cntl_w(uint8_t data) { acpi_cntl = data; logerror("%s: acpi_cntl = %08x\n", tag(), acpi_cntl); remap_cb(); } -READ16_MEMBER (i6300esb_lpc_device::bios_cntl_r) +uint16_t i6300esb_lpc_device::bios_cntl_r() { return pmbase | 1; } -WRITE16_MEMBER(i6300esb_lpc_device::bios_cntl_w) +void i6300esb_lpc_device::bios_cntl_w(offs_t offset, uint16_t data, uint16_t mem_mask) { COMBINE_DATA(&bios_cntl); logerror("%s: bios_cntl = %08x\n", tag(), bios_cntl); remap_cb(); } -READ8_MEMBER (i6300esb_lpc_device::tco_cntl_r) +uint8_t i6300esb_lpc_device::tco_cntl_r() { return tco_cntl; } -WRITE8_MEMBER (i6300esb_lpc_device::tco_cntl_w) +void i6300esb_lpc_device::tco_cntl_w(uint8_t data) { tco_cntl = data; logerror("%s: tco_cntl = %02x\n", tag(), tco_cntl); } -READ32_MEMBER (i6300esb_lpc_device::gpio_base_r) +uint32_t i6300esb_lpc_device::gpio_base_r() { return gpio_base | 1; } -WRITE32_MEMBER(i6300esb_lpc_device::gpio_base_w) +void i6300esb_lpc_device::gpio_base_w(offs_t offset, uint32_t data, uint32_t mem_mask) { COMBINE_DATA(&gpio_base); gpio_base &= 0x0000ffc0; @@ -213,405 +213,405 @@ WRITE32_MEMBER(i6300esb_lpc_device::gpio_base_w) remap_cb(); } -READ8_MEMBER (i6300esb_lpc_device::gpio_cntl_r) +uint8_t i6300esb_lpc_device::gpio_cntl_r() { return gpio_cntl; } -WRITE8_MEMBER (i6300esb_lpc_device::gpio_cntl_w) +void i6300esb_lpc_device::gpio_cntl_w(uint8_t data) { gpio_cntl = data; logerror("%s: gpio_cntl = %02x\n", tag(), gpio_cntl); remap_cb(); } -READ8_MEMBER (i6300esb_lpc_device::pirq_rout_r) +uint8_t i6300esb_lpc_device::pirq_rout_r(offs_t offset) { return pirq_rout[offset]; } -WRITE8_MEMBER (i6300esb_lpc_device::pirq_rout_w) +void i6300esb_lpc_device::pirq_rout_w(offs_t offset, uint8_t data) { pirq_rout[offset] = data; logerror("%s: pirq_rout[%d] = %02x\n", tag(), offset, pirq_rout[offset]); } -READ8_MEMBER (i6300esb_lpc_device::serirq_cntl_r) +uint8_t i6300esb_lpc_device::serirq_cntl_r() { return serirq_cntl; } -WRITE8_MEMBER (i6300esb_lpc_device::serirq_cntl_w) +void i6300esb_lpc_device::serirq_cntl_w(uint8_t data) { serirq_cntl = data; logerror("%s: serirq_cntl = %02x\n", tag(), serirq_cntl); } -READ8_MEMBER (i6300esb_lpc_device::pirq2_rout_r) +uint8_t i6300esb_lpc_device::pirq2_rout_r(offs_t offset) { - return pirq_rout_r(space, offset+4); + return pirq_rout_r(offset+4); } -WRITE8_MEMBER (i6300esb_lpc_device::pirq2_rout_w) +void i6300esb_lpc_device::pirq2_rout_w(offs_t offset, uint8_t data) { - pirq_rout_w(space, offset+4, data); + pirq_rout_w(offset+4, data); } -READ8_MEMBER (i6300esb_lpc_device::d31_err_cfg_r) +uint8_t i6300esb_lpc_device::d31_err_cfg_r() { return d31_err_cfg; } -WRITE8_MEMBER (i6300esb_lpc_device::d31_err_cfg_w) +void i6300esb_lpc_device::d31_err_cfg_w(uint8_t data) { d31_err_cfg = data; logerror("%s: d31_err_cfg = %02x\n", tag(), d31_err_cfg); } -READ8_MEMBER (i6300esb_lpc_device::d31_err_sts_r) +uint8_t i6300esb_lpc_device::d31_err_sts_r() { return d31_err_sts; } -WRITE8_MEMBER (i6300esb_lpc_device::d31_err_sts_w) +void i6300esb_lpc_device::d31_err_sts_w(uint8_t data) { d31_err_sts &= ~data; logerror("%s: d31_err_sts = %02x\n", tag(), d31_err_sts); } -READ16_MEMBER (i6300esb_lpc_device::pci_dma_cfg_r) +uint16_t i6300esb_lpc_device::pci_dma_cfg_r() { return pci_dma_cfg; } -WRITE16_MEMBER(i6300esb_lpc_device::pci_dma_cfg_w) +void i6300esb_lpc_device::pci_dma_cfg_w(offs_t offset, uint16_t data, uint16_t mem_mask) { COMBINE_DATA(&pci_dma_cfg); logerror("%s: pci_dma_cfg = %04x\n", tag(), pci_dma_cfg); } -READ16_MEMBER (i6300esb_lpc_device::gen_pmcon_1_r) +uint16_t i6300esb_lpc_device::gen_pmcon_1_r() { return gen_pmcon_1; } -WRITE16_MEMBER(i6300esb_lpc_device::gen_pmcon_1_w) +void i6300esb_lpc_device::gen_pmcon_1_w(offs_t offset, uint16_t data, uint16_t mem_mask) { COMBINE_DATA(&gen_pmcon_1); logerror("%s: gen_pmcon_1 = %04x\n", tag(), gen_pmcon_1); } -READ8_MEMBER (i6300esb_lpc_device::gen_pmcon_2_r) +uint8_t i6300esb_lpc_device::gen_pmcon_2_r() { return gen_pmcon_2; } -WRITE8_MEMBER (i6300esb_lpc_device::gen_pmcon_2_w) +void i6300esb_lpc_device::gen_pmcon_2_w(uint8_t data) { gen_pmcon_2 = data; logerror("%s: gen_pmcon_2 = %02x\n", tag(), gen_pmcon_2); } -READ8_MEMBER (i6300esb_lpc_device::gen_pmcon_3_r) +uint8_t i6300esb_lpc_device::gen_pmcon_3_r() { return gen_pmcon_3; } -WRITE8_MEMBER (i6300esb_lpc_device::gen_pmcon_3_w) +void i6300esb_lpc_device::gen_pmcon_3_w(uint8_t data) { gen_pmcon_3 = data; logerror("%s: gen_pmcon_3 = %02x\n", tag(), gen_pmcon_3); } -READ32_MEMBER (i6300esb_lpc_device::rst_cnt2_r) +uint32_t i6300esb_lpc_device::rst_cnt2_r() { return rst_cnt2; } -WRITE32_MEMBER(i6300esb_lpc_device::rst_cnt2_w) +void i6300esb_lpc_device::rst_cnt2_w(offs_t offset, uint32_t data, uint32_t mem_mask) { COMBINE_DATA(&rst_cnt2); logerror("%s: rst_cnt2 = %08x\n", tag(), rst_cnt2); } -READ8_MEMBER (i6300esb_lpc_device::apm_cnt_r) +uint8_t i6300esb_lpc_device::apm_cnt_r() { return apm_cnt; } -WRITE8_MEMBER (i6300esb_lpc_device::apm_cnt_w) +void i6300esb_lpc_device::apm_cnt_w(uint8_t data) { apm_cnt = data; logerror("%s: apm_cnt = %02x\n", tag(), apm_cnt); } -READ8_MEMBER (i6300esb_lpc_device::apm_sts_r) +uint8_t i6300esb_lpc_device::apm_sts_r() { return apm_sts; } -WRITE8_MEMBER (i6300esb_lpc_device::apm_sts_w) +void i6300esb_lpc_device::apm_sts_w(uint8_t data) { apm_sts = data; logerror("%s: apm_sts = %02x\n", tag(), apm_sts); } -READ32_MEMBER (i6300esb_lpc_device::gpi_rout_r) +uint32_t i6300esb_lpc_device::gpi_rout_r() { return gpi_rout; } -WRITE32_MEMBER(i6300esb_lpc_device::gpi_rout_w) +void i6300esb_lpc_device::gpi_rout_w(offs_t offset, uint32_t data, uint32_t mem_mask) { COMBINE_DATA(&gpi_rout); logerror("%s: gpi_rout = %08x\n", tag(), gpi_rout); } -READ8_MEMBER (i6300esb_lpc_device::mon_fwd_en_r) +uint8_t i6300esb_lpc_device::mon_fwd_en_r() { return mon_fwd_en; } -WRITE8_MEMBER (i6300esb_lpc_device::mon_fwd_en_w) +void i6300esb_lpc_device::mon_fwd_en_w(uint8_t data) { mon_fwd_en = data; logerror("%s: mon_fwd_en = %02x\n", tag(), mon_fwd_en); } -READ16_MEMBER (i6300esb_lpc_device::mon_trp_rng_r) +uint16_t i6300esb_lpc_device::mon_trp_rng_r(offs_t offset) { return mon_trp_rng[offset]; } -WRITE16_MEMBER(i6300esb_lpc_device::mon_trp_rng_w) +void i6300esb_lpc_device::mon_trp_rng_w(offs_t offset, uint16_t data, uint16_t mem_mask) { COMBINE_DATA(&mon_trp_rng[offset]); logerror("%s: mon_trp_rng[%d] = %04x\n", tag(), 4+offset, mon_trp_rng[offset]); } -READ16_MEMBER (i6300esb_lpc_device::mon_trp_msk_r) +uint16_t i6300esb_lpc_device::mon_trp_msk_r() { return mon_trp_msk; } -WRITE16_MEMBER(i6300esb_lpc_device::mon_trp_msk_w) +void i6300esb_lpc_device::mon_trp_msk_w(offs_t offset, uint16_t data, uint16_t mem_mask) { COMBINE_DATA(&mon_trp_msk); logerror("%s: mon_trp_msk = %04x\n", tag(), mon_trp_msk); } -READ32_MEMBER (i6300esb_lpc_device::gen_cntl_r) +uint32_t i6300esb_lpc_device::gen_cntl_r() { return gen_cntl; } -WRITE32_MEMBER(i6300esb_lpc_device::gen_cntl_w) +void i6300esb_lpc_device::gen_cntl_w(offs_t offset, uint32_t data, uint32_t mem_mask) { COMBINE_DATA(&gen_cntl); logerror("%s: gen_cntl = %08x\n", tag(), gen_cntl); } -READ8_MEMBER (i6300esb_lpc_device::gen_sta_r) +uint8_t i6300esb_lpc_device::gen_sta_r() { return gen_sta; } -WRITE8_MEMBER (i6300esb_lpc_device::gen_sta_w) +void i6300esb_lpc_device::gen_sta_w(uint8_t data) { gen_sta = data; logerror("%s: gen_sta = %02x\n", tag(), gen_sta); } -READ8_MEMBER (i6300esb_lpc_device::back_cntl_r) +uint8_t i6300esb_lpc_device::back_cntl_r() { return back_cntl; } -WRITE8_MEMBER (i6300esb_lpc_device::back_cntl_w) +void i6300esb_lpc_device::back_cntl_w(uint8_t data) { back_cntl = data; logerror("%s: back_cntl = %02x\n", tag(), back_cntl); remap_cb(); } -READ8_MEMBER (i6300esb_lpc_device::rtc_conf_r) +uint8_t i6300esb_lpc_device::rtc_conf_r() { return rtc_conf; } -WRITE8_MEMBER (i6300esb_lpc_device::rtc_conf_w) +void i6300esb_lpc_device::rtc_conf_w(uint8_t data) { rtc_conf = data; logerror("%s: rtc_conf = %02x\n", tag(), rtc_conf); remap_cb(); } -READ8_MEMBER (i6300esb_lpc_device::lpc_if_com_range_r) +uint8_t i6300esb_lpc_device::lpc_if_com_range_r() { return lpc_if_com_range; } -WRITE8_MEMBER (i6300esb_lpc_device::lpc_if_com_range_w) +void i6300esb_lpc_device::lpc_if_com_range_w(uint8_t data) { lpc_if_com_range = data; logerror("%s: lpc_if_com_range = %02x\n", tag(), lpc_if_com_range); remap_cb(); } -READ8_MEMBER (i6300esb_lpc_device::lpc_if_fdd_lpt_range_r) +uint8_t i6300esb_lpc_device::lpc_if_fdd_lpt_range_r() { return lpc_if_fdd_lpt_range; } -WRITE8_MEMBER (i6300esb_lpc_device::lpc_if_fdd_lpt_range_w) +void i6300esb_lpc_device::lpc_if_fdd_lpt_range_w(offs_t offset, uint8_t data, uint8_t mem_mask) { COMBINE_DATA(&lpc_if_fdd_lpt_range); logerror("%s: lpc_if_fdd_lpt_range = %02x\n", tag(), lpc_if_fdd_lpt_range); remap_cb(); } -READ8_MEMBER (i6300esb_lpc_device::lpc_if_sound_range_r) +uint8_t i6300esb_lpc_device::lpc_if_sound_range_r() { return lpc_if_sound_range; } -WRITE8_MEMBER (i6300esb_lpc_device::lpc_if_sound_range_w) +void i6300esb_lpc_device::lpc_if_sound_range_w(offs_t offset, uint8_t data, uint8_t mem_mask) { COMBINE_DATA(&lpc_if_sound_range); logerror("%s: lpc_if_sound_range = %02x\n", tag(), lpc_if_sound_range); remap_cb(); } -READ8_MEMBER (i6300esb_lpc_device::fwh_dec_en1_r) +uint8_t i6300esb_lpc_device::fwh_dec_en1_r() { return fwh_dec_en1; } -WRITE8_MEMBER (i6300esb_lpc_device::fwh_dec_en1_w) +void i6300esb_lpc_device::fwh_dec_en1_w(uint8_t data) { fwh_dec_en1 = data | 0x80; logerror("%s: fwh_dec_en1 = %02x\n", tag(), fwh_dec_en1); remap_cb(); } -READ16_MEMBER (i6300esb_lpc_device::gen1_dec_r) +uint16_t i6300esb_lpc_device::gen1_dec_r() { return gen1_dec; } -WRITE16_MEMBER(i6300esb_lpc_device::gen1_dec_w) +void i6300esb_lpc_device::gen1_dec_w(offs_t offset, uint16_t data, uint16_t mem_mask) { COMBINE_DATA(&gen1_dec); logerror("%s: gen1_dec = %04x\n", tag(), gen1_dec); remap_cb(); } -READ16_MEMBER (i6300esb_lpc_device::lpc_en_r) +uint16_t i6300esb_lpc_device::lpc_en_r() { return lpc_en; } -WRITE16_MEMBER(i6300esb_lpc_device::lpc_en_w) +void i6300esb_lpc_device::lpc_en_w(offs_t offset, uint16_t data, uint16_t mem_mask) { COMBINE_DATA(&lpc_en); logerror("%s: lpc_en = %04x\n", tag(), lpc_en); remap_cb(); } -READ32_MEMBER (i6300esb_lpc_device::fwh_sel1_r) +uint32_t i6300esb_lpc_device::fwh_sel1_r() { return fwh_sel1; } -WRITE32_MEMBER(i6300esb_lpc_device::fwh_sel1_w) +void i6300esb_lpc_device::fwh_sel1_w(offs_t offset, uint32_t data, uint32_t mem_mask) { COMBINE_DATA(&fwh_sel1); logerror("%s: fwh_sel1 = %08x\n", tag(), fwh_sel1); remap_cb(); } -READ16_MEMBER (i6300esb_lpc_device::gen2_dec_r) +uint16_t i6300esb_lpc_device::gen2_dec_r() { return gen2_dec; } -WRITE16_MEMBER(i6300esb_lpc_device::gen2_dec_w) +void i6300esb_lpc_device::gen2_dec_w(offs_t offset, uint16_t data, uint16_t mem_mask) { COMBINE_DATA(&gen2_dec); logerror("%s: gen2_dec = %04x\n", tag(), gen2_dec); remap_cb(); } -READ16_MEMBER (i6300esb_lpc_device::fwh_sel2_r) +uint16_t i6300esb_lpc_device::fwh_sel2_r() { return fwh_sel2; } -WRITE16_MEMBER(i6300esb_lpc_device::fwh_sel2_w) +void i6300esb_lpc_device::fwh_sel2_w(offs_t offset, uint16_t data, uint16_t mem_mask) { COMBINE_DATA(&fwh_sel2); logerror("%s: fwh_sel2 = %04x\n", tag(), fwh_sel2); remap_cb(); } -READ8_MEMBER (i6300esb_lpc_device::fwh_dec_en2_r) +uint8_t i6300esb_lpc_device::fwh_dec_en2_r() { return fwh_dec_en2; } -WRITE8_MEMBER (i6300esb_lpc_device::fwh_dec_en2_w) +void i6300esb_lpc_device::fwh_dec_en2_w(uint8_t data) { fwh_dec_en2 = data; logerror("%s: fwh_dec_en2 = %02x\n", tag(), fwh_dec_en2); remap_cb(); } -READ16_MEMBER (i6300esb_lpc_device::func_dis_r) +uint16_t i6300esb_lpc_device::func_dis_r() { return func_dis; } -WRITE16_MEMBER(i6300esb_lpc_device::func_dis_w) +void i6300esb_lpc_device::func_dis_w(offs_t offset, uint16_t data, uint16_t mem_mask) { COMBINE_DATA(&func_dis); logerror("%s: func_dis = %04x\n", tag(), func_dis); } -READ32_MEMBER (i6300esb_lpc_device::etr1_r) +uint32_t i6300esb_lpc_device::etr1_r() { return etr1; } -WRITE32_MEMBER(i6300esb_lpc_device::etr1_w) +void i6300esb_lpc_device::etr1_w(offs_t offset, uint32_t data, uint32_t mem_mask) { COMBINE_DATA(&etr1); logerror("%s: etr1 = %08x\n", tag(), etr1); } -READ32_MEMBER (i6300esb_lpc_device::mfid_r) +uint32_t i6300esb_lpc_device::mfid_r() { return 0xf66; } -READ32_MEMBER (i6300esb_lpc_device::unk_fc_r) +uint32_t i6300esb_lpc_device::unk_fc_r() { logerror("%s: read undocumented config reg fc\n", tag()); return 0; } -WRITE32_MEMBER(i6300esb_lpc_device::unk_fc_w) +void i6300esb_lpc_device::unk_fc_w(uint32_t data) { logerror("%s: write undocumented config reg fc (%08x)\n", tag(), data); } -READ8_MEMBER (i6300esb_lpc_device::siu_config_port_r) +uint8_t i6300esb_lpc_device::siu_config_port_r() { return siu_config_port; } -WRITE8_MEMBER (i6300esb_lpc_device::siu_config_port_w) +void i6300esb_lpc_device::siu_config_port_w(uint8_t data) { siu_config_port = data; switch(siu_config_state) { @@ -634,13 +634,13 @@ WRITE8_MEMBER (i6300esb_lpc_device::siu_config_port_w) } } -READ8_MEMBER (i6300esb_lpc_device::siu_data_port_r) +uint8_t i6300esb_lpc_device::siu_data_port_r() { logerror("%s: siu config read port %02x\n", tag(), siu_config_port); return 0xff; } -WRITE8_MEMBER (i6300esb_lpc_device::siu_data_port_w) +void i6300esb_lpc_device::siu_data_port_w(uint8_t data) { if(siu_config_state < 2) { logerror("%s: siu config write port with config disabled (port=%02x, data=%02x)\n", tag(), siu_config_port, data); @@ -649,20 +649,20 @@ WRITE8_MEMBER (i6300esb_lpc_device::siu_data_port_w) logerror("%s: siu config write port %02x, %02x\n", tag(), siu_config_port, data); } -READ8_MEMBER (i6300esb_lpc_device::nmi_sc_r) +uint8_t i6300esb_lpc_device::nmi_sc_r() { nmi_sc ^= 0x10; return nmi_sc; } -WRITE8_MEMBER (i6300esb_lpc_device::nmi_sc_w) +void i6300esb_lpc_device::nmi_sc_w(uint8_t data) { nmi_sc = data; logerror("%s: nmi_sc = %02x\n", tag(), nmi_sc); } -WRITE8_MEMBER (i6300esb_lpc_device::nop_w) +void i6300esb_lpc_device::nop_w(uint8_t data) { } |