X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fpci.h;h=d39eae387c8f409debe5e7d322052cac014b6428;hp=79718a719afaf8a9af931d211d5e560200819d2d;hb=59b6853965a3cd4b17d0466c3650feed594cd89e;hpb=db77959ea07c25b21177bad78509ef7c82412fe8 diff --git a/palacios/include/devices/pci.h b/palacios/include/devices/pci.h index 79718a7..d39eae3 100644 --- a/palacios/include/devices/pci.h +++ b/palacios/include/devices/pci.h @@ -57,10 +57,15 @@ struct v3_pci_bar { }; // Internal PCI data + uint32_t val; int updated; uint32_t mask; }; + +#define PCI_IO_BASE(bar_val) (bar_val & 0xfffffffc) +#define PCI_MEM32_BASE(bar_val) (bar_val & 0xfffffff0) + struct pci_device { union { uint8_t config_space[256];