Author: mav
Date: Thu Jan 27 13:52:23 2011
New Revision: 217940
URL: http://svn.freebsd.org/changeset/base/217940

Log:
  MFC r208441:
  Report relative card address to NewBus as location string.

Modified:
  stable/8/sys/dev/mmc/mmc.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/dev/mmc/mmc.c
==============================================================================
--- stable/8/sys/dev/mmc/mmc.c  Thu Jan 27 13:43:33 2011        (r217939)
+++ stable/8/sys/dev/mmc/mmc.c  Thu Jan 27 13:52:23 2011        (r217940)
@@ -1500,6 +1500,15 @@ mmc_delayed_attach(void *xsc)
        config_intrhook_disestablish(&sc->config_intrhook);
 }
 
+static int
+mmc_child_location_str(device_t dev, device_t child, char *buf,
+    size_t buflen)
+{
+
+       snprintf(buf, buflen, "rca=0x%04x", mmc_get_rca(child));
+       return (0);
+}
+
 static device_method_t mmc_methods[] = {
        /* device_if */
        DEVMETHOD(device_probe, mmc_probe),
@@ -1511,6 +1520,7 @@ static device_method_t mmc_methods[] = {
        /* Bus interface */
        DEVMETHOD(bus_read_ivar, mmc_read_ivar),
        DEVMETHOD(bus_write_ivar, mmc_write_ivar),
+       DEVMETHOD(bus_child_location_str, mmc_child_location_str),
 
        /* MMC Bus interface */
        DEVMETHOD(mmcbus_wait_for_request, mmc_wait_for_request),
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to