Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ice/ice_lan_tx_rx.h
/* SPDX-License-Identifier: BSD-3-Clause */ | /* SPDX-License-Identifier: BSD-3-Clause */ | ||||
/* Copyright (c) 2022, Intel Corporation | /* Copyright (c) 2023, Intel Corporation | ||||
* All rights reserved. | * All rights reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions are met: | * modification, are permitted provided that the following conditions are met: | ||||
* | * | ||||
* 1. Redistributions of source code must retain the above copyright notice, | * 1. Redistributions of source code must retain the above copyright notice, | ||||
* this list of conditions and the following disclaimer. | * this list of conditions and the following disclaimer. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 788 Lines • ▼ Show 20 Lines | |||||
* [1:7]: Timestamp-low value | * [1:7]: Timestamp-low value | ||||
*/ | */ | ||||
#define ICE_RX_FLEX_DESC_TS_L_VALID_S 0x01 | #define ICE_RX_FLEX_DESC_TS_L_VALID_S 0x01 | ||||
#define ICE_RX_FLEX_DESC_TS_L_VALID_M ICE_RX_FLEX_DESC_TS_L_VALID_S | #define ICE_RX_FLEX_DESC_TS_L_VALID_M ICE_RX_FLEX_DESC_TS_L_VALID_S | ||||
#define ICE_RX_FLEX_DESC_TS_L_M 0xFE | #define ICE_RX_FLEX_DESC_TS_L_M 0xFE | ||||
#define ICE_RXQ_CTX_SIZE_DWORDS 8 | #define ICE_RXQ_CTX_SIZE_DWORDS 8 | ||||
#define ICE_RXQ_CTX_SZ (ICE_RXQ_CTX_SIZE_DWORDS * sizeof(u32)) | #define ICE_RXQ_CTX_SZ (ICE_RXQ_CTX_SIZE_DWORDS * sizeof(u32)) | ||||
#define ICE_TXQ_CTX_SIZE_DWORDS 10 | |||||
#define ICE_TXQ_CTX_SZ (ICE_TXQ_CTX_SIZE_DWORDS * sizeof(u32)) | |||||
#define ICE_TX_CMPLTNQ_CTX_SIZE_DWORDS 22 | #define ICE_TX_CMPLTNQ_CTX_SIZE_DWORDS 22 | ||||
#define ICE_TX_DRBELL_Q_CTX_SIZE_DWORDS 5 | #define ICE_TX_DRBELL_Q_CTX_SIZE_DWORDS 5 | ||||
#define GLTCLAN_CQ_CNTX(i, CQ) (GLTCLAN_CQ_CNTX0(CQ) + ((i) * 0x0800)) | #define GLTCLAN_CQ_CNTX(i, CQ) (GLTCLAN_CQ_CNTX0(CQ) + ((i) * 0x0800)) | ||||
/* RLAN Rx queue context data | /* RLAN Rx queue context data | ||||
* | * | ||||
* The sizes of the variables may be larger than needed due to crossing byte | * The sizes of the variables may be larger than needed due to crossing byte | ||||
* boundaries. If we do not have the width of the variable set to the correct | * boundaries. If we do not have the width of the variable set to the correct | ||||
▲ Show 20 Lines • Show All 245 Lines • ▼ Show 20 Lines | #define ICE_TLAN_CTX_VMVF_TYPE_PF 2 | ||||
u8 quanta_prof_idx; | u8 quanta_prof_idx; | ||||
u8 tso_ena; | u8 tso_ena; | ||||
u16 tso_qnum; | u16 tso_qnum; | ||||
u8 legacy_int; | u8 legacy_int; | ||||
u8 drop_ena; | u8 drop_ena; | ||||
u8 cache_prof_idx; | u8 cache_prof_idx; | ||||
u8 pkt_shaper_prof_idx; | u8 pkt_shaper_prof_idx; | ||||
u8 int_q_state; /* width not needed - internal - DO NOT WRITE!!! */ | u8 int_q_state; /* width not needed - internal - DO NOT WRITE!!! */ | ||||
u16 tail; | |||||
}; | }; | ||||
/* LAN Tx Completion Queue data */ | /* LAN Tx Completion Queue data */ | ||||
#pragma pack(1) | #pragma pack(1) | ||||
struct ice_tx_cmpltnq { | struct ice_tx_cmpltnq { | ||||
u16 txq_id; | u16 txq_id; | ||||
u8 generation; | u8 generation; | ||||
u16 tx_head; | u16 tx_head; | ||||
▲ Show 20 Lines • Show All 1,302 Lines • Show Last 20 Lines |