diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2017-03-06 18:01:04 -0800 |
---|---|---|
committer | Lee Leahy <leroy.p.leahy@intel.com> | 2017-03-09 17:16:09 +0100 |
commit | 0ca2a0654ca4b403e8a54d558bce07a862820a9d (patch) | |
tree | 86c845b441c8ae4824bf6178943148ec94441c6d /src/include/device/pci.h | |
parent | 75d8d8da47a3cc759d7395f5b0ef91ba13a59e51 (diff) |
src/include: Fix unsigned warnings
Fix warning detected by checkpatch.pl:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
BRANCH=none
BUG=None
TEST=Build and run on Galileo Gen2
Change-Id: I23d9b4b715aa74acc387db8fb8d3c73bd5cabfaa
Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com>
Reviewed-on: https://review.coreboot.org/18607
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/include/device/pci.h')
-rw-r--r-- | src/include/device/pci.h | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/src/include/device/pci.h b/src/include/device/pci.h index e167752e92..8dc7c46d35 100644 --- a/src/include/device/pci.h +++ b/src/include/device/pci.h @@ -32,7 +32,8 @@ /* Common pci operations without a standard interface */ struct pci_operations { /* set the Subsystem IDs for the PCI device */ - void (*set_subsystem)(device_t dev, unsigned vendor, unsigned device); + void (*set_subsystem)(device_t dev, unsigned int vendor, + unsigned int device); void (*set_L1_ss_latency)(device_t dev, unsigned int off); }; @@ -69,26 +70,28 @@ void pci_dev_set_resources(device_t dev); void pci_dev_enable_resources(device_t dev); void pci_bus_enable_resources(device_t dev); void pci_bus_reset(struct bus *bus); -device_t pci_probe_dev(device_t dev, struct bus *bus, unsigned devfn); +device_t pci_probe_dev(device_t dev, struct bus *bus, unsigned int devfn); void do_pci_scan_bridge(device_t bus, void (*do_scan_bus)(struct bus *bus, - unsigned min_devfn, unsigned max_devfn)); + unsigned int min_devfn, unsigned int max_devfn)); void pci_scan_bridge(device_t bus); -void pci_scan_bus(struct bus *bus, unsigned min_devfn, unsigned max_devfn); +void pci_scan_bus(struct bus *bus, unsigned int min_devfn, + unsigned int max_devfn); -uint8_t pci_moving_config8(struct device *dev, unsigned reg); -uint16_t pci_moving_config16(struct device *dev, unsigned reg); -uint32_t pci_moving_config32(struct device *dev, unsigned reg); +uint8_t pci_moving_config8(struct device *dev, unsigned int reg); +uint16_t pci_moving_config16(struct device *dev, unsigned int reg); +uint32_t pci_moving_config32(struct device *dev, unsigned int reg); struct resource *pci_get_resource(struct device *dev, unsigned long index); -void pci_dev_set_subsystem(device_t dev, unsigned vendor, unsigned device); +void pci_dev_set_subsystem(device_t dev, unsigned int vendor, + unsigned int device); void pci_dev_init(struct device *dev); unsigned int pci_match_simple_dev(device_t dev, pci_devfn_t sdev); const char * pin_to_str(int pin); int get_pci_irq_pins(device_t dev, device_t *parent_bdg); -void pci_assign_irqs(unsigned bus, unsigned slot, +void pci_assign_irqs(unsigned int bus, unsigned int slot, const unsigned char pIntAtoD[4]); const char *get_pci_class_name(device_t dev); const char *get_pci_subclass_name(device_t dev); @@ -109,11 +112,13 @@ static inline const struct pci_operations *ops_pci(device_t dev) #endif /* ! __SIMPLE_DEVICE__ */ #ifdef __SIMPLE_DEVICE__ -unsigned pci_find_next_capability(pci_devfn_t dev, unsigned cap, unsigned last); -unsigned pci_find_capability(pci_devfn_t dev, unsigned cap); +unsigned int pci_find_next_capability(pci_devfn_t dev, unsigned int cap, + unsigned int last); +unsigned int pci_find_capability(pci_devfn_t dev, unsigned int cap); #else /* !__SIMPLE_DEVICE__ */ -unsigned pci_find_next_capability(device_t dev, unsigned cap, unsigned last); -unsigned pci_find_capability(device_t dev, unsigned cap); +unsigned int pci_find_next_capability(device_t dev, unsigned int cap, + unsigned int last); +unsigned int pci_find_capability(device_t dev, unsigned int cap); #endif /* __SIMPLE_DEVICE__ */ void pci_early_bridge_init(void); |