Merge tag 'qemu-macppc-20230206' of https://github.com/mcayland/qemu into staging
[qemu.git] / include / hw / pci-host / i440fx.h
blobbf57216c7839f0e29a097da84b8681058390a228
1 /*
2 * QEMU i440FX North Bridge Emulation
4 * Copyright (c) 2006 Fabrice Bellard
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
9 */
11 #ifndef HW_PCI_I440FX_H
12 #define HW_PCI_I440FX_H
14 #include "hw/pci/pci_device.h"
15 #include "hw/pci-host/pam.h"
16 #include "qom/object.h"
18 #define TYPE_I440FX_PCI_HOST_BRIDGE "i440FX-pcihost"
19 #define TYPE_I440FX_PCI_DEVICE "i440FX"
21 OBJECT_DECLARE_SIMPLE_TYPE(PCII440FXState, I440FX_PCI_DEVICE)
23 struct PCII440FXState {
24 /*< private >*/
25 PCIDevice parent_obj;
26 /*< public >*/
28 MemoryRegion *system_memory;
29 MemoryRegion *pci_address_space;
30 MemoryRegion *ram_memory;
31 PAMMemoryRegion pam_regions[PAM_REGIONS_COUNT];
32 MemoryRegion smram_region;
33 MemoryRegion smram, low_smram;
36 #define TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE "igd-passthrough-i440FX"
38 PCIBus *i440fx_init(const char *pci_type,
39 DeviceState *dev,
40 MemoryRegion *address_space_mem,
41 MemoryRegion *address_space_io,
42 ram_addr_t ram_size,
43 ram_addr_t below_4g_mem_size,
44 ram_addr_t above_4g_mem_size,
45 MemoryRegion *pci_memory,
46 MemoryRegion *ram_memory);
49 #endif