summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2006-09-18 22:50:51 +0000
committerRonald G. Minnich <rminnich@gmail.com>2006-09-18 22:50:51 +0000
commit2cf779d8d17ce2737ee1b49f6faecb7e76ac6b92 (patch)
tree892c12a83d802ea9d05ff38e70aee43125a64619 /src/devices
parent0740c31cff42e97ab16353d38a58b4bffdbb124d (diff)
downloadcoreboot-2cf779d8d17ce2737ee1b49f6faecb7e76ac6b92.tar.xz
fix old bug in the src/devices/pci_device.c
add devices for the lx and artecgroup/dbe61 point artecgroup at cs5536_lx as it is so different. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2420 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/pci_device.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/devices/pci_device.c b/src/devices/pci_device.c
index 9451ea35aa..2a7502b280 100644
--- a/src/devices/pci_device.c
+++ b/src/devices/pci_device.c
@@ -761,7 +761,9 @@ static void set_pci_ops(struct device *dev)
return;
}
- /* Look through the list of setup drivers and find one for
+ printk_debug("%s: seeking driver for %x:%x class %x\n",
+ __FUNCTION__, dev->vendor, dev->device, dev->class);
+ /* Look through the list of setup drivers and find one for
* this pci device
*/
for(driver = &pci_drivers[0]; driver != &epci_drivers[0]; driver++) {
@@ -1176,13 +1178,13 @@ void pci_level_irq(unsigned char intNum)
/* this seems like an error but is not ... */
#if 1
- if (inb(0x4d0) != (intBits & 0xf)) {
+ if (inb(0x4d0) != (intBits & 0xff)) {
printk_err("%s: lower order bits are wrong: want 0x%x, got 0x%x\n",
- __func__, intBits &0xf, inb(0x4d0));
+ __func__, intBits &0xff, inb(0x4d0));
}
- if (inb(0x4d1) != ((intBits >> 8) & 0xf)) {
+ if (inb(0x4d1) != ((intBits >> 8) & 0xff)) {
printk_err("%s: lower order bits are wrong: want 0x%x, got 0x%x\n",
- __func__, (intBits>>8) &0xf, inb(0x4d1));
+ __func__, (intBits>>8) &0xff, inb(0x4d1));
}
#endif
}