diff options
Diffstat (limited to 'src/mame/drivers/ghosteo.cpp')
-rw-r--r-- | src/mame/drivers/ghosteo.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/ghosteo.cpp b/src/mame/drivers/ghosteo.cpp index 67ad8f62cd9..282486b96cb 100644 --- a/src/mame/drivers/ghosteo.cpp +++ b/src/mame/drivers/ghosteo.cpp @@ -99,10 +99,10 @@ public: required_device<i2cmem_device> m_i2cmem; required_device<s3c2410_device> m_s3c2410; required_device<generic_latch_8_device> m_soundlatch; - required_shared_ptr<UINT32> m_system_memory; + required_shared_ptr<uint32_t> m_system_memory; int m_security_count; - UINT32 m_bballoon_port[20]; + uint32_t m_bballoon_port[20]; struct nand_t m_nand; DECLARE_READ32_MEMBER(bballoon_speedup_r); DECLARE_READ32_MEMBER(touryuu_port_10000000_r); @@ -115,7 +115,7 @@ public: DECLARE_WRITE8_MEMBER(qs1000_p3_w); int m_rom_pagesize; - UINT8* m_flash; + uint8_t* m_flash; DECLARE_DRIVER_INIT(touryuu); DECLARE_DRIVER_INIT(bballoon); virtual void machine_start() override; @@ -185,11 +185,11 @@ WRITE8_MEMBER( ghosteo_state::qs1000_p3_w ) // GPIO -static const UINT8 security_data[] = { 0x01, 0xC4, 0xFF, 0x22, 0xFF, 0xFF, 0xFF, 0xFF }; +static const uint8_t security_data[] = { 0x01, 0xC4, 0xFF, 0x22, 0xFF, 0xFF, 0xFF, 0xFF }; READ32_MEMBER(ghosteo_state::s3c2410_gpio_port_r) { - UINT32 data = m_bballoon_port[offset]; + uint32_t data = m_bballoon_port[offset]; switch (offset) { case S3C2410_GPIO_PORT_F : @@ -209,7 +209,7 @@ READ32_MEMBER(ghosteo_state::s3c2410_gpio_port_r) WRITE32_MEMBER(ghosteo_state::s3c2410_gpio_port_w) { - UINT32 old_value = m_bballoon_port[offset]; + uint32_t old_value = m_bballoon_port[offset]; m_bballoon_port[offset] = data; switch (offset) { @@ -330,7 +330,7 @@ READ8_MEMBER(ghosteo_state::s3c2410_nand_data_r ) { struct nand_t &nand = m_nand; // device_t *nand = space.machine().device( "nand"); - UINT8 data = 0; + uint8_t data = 0; switch (nand.mode) { case NAND_M_INIT : @@ -348,7 +348,7 @@ READ8_MEMBER(ghosteo_state::s3c2410_nand_data_r ) { if ((nand.byte_addr >= 0x200) && (nand.byte_addr < 0x204)) { - UINT8 mecc[4]; + uint8_t mecc[4]; m_s3c2410->s3c2410_nand_calculate_mecc( m_flash + nand.page_addr * 0x200, 0x200, mecc); data = mecc[nand.byte_addr-0x200]; } @@ -405,8 +405,8 @@ WRITE_LINE_MEMBER(ghosteo_state::s3c2410_i2c_sda_w ) READ32_MEMBER( ghosteo_state::touryuu_port_10000000_r ) { - UINT32 port_g = m_bballoon_port[S3C2410_GPIO_PORT_G]; - UINT32 data = 0xFFFFFFFF; + uint32_t port_g = m_bballoon_port[S3C2410_GPIO_PORT_G]; + uint32_t data = 0xFFFFFFFF; switch (port_g) { case 0x8 : data = ioport( "10000000-08")->read(); break; @@ -565,7 +565,7 @@ INPUT_PORTS_END READ32_MEMBER(ghosteo_state::bballoon_speedup_r) { - UINT32 ret = m_s3c2410->s3c24xx_lcd_r(space, offset+0x10/4, mem_mask); + uint32_t ret = m_s3c2410->s3c24xx_lcd_r(space, offset+0x10/4, mem_mask); int pc = space.device().safe_pc(); @@ -597,7 +597,7 @@ WRITE32_MEMBER(ghosteo_state::soundlatch_w) void ghosteo_state::machine_start() { - m_flash = (UINT8 *)memregion( "user1")->base(); + m_flash = (uint8_t *)memregion( "user1")->base(); // Set up the QS1000 program ROM banking, taking care not to overlap the internal RAM machine().device("qs1000:cpu")->memory().space(AS_IO).install_read_bank(0x0100, 0xffff, "bank"); |