PERFORCE change 105614 for review
John-Mark Gurney
jmg at FreeBSD.org
Sun Sep 3 20:46:37 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=105614
Change 105614 by jmg at jmg_carbon-60 on 2006/09/03 20:46:06
debugging for ata on t2k..
Affected files ...
.. //depot/projects/kmacy_sun4v_stable/src/sys/dev/ata/ata-all.c#2 edit
Differences ...
==== //depot/projects/kmacy_sun4v_stable/src/sys/dev/ata/ata-all.c#2 (text+ko) ====
@@ -665,6 +665,7 @@
device_t master_child = NULL, slave_child = NULL;
int master_unit = -1, slave_unit = -1;
+ device_printf(dev, "ata_identify\n");
if (ch->devices & (ATA_ATA_MASTER | ATA_ATAPI_MASTER)) {
if (!(master = malloc(sizeof(struct ata_device),
M_ATA, M_NOWAIT | M_ZERO))) {
@@ -700,15 +701,18 @@
slave = NULL;
}
+ device_printf(dev, "slave ata_getparam\n");
if (slave && ata_getparam(slave, 1)) {
device_delete_child(dev, slave_child);
free(slave, M_ATA);
}
+ device_printf(dev, "master ata_getparam\n");
if (master && ata_getparam(master, 1)) {
device_delete_child(dev, master_child);
free(master, M_ATA);
}
+ device_printf(dev, "probe and attach\n");
bus_generic_probe(dev);
bus_generic_attach(dev);
return 0;
More information about the p4-projects
mailing list