From 87bf87dae8ac66290d062de10dc93755aaa22b64 Mon Sep 17 00:00:00 2001 From: arbee Date: Sat, 27 Mar 2021 20:53:33 -0400 Subject: [PATCH] mac.cpp: cleanup some leftover PowerMac bits [R. Belmont] --- src/mame/drivers/mac.cpp | 44 ---------------------------------------- src/mame/includes/mac.h | 6 ------ 2 files changed, 50 deletions(-) diff --git a/src/mame/drivers/mac.cpp b/src/mame/drivers/mac.cpp index 9719cddf135..9d9ac6307e3 100644 --- a/src/mame/drivers/mac.cpp +++ b/src/mame/drivers/mac.cpp @@ -443,50 +443,6 @@ void mac_state::swimiop_w(offs_t offset, uint8_t data) // printf("swimiop_w %x @ %x (PC=%x)\n", data, offset, m_maincpu->pc()); } -uint8_t mac_state::pmac_diag_r(offs_t offset) -{ - switch (offset) - { - case 0: // return 0 here to get the 'car crash' sound after the boot bong, 1 otherwise - return 1; - } - - return 0; -} - -uint8_t mac_state::amic_dma_r() -{ - return 0; -} - -void mac_state::amic_dma_w(offs_t offset, uint8_t data) -{ -// printf("amic_dma_w: %02x at %x (PC=%x)\n", data, offset+0x1000, m_maincpu->pc()); -} - -// HMC has one register: a 35-bit shift register which is accessed one bit at a time (see pmac6100 code at 4030383c which makes this obvious) -uint8_t mac_state::hmc_r() -{ - uint8_t rv = (uint8_t)(m_hmc_shiftout&1); - m_hmc_shiftout>>= 1; - return rv; -} - -void mac_state::hmc_w(offs_t offset, uint8_t data) -{ - // writes to xxx8 reset the bit shift position - if ((offset&0x8) == 8) - { - m_hmc_shiftout = m_hmc_reg; - } - else - { - uint64_t temp = (data & 1) ? 0x400000000U : 0x0U; - m_hmc_reg >>= 1; - m_hmc_reg |= temp; - } -} - /*************************************************************************** ADDRESS MAPS ***************************************************************************/ diff --git a/src/mame/includes/mac.h b/src/mame/includes/mac.h index d4667de34d8..8088178b114 100644 --- a/src/mame/includes/mac.h +++ b/src/mame/includes/mac.h @@ -339,12 +339,6 @@ private: uint8_t scciop_r(offs_t offset); void scciop_w(offs_t offset, uint8_t data); - uint8_t hmc_r(); - void hmc_w(offs_t offset, uint8_t data); - uint8_t amic_dma_r(); - void amic_dma_w(offs_t offset, uint8_t data); - uint8_t pmac_diag_r(offs_t offset); - DECLARE_WRITE_LINE_MEMBER(nubus_irq_9_w); DECLARE_WRITE_LINE_MEMBER(nubus_irq_a_w); DECLARE_WRITE_LINE_MEMBER(nubus_irq_b_w);