qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/6] pci: use uint8_t for pci_register_bar() type ar


From: Isaku Yamahata
Subject: [Qemu-devel] [PATCH 2/6] pci: use uint8_t for pci_register_bar() type argument of int.
Date: Tue, 7 Jul 2009 15:59:23 +0900

use uint8_t for pci_register_bar() type argument instead of int.
uint8_t is more appropriate because PCIIORegion::type is uint8_t.

Signed-off-by: Isaku Yamahata <address@hidden>
---
 hw/pci.c |    2 +-
 hw/pci.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/pci.c b/hw/pci.c
index 7ee9dde..289a62f 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -381,7 +381,7 @@ int pci_unregister_device(PCIDevice *pci_dev)
 }
 
 void pci_register_bar(PCIDevice *pci_dev, int region_num,
-                            uint32_t size, int type,
+                            uint32_t size, int8_t type,
                             PCIMapIORegionFunc *map_func)
 {
     PCIIORegion *r;
diff --git a/hw/pci.h b/hw/pci.h
index cb0e382..7e99cf6 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -218,7 +218,7 @@ PCIDevice *pci_register_device(PCIBus *bus, const char 
*name,
 int pci_unregister_device(PCIDevice *pci_dev);
 
 void pci_register_bar(PCIDevice *pci_dev, int region_num,
-                            uint32_t size, int type,
+                            uint32_t size, int8_t type,
                             PCIMapIORegionFunc *map_func);
 
 int pci_add_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size);
-- 
1.6.0.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]