mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
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
This commit is contained in:
parent
ee03ef72e3
commit
5197f3abd7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185655
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user