/* * This value cannot be 255, otherwise the loop of the multi-BD communication * case cannot end.
*/ #define HCCS_DIE_MAX_PORT_ID 254
struct hccs_port_info {
u8 port_id;
u8 port_type;
u8 max_lane_num; bool enable; /* if the port is enabled */ struct kobject kobj; bool dir_created; struct hccs_die_info *die; /* point to the die the port is located */
};
struct hccs_die_info {
u8 die_id;
u8 port_num;
u8 min_port_id;
u8 max_port_id; struct hccs_port_info *ports; struct kobject kobj; bool dir_created; struct hccs_chip_info *chip; /* point to the chip the die is located */
};
struct hccs_port_attr {
u8 port_id;
u8 port_type;
u8 max_lane_num;
u8 enable : 1; /* if the port is enabled */
u16 rsv[2];
};
/* * The common command request for getting the information of all HCCS port on * specified DIE.
*/ struct hccs_die_comm_req_param {
u8 chip_id;
u8 die_id; /* id in hardware */
};
/* The common command request for getting the information of a specific port */ struct hccs_port_comm_req_param {
u8 chip_id;
u8 die_id;
u8 port_id;
};
/* * Note: Actual available size of data field also depands on the PCC header * bytes of the specific type. Driver needs to copy the response data in the * communication space based on the real length.
*/ struct hccs_rsp_desc { struct hccs_fw_inner_head fw_inner_head; /* 8 Bytes */ struct hccs_rsp_head rsp_head; /* 4 Bytes */
u32 data[HCCS_MAX_RSP_DATA_SIZE_MAX];
};
/* * Note: Actual available size of data field also depands on the PCC header * bytes of the specific type. Driver needs to copy the request data to the * communication space based on the real length.
*/ struct hccs_req_desc { struct hccs_req_head req_head; /* 4 Bytes */
u32 data[HCCS_MAX_REQ_DATA_SIZE_MAX];
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.