]> Git Repo - qemu.git/commitdiff
qemu/pci: add pci_get/set_byte
authorMichael S. Tsirkin <[email protected]>
Sun, 21 Jun 2009 16:50:57 +0000 (19:50 +0300)
committerAnthony Liguori <[email protected]>
Wed, 24 Jun 2009 14:09:15 +0000 (09:09 -0500)
Add pci_get/set_byte to keep *_word and *_long access functions company.
They are unused for now.

Signed-off-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/pci.h

index 87b5a3cf245e9bc25aeaa6d05dde2d4a2d4df174..fcf7b3bfd34bda259da3cce31d5df499e3f2aea4 100644 (file)
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -258,6 +258,18 @@ void pci_info(Monitor *mon);
 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)
 {
This page took 0.028502 seconds and 4 git commands to generate.