summaryrefslogtreecommitdiff
path: root/hw/pci.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-05-05 13:05:32 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-05-05 13:05:32 -0500
commit3964f535c35c08470ac69bd553282af500bc8bb0 (patch)
treeba83992b5bcfda451371174ce3e8be1496c70c73 /hw/pci.h
parenta69fb35079f682f99dd4d077b76232763d832d42 (diff)
parent5300f1a5487f67f0bde8ee1081b799108668cb1d (diff)
downloadqemu-3964f535c35c08470ac69bd553282af500bc8bb0.tar.gz
qemu-3964f535c35c08470ac69bd553282af500bc8bb0.tar.bz2
qemu-3964f535c35c08470ac69bd553282af500bc8bb0.zip
Merge remote-tracking branch 'mst/for_anthony' into staging
Diffstat (limited to 'hw/pci.h')
-rw-r--r--hw/pci.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/pci.h b/hw/pci.h
index 52ee8c9c5b..c6a6eb67b6 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -92,6 +92,7 @@ typedef struct PCIIORegion {
pcibus_t filtered_size;
uint8_t type;
PCIMapIORegionFunc *map_func;
+ ram_addr_t ram_addr;
} PCIIORegion;
#define PCI_ROM_SLOT 6
@@ -200,6 +201,8 @@ PCIDevice *pci_register_device(PCIBus *bus, const char *name,
void pci_register_bar(PCIDevice *pci_dev, int region_num,
pcibus_t size, uint8_t type,
PCIMapIORegionFunc *map_func);
+void pci_register_bar_simple(PCIDevice *pci_dev, int region_num,
+ pcibus_t size, uint8_t attr, ram_addr_t ram_addr);
int pci_add_capability(PCIDevice *pdev, uint8_t cap_id,
uint8_t offset, uint8_t size);
@@ -234,6 +237,7 @@ void pci_bus_new_inplace(PCIBus *bus, DeviceState *parent,
PCIBus *pci_bus_new(DeviceState *parent, const char *name, uint8_t devfn_min);
void pci_bus_irqs(PCIBus *bus, pci_set_irq_fn set_irq, pci_map_irq_fn map_irq,
void *irq_opaque, int nirq);
+int pci_bus_get_irq_level(PCIBus *bus, int irq_num);
void pci_bus_hotplug(PCIBus *bus, pci_hotplug_fn hotplug, DeviceState *dev);
PCIBus *pci_register_bus(DeviceState *parent, const char *name,
pci_set_irq_fn set_irq, pci_map_irq_fn map_irq,