summary refs log tree commit diff stats
path: root/hw/pci.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-08-08 16:09:28 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2011-08-08 10:22:30 -0500
commit14caaf7f422b412b55d8cde06767ced003fc31c3 (patch)
tree0f8fbb89555e4e634c4eca1db51d27689b38c8d0 /hw/pci.h
parentfa6c606589a908a4254e61571296e77593763bfa (diff)
downloadfocaccia-qemu-14caaf7f422b412b55d8cde06767ced003fc31c3.tar.gz
focaccia-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;
 };