diff options
author | 2024-03-23 15:18:33 +0100 | |
---|---|---|
committer | 2024-03-23 15:18:33 +0100 | |
commit | 467e577ee4b5eec08e73f9e237f8a8557c70991c (patch) | |
tree | c55cda9c25f014ff2ada6c2253dff4dd8f51a40a /src/devices/machine/mediagx_host.h | |
parent | 0d98beb075c317c66ac27440fa94dfa70955c7f7 (diff) |
machine/mediagx_host: move VGA to own core
Diffstat (limited to 'src/devices/machine/mediagx_host.h')
-rw-r--r-- | src/devices/machine/mediagx_host.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/devices/machine/mediagx_host.h b/src/devices/machine/mediagx_host.h index 22fdf397955..d8cb41445f0 100644 --- a/src/devices/machine/mediagx_host.h +++ b/src/devices/machine/mediagx_host.h @@ -7,7 +7,7 @@ #pragma once #include "pci.h" -#include "video/pc_vga.h" +#include "video/pc_vga_mediagx.h" class mediagx_host_device : public pci_host_device { @@ -44,8 +44,9 @@ private: AS_PCI_IO = 2 }; required_device<cpu_device> m_host_cpu; - required_device<vga_device> m_vga; + required_device<mediagx_vga_device> m_vga; std::vector<uint32_t> m_ram; + std::vector<uint32_t> m_smm_ram; address_space_config m_superio_space_config; void superio_map(address_map &map); @@ -58,7 +59,9 @@ private: u8 gcr = 0; }m_superio; - int m_ram_size = 0; + u32 m_ram_size = 0; + // FIXME: check size + static constexpr u32 SMM_SIZE = 0x20000; u8 m_pci_control[2]{}; u8 m_pci_arbitration[2]{}; @@ -66,6 +69,7 @@ private: void gfx_pipeline_map(address_map &map); void display_ctrl_map(address_map &map); + u32 m_bc_dram_top = 0; u32 m_bc_xmap[3]{}; void legacy_memory_map(address_map &map); |