From b05d4bb77e5aa53896469481152a1cbacd0396ee Mon Sep 17 00:00:00 2001 From: Rudolf Marek Date: Tue, 19 Feb 2008 20:30:25 +0000 Subject: I'm attaching the patch which should fix both problems. Fix the undefined u8 type and the bitpos selection in currently unused pnp_read_enable function. Signed-off-by: Rudolf Marek Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3109 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/devices/pnp_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/devices/pnp_device.c b/src/devices/pnp_device.c index ee7c1018d7..5740a8044a 100644 --- a/src/devices/pnp_device.c +++ b/src/devices/pnp_device.c @@ -51,7 +51,7 @@ void pnp_set_logical_device(device_t dev) void pnp_set_enable(device_t dev, int enable) { - u8 tmp, bitpos; + uint8_t tmp, bitpos; tmp = pnp_read_config(dev, 0x30); /* handle the virtual devices, which share same LDN register */ @@ -67,11 +67,11 @@ void pnp_set_enable(device_t dev, int enable) int pnp_read_enable(device_t dev) { - u8 tmp, bitpos; + uint8_t tmp, bitpos; tmp = pnp_read_config(dev, 0x30); /* handle the virtual devices, which share same LDN register */ bitpos = (dev->path.u.pnp.device >> 8) & 0x7; - return !!(tmp & bitpos); + return !!(tmp & (1 << bitpos)); } void pnp_set_iobase(device_t dev, unsigned index, unsigned iobase) -- cgit v1.2.3