summaryrefslogtreecommitdiffstats
path: root/hw/pci.h
diff options
context:
space:
mode:
authorAvi Kivity2011-08-08 15:09:28 +0200
committerAnthony Liguori2011-08-08 17:22:30 +0200
commit14caaf7f422b412b55d8cde06767ced003fc31c3 (patch)
tree0f8fbb89555e4e634c4eca1db51d27689b38c8d0 /hw/pci.h
parentpci: remove pci_register_bar_simple() (diff)
downloadqemu-14caaf7f422b412b55d8cde06767ced003fc31c3.tar.gz
qemu-14caaf7f422b412b55d8cde06767ced003fc31c3.tar.xz
qemu-14caaf7f422b412b55d8cde06767ced003fc31c3.zip
pci: convert pci rom to memory API
Reviewed-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pci.h')
-rw-r--r--hw/pci.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/pci.h b/hw/pci.h
index 25e28b12a1..6e2bcea19a 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -191,7 +191,8 @@ struct PCIDevice {
/* Location of option rom */
char *romfile;
- ram_addr_t rom_offset;
+ bool has_rom;
+ MemoryRegion rom;
uint32_t rom_bar;
};