Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | vnic_devcmd_fw_info |
struct | vnic_devcmd_notify |
struct | vnic_devcmd_provinfo |
struct | vnic_devcmd |
Enumerations | |
enum | vnic_devcmd_cmd { CMD_NONE = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_NONE, 0), CMD_MCPU_FW_INFO_OLD = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 1), CMD_MCPU_FW_INFO = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ALL, 1), CMD_DEV_SPEC = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ALL, 2), CMD_STATS_CLEAR = _CMDCNW(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 3), CMD_STATS_DUMP = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 4), CMD_PACKET_FILTER = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 7), CMD_PACKET_FILTER_ALL = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 7), CMD_HANG_NOTIFY = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 8), CMD_GET_MAC_ADDR, CMD_ADDR_ADD, CMD_ADDR_DEL, CMD_VLAN_ADD = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 14), CMD_VLAN_DEL = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 15), CMD_NIC_CFG = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 16), CMD_RSS_KEY = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 17), CMD_RSS_CPU = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 18), CMD_SOFT_RESET = _CMDCNW(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 19), CMD_SOFT_RESET_STATUS = _CMDC(_CMD_DIR_READ, _CMD_VTYPE_ALL, 20), CMD_NOTIFY = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ALL, 21), CMD_UNDI = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 22), CMD_OPEN = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 23), CMD_OPEN_STATUS = _CMDC(_CMD_DIR_READ, _CMD_VTYPE_ALL, 24), CMD_CLOSE = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 25), CMD_INIT_v1 = _CMDCNW(_CMD_DIR_READ, _CMD_VTYPE_ALL, 26), CMD_INIT_PROV_INFO = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 27), CMD_ENABLE = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 28), CMD_ENABLE_WAIT = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 28), CMD_DISABLE = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 29), CMD_STATS_DUMP_ALL = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 30), CMD_INIT_STATUS = _CMDC(_CMD_DIR_READ, _CMD_VTYPE_ALL, 31), CMD_INT13 = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_FC, 32), CMD_LOGICAL_UPLINK = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 33), CMD_DEINIT = _CMDCNW(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 34), CMD_INIT = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 35), CMD_CAPABILITY = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ALL, 36), CMD_PERBI = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_FC, 37), CMD_IAR = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 38), CMD_HANG_RESET = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 39), CMD_HANG_RESET_STATUS = _CMDC(_CMD_DIR_READ, _CMD_VTYPE_ALL, 40), CMD_IG_VLAN_REWRITE_MODE = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ENET, 41), CMD_PROXY_BY_BDF = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ALL, 42), CMD_PROXY_BY_INDEX = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ALL, 43), CMD_CONFIG_INFO_GET = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ALL, 44), CMD_INIT_PROV_INFO2 = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 47), CMD_ENABLE2 = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 48), CMD_STATUS = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ALL, 49), CMD_INTR_COAL_CONVERT = _CMDC(_CMD_DIR_READ, _CMD_VTYPE_ALL, 50), CMD_SET_MAC_ADDR = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 55), CMD_NONE = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_NONE, 0), CMD_MCPU_FW_INFO = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 1), CMD_DEV_SPEC = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ALL, 2), CMD_STATS_CLEAR = _CMDCNW(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 3), CMD_STATS_DUMP = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 4), CMD_PACKET_FILTER = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 7), CMD_HANG_NOTIFY = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 8), CMD_MAC_ADDR, CMD_PROMISC_MODE = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 10), CMD_ALLMULTI_MODE = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 11), CMD_ADDR_ADD, CMD_ADDR_DEL, CMD_VLAN_ADD = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 14), CMD_VLAN_DEL = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 15), CMD_NIC_CFG = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 16), CMD_RSS_KEY = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 17), CMD_RSS_CPU = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 18), CMD_SOFT_RESET = _CMDCNW(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 19), CMD_SOFT_RESET_STATUS = _CMDC(_CMD_DIR_READ, _CMD_VTYPE_ALL, 20), CMD_NOTIFY = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ALL, 21), CMD_UNDI = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 22), CMD_OPEN = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 23), CMD_OPEN_STATUS = _CMDC(_CMD_DIR_READ, _CMD_VTYPE_ALL, 24), CMD_CLOSE = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 25), CMD_INIT = _CMDCNW(_CMD_DIR_READ, _CMD_VTYPE_ALL, 26), CMD_INIT_PROV_INFO = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 27), CMD_ENABLE = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 28), CMD_DISABLE = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 29), CMD_STATS_DUMP_ALL = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 30), CMD_INIT_STATUS = _CMDC(_CMD_DIR_READ, _CMD_VTYPE_ALL, 31), CMD_INT13 = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_FC, 32), CMD_LOGICAL_UPLINK = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 33), CMD_DEINIT = _CMDCNW(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 34) } |
enum | vnic_devcmd_status { STAT_NONE = 0, STAT_BUSY = 1 << 0, STAT_ERROR = 1 << 1, STAT_NONE = 0, STAT_BUSY = 1 << 0, STAT_ERROR = 1 << 1 } |
enum | vnic_devcmd_error { ERR_SUCCESS = 0, ERR_EINVAL = 1, ERR_EFAULT = 2, ERR_EPERM = 3, ERR_EBUSY = 4, ERR_ECMDUNKNOWN = 5, ERR_EBADSTATE = 6, ERR_ENOMEM = 7, ERR_ETIMEDOUT = 8, ERR_ELINKDOWN = 9, ERR_EMAXRES = 10, ERR_ENOTSUPPORTED = 11, ERR_EINPROGRESS = 12, ERR_SUCCESS = 0, ERR_EINVAL = 1, ERR_EFAULT = 2, ERR_EPERM = 3, ERR_EBUSY = 4, ERR_ECMDUNKNOWN = 5, ERR_EBADSTATE = 6, ERR_ENOMEM = 7, ERR_ETIMEDOUT = 8, ERR_ELINKDOWN = 9 } |
#define _CMD_DIR | ( | cmd | ) | (((cmd) >> _CMD_DIRSHIFT) & _CMD_DIRMASK) |
Definition at line 75 of file vnic_devcmd.h.
#define _CMD_DIR_NONE 0U |
Definition at line 41 of file vnic_devcmd.h.
#define _CMD_DIR_READ 2U |
Definition at line 43 of file vnic_devcmd.h.
#define _CMD_DIR_RW (_CMD_DIR_WRITE | _CMD_DIR_READ) |
Definition at line 44 of file vnic_devcmd.h.
#define _CMD_DIR_WRITE 1U |
Definition at line 42 of file vnic_devcmd.h.
#define _CMD_DIRBITS 2 |
Definition at line 26 of file vnic_devcmd.h.
#define _CMD_DIRMASK ((1 << _CMD_DIRBITS)-1) |
Definition at line 31 of file vnic_devcmd.h.
#define _CMD_DIRSHIFT (_CMD_FLAGSSHIFT+_CMD_FLAGSBITS) |
Definition at line 36 of file vnic_devcmd.h.
#define _CMD_FLAGS | ( | cmd | ) | (((cmd) >> _CMD_FLAGSSHIFT) & _CMD_FLAGSMASK) |
Definition at line 76 of file vnic_devcmd.h.
#define _CMD_FLAGS_NONE 0U |
Definition at line 49 of file vnic_devcmd.h.
#define _CMD_FLAGS_NOWAIT 1U |
Definition at line 50 of file vnic_devcmd.h.
#define _CMD_FLAGSBITS 6 |
Definition at line 25 of file vnic_devcmd.h.
#define _CMD_FLAGSMASK ((1 << _CMD_FLAGSBITS)-1) |
Definition at line 30 of file vnic_devcmd.h.
#define _CMD_FLAGSSHIFT (_CMD_VTYPESHIFT+_CMD_VTYPEBITS) |
Definition at line 35 of file vnic_devcmd.h.
#define _CMD_N | ( | cmd | ) | (((cmd) >> _CMD_NSHIFT) & _CMD_NMASK) |
Definition at line 78 of file vnic_devcmd.h.
#define _CMD_NBITS 14 |
Definition at line 23 of file vnic_devcmd.h.
#define _CMD_NMASK ((1 << _CMD_NBITS)-1) |
Definition at line 28 of file vnic_devcmd.h.
#define _CMD_NSHIFT 0 |
Definition at line 33 of file vnic_devcmd.h.
#define _CMD_VTYPE | ( | cmd | ) | (((cmd) >> _CMD_VTYPESHIFT) & _CMD_VTYPEMASK) |
Definition at line 77 of file vnic_devcmd.h.
#define _CMD_VTYPE_ALL (_CMD_VTYPE_ENET | _CMD_VTYPE_FC | _CMD_VTYPE_SCSI) |
Definition at line 59 of file vnic_devcmd.h.
#define _CMD_VTYPE_ENET 1U |
Definition at line 56 of file vnic_devcmd.h.
#define _CMD_VTYPE_FC 2U |
Definition at line 57 of file vnic_devcmd.h.
#define _CMD_VTYPE_NONE 0U |
Definition at line 55 of file vnic_devcmd.h.
#define _CMD_VTYPE_SCSI 4U |
Definition at line 58 of file vnic_devcmd.h.
#define _CMD_VTYPEBITS 10 |
Definition at line 24 of file vnic_devcmd.h.
#define _CMD_VTYPEMASK ((1 << _CMD_VTYPEBITS)-1) |
Definition at line 29 of file vnic_devcmd.h.
#define _CMD_VTYPESHIFT (_CMD_NSHIFT+_CMD_NBITS) |
Definition at line 34 of file vnic_devcmd.h.
Definition at line 69 of file vnic_devcmd.h.
Definition at line 64 of file vnic_devcmd.h.
Definition at line 70 of file vnic_devcmd.h.
#define CMD_ENABLE2_ACTIVE 0x1 |
Definition at line 352 of file vnic_devcmd.h.
#define CMD_INITF_DEFAULT_MAC 0x1 /* init with default mac addr */ |
Definition at line 358 of file vnic_devcmd.h.
#define CMD_OPENF_OPROM 0x1 /* open coming from option rom */ |
Definition at line 355 of file vnic_devcmd.h.
#define CMD_PFILTER_ALL_MULTICAST 0x10 |
Definition at line 365 of file vnic_devcmd.h.
#define CMD_PFILTER_BROADCAST 0x04 |
Definition at line 363 of file vnic_devcmd.h.
#define CMD_PFILTER_DIRECTED 0x01 |
Definition at line 361 of file vnic_devcmd.h.
#define CMD_PFILTER_MULTICAST 0x02 |
Definition at line 362 of file vnic_devcmd.h.
#define CMD_PFILTER_PROMISCUOUS 0x08 |
Definition at line 364 of file vnic_devcmd.h.
#define IG_VLAN_REWRITE_MODE_DEFAULT_TRUNK 0 |
Definition at line 368 of file vnic_devcmd.h.
#define IG_VLAN_REWRITE_MODE_PASS_THRU 3 |
Definition at line 371 of file vnic_devcmd.h.
#define IG_VLAN_REWRITE_MODE_PRIORITY_TAG_DEFAULT_VLAN 2 |
Definition at line 370 of file vnic_devcmd.h.
#define IG_VLAN_REWRITE_MODE_UNTAG_DEFAULT_VLAN 1 |
Definition at line 369 of file vnic_devcmd.h.
#define VNIC_DEVCMD_NARGS 15 |
Definition at line 452 of file vnic_devcmd.h.
#define VNIC_STF_ALL |
Definition at line 427 of file vnic_devcmd.h.
#define VNIC_STF_FATAL_ERR 0x0001 /* fatal fw error */ |
Definition at line 423 of file vnic_devcmd.h.
#define VNIC_STF_PFC_PAUSE 0x0004 /* priority flow control pause on */ |
Definition at line 425 of file vnic_devcmd.h.
#define VNIC_STF_STD_PAUSE 0x0002 /* standard link-level pause on */ |
Definition at line 424 of file vnic_devcmd.h.
enum vnic_devcmd_cmd |
Definition at line 80 of file vnic_devcmd.h.
enum vnic_devcmd_error |
Definition at line 379 of file vnic_devcmd.h.
enum vnic_devcmd_status |
Definition at line 373 of file vnic_devcmd.h.