Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/oce/oce_if.c
Show First 20 Lines • Show All 2,270 Lines • ▼ Show 20 Lines | |||||
static int | static int | ||||
oce_handle_passthrough(struct ifnet *ifp, caddr_t data) | oce_handle_passthrough(struct ifnet *ifp, caddr_t data) | ||||
{ | { | ||||
POCE_SOFTC sc = ifp->if_softc; | POCE_SOFTC sc = ifp->if_softc; | ||||
struct ifreq *ifr = (struct ifreq *)data; | struct ifreq *ifr = (struct ifreq *)data; | ||||
int rc = ENXIO; | int rc = ENXIO; | ||||
char cookie[32] = {0}; | char cookie[32] = {0}; | ||||
void *priv_data = (void *)ifr->ifr_data; | void *priv_data = ifr_data_get_ptr(ifr); | ||||
void *ioctl_ptr; | void *ioctl_ptr; | ||||
uint32_t req_size; | uint32_t req_size; | ||||
struct mbx_hdr req; | struct mbx_hdr req; | ||||
OCE_DMA_MEM dma_mem; | OCE_DMA_MEM dma_mem; | ||||
struct mbx_common_get_cntl_attr *fw_cmd; | struct mbx_common_get_cntl_attr *fw_cmd; | ||||
if (copyin(priv_data, cookie, strlen(IOCTL_COOKIE))) | if (copyin(priv_data, cookie, strlen(IOCTL_COOKIE))) | ||||
return EFAULT; | return EFAULT; | ||||
▲ Show 20 Lines • Show All 708 Lines • Show Last 20 Lines |