drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h

Source file repositories/reference/linux-study-clean/drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h

File Facts

System
Linux kernel
Corpus path
drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h
Extension
.h
Size
12861 bytes
Lines
661
Domain
Driver Families
Bucket
drivers/net
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

struct hinic_cap {
	u16     max_qps;
	u16     num_qps;
	u8		max_vf;
	u16     max_vf_qps;
};

enum hw_ioctxt_set_cmdq_depth {
	HW_IOCTXT_SET_CMDQ_DEPTH_DEFAULT,
	HW_IOCTXT_SET_CMDQ_DEPTH_ENABLE,
};

enum hinic_port_cmd {
	HINIC_PORT_CMD_VF_REGISTER = 0x0,
	HINIC_PORT_CMD_VF_UNREGISTER = 0x1,

	HINIC_PORT_CMD_CHANGE_MTU = 0x2,

	HINIC_PORT_CMD_ADD_VLAN = 0x3,
	HINIC_PORT_CMD_DEL_VLAN = 0x4,

	HINIC_PORT_CMD_SET_ETS = 0x7,
	HINIC_PORT_CMD_GET_ETS = 0x8,

	HINIC_PORT_CMD_SET_PFC = 0x5,

	HINIC_PORT_CMD_SET_MAC = 0x9,
	HINIC_PORT_CMD_GET_MAC = 0xA,
	HINIC_PORT_CMD_DEL_MAC = 0xB,

	HINIC_PORT_CMD_SET_RX_MODE = 0xC,

	HINIC_PORT_CMD_SET_ANTI_ATTACK_RATE = 0xD,

	HINIC_PORT_CMD_GET_PAUSE_INFO = 0x14,
	HINIC_PORT_CMD_SET_PAUSE_INFO = 0x15,

	HINIC_PORT_CMD_GET_LINK_STATE = 0x18,

	HINIC_PORT_CMD_SET_LRO = 0x19,

	HINIC_PORT_CMD_SET_RX_CSUM = 0x1A,

	HINIC_PORT_CMD_SET_RX_VLAN_OFFLOAD = 0x1B,

	HINIC_PORT_CMD_GET_PORT_STATISTICS = 0x1C,

	HINIC_PORT_CMD_CLEAR_PORT_STATISTICS = 0x1D,

	HINIC_PORT_CMD_GET_VPORT_STAT = 0x1E,

	HINIC_PORT_CMD_CLEAN_VPORT_STAT	= 0x1F,

	HINIC_PORT_CMD_GET_RSS_TEMPLATE_INDIR_TBL = 0x25,

	HINIC_PORT_CMD_SET_PORT_STATE = 0x29,
	HINIC_PORT_CMD_GET_PORT_STATE = 0x30,

	HINIC_PORT_CMD_SET_RSS_TEMPLATE_TBL = 0x2B,

	HINIC_PORT_CMD_GET_RSS_TEMPLATE_TBL = 0x2C,

	HINIC_PORT_CMD_SET_RSS_HASH_ENGINE = 0x2D,

	HINIC_PORT_CMD_GET_RSS_HASH_ENGINE = 0x2E,

	HINIC_PORT_CMD_GET_RSS_CTX_TBL = 0x2F,

	HINIC_PORT_CMD_SET_RSS_CTX_TBL = 0x30,

	HINIC_PORT_CMD_RSS_TEMP_MGR	= 0x31,

	HINIC_PORT_CMD_RD_LINE_TBL = 0x39,

	HINIC_PORT_CMD_RSS_CFG = 0x42,

	HINIC_PORT_CMD_GET_PHY_TYPE = 0x44,

	HINIC_PORT_CMD_FWCTXT_INIT = 0x45,

	HINIC_PORT_CMD_GET_LOOPBACK_MODE = 0x48,
	HINIC_PORT_CMD_SET_LOOPBACK_MODE = 0x49,

	HINIC_PORT_CMD_GET_JUMBO_FRAME_SIZE = 0x4A,
	HINIC_PORT_CMD_SET_JUMBO_FRAME_SIZE = 0x4B,

	HINIC_PORT_CMD_ENABLE_SPOOFCHK = 0x4E,

	HINIC_PORT_CMD_GET_MGMT_VERSION = 0x58,

Annotation

Implementation Notes