xref: /qemu/include/hw/pci-host/i440fx.h (revision 82feef45f42db607b9439411d4aad7c21bdf3047)
1 /*
2  * QEMU i440FX North Bridge Emulation
3  *
4  * Copyright (c) 2006 Fabrice Bellard
5  *
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.
8  *
9  */
10 
11 #ifndef HW_PCI_I440FX_H
12 #define HW_PCI_I440FX_H
13 
14 #include "hw/pci/pci_device.h"
15 #include "hw/pci-host/pam.h"
16 #include "qom/object.h"
17 
18 #define TYPE_I440FX_PCI_HOST_BRIDGE "i440FX-pcihost"
19 #define TYPE_I440FX_PCI_DEVICE "i440FX"
20 
21 OBJECT_DECLARE_SIMPLE_TYPE(PCII440FXState, I440FX_PCI_DEVICE)
22 
23 struct PCII440FXState {
24     /*< private >*/
25     PCIDevice parent_obj;
26     /*< public >*/
27 
28     PAMMemoryRegion pam_regions[PAM_REGIONS_COUNT];
29     MemoryRegion smram_region;
30     MemoryRegion smram, low_smram;
31 };
32 
33 #define TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE "igd-passthrough-i440FX"
34 
35 PCIBus *i440fx_init(const char *pci_type,
36                     DeviceState *dev,
37                     MemoryRegion *address_space_mem,
38                     MemoryRegion *address_space_io,
39                     ram_addr_t below_4g_mem_size,
40                     ram_addr_t above_4g_mem_size,
41                     MemoryRegion *pci_memory,
42                     MemoryRegion *ram_memory);
43 
44 
45 #endif
46