Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mxge/if_mxge_var.h
Show All 38 Lines | |||||
#define MXGE_FW_OFFSET 1024*1024 | #define MXGE_FW_OFFSET 1024*1024 | ||||
#define MXGE_EEPROM_STRINGS_SIZE 256 | #define MXGE_EEPROM_STRINGS_SIZE 256 | ||||
#define MXGE_MAX_SEND_DESC 128 | #define MXGE_MAX_SEND_DESC 128 | ||||
#ifndef VLAN_CAPABILITIES | #ifndef VLAN_CAPABILITIES | ||||
#define VLAN_CAPABILITIES(ifp) | #define VLAN_CAPABILITIES(ifp) | ||||
#define mxge_vlans_active(sc) (sc)->ifp->if_nvlans | #define mxge_vlans_active(sc) (sc)->ifp->if_nvlans | ||||
#else | #else | ||||
#define mxge_vlans_active(sc) (sc)->ifp->if_vlantrunk | #define mxge_vlans_active(sc) if_getvlantrunk((sc)->ifp) | ||||
#endif | #endif | ||||
#ifndef VLAN_TAG_VALUE | #ifndef VLAN_TAG_VALUE | ||||
#define MXGE_NEW_VLAN_API | #define MXGE_NEW_VLAN_API | ||||
#endif | #endif | ||||
#ifndef IFCAP_LRO | #ifndef IFCAP_LRO | ||||
#define IFCAP_LRO 0 | #define IFCAP_LRO 0 | ||||
▲ Show 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | struct mxge_slice_state { | ||||
struct lro_ctrl lc; | struct lro_ctrl lc; | ||||
mxge_dma_t fw_stats_dma; | mxge_dma_t fw_stats_dma; | ||||
struct sysctl_oid *sysctl_tree; | struct sysctl_oid *sysctl_tree; | ||||
struct sysctl_ctx_list sysctl_ctx; | struct sysctl_ctx_list sysctl_ctx; | ||||
char scratch[256]; | char scratch[256]; | ||||
}; | }; | ||||
struct mxge_softc { | struct mxge_softc { | ||||
struct ifnet* ifp; | if_t ifp; | ||||
struct mxge_slice_state *ss; | struct mxge_slice_state *ss; | ||||
int tx_boundary; /* boundary transmits cannot cross*/ | int tx_boundary; /* boundary transmits cannot cross*/ | ||||
int lro_cnt; | int lro_cnt; | ||||
bus_dma_tag_t parent_dmat; | bus_dma_tag_t parent_dmat; | ||||
volatile uint8_t *sram; | volatile uint8_t *sram; | ||||
int sram_size; | int sram_size; | ||||
volatile uint32_t *irq_deassert; | volatile uint32_t *irq_deassert; | ||||
mcp_cmd_response_t *cmd; | mcp_cmd_response_t *cmd; | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |