i440fx.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #ifndef HW_PCI_I440FX_H
  11. #define HW_PCI_I440FX_H
  12. #include "hw/pci/pci_device.h"
  13. #include "hw/pci-host/pam.h"
  14. #include "qom/object.h"
  15. #define TYPE_I440FX_PCI_HOST_BRIDGE "i440FX-pcihost"
  16. #define TYPE_I440FX_PCI_DEVICE "i440FX"
  17. OBJECT_DECLARE_SIMPLE_TYPE(PCII440FXState, I440FX_PCI_DEVICE)
  18. struct PCII440FXState {
  19. /*< private >*/
  20. PCIDevice parent_obj;
  21. /*< public >*/
  22. MemoryRegion *system_memory;
  23. MemoryRegion *pci_address_space;
  24. MemoryRegion *ram_memory;
  25. PAMMemoryRegion pam_regions[PAM_REGIONS_COUNT];
  26. MemoryRegion smram_region;
  27. MemoryRegion smram, low_smram;
  28. };
  29. #define TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE "igd-passthrough-i440FX"
  30. PCIBus *i440fx_init(const char *pci_type,
  31. DeviceState *dev,
  32. MemoryRegion *address_space_mem,
  33. MemoryRegion *address_space_io,
  34. ram_addr_t ram_size,
  35. ram_addr_t below_4g_mem_size,
  36. ram_addr_t above_4g_mem_size,
  37. MemoryRegion *pci_memory,
  38. MemoryRegion *ram_memory);
  39. #endif