[Top][All Lists]
[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
- [Qemu-devel] [PATCH 0/6] pci: various clean up and 64bit bar support., Isaku Yamahata, 2009/07/07
- [Qemu-devel] [PATCH 6/6] pci: 64bit bar support., Isaku Yamahata, 2009/07/07
- [Qemu-devel] [PATCH 2/6] pci: use uint8_t for pci_register_bar() type argument of int.,
Isaku Yamahata <=
- [Qemu-devel] [PATCH 3/6] pci: minor clean up of pci_update_mappings()., Isaku Yamahata, 2009/07/07
- [Qemu-devel] [PATCH 4/6] pci: define a constant to represent a unmapped bar and use it., Isaku Yamahata, 2009/07/07
- [Qemu-devel] [PATCH 1/6] pci.c: remove unnecessary #ifdef DEBUG_PCI., Isaku Yamahata, 2009/07/07
- [Qemu-devel] [PATCH 5/6] pci: use uint64_t for bar addr and size instead of uint32_t., Isaku Yamahata, 2009/07/07