code reformat
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1621 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -14,9 +14,9 @@ static device_t ht_scan_get_devs(device_t *old_devices)
|
|||||||
device_t first, last;
|
device_t first, last;
|
||||||
first = *old_devices;
|
first = *old_devices;
|
||||||
last = first;
|
last = first;
|
||||||
while(last && last->sibling &&
|
while (last && last->sibling &&
|
||||||
(last->sibling->path.type == DEVICE_PATH_PCI) &&
|
(last->sibling->path.type == DEVICE_PATH_PCI) &&
|
||||||
(last->sibling->path.u.pci.devfn > last->path.u.pci.devfn)) {
|
(last->sibling->path.u.pci.devfn > last->path.u.pci.devfn)) {
|
||||||
last = last->sibling;
|
last = last->sibling;
|
||||||
}
|
}
|
||||||
if (first) {
|
if (first) {
|
||||||
|
@@ -508,6 +508,8 @@ static struct device *pci_scan_get_dev(struct device **list,
|
|||||||
{
|
{
|
||||||
struct device *dev = 0;
|
struct device *dev = 0;
|
||||||
|
|
||||||
|
printk_debug("%s, looking for devfn: %02x.%01x\n", __FUNCTION__,
|
||||||
|
devfn >> 3, devfn & 7);
|
||||||
for (; *list; list = &(*list)->sibling) {
|
for (; *list; list = &(*list)->sibling) {
|
||||||
if ((*list)->path.type != DEVICE_PATH_PCI) {
|
if ((*list)->path.type != DEVICE_PATH_PCI) {
|
||||||
printk_err("child %s not a pci device\n",
|
printk_err("child %s not a pci device\n",
|
||||||
@@ -523,6 +525,8 @@ static struct device *pci_scan_get_dev(struct device **list,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printk_debug("%s, found dev %08x\n", __FUNCTION__, dev);
|
||||||
|
|
||||||
/* FIXME: why are we doing this ? Isn't there some order between the
|
/* FIXME: why are we doing this ? Isn't there some order between the
|
||||||
* structures before ? */
|
* structures before ? */
|
||||||
if (dev) {
|
if (dev) {
|
||||||
|
Reference in New Issue
Block a user