Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/cxgbe/common/common.h
Show First 20 Lines • Show All 274 Lines • ▼ Show 20 Lines | struct chip_params { | ||||
u8 nsched_cls; | u8 nsched_cls; | ||||
u8 cim_num_obq; | u8 cim_num_obq; | ||||
u16 mps_rplc_size; | u16 mps_rplc_size; | ||||
u16 vfcount; | u16 vfcount; | ||||
u32 sge_fl_db; | u32 sge_fl_db; | ||||
u16 mps_tcam_size; | u16 mps_tcam_size; | ||||
}; | }; | ||||
/* VF-only parameters. */ | |||||
/* | |||||
* Global Receive Side Scaling (RSS) parameters in host-native format. | |||||
*/ | |||||
struct rss_params { | |||||
unsigned int mode; /* RSS mode */ | |||||
union { | |||||
struct { | |||||
u_int synmapen:1; /* SYN Map Enable */ | |||||
u_int syn4tupenipv6:1; /* enable hashing 4-tuple IPv6 SYNs */ | |||||
u_int syn2tupenipv6:1; /* enable hashing 2-tuple IPv6 SYNs */ | |||||
u_int syn4tupenipv4:1; /* enable hashing 4-tuple IPv4 SYNs */ | |||||
u_int syn2tupenipv4:1; /* enable hashing 2-tuple IPv4 SYNs */ | |||||
u_int ofdmapen:1; /* Offload Map Enable */ | |||||
u_int tnlmapen:1; /* Tunnel Map Enable */ | |||||
u_int tnlalllookup:1; /* Tunnel All Lookup */ | |||||
u_int hashtoeplitz:1; /* use Toeplitz hash */ | |||||
} basicvirtual; | |||||
} u; | |||||
}; | |||||
/* | |||||
* Maximum resources provisioned for a PCI VF. | |||||
*/ | |||||
struct vf_resources { | |||||
unsigned int nvi; /* N virtual interfaces */ | |||||
unsigned int neq; /* N egress Qs */ | |||||
unsigned int nethctrl; /* N egress ETH or CTRL Qs */ | |||||
unsigned int niqflint; /* N ingress Qs/w free list(s) & intr */ | |||||
unsigned int niq; /* N ingress Qs */ | |||||
unsigned int tc; /* PCI-E traffic class */ | |||||
unsigned int pmask; /* port access rights mask */ | |||||
unsigned int nexactf; /* N exact MPS filters */ | |||||
unsigned int r_caps; /* read capabilities */ | |||||
unsigned int wx_caps; /* write/execute capabilities */ | |||||
}; | |||||
struct adapter_params { | struct adapter_params { | ||||
struct sge_params sge; | struct sge_params sge; | ||||
struct tp_params tp; | struct tp_params tp; /* PF-only */ | ||||
struct vpd_params vpd; | struct vpd_params vpd; | ||||
struct pci_params pci; | struct pci_params pci; | ||||
struct devlog_params devlog; | struct devlog_params devlog; /* PF-only */ | ||||
struct rss_params rss; /* VF-only */ | |||||
struct vf_resources vfres; /* VF-only */ | |||||
unsigned int sf_size; /* serial flash size in bytes */ | unsigned int sf_size; /* serial flash size in bytes */ | ||||
unsigned int sf_nsec; /* # of flash sectors */ | unsigned int sf_nsec; /* # of flash sectors */ | ||||
unsigned int fw_vers; | unsigned int fw_vers; | ||||
unsigned int tp_vers; | unsigned int tp_vers; | ||||
unsigned int exprom_vers; | unsigned int exprom_vers; | ||||
▲ Show 20 Lines • Show All 425 Lines • Show Last 20 Lines |