Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/qlxge/qls_hw.c
Show All 12 Lines | |||||
SYSCTL_ADD_UINT(device_get_sysctl_ctx(dev), | SYSCTL_ADD_UINT(device_get_sysctl_ctx(dev), | ||||
SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), | SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), | ||||
OID_AUTO, "num_tx_rings", CTLFLAG_RD, &ha->num_tx_rings, | OID_AUTO, "num_tx_rings", CTLFLAG_RD, &ha->num_tx_rings, | ||||
ha->num_tx_rings, "Number of Transmit Rings"); | ha->num_tx_rings, "Number of Transmit Rings"); | ||||
SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), | SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), | ||||
SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), | SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), | ||||
OID_AUTO, "mpi_dump", CTLTYPE_INT | CTLFLAG_RW, | OID_AUTO, "mpi_dump", | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | |||||
(void *)ha, 0, | (void *)ha, 0, | ||||
qls_syctl_mpi_dump, "I", "MPI Dump"); | qls_syctl_mpi_dump, "I", "MPI Dump"); | ||||
SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), | SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), | ||||
SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), | SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), | ||||
OID_AUTO, "link_status", CTLTYPE_INT | CTLFLAG_RW, | OID_AUTO, "link_status", | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | |||||
(void *)ha, 0, | (void *)ha, 0, | ||||
qls_syctl_link_status, "I", "Link Status"); | qls_syctl_link_status, "I", "Link Status"); | ||||
} | } | ||||
/* | /* | ||||
* Name: qls_free_dma | * Name: qls_free_dma | ||||
* Function: Frees the DMA'able memory allocated in qls_alloc_dma() | * Function: Frees the DMA'able memory allocated in qls_alloc_dma() | ||||
*/ | */ | ||||
Show All 12 Lines |