summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/taitowlf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/taitowlf.cpp')
-rw-r--r--src/mame/drivers/taitowlf.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/mame/drivers/taitowlf.cpp b/src/mame/drivers/taitowlf.cpp
index eba6d93fed2..0e9268ee8ad 100644
--- a/src/mame/drivers/taitowlf.cpp
+++ b/src/mame/drivers/taitowlf.cpp
@@ -45,11 +45,11 @@ public:
m_bank1(*this, "bank1"),
m_palette(*this, "palette") { }
- std::unique_ptr<UINT32[]> m_bios_ram;
- UINT8 m_mtxc_config_reg[256];
- UINT8 m_piix4_config_reg[4][256];
+ std::unique_ptr<uint32_t[]> m_bios_ram;
+ uint8_t m_mtxc_config_reg[256];
+ uint8_t m_piix4_config_reg[4][256];
- required_region_ptr<UINT8> m_bootscreen_rom;
+ required_region_ptr<uint8_t> m_bootscreen_rom;
required_memory_bank m_bank1;
required_device<palette_device> m_palette;
DECLARE_WRITE32_MEMBER(pnp_config_w);
@@ -61,12 +61,12 @@ public:
#if !ENABLE_VGA
DECLARE_PALETTE_INIT(taitowlf);
#endif
- UINT32 screen_update_taitowlf(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update_taitowlf(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
void intel82439tx_init();
};
#if !ENABLE_VGA
-UINT32 taitowlf_state::screen_update_taitowlf(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
+uint32_t taitowlf_state::screen_update_taitowlf(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
int x,y,count;
@@ -78,7 +78,7 @@ UINT32 taitowlf_state::screen_update_taitowlf(screen_device &screen, bitmap_rgb3
{
for(x=0;x<512;x++)
{
- UINT32 color;
+ uint32_t color;
color = (m_bootscreen_rom[count] & 0xff);
@@ -96,7 +96,7 @@ UINT32 taitowlf_state::screen_update_taitowlf(screen_device &screen, bitmap_rgb3
// Intel 82439TX System Controller (MTXC)
-static UINT8 mtxc_config_r(device_t *busdevice, device_t *device, int function, int reg)
+static uint8_t mtxc_config_r(device_t *busdevice, device_t *device, int function, int reg)
{
taitowlf_state *state = busdevice->machine().driver_data<taitowlf_state>();
// osd_printf_debug("MTXC: read %d, %02X\n", function, reg);
@@ -104,7 +104,7 @@ static UINT8 mtxc_config_r(device_t *busdevice, device_t *device, int function,
return state->m_mtxc_config_reg[reg];
}
-static void mtxc_config_w(device_t *busdevice, device_t *device, int function, int reg, UINT8 data)
+static void mtxc_config_w(device_t *busdevice, device_t *device, int function, int reg, uint8_t data)
{
taitowlf_state *state = busdevice->machine().driver_data<taitowlf_state>();
// osd_printf_debug("%s:MTXC: write %d, %02X, %02X\n", machine.describe_context(), function, reg, data);
@@ -138,9 +138,9 @@ void taitowlf_state::intel82439tx_init()
m_mtxc_config_reg[0x65] = 0x02;
}
-static UINT32 intel82439tx_pci_r(device_t *busdevice, device_t *device, int function, int reg, UINT32 mem_mask)
+static uint32_t intel82439tx_pci_r(device_t *busdevice, device_t *device, int function, int reg, uint32_t mem_mask)
{
- UINT32 r = 0;
+ uint32_t r = 0;
if (ACCESSING_BITS_24_31)
{
r |= mtxc_config_r(busdevice, device, function, reg + 3) << 24;
@@ -160,7 +160,7 @@ static UINT32 intel82439tx_pci_r(device_t *busdevice, device_t *device, int func
return r;
}
-static void intel82439tx_pci_w(device_t *busdevice, device_t *device, int function, int reg, UINT32 data, UINT32 mem_mask)
+static void intel82439tx_pci_w(device_t *busdevice, device_t *device, int function, int reg, uint32_t data, uint32_t mem_mask)
{
if (ACCESSING_BITS_24_31)
{
@@ -182,23 +182,23 @@ static void intel82439tx_pci_w(device_t *busdevice, device_t *device, int functi
// Intel 82371AB PCI-to-ISA / IDE bridge (PIIX4)
-static UINT8 piix4_config_r(device_t *busdevice, device_t *device, int function, int reg)
+static uint8_t piix4_config_r(device_t *busdevice, device_t *device, int function, int reg)
{
taitowlf_state *state = busdevice->machine().driver_data<taitowlf_state>();
// osd_printf_debug("PIIX4: read %d, %02X\n", function, reg);
return state->m_piix4_config_reg[function][reg];
}
-static void piix4_config_w(device_t *busdevice, device_t *device, int function, int reg, UINT8 data)
+static void piix4_config_w(device_t *busdevice, device_t *device, int function, int reg, uint8_t data)
{
taitowlf_state *state = busdevice->machine().driver_data<taitowlf_state>();
// osd_printf_debug("%s:PIIX4: write %d, %02X, %02X\n", machine.describe_context(), function, reg, data);
state->m_piix4_config_reg[function][reg] = data;
}
-static UINT32 intel82371ab_pci_r(device_t *busdevice, device_t *device, int function, int reg, UINT32 mem_mask)
+static uint32_t intel82371ab_pci_r(device_t *busdevice, device_t *device, int function, int reg, uint32_t mem_mask)
{
- UINT32 r = 0;
+ uint32_t r = 0;
if (ACCESSING_BITS_24_31)
{
r |= piix4_config_r(busdevice, device, function, reg + 3) << 24;
@@ -218,7 +218,7 @@ static UINT32 intel82371ab_pci_r(device_t *busdevice, device_t *device, int func
return r;
}
-static void intel82371ab_pci_w(device_t *busdevice, device_t *device, int function, int reg, UINT32 data, UINT32 mem_mask)
+static void intel82371ab_pci_w(device_t *busdevice, device_t *device, int function, int reg, uint32_t data, uint32_t mem_mask)
{
if (ACCESSING_BITS_24_31)
{
@@ -396,7 +396,7 @@ MACHINE_CONFIG_END
DRIVER_INIT_MEMBER(taitowlf_state,taitowlf)
{
- m_bios_ram = std::make_unique<UINT32[]>(0x10000/4);
+ m_bios_ram = std::make_unique<uint32_t[]>(0x10000/4);
m_bank1->configure_entry(1, m_bios_ram.get());
m_bank1->configure_entry(0, memregion("bios")->base() + 0x30000);