From f483a7400532968a60e10797b74d159977c23f36 Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Sun, 21 Jun 2009 19:50:57 +0300 Subject: [PATCH] qemu/pci: add pci_get/set_byte Add pci_get/set_byte to keep *_word and *_long access functions company. They are unused for now. Signed-off-by: Michael S. Tsirkin Signed-off-by: Anthony Liguori --- hw/pci.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hw/pci.h b/hw/pci.h index 87b5a3c..fcf7b3b 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -259,6 +259,18 @@ PCIBus *pci_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did, pci_map_irq_fn map_irq, const char *name); static inline void +pci_set_byte(uint8_t *config, uint8_t val) +{ + *config = val; +} + +static inline uint8_t +pci_get_byte(uint8_t *config) +{ + return *config; +} + +static inline void pci_set_word(uint8_t *config, uint16_t val) { cpu_to_le16wu((uint16_t *)config, val); -- 2.7.4