/* Buffer used by firmware to temporarily store packet to be dropped */ #define PRUETH_SW_DROP_PKT_BUF_SIZE SZ_2K #define PRUETH_EMAC_DROP_PKT_BUF_SIZE PRUETH_SW_DROP_PKT_BUF_SIZE
struct icssg_sr1_config {
__le32 status; /* Firmware status */
__le32 addr_lo; /* MSMC Buffer pool base address low. */
__le32 addr_hi; /* MSMC Buffer pool base address high. Must be 0 */
__le32 tx_buf_sz[16]; /* Array of buffer pool sizes */
__le32 num_tx_threads; /* Number of active egress threads, 1 to 4 */
__le32 tx_rate_lim_en; /* Bitmask: Egress rate limit en per thread */
__le32 rx_flow_id; /* RX flow id for first rx ring */
__le32 rx_mgr_flow_id; /* RX flow id for the first management ring */
__le32 flags; /* TBD */
__le32 n_burst; /* for debug */
__le32 rtu_status; /* RTU status */
__le32 info; /* reserved */
__le32 reserve;
__le32 rand_seed; /* Used for the random number generation at fw */
} __packed;
/* SR1.0 shutdown command to stop processing at firmware. *Commandformat:0x8101ss00,where *-ss:sequencenumber.Currentlynotusedbydriver.
*/ #define ICSSG_SHUTDOWN_CMD_SR1 0x81010000
/* SR1.0 pstate speed/duplex command to set speed and duplex settings *infirmware. *Commandformat:0x8102ssPN,where *-ss:sequencenumber.Currentlynotusedbydriver. *-P:portnumber(forswitchmode). *-N:Speed/Duplexstate: *0x0-10Mbps/Halfduplex; *0x8-10Mbps/Fullduplex; *0x2-100Mbps/Halfduplex; *0xa-100Mbps/Fullduplex; *0xc-1Gbps/Fullduplex; *NOTE:Theabovearethesamevalueasbits[3..1](slice0) *orbits[7..5](slice1)ofRGMIICFGregister.
*/ #define ICSSG_PSTATE_SPEED_DUPLEX_CMD_SR1 0x81020000
/* FDB FID_C2 flag definitions */ /* Indicates host port membership.*/ #define ICSSG_FDB_ENTRY_P0_MEMBERSHIP BIT(0) /* Indicates that MAC ID is connected to physical port 1 */ #define ICSSG_FDB_ENTRY_P1_MEMBERSHIP BIT(1) /* Indicates that MAC ID is connected to physical port 2 */ #define ICSSG_FDB_ENTRY_P2_MEMBERSHIP BIT(2) /* Ageable bit is set for learned entries and cleared for static entries */ #define ICSSG_FDB_ENTRY_AGEABLE BIT(3) /* If set for DA then packet is determined to be a special packet */ #define ICSSG_FDB_ENTRY_BLOCK BIT(4) /* If set for DA then the SA from the packet is not learned */ #define ICSSG_FDB_ENTRY_SECURE BIT(5) /* If set, it means packet has been seen recently with source address + FID *matchingMACaddress/FIDofentry
*/ #define ICSSG_FDB_ENTRY_TOUCHED BIT(6) /* Set if entry is valid */ #define ICSSG_FDB_ENTRY_VALID BIT(7)
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.