[coreboot-gerrit] Patch set updated for coreboot: a71d224 device_util: Make device in dev_find_slot_pnp u16.
Vladimir Serbinenko (phcoder@gmail.com)
gerrit at coreboot.org
Sun Feb 9 23:08:29 CET 2014
Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5165
-gerrit
commit a71d2247991583fe559e98c3dbed6b75e9b2da3c
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date: Sat Feb 8 18:58:39 2014 +0100
device_util: Make device in dev_find_slot_pnp u16.
LDN is 8-bit but coreboot squeezes unrelated info: VLDN in this field.
Increase to 16-bit to handle this.
Change-Id: I97af1b32dcfaed84980fa3aa4c317dfab6fad6d8
Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
src/device/device_util.c | 2 +-
src/include/device/device.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/device/device_util.c b/src/device/device_util.c
index 83decc1..dc43b9a 100644
--- a/src/device/device_util.c
+++ b/src/device/device_util.c
@@ -100,7 +100,7 @@ struct device *dev_find_slot_on_smbus(unsigned int bus, unsigned int addr)
* @param device Logical device number.
* @return Pointer to the device structure (if found), 0 otherwise.
*/
-struct device *dev_find_slot_pnp(u16 port, u8 device)
+struct device *dev_find_slot_pnp(u16 port, u16 device)
{
struct device *dev;
diff --git a/src/include/device/device.h b/src/include/device/device.h
index f05ddea..74bdbd7 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -169,7 +169,7 @@ device_t dev_find_device (u16 vendor, u16 device, device_t from);
device_t dev_find_class (unsigned int class, device_t from);
device_t dev_find_slot (unsigned int bus, unsigned int devfn);
device_t dev_find_slot_on_smbus (unsigned int bus, unsigned int addr);
-device_t dev_find_slot_pnp(u16 port, u8 device);
+device_t dev_find_slot_pnp(u16 port, u16 device);
device_t dev_find_lapic(unsigned apic_id);
int dev_count_cpu(void);
More information about the coreboot-gerrit
mailing list