summaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-03 14:06:32 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-03 14:06:32 +0000
commit8a8696a3c4c2bc977a202fc80890aa170ff70812 (patch)
tree48d029cec3b082306c6c1a32d3db06531a475310 /vl.h
parent89980284975679f8f338006eb8d2d8d4f19cd0fd (diff)
downloadqemu-8a8696a3c4c2bc977a202fc80890aa170ff70812.tar.gz
support for opaque data on memory I/Os - PCI ROM memory support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@876 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r--vl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vl.h b/vl.h
index 54f6cdd292..e8f8a30a75 100644
--- a/vl.h
+++ b/vl.h
@@ -391,6 +391,8 @@ typedef struct PCIIORegion {
PCIMapIORegionFunc *map_func;
} PCIIORegion;
+#define PCI_ROM_SLOT 6
+#define PCI_NUM_REGIONS 7
struct PCIDevice {
/* PCI config space */
uint8_t config[256];
@@ -399,7 +401,7 @@ struct PCIDevice {
int bus_num;
int devfn;
char name[64];
- PCIIORegion io_regions[6];
+ PCIIORegion io_regions[PCI_NUM_REGIONS];
/* do not access the following fields */
PCIConfigReadFunc *config_read;