Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/axgbe/xgbe-sysctl.c
Show First 20 Lines • Show All 1,608 Lines • ▼ Show 20 Lines | axgbe_sysctl_init(struct xgbe_prv_data *pdata) | ||||
/* Set defaults */ | /* Set defaults */ | ||||
pdata->sysctl_xgmac_reg = 0; | pdata->sysctl_xgmac_reg = 0; | ||||
pdata->sysctl_xpcs_mmd = 1; | pdata->sysctl_xpcs_mmd = 1; | ||||
pdata->sysctl_xpcs_reg = 0; | pdata->sysctl_xpcs_reg = 0; | ||||
SYSCTL_ADD_UINT(clist, top, OID_AUTO, "axgbe_debug_level", CTLFLAG_RWTUN, | SYSCTL_ADD_UINT(clist, top, OID_AUTO, "axgbe_debug_level", CTLFLAG_RWTUN, | ||||
&pdata->debug_level, 0, "axgbe log level -- higher is verbose"); | &pdata->debug_level, 0, "axgbe log level -- higher is verbose"); | ||||
SYSCTL_ADD_UINT(clist, top, OID_AUTO, "sph_enable", | |||||
CTLFLAG_RDTUN, &pdata->sph_enable, 1, | |||||
"shows the split header feature state (1 - enable, 0 - disable"); | |||||
SYSCTL_ADD_PROC(clist, top, OID_AUTO, "xgmac_register", | SYSCTL_ADD_PROC(clist, top, OID_AUTO, "xgmac_register", | ||||
vmaffione: I don't think we should mention /boot/loader.conf and dev.ax.XXX here, also because the… | |||||
CTLTYPE_STRING | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, | CTLTYPE_STRING | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, | ||||
pdata, 0, sysctl_xgmac_reg_addr_handler, "IU", | pdata, 0, sysctl_xgmac_reg_addr_handler, "IU", | ||||
"xgmac register addr"); | "xgmac register addr"); | ||||
SYSCTL_ADD_PROC(clist, top, OID_AUTO, "xgmac_register_value", | SYSCTL_ADD_PROC(clist, top, OID_AUTO, "xgmac_register_value", | ||||
CTLTYPE_STRING | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, | CTLTYPE_STRING | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, | ||||
pdata, 0, sysctl_xgmac_reg_value_handler, "IU", | pdata, 0, sysctl_xgmac_reg_value_handler, "IU", | ||||
"xgmac register value"); | "xgmac register value"); | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |
I don't think we should mention /boot/loader.conf and dev.ax.XXX here, also because the procedure is valid also for the other tunables around this code.
Maybe just mention that 1 is enable and 0 is disable?