diff options
author | Rudolf Marek <r.marek@assembler.cz> | 2008-02-19 20:30:25 +0000 |
---|---|---|
committer | Rudolf Marek <r.marek@assembler.cz> | 2008-02-19 20:30:25 +0000 |
commit | b05d4bb77e5aa53896469481152a1cbacd0396ee (patch) | |
tree | c371b20d23be461b6ab8e0917b78b1c7260c1e66 /src/devices | |
parent | bb6f88d1d48ab9c5acb33ca4b80b15f7319161dd (diff) | |
download | coreboot-b05d4bb77e5aa53896469481152a1cbacd0396ee.tar.xz |
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 <r.marek@assembler.cz>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3109 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/pnp_device.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |