Date: Fri, 5 Dec 2008 21:40:12 +0000 (UTC) From: "George V. Neville-Neil" <gnn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185655 - head/sys/dev/cxgb Message-ID: <200812052140.mB5LeCSG074056@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gnn Date: Fri Dec 5 21:40:11 2008 New Revision: 185655 URL: http://svn.freebsd.org/changeset/base/185655 Log: Re submit code to print the part and serial number for Chelsio cards. The original code was accidentally removed in another commit. MFC after: 1 day Modified: head/sys/dev/cxgb/cxgb_main.c Modified: head/sys/dev/cxgb/cxgb_main.c ============================================================================== --- head/sys/dev/cxgb/cxgb_main.c Fri Dec 5 21:32:30 2008 (r185654) +++ head/sys/dev/cxgb/cxgb_main.c Fri Dec 5 21:40:11 2008 (r185655) @@ -402,6 +402,8 @@ cxgb_controller_attach(device_t dev) int msi_needed, reg; #endif int must_load = 0; + char buf[80]; + sc = device_get_softc(dev); sc->dev = dev; sc->msi_count = 0; @@ -614,6 +616,11 @@ cxgb_controller_attach(device_t dev) G_FW_VERSION_MAJOR(vers), G_FW_VERSION_MINOR(vers), G_FW_VERSION_MICRO(vers)); + snprintf(buf, sizeof(buf), "%s\t E/C: %s S/N: %s", + ai->desc, + sc->params.vpd.ec, sc->params.vpd.sn); + device_set_desc_copy(dev, buf); + device_printf(sc->dev, "Firmware Version %s\n", &sc->fw_version[0]); callout_reset(&sc->cxgb_tick_ch, CXGB_TICKS(sc), cxgb_tick, sc); t3_add_attach_sysctls(sc);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812052140.mB5LeCSG074056>