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
This commit is contained in:
parent
bb6f88d1d4
commit
b05d4bb77e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue