Changeset View
Changeset View
Standalone View
Standalone View
sys/net/iflib.h
Show First 20 Lines • Show All 230 Lines • ▼ Show 20 Lines | typedef struct if_softc_ctx { | ||||
uint32_t __spare5__; | uint32_t __spare5__; | ||||
uint32_t __spare6__; | uint32_t __spare6__; | ||||
uint32_t __spare7__; | uint32_t __spare7__; | ||||
uint32_t __spare8__; | uint32_t __spare8__; | ||||
caddr_t __spare9__; | caddr_t __spare9__; | ||||
int isc_disable_msix; | int isc_disable_msix; | ||||
if_txrx_t isc_txrx; | if_txrx_t isc_txrx; | ||||
struct ifmedia *isc_media; | struct ifmedia *isc_media; | ||||
bus_size_t isc_dma_width; /* device dma width in bits, 0 means | |||||
erj: You should validate this value -- what if someone puts in something ridiculous by accident? | |||||
use BUS_SPACE_MAXADDR instead */ | |||||
} *if_softc_ctx_t; | } *if_softc_ctx_t; | ||||
/* | /* | ||||
* Initialization values for device | * Initialization values for device | ||||
*/ | */ | ||||
struct if_shared_ctx { | struct if_shared_ctx { | ||||
unsigned isc_magic; | unsigned isc_magic; | ||||
driver_t *isc_driver; | driver_t *isc_driver; | ||||
▲ Show 20 Lines • Show All 252 Lines • Show Last 20 Lines |
You should validate this value -- what if someone puts in something ridiculous by accident?