Lines 2606-2611
device_attach(device_t dev)
Link Here
|
2606 |
device_print_child(dev->parent, dev); |
2606 |
device_print_child(dev->parent, dev); |
2607 |
attachtime = get_cyclecount(); |
2607 |
attachtime = get_cyclecount(); |
2608 |
dev->state = DS_ATTACHING; |
2608 |
dev->state = DS_ATTACHING; |
|
|
2609 |
printf("%s:%d %s%d\n", __func__, __LINE__, dev->driver->name, dev->unit); |
2609 |
if ((error = DEVICE_ATTACH(dev)) != 0) { |
2610 |
if ((error = DEVICE_ATTACH(dev)) != 0) { |
2610 |
printf("device_attach: %s%d attach returned %d\n", |
2611 |
printf("device_attach: %s%d attach returned %d\n", |
2611 |
dev->driver->name, dev->unit, error); |
2612 |
dev->driver->name, dev->unit, error); |
Lines 3418-3425
bus_generic_probe(device_t dev)
Link Here
|
3418 |
*/ |
3419 |
*/ |
3419 |
if (dl->pass > bus_current_pass) |
3420 |
if (dl->pass > bus_current_pass) |
3420 |
continue; |
3421 |
continue; |
|
|
3422 |
printf("%s:%d %s\n", __func__, __LINE__, dl->driver->name); |
3421 |
DEVICE_IDENTIFY(dl->driver, dev); |
3423 |
DEVICE_IDENTIFY(dl->driver, dev); |
3422 |
} |
3424 |
} |
|
|
3425 |
printf("%s:%d\n", __func__, __LINE__); |
3423 |
|
3426 |
|
3424 |
return (0); |
3427 |
return (0); |
3425 |
} |
3428 |
} |
Lines 3850-3858
bus_generic_new_pass(device_t dev)
Link Here
|
3850 |
device_t child; |
3853 |
device_t child; |
3851 |
|
3854 |
|
3852 |
dc = dev->devclass; |
3855 |
dc = dev->devclass; |
|
|
3856 |
printf("%s:%d\n", __func__, __LINE__); |
3853 |
TAILQ_FOREACH(dl, &dc->drivers, link) { |
3857 |
TAILQ_FOREACH(dl, &dc->drivers, link) { |
3854 |
if (dl->pass == bus_current_pass) |
3858 |
if (dl->pass == bus_current_pass) { |
|
|
3859 |
printf("%s:%d %s\n", __func__, __LINE__, dl->driver->name); |
3855 |
DEVICE_IDENTIFY(dl->driver, dev); |
3860 |
DEVICE_IDENTIFY(dl->driver, dev); |
|
|
3861 |
} |
3856 |
} |
3862 |
} |
3857 |
TAILQ_FOREACH(child, &dev->children, link) { |
3863 |
TAILQ_FOREACH(child, &dev->children, link) { |
3858 |
if (child->state >= DS_ATTACHED) |
3864 |
if (child->state >= DS_ATTACHED) |
Lines 3860-3865
bus_generic_new_pass(device_t dev)
Link Here
|
3860 |
else if (child->state == DS_NOTPRESENT) |
3866 |
else if (child->state == DS_NOTPRESENT) |
3861 |
device_probe_and_attach(child); |
3867 |
device_probe_and_attach(child); |
3862 |
} |
3868 |
} |
|
|
3869 |
printf("%s:%d\n", __func__, __LINE__); |
3863 |
} |
3870 |
} |
3864 |
|
3871 |
|
3865 |
/** |
3872 |
/** |