aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2010-05-27 14:42:37 +0900
committerMichael S. Tsirkin <mst@redhat.com>2010-05-31 16:33:52 +0300
commit3c18685f43acd81626e7e7bafc5967f04ee48090 (patch)
tree36f002bcab8cc7ddf9f49167279e4173651e33b0 /hw
parent5e434f4e60f8e5a9dadf324b3ee31c3ce0e80165 (diff)
pci: add const to pci_is_express(), pci_config_size().
add const to pci_is_express(), pci_config_size(). Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/pci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pci.h b/hw/pci.h
index f6e6c5f419..1e76ef03c8 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -350,12 +350,12 @@ void pci_qdev_register_many(PCIDeviceInfo *info);
PCIDevice *pci_create(PCIBus *bus, int devfn, const char *name);
PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name);
-static inline int pci_is_express(PCIDevice *d)
+static inline int pci_is_express(const PCIDevice *d)
{
return d->cap_present & QEMU_PCI_CAP_EXPRESS;
}
-static inline uint32_t pci_config_size(PCIDevice *d)
+static inline uint32_t pci_config_size(const PCIDevice *d)
{
return pci_is_express(d) ? PCIE_CONFIG_SPACE_SIZE : PCI_CONFIG_SPACE_SIZE;
}