Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/tsec/if_tsec.c
Show All 12 Lines | |||||
ctx = device_get_sysctl_ctx(sc->dev); | ctx = device_get_sysctl_ctx(sc->dev); | ||||
children = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->dev)); | children = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->dev)); | ||||
tree = SYSCTL_ADD_NODE(ctx, children, OID_AUTO, "int_coal", | tree = SYSCTL_ADD_NODE(ctx, children, OID_AUTO, "int_coal", | ||||
CTLFLAG_RD, 0, "TSEC Interrupts coalescing"); | CTLFLAG_RD, 0, "TSEC Interrupts coalescing"); | ||||
children = SYSCTL_CHILDREN(tree); | children = SYSCTL_CHILDREN(tree); | ||||
SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "rx_time", | SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "rx_time", | ||||
CTLTYPE_UINT | CTLFLAG_RW, sc, TSEC_IC_RX, tsec_sysctl_ic_time, | CTLTYPE_UINT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, sc, TSEC_IC_RX, | ||||
tsec_sysctl_ic_time, | |||||
"I", "IC RX time threshold (0-65535)"); | "I", "IC RX time threshold (0-65535)"); | ||||
SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "rx_count", | SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "rx_count", | ||||
CTLTYPE_UINT | CTLFLAG_RW, sc, TSEC_IC_RX, tsec_sysctl_ic_count, | CTLTYPE_UINT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, sc, TSEC_IC_RX, | ||||
tsec_sysctl_ic_count, | |||||
"I", "IC RX frame count threshold (0-255)"); | "I", "IC RX frame count threshold (0-255)"); | ||||
SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "tx_time", | SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "tx_time", | ||||
CTLTYPE_UINT | CTLFLAG_RW, sc, TSEC_IC_TX, tsec_sysctl_ic_time, | CTLTYPE_UINT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, sc, TSEC_IC_TX, | ||||
tsec_sysctl_ic_time, | |||||
"I", "IC TX time threshold (0-65535)"); | "I", "IC TX time threshold (0-65535)"); | ||||
SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "tx_count", | SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "tx_count", | ||||
CTLTYPE_UINT | CTLFLAG_RW, sc, TSEC_IC_TX, tsec_sysctl_ic_count, | CTLTYPE_UINT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, sc, TSEC_IC_TX, | ||||
tsec_sysctl_ic_count, | |||||
"I", "IC TX frame count threshold (0-255)"); | "I", "IC TX frame count threshold (0-255)"); | ||||
} | } | ||||
/* | /* | ||||
* With Interrupt Coalescing (IC) active, a transmit/receive frame | * With Interrupt Coalescing (IC) active, a transmit/receive frame | ||||
* interrupt is raised either upon: | * interrupt is raised either upon: | ||||
* | * | ||||
* - threshold-defined period of time elapsed, or | * - threshold-defined period of time elapsed, or | ||||
Show All 12 Lines |