Lines 854-869
Link Here
|
854 |
static void |
854 |
static void |
855 |
ata_boot_attach(void) |
855 |
ata_boot_attach(void) |
856 |
{ |
856 |
{ |
857 |
struct ata_channel *ch; |
857 |
device_t dev; |
858 |
int ctlr; |
858 |
int ctlr; |
859 |
|
859 |
|
860 |
mtx_lock(&Giant); /* newbus suckage it needs Giant */ |
860 |
mtx_lock(&Giant); /* newbus suckage it needs Giant */ |
861 |
|
861 |
|
862 |
/* kick of probe and attach on all channels */ |
862 |
/* kick of probe and attach on all enabled channels */ |
863 |
for (ctlr = 0; ctlr < devclass_get_maxunit(ata_devclass); ctlr++) { |
863 |
for (ctlr = 0; ctlr < devclass_get_maxunit(ata_devclass); ctlr++) { |
864 |
if ((ch = devclass_get_softc(ata_devclass, ctlr))) { |
864 |
dev = devclass_get_device(ata_devclass, ctlr); |
865 |
ata_identify(ch->dev); |
865 |
if (dev != NULL && device_is_enabled(dev)) |
866 |
} |
866 |
ata_identify(dev); |
867 |
} |
867 |
} |
868 |
|
868 |
|
869 |
/* release the hook that got us here, we are only needed once during boot */ |
869 |
/* release the hook that got us here, we are only needed once during boot */ |