PERFORCE change 165238 for review
Alexander Motin
mav at FreeBSD.org
Fri Jun 26 06:21:43 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=165238
Change 165238 by mav at mav_mavbook on 2009/06/26 06:21:14
Log real AHCI channel number inside controller.
There can be holes from uniplemented ports.
Affected files ...
.. //depot/projects/scottl-camlock/src/sys/dev/ahci/ahci.c#37 edit
Differences ...
==== //depot/projects/scottl-camlock/src/sys/dev/ahci/ahci.c#37 (text+ko) ====
@@ -468,6 +468,19 @@
return (0);
}
+static int
+ahci_print_child(device_t dev, device_t child)
+{
+ int retval;
+
+ retval = bus_print_child_header(dev, child);
+ retval += printf(" at channel %d",
+ (int)(intptr_t)device_get_ivars(child));
+ retval += bus_print_child_footer(dev, child);
+
+ return (retval);
+}
+
devclass_t ahci_devclass;
static device_method_t ahci_methods[] = {
DEVMETHOD(device_probe, ahci_probe),
@@ -475,6 +488,7 @@
DEVMETHOD(device_detach, ahci_detach),
DEVMETHOD(device_suspend, ahci_suspend),
DEVMETHOD(device_resume, ahci_resume),
+ DEVMETHOD(bus_print_child, ahci_print_child),
DEVMETHOD(bus_alloc_resource, ahci_alloc_resource),
DEVMETHOD(bus_release_resource, ahci_release_resource),
DEVMETHOD(bus_setup_intr, ahci_setup_intr),
More information about the p4-projects
mailing list