mirror of
git://nv-tegra.nvidia.com/kernel/nvethernetrm.git
synced 2025-12-22 09:12:10 +03:00
nvethernetrm: address review comments
- Convert primitive data type to nv_ type's - Replace debug pr_ prints with OSI_CORE_ print macro's - Add all macsec register macro's with prefix MACSEC_ - Update all osi function header as per 5.2 coding guidelines(PLC) - Remove printk.h header file and use OSI_CORE_ERR macro's in all prints - Implement clean up LUT's in add_upd_sc() and del_upd_sc() Bug 3264523 Change-Id: Ie41097c85fbcb90ce0c4cac470fe0f068ed22247 Signed-off-by: Mahesh Patil <maheshp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/2548476 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com> Reviewed-by: Ashutosh Jha <ajha@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
d4e6ad6ec6
commit
330acf2e3d
@@ -587,43 +587,43 @@ struct osi_xtra_stat_counters {
|
||||
struct osi_macsec_mmc_counters {
|
||||
/** This counter provides the number of controller port macsec
|
||||
* untaged packets */
|
||||
unsigned long long rx_pkts_no_tag;
|
||||
nveul64_t rx_pkts_no_tag;
|
||||
/** This counter provides the number of controller port macsec
|
||||
* untaged packets validateFrame != strict */
|
||||
unsigned long long rx_pkts_untagged;
|
||||
nveul64_t rx_pkts_untagged;
|
||||
/** This counter provides the number of invalid tag or icv packets */
|
||||
unsigned long long rx_pkts_bad_tag;
|
||||
nveul64_t rx_pkts_bad_tag;
|
||||
/** This counter provides the number of no sc lookup hit or sc match
|
||||
* packets */
|
||||
unsigned long long rx_pkts_no_sa_err;
|
||||
nveul64_t rx_pkts_no_sa_err;
|
||||
/** This counter provides the number of no sc lookup hit or sc match
|
||||
* packets validateFrame != strict */
|
||||
unsigned long long rx_pkts_no_sa;
|
||||
nveul64_t rx_pkts_no_sa;
|
||||
/** This counter provides the number of late packets
|
||||
*received PN < lowest PN */
|
||||
unsigned long long rx_pkts_late[OSI_MACSEC_SC_INDEX_MAX];
|
||||
nveul64_t rx_pkts_late[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of overrun packets */
|
||||
unsigned long long rx_pkts_overrun;
|
||||
nveul64_t rx_pkts_overrun;
|
||||
/** This counter provides the number of octets after IVC passing */
|
||||
unsigned long long rx_octets_validated;
|
||||
nveul64_t rx_octets_validated;
|
||||
/** This counter provides the number not valid packets */
|
||||
unsigned long long rx_pkts_not_valid[OSI_MACSEC_SC_INDEX_MAX];
|
||||
nveul64_t rx_pkts_not_valid[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of invalid packets */
|
||||
unsigned long long in_pkts_invalid[OSI_MACSEC_SC_INDEX_MAX];
|
||||
nveul64_t in_pkts_invalid[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of in packet delayed */
|
||||
unsigned long long rx_pkts_delayed[OSI_MACSEC_SC_INDEX_MAX];
|
||||
nveul64_t rx_pkts_delayed[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of in packets un checked */
|
||||
unsigned long long rx_pkts_unchecked[OSI_MACSEC_SC_INDEX_MAX];
|
||||
nveul64_t rx_pkts_unchecked[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of in packets ok */
|
||||
unsigned long long rx_pkts_ok[OSI_MACSEC_SC_INDEX_MAX];
|
||||
nveul64_t rx_pkts_ok[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of out packets untaged */
|
||||
unsigned long long tx_pkts_untaged;
|
||||
nveul64_t tx_pkts_untaged;
|
||||
/** This counter provides the number of out too long */
|
||||
unsigned long long tx_pkts_too_long;
|
||||
nveul64_t tx_pkts_too_long;
|
||||
/** This counter provides the number of out packets protected */
|
||||
unsigned long long tx_pkts_protected[OSI_MACSEC_SC_INDEX_MAX];
|
||||
nveul64_t tx_pkts_protected[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of out octets protected */
|
||||
unsigned long long tx_octets_protected;
|
||||
nveul64_t tx_octets_protected;
|
||||
};
|
||||
#endif /* MACSEC_SUPPORT */
|
||||
#endif /* INCLUDED_MMC_H */
|
||||
@@ -986,7 +986,7 @@ struct osd_core_ops {
|
||||
nveu32_t len);
|
||||
#ifdef MACSEC_SUPPORT
|
||||
/** Program macsec key table through Trust Zone callback */
|
||||
int (*macsec_tz_kt_config)(void *priv, unsigned char cmd,
|
||||
nve32_t (*macsec_tz_kt_config)(void *priv, unsigned char cmd,
|
||||
void *const kt_config,
|
||||
void *const genl_info);
|
||||
#endif /* MACSEC_SUPPORT */
|
||||
@@ -998,43 +998,43 @@ struct osd_core_ops {
|
||||
*/
|
||||
struct osi_macsec_irq_stats {
|
||||
/** Tx debug buffer capture done */
|
||||
unsigned long tx_dbg_capture_done;
|
||||
nveu64_t tx_dbg_capture_done;
|
||||
/** Tx MTU check failed */
|
||||
unsigned long tx_mtu_check_fail;
|
||||
nveu64_t tx_mtu_check_fail;
|
||||
/** Tx MAC CRC err */
|
||||
unsigned long tx_mac_crc_error;
|
||||
nveu64_t tx_mac_crc_error;
|
||||
/** Tx SC AN not valid */
|
||||
unsigned long tx_sc_an_not_valid;
|
||||
nveu64_t tx_sc_an_not_valid;
|
||||
/** Tx AES GCM buffer overflow */
|
||||
unsigned long tx_aes_gcm_buf_ovf;
|
||||
nveu64_t tx_aes_gcm_buf_ovf;
|
||||
/** Tx LUT lookup miss */
|
||||
unsigned long tx_lkup_miss;
|
||||
nveu64_t tx_lkup_miss;
|
||||
/** Tx uninitialized key slot */
|
||||
unsigned long tx_uninit_key_slot;
|
||||
nveu64_t tx_uninit_key_slot;
|
||||
/** Tx PN threshold reached */
|
||||
unsigned long tx_pn_threshold;
|
||||
nveu64_t tx_pn_threshold;
|
||||
/** Tx PN exhausted */
|
||||
unsigned long tx_pn_exhausted;
|
||||
nveu64_t tx_pn_exhausted;
|
||||
/** Tx debug buffer capture done */
|
||||
unsigned long rx_dbg_capture_done;
|
||||
nveu64_t rx_dbg_capture_done;
|
||||
/** Rx ICV error threshold */
|
||||
unsigned long rx_icv_err_threshold;
|
||||
nveu64_t rx_icv_err_threshold;
|
||||
/** Rx replay error */
|
||||
unsigned long rx_replay_error;
|
||||
nveu64_t rx_replay_error;
|
||||
/** Rx MTU check failed */
|
||||
unsigned long rx_mtu_check_fail;
|
||||
nveu64_t rx_mtu_check_fail;
|
||||
/** Rx MAC CRC err */
|
||||
unsigned long rx_mac_crc_error;
|
||||
nveu64_t rx_mac_crc_error;
|
||||
/** Rx AES GCM buffer overflow */
|
||||
unsigned long rx_aes_gcm_buf_ovf;
|
||||
nveu64_t rx_aes_gcm_buf_ovf;
|
||||
/** Rx LUT lookup miss */
|
||||
unsigned long rx_lkup_miss;
|
||||
nveu64_t rx_lkup_miss;
|
||||
/** Rx uninitialized key slot */
|
||||
unsigned long rx_uninit_key_slot;
|
||||
nveu64_t rx_uninit_key_slot;
|
||||
/** Rx PN exhausted */
|
||||
unsigned long rx_pn_exhausted;
|
||||
nveu64_t rx_pn_exhausted;
|
||||
/** Secure reg violation */
|
||||
unsigned long secure_reg_viol;
|
||||
nveu64_t secure_reg_viol;
|
||||
};
|
||||
#endif /* MACSEC_SUPPORT */
|
||||
|
||||
@@ -1144,7 +1144,7 @@ struct osi_core_priv_data {
|
||||
/** Memory mapped base address of MACsec TZ page */
|
||||
void *tz_base;
|
||||
/** Address of MACsec HW operations structure */
|
||||
struct macsec_core_ops *macsec_ops;
|
||||
struct osi_macsec_core_ops *macsec_ops;
|
||||
/** Instance of macsec interrupt stats structure */
|
||||
struct osi_macsec_irq_stats macsec_irq_stats;
|
||||
/** Instance of macsec HW controller Tx/Rx LUT status */
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -35,6 +35,10 @@
|
||||
typedef unsigned int my_uint32_t;
|
||||
/** intermediate type for int */
|
||||
typedef int my_int32_t;
|
||||
/** intermediate type for unsigned short */
|
||||
typedef unsigned short my_uint16_t;
|
||||
/** intermediate type for short */
|
||||
typedef short my_int16_t;
|
||||
/** intermediate type for char */
|
||||
typedef char my_int8_t;
|
||||
/** intermediate type for unsigned char */
|
||||
@@ -49,6 +53,10 @@ typedef unsigned long my_uint64_t;
|
||||
typedef my_uint32_t nveu32_t;
|
||||
/** typedef equivalent to int */
|
||||
typedef my_int32_t nve32_t;
|
||||
/** typedef equivalent to unsigned short */
|
||||
typedef my_uint16_t nveu16_t;
|
||||
/** typedef equivalent to short */
|
||||
typedef my_int16_t nve16_t;
|
||||
/** typedef equivalent to char */
|
||||
typedef my_int8_t nve8_t;
|
||||
/** typedef equivalent to unsigned char */
|
||||
|
||||
@@ -516,7 +516,7 @@ static int ivc_macsec_init(struct osi_core_priv_data *const osi_core)
|
||||
*/
|
||||
void ivc_init_macsec_ops(void *macsecops)
|
||||
{
|
||||
struct macsec_core_ops *ops = (struct macsec_core_ops *) macsecops;
|
||||
struct osi_macsec_core_ops *ops = (struct osi_macsec_core_ops *) macsecops;
|
||||
|
||||
ops->init = ivc_macsec_init;
|
||||
ops->deinit = ivc_macsec_deinit;
|
||||
|
||||
2084
osi/core/macsec.c
2084
osi/core/macsec.c
File diff suppressed because it is too large
Load Diff
@@ -29,115 +29,114 @@
|
||||
* @brief MACsec controller register offsets
|
||||
* @{
|
||||
*/
|
||||
#define GCM_KEYTABLE_CONFIG 0x0000
|
||||
#define GCM_KEYTABLE_DATA(x) (0x0004 + (x * 4))
|
||||
#define RX_ICV_ERR_CNTRL 0x4000
|
||||
#define INTERRUPT_COMMON_SR 0x4004
|
||||
#define TX_IMR 0x4008
|
||||
#define TX_ISR 0x400C
|
||||
#define RX_IMR 0x4048
|
||||
#define RX_ISR 0x404C
|
||||
#define INTERRUPT_MASK1_0 0x40A0
|
||||
#define TX_SC_PN_THRESHOLD_STATUS0_0 0x4018
|
||||
#define TX_SC_PN_THRESHOLD_STATUS1_0 0x401C
|
||||
#define TX_SC_PN_EXHAUSTED_STATUS0_0 0x4024
|
||||
#define TX_SC_PN_EXHAUSTED_STATUS1_0 0x4028
|
||||
#define TX_SC_ERROR_INTERRUPT_STATUS_0 0x402C
|
||||
#define RX_SC_PN_EXHAUSTED_STATUS0_0 0x405C
|
||||
#define RX_SC_PN_EXHAUSTED_STATUS1_0 0x4060
|
||||
#define RX_SC_REPLAY_ERROR_STATUS0_0 0x4090
|
||||
#define RX_SC_REPLAY_ERROR_STATUS1_0 0x4094
|
||||
#define STATS_CONFIG 0x9000
|
||||
#define STATS_CONTROL_0 0x900C
|
||||
#define TX_PKTS_UNTG_LO_0 0x9010
|
||||
#define TX_PKTS_UNTG_HI_0 0x9014
|
||||
#define TX_OCTETS_PRTCTD_LO_0 0x9018
|
||||
#define TX_OCTETS_PRTCTD_HI_0 0x901C
|
||||
#define TX_PKTS_TOO_LONG_LO_0 0x9020
|
||||
#define TX_PKTS_TOO_LONG_HI_0 0x9024
|
||||
#define TX_PKTS_PROTECTED_SCx_LO_0(x) (0x9028 + (x * 8))
|
||||
#define TX_PKTS_PROTECTED_SCx_HI_0(x) (0x902C + (x * 8))
|
||||
#define RX_PKTS_NOTG_LO_0 0x90B0
|
||||
#define RX_PKTS_NOTG_HI_0 0x90B4
|
||||
#define RX_PKTS_UNTG_LO_0 0x90A8
|
||||
#define RX_PKTS_UNTG_HI_0 0x90AC
|
||||
#define RX_PKTS_BADTAG_LO_0 0x90B8
|
||||
#define RX_PKTS_BADTAG_HI_0 0x90BC
|
||||
#define RX_PKTS_NOSA_LO_0 0x90C0
|
||||
#define RX_PKTS_NOSA_HI_0 0x90C4
|
||||
#define RX_PKTS_NOSAERROR_LO_0 0x90C8
|
||||
#define RX_PKTS_NOSAERROR_HI_0 0x90CC
|
||||
#define RX_PKTS_OVRRUN_LO_0 0x90D0
|
||||
#define RX_PKTS_OVRRUN_HI_0 0x90D4
|
||||
#define RX_OCTETS_VLDTD_LO_0 0x90D8
|
||||
#define RX_OCTETS_VLDTD_HI_0 0x90DC
|
||||
#define RX_PKTS_LATE_SCx_LO_0(x) (0x90E0 + (x * 8))
|
||||
#define RX_PKTS_LATE_SCx_HI_0(x) (0x90E4 + (x * 8))
|
||||
#define RX_PKTS_NOTVALID_SCx_LO_0(x) (0x9160 + (x * 8))
|
||||
#define RX_PKTS_NOTVALID_SCx_HI_0(x) (0x9164 + (x * 8))
|
||||
#define RX_PKTS_OK_SCx_LO_0(x) (0x91E0 + (x * 8))
|
||||
#define RX_PKTS_OK_SCx_HI_0(x) (0x91E4 + (x * 8))
|
||||
#define MASCEC_GCM_KEYTABLE_CONFIG 0x0000
|
||||
#define MACSEC_GCM_KEYTABLE_DATA(x) (0x0004 + (x * 4))
|
||||
#define MACSEC_RX_ICV_ERR_CNTRL 0x4000
|
||||
#define MACSEC_INTERRUPT_COMMON_SR 0x4004
|
||||
#define MACSEC_TX_IMR 0x4008
|
||||
#define MACSEC_TX_ISR 0x400C
|
||||
#define MACSEC_RX_IMR 0x4048
|
||||
#define MACSEC_RX_ISR 0x404C
|
||||
#define MACSEC_INTERRUPT_MASK1_0 0x40A0
|
||||
#define MACSEC_TX_SC_PN_THRESHOLD_STATUS0_0 0x4018
|
||||
#define MACSEC_TX_SC_PN_THRESHOLD_STATUS1_0 0x401C
|
||||
#define MACSEC_TX_SC_PN_EXHAUSTED_STATUS0_0 0x4024
|
||||
#define MACSEC_TX_SC_PN_EXHAUSTED_STATUS1_0 0x4028
|
||||
#define MACSEC_TX_SC_ERROR_INTERRUPT_STATUS_0 0x402C
|
||||
#define MACSEC_RX_SC_PN_EXHAUSTED_STATUS0_0 0x405C
|
||||
#define MACSEC_RX_SC_PN_EXHAUSTED_STATUS1_0 0x4060
|
||||
#define MACSEC_RX_SC_REPLAY_ERROR_STATUS0_0 0x4090
|
||||
#define MACSEC_RX_SC_REPLAY_ERROR_STATUS1_0 0x4094
|
||||
#define MACSEC_STATS_CONFIG 0x9000
|
||||
#define MACSEC_STATS_CONTROL_0 0x900C
|
||||
#define MACSEC_TX_PKTS_UNTG_LO_0 0x9010
|
||||
#define MACSEC_TX_PKTS_UNTG_HI_0 0x9014
|
||||
#define MACSEC_TX_OCTETS_PRTCTD_LO_0 0x9018
|
||||
#define MACSEC_TX_OCTETS_PRTCTD_HI_0 0x901C
|
||||
#define MACSEC_TX_PKTS_TOO_LONG_LO_0 0x9020
|
||||
#define MACSEC_TX_PKTS_TOO_LONG_HI_0 0x9024
|
||||
#define MACSEC_TX_PKTS_PROTECTED_SCx_LO_0(x) (0x9028 + (x * 8))
|
||||
#define MACSEC_TX_PKTS_PROTECTED_SCx_HI_0(x) (0x902C + (x * 8))
|
||||
#define MACSEC_RX_PKTS_NOTG_LO_0 0x90B0
|
||||
#define MACSEC_RX_PKTS_NOTG_HI_0 0x90B4
|
||||
#define MACSEC_RX_PKTS_UNTG_LO_0 0x90A8
|
||||
#define MACSEC_RX_PKTS_UNTG_HI_0 0x90AC
|
||||
#define MACSEC_RX_PKTS_BADTAG_LO_0 0x90B8
|
||||
#define MACSEC_RX_PKTS_BADTAG_HI_0 0x90BC
|
||||
#define MACSEC_RX_PKTS_NOSA_LO_0 0x90C0
|
||||
#define MACSEC_RX_PKTS_NOSA_HI_0 0x90C4
|
||||
#define MACSEC_RX_PKTS_NOSAERROR_LO_0 0x90C8
|
||||
#define MACSEC_RX_PKTS_NOSAERROR_HI_0 0x90CC
|
||||
#define MACSEC_RX_PKTS_OVRRUN_LO_0 0x90D0
|
||||
#define MACSEC_RX_PKTS_OVRRUN_HI_0 0x90D4
|
||||
#define MACSEC_RX_OCTETS_VLDTD_LO_0 0x90D8
|
||||
#define MACSEC_RX_OCTETS_VLDTD_HI_0 0x90DC
|
||||
#define MACSEC_RX_PKTS_LATE_SCx_LO_0(x) (0x90E0 + (x * 8))
|
||||
#define MACSEC_RX_PKTS_LATE_SCx_HI_0(x) (0x90E4 + (x * 8))
|
||||
#define MACSEC_RX_PKTS_NOTVALID_SCx_LO_0(x) (0x9160 + (x * 8))
|
||||
#define MACSEC_RX_PKTS_NOTVALID_SCx_HI_0(x) (0x9164 + (x * 8))
|
||||
#define MACSEC_RX_PKTS_OK_SCx_LO_0(x) (0x91E0 + (x * 8))
|
||||
#define MACSEC_RX_PKTS_OK_SCx_HI_0(x) (0x91E4 + (x * 8))
|
||||
|
||||
#define TX_INPKTS_CRCIN_NOTVALID_LO_0 0x9260
|
||||
#define TX_INPKTS_CRCIN_NOTVALID_HI_0 0x9264
|
||||
#define RX_INPKTS_CRCIN_NOTVALID_LO_0 0x9268
|
||||
#define RX_INPKTS_CRCIN_NOTVALID_HI_0 0x926C
|
||||
#define MACSEC_TX_INPKTS_CRCIN_NOTVALID_LO_0 0x9260
|
||||
#define MACSEC_TX_INPKTS_CRCIN_NOTVALID_HI_0 0x9264
|
||||
#define MACSEC_RX_INPKTS_CRCIN_NOTVALID_LO_0 0x9268
|
||||
#define MACSEC_RX_INPKTS_CRCIN_NOTVALID_HI_0 0x926C
|
||||
|
||||
#define MACSEC_CONTROL0 0xD000
|
||||
#define MACSEC_LUT_CONFIG 0xD004
|
||||
#define MACSEC_LUT_DATA(x) (0xD008 + (x * 4))
|
||||
#define TX_BYP_LUT_VALID 0xD024
|
||||
#define TX_SCI_LUT_VALID 0xD028
|
||||
#define RX_BYP_LUT_VALID 0xD02C
|
||||
#define RX_SCI_LUT_VALID 0xD030
|
||||
#define MACSEC_TX_BYP_LUT_VALID 0xD024
|
||||
#define MACSEC_TX_SCI_LUT_VALID 0xD028
|
||||
#define MACSEC_RX_BYP_LUT_VALID 0xD02C
|
||||
#define MACSEC_RX_SCI_LUT_VALID 0xD030
|
||||
|
||||
#define COMMON_IMR 0xD054
|
||||
#define COMMON_ISR 0xD058
|
||||
#define TX_SC_KEY_INVALID_STS0_0 0xD064
|
||||
#define TX_SC_KEY_INVALID_STS1_0 0xD068
|
||||
#define RX_SC_KEY_INVALID_STS0_0 0xD080
|
||||
#define RX_SC_KEY_INVALID_STS1_0 0xD084
|
||||
#define MACSEC_COMMON_IMR 0xD054
|
||||
#define MACSEC_COMMON_ISR 0xD058
|
||||
#define MACSEC_TX_SC_KEY_INVALID_STS0_0 0xD064
|
||||
#define MACSEC_TX_SC_KEY_INVALID_STS1_0 0xD068
|
||||
#define MACSEC_RX_SC_KEY_INVALID_STS0_0 0xD080
|
||||
#define MACSEC_RX_SC_KEY_INVALID_STS1_0 0xD084
|
||||
|
||||
#define TX_DEBUG_CONTROL_0 0xD098
|
||||
#define TX_DEBUG_TRIGGER_EN_0 0xD09C
|
||||
#define TX_DEBUG_STATUS_0 0xD0C4
|
||||
#define DEBUG_BUF_CONFIG_0 0xD0C8
|
||||
#define DEBUG_BUF_DATA_0(x) (0xD0CC + (x * 4))
|
||||
#define RX_DEBUG_CONTROL_0 0xD0DC
|
||||
#define RX_DEBUG_TRIGGER_EN_0 0xD0E0
|
||||
#define RX_DEBUG_STATUS_0 0xD0F8
|
||||
#define MACSEC_TX_DEBUG_CONTROL_0 0xD098
|
||||
#define MACSEC_TX_DEBUG_TRIGGER_EN_0 0xD09C
|
||||
#define MACSEC_TX_DEBUG_STATUS_0 0xD0C4
|
||||
#define MACSEC_DEBUG_BUF_CONFIG_0 0xD0C8
|
||||
#define MACSEC_DEBUG_BUF_DATA_0(x) (0xD0CC + (x * 4))
|
||||
#define MACSEC_RX_DEBUG_CONTROL_0 0xD0DC
|
||||
#define MACSEC_RX_DEBUG_TRIGGER_EN_0 0xD0E0
|
||||
#define MACSEC_RX_DEBUG_STATUS_0 0xD0F8
|
||||
|
||||
#define MACSEC_CONTROL1 0xE000
|
||||
#define GCM_AES_CONTROL_0 0xE004
|
||||
#define TX_MTU_LEN 0xE008
|
||||
#define TX_SOT_DELAY 0xE010
|
||||
#define RX_MTU_LEN 0xE014
|
||||
#define RX_SOT_DELAY 0xE01C
|
||||
#define MACSEC_GCM_AES_CONTROL_0 0xE004
|
||||
#define MACSEC_TX_MTU_LEN 0xE008
|
||||
#define MACSEC_TX_SOT_DELAY 0xE010
|
||||
#define MACSEC_RX_MTU_LEN 0xE014
|
||||
#define MACSEC_RX_SOT_DELAY 0xE01C
|
||||
#define MACSEC_TX_DVLAN_CONTROL_0 0xE00C
|
||||
#define MACSEC_RX_DVLAN_CONTROL_0 0xE018
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup GCM_KEYTABLE_CONFIG register
|
||||
* @addtogroup MACSEC_GCM_KEYTABLE_CONFIG register
|
||||
*
|
||||
* @brief Bit definitions of GCM_KEYTABLE_CONFIG register
|
||||
* @brief Bit definitions of MACSEC_GCM_KEYTABLE_CONFIG register
|
||||
* @{
|
||||
*/
|
||||
#define KT_CONFIG_UPDATE OSI_BIT(31)
|
||||
#define KT_CONFIG_CTLR_SEL OSI_BIT(25)
|
||||
#define KT_CONFIG_RW OSI_BIT(24)
|
||||
#define KT_CONFIG_INDEX_MASK (OSI_BIT(4) | OSI_BIT(3) | OSI_BIT(2) |\
|
||||
#define MACSEC_KT_CONFIG_UPDATE OSI_BIT(31)
|
||||
#define MACSEC_KT_CONFIG_CTLR_SEL OSI_BIT(25)
|
||||
#define MACSEC_KT_CONFIG_RW OSI_BIT(24)
|
||||
#define MACSEC_KT_CONFIG_INDEX_MASK (OSI_BIT(4) | OSI_BIT(3) | OSI_BIT(2) |\
|
||||
OSI_BIT(1) | OSI_BIT(0))
|
||||
#define KT_ENTRY_VALID OSI_BIT(0)
|
||||
#define MACSEC_KT_ENTRY_VALID OSI_BIT(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup GCM_KEYTABLE_DATA registers
|
||||
* @addtogroup MACSEC_GCM_KEYTABLE_DATA registers
|
||||
*
|
||||
* @brief Bit definitions of GCM_KEYTABLE_DATA register & helpful macros
|
||||
* @brief Bit definitions of MACSEC_GCM_KEYTABLE_DATA register & helpful macros
|
||||
* @{
|
||||
*/
|
||||
#define KT_ENTRY_VALID OSI_BIT(0)
|
||||
#define MACSEC_KT_DATA_REG_CNT 13
|
||||
#define MACSEC_KT_DATA_REG_SAK_CNT 8
|
||||
#define MACSEC_KT_DATA_REG_H_CNT 4
|
||||
@@ -149,13 +148,13 @@
|
||||
* @brief Bit definitions of MACSEC_LUT_CONFIG register
|
||||
* @{
|
||||
*/
|
||||
#define LUT_CONFIG_UPDATE OSI_BIT(31)
|
||||
#define LUT_CONFIG_CTLR_SEL OSI_BIT(25)
|
||||
#define LUT_CONFIG_RW OSI_BIT(24)
|
||||
#define LUT_CONFIG_LUT_SEL_MASK (OSI_BIT(18) | OSI_BIT(17) |\
|
||||
#define MACSEC_LUT_CONFIG_UPDATE OSI_BIT(31)
|
||||
#define MACSEC_LUT_CONFIG_CTLR_SEL OSI_BIT(25)
|
||||
#define MACSEC_LUT_CONFIG_RW OSI_BIT(24)
|
||||
#define MACSEC_LUT_CONFIG_LUT_SEL_MASK (OSI_BIT(18) | OSI_BIT(17) |\
|
||||
OSI_BIT(16))
|
||||
#define LUT_CONFIG_LUT_SEL_SHIFT 16
|
||||
#define LUT_CONFIG_INDEX_MASK (OSI_BIT(4) | OSI_BIT(3) | OSI_BIT(2) |\
|
||||
#define MACSEC_LUT_CONFIG_LUT_SEL_SHIFT 16
|
||||
#define MACSEC_LUT_CONFIG_INDEX_MASK (OSI_BIT(4) | OSI_BIT(3) | OSI_BIT(2) |\
|
||||
OSI_BIT(1) | OSI_BIT(0))
|
||||
/** @} */
|
||||
/**
|
||||
@@ -164,9 +163,9 @@
|
||||
* @brief Bit definitions of MACSEC_INTERRUPT_COMMON_STATUS register
|
||||
* @{
|
||||
*/
|
||||
#define COMMON_SR_SFTY_ERR OSI_BIT(2)
|
||||
#define COMMON_SR_RX OSI_BIT(1)
|
||||
#define COMMON_SR_TX OSI_BIT(0)
|
||||
#define MACSEC_COMMON_SR_SFTY_ERR OSI_BIT(2)
|
||||
#define MACSEC_COMMON_SR_RX OSI_BIT(1)
|
||||
#define MACSEC_COMMON_SR_TX OSI_BIT(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
@@ -175,17 +174,17 @@
|
||||
* @brief Bit definitions of MACSEC_CONTROL0 register
|
||||
* @{
|
||||
*/
|
||||
#define TX_LKUP_MISS_NS_INTR OSI_BIT(24)
|
||||
#define RX_LKUP_MISS_NS_INTR OSI_BIT(23)
|
||||
#define VALIDATE_FRAMES_MASK (OSI_BIT(22) | OSI_BIT(21))
|
||||
#define VALIDATE_FRAMES_DIS 0x0
|
||||
#define VALIDATE_FRAMES_STRICT OSI_BIT(22)
|
||||
#define VALIDATE_FRAMES_CHECK OSI_BIT(21)
|
||||
#define RX_REPLAY_PROT_EN OSI_BIT(20)
|
||||
#define RX_LKUP_MISS_BYPASS OSI_BIT(19)
|
||||
#define RX_EN OSI_BIT(16)
|
||||
#define TX_LKUP_MISS_BYPASS OSI_BIT(3)
|
||||
#define TX_EN OSI_BIT(0)
|
||||
#define MACSEC_TX_LKUP_MISS_NS_INTR OSI_BIT(24)
|
||||
#define MACSEC_RX_LKUP_MISS_NS_INTR OSI_BIT(23)
|
||||
#define MACSEC_VALIDATE_FRAMES_MASK (OSI_BIT(22) | OSI_BIT(21))
|
||||
#define MACSEC_VALIDATE_FRAMES_DIS 0x0
|
||||
#define MACSEC_VALIDATE_FRAMES_STRICT OSI_BIT(22)
|
||||
#define MACSEC_VALIDATE_FRAMES_CHECK OSI_BIT(21)
|
||||
#define MACSEC_RX_REPLAY_PROT_EN OSI_BIT(20)
|
||||
#define MACSEC_RX_LKUP_MISS_BYPASS OSI_BIT(19)
|
||||
#define MACSEC_RX_EN OSI_BIT(16)
|
||||
#define MACSEC_TX_LKUP_MISS_BYPASS OSI_BIT(3)
|
||||
#define MACSEC_TX_EN OSI_BIT(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
@@ -194,255 +193,236 @@
|
||||
* @brief Bit definitions of MACSEC_CONTROL1 register
|
||||
* @{
|
||||
*/
|
||||
#define LOOPBACK_MODE_EN OSI_BIT(31)
|
||||
#define RX_MTU_CHECK_EN OSI_BIT(16)
|
||||
#define TX_LUT_PRIO_BYP OSI_BIT(2)
|
||||
#define TX_MTU_CHECK_EN OSI_BIT(0)
|
||||
#define MACSEC_LOOPBACK_MODE_EN OSI_BIT(31)
|
||||
#define MACSEC_RX_MTU_CHECK_EN OSI_BIT(16)
|
||||
#define MACSEC_TX_LUT_PRIO_BYP OSI_BIT(2)
|
||||
#define MACSEC_TX_MTU_CHECK_EN OSI_BIT(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup GCM_AES_CONTROL_0 register
|
||||
* @addtogroup MACSEC_GCM_AES_CONTROL_0 register
|
||||
*
|
||||
* @brief Bit definitions of GCM_AES_CONTROL_0 register
|
||||
* @brief Bit definitions of MACSEC_GCM_AES_CONTROL_0 register
|
||||
* @{
|
||||
*/
|
||||
#define RX_AES_MODE_MASK (OSI_BIT(17) | OSI_BIT(16))
|
||||
#define RX_AES_MODE_AES128 0x0
|
||||
#define RX_AES_MODE_AES256 OSI_BIT(17)
|
||||
#define TX_AES_MODE_MASK (OSI_BIT(1) | OSI_BIT(0))
|
||||
#define TX_AES_MODE_AES128 0x0
|
||||
#define TX_AES_MODE_AES256 OSI_BIT(1)
|
||||
#define MACSEC_RX_AES_MODE_MASK (OSI_BIT(17) | OSI_BIT(16))
|
||||
#define MACSEC_RX_AES_MODE_AES128 0x0
|
||||
#define MACSEC_RX_AES_MODE_AES256 OSI_BIT(17)
|
||||
#define MACSEC_TX_AES_MODE_MASK (OSI_BIT(1) | OSI_BIT(0))
|
||||
#define MACSEC_TX_AES_MODE_AES128 0x0
|
||||
#define MACSEC_TX_AES_MODE_AES256 OSI_BIT(1)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup COMMON_IMR register
|
||||
* @addtogroup MACSEC_COMMON_IMR register
|
||||
*
|
||||
* @brief Bit definitions of MACSEC_INTERRUPT_MASK register
|
||||
* @{
|
||||
*/
|
||||
#define SECURE_REG_VIOL_INT_EN OSI_BIT(31)
|
||||
#define RX_UNINIT_KEY_SLOT_INT_EN OSI_BIT(17)
|
||||
#define RX_LKUP_MISS_INT_EN OSI_BIT(16)
|
||||
#define TX_UNINIT_KEY_SLOT_INT_EN OSI_BIT(1)
|
||||
#define TX_LKUP_MISS_INT_EN OSI_BIT(0)
|
||||
#define MACSEC_SECURE_REG_VIOL_INT_EN OSI_BIT(31)
|
||||
#define MACSEC_RX_UNINIT_KEY_SLOT_INT_EN OSI_BIT(17)
|
||||
#define MACSEC_RX_LKUP_MISS_INT_EN OSI_BIT(16)
|
||||
#define MACSEC_TX_UNINIT_KEY_SLOT_INT_EN OSI_BIT(1)
|
||||
#define MACSEC_TX_LKUP_MISS_INT_EN OSI_BIT(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup TX_IMR register
|
||||
* @addtogroup MACSEC_TX_IMR register
|
||||
*
|
||||
* @brief Bit definitions of TX_INTERRUPT_MASK register
|
||||
* @{
|
||||
*/
|
||||
#define TX_DBG_BUF_CAPTURE_DONE_INT_EN OSI_BIT(22)
|
||||
#define TX_MTU_CHECK_FAIL_INT_EN OSI_BIT(19)
|
||||
#define TX_AES_GCM_BUF_OVF_INT_EN OSI_BIT(18)
|
||||
#define TX_SC_AN_NOT_VALID_INT_EN OSI_BIT(17)
|
||||
#define TX_MAC_CRC_ERROR_INT_EN OSI_BIT(16)
|
||||
#define TX_PN_EXHAUSTED_INT_EN OSI_BIT(1)
|
||||
#define TX_PN_THRSHLD_RCHD_INT_EN OSI_BIT(0)
|
||||
#define MACSEC_TX_DBG_BUF_CAPTURE_DONE_INT_EN OSI_BIT(22)
|
||||
#define MACSEC_TX_MTU_CHECK_FAIL_INT_EN OSI_BIT(19)
|
||||
#define MACSEC_TX_AES_GCM_BUF_OVF_INT_EN OSI_BIT(18)
|
||||
#define MACSEC_TX_SC_AN_NOT_VALID_INT_EN OSI_BIT(17)
|
||||
#define MACSEC_TX_MAC_CRC_ERROR_INT_EN OSI_BIT(16)
|
||||
#define MACSEC_TX_PN_EXHAUSTED_INT_EN OSI_BIT(1)
|
||||
#define MACSEC_TX_PN_THRSHLD_RCHD_INT_EN OSI_BIT(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup RX_IMR register
|
||||
* @addtogroup MACSEC_RX_IMR register
|
||||
*
|
||||
* @brief Bit definitions of RX_INTERRUPT_MASK register
|
||||
* @{
|
||||
*/
|
||||
#define RX_DBG_BUF_CAPTURE_DONE_INT_EN OSI_BIT(22)
|
||||
#define RX_ICV_ERROR_INT_EN OSI_BIT(21)
|
||||
#define MACSEC_RX_DBG_BUF_CAPTURE_DONE_INT_EN OSI_BIT(22)
|
||||
#define MACSEC_RX_ICV_ERROR_INT_EN OSI_BIT(21)
|
||||
#define RX_REPLAY_ERROR_INT_EN OSI_BIT(20)
|
||||
#define RX_MTU_CHECK_FAIL_INT_EN OSI_BIT(19)
|
||||
#define RX_AES_GCM_BUF_OVF_INT_EN OSI_BIT(18)
|
||||
#define RX_MAC_CRC_ERROR_INT_EN OSI_BIT(16)
|
||||
#define RX_PN_EXHAUSTED_INT_EN OSI_BIT(1)
|
||||
#define MACSEC_RX_MTU_CHECK_FAIL_INT_EN OSI_BIT(19)
|
||||
#define MACSEC_RX_AES_GCM_BUF_OVF_INT_EN OSI_BIT(18)
|
||||
#define MACSEC_RX_MAC_CRC_ERROR_INT_EN OSI_BIT(16)
|
||||
#define MACSEC_RX_PN_EXHAUSTED_INT_EN OSI_BIT(1)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup INTERRUPT_MASK1_0 register
|
||||
* @addtogroup MACSEC_INTERRUPT_MASK1_0 register
|
||||
*
|
||||
* @brief Bit definitions of INTERRUPT_MASK1_0 register
|
||||
* @brief Bit definitions of MACSEC_INTERRUPT_MASK1_0 register
|
||||
* @{
|
||||
*/
|
||||
#define SFTY_ERR_UNCORR_INT_EN OSI_BIT(0)
|
||||
#define MACSEC_SFTY_ERR_UNCORR_INT_EN OSI_BIT(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup COMMON_ISR register
|
||||
* @addtogroup MACSEC_COMMON_ISR register
|
||||
*
|
||||
* @brief Bit definitions of MACSEC_INTERRUPT_STATUS register
|
||||
* @{
|
||||
*/
|
||||
#define SECURE_REG_VIOL OSI_BIT(31)
|
||||
#define RX_UNINIT_KEY_SLOT OSI_BIT(17)
|
||||
#define RX_LKUP_MISS OSI_BIT(16)
|
||||
#define TX_UNINIT_KEY_SLOT OSI_BIT(1)
|
||||
#define TX_LKUP_MISS OSI_BIT(0)
|
||||
#define MACSEC_SECURE_REG_VIOL OSI_BIT(31)
|
||||
#define MACSEC_RX_UNINIT_KEY_SLOT OSI_BIT(17)
|
||||
#define MACSEC_RX_LKUP_MISS OSI_BIT(16)
|
||||
#define MACSEC_TX_UNINIT_KEY_SLOT OSI_BIT(1)
|
||||
#define MACSEC_TX_LKUP_MISS OSI_BIT(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup TX_ISR register
|
||||
* @addtogroup MACSEC_TX_ISR register
|
||||
*
|
||||
* @brief Bit definitions of TX_INTERRUPT_STATUS register
|
||||
* @{
|
||||
*/
|
||||
#define TX_DBG_BUF_CAPTURE_DONE OSI_BIT(22)
|
||||
#define TX_MTU_CHECK_FAIL OSI_BIT(19)
|
||||
#define TX_AES_GCM_BUF_OVF OSI_BIT(18)
|
||||
#define TX_SC_AN_NOT_VALID OSI_BIT(17)
|
||||
#define TX_MAC_CRC_ERROR OSI_BIT(16)
|
||||
#define TX_PN_EXHAUSTED OSI_BIT(1)
|
||||
#define TX_PN_THRSHLD_RCHD OSI_BIT(0)
|
||||
#define MACSEC_TX_DBG_BUF_CAPTURE_DONE OSI_BIT(22)
|
||||
#define MACSEC_TX_MTU_CHECK_FAIL OSI_BIT(19)
|
||||
#define MACSEC_TX_AES_GCM_BUF_OVF OSI_BIT(18)
|
||||
#define MACSEC_TX_SC_AN_NOT_VALID OSI_BIT(17)
|
||||
#define MACSEC_TX_MAC_CRC_ERROR OSI_BIT(16)
|
||||
#define MACSEC_TX_PN_EXHAUSTED OSI_BIT(1)
|
||||
#define MACSEC_TX_PN_THRSHLD_RCHD OSI_BIT(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup RX_ISR register
|
||||
* @addtogroup MACSEC_RX_ISR register
|
||||
*
|
||||
* @brief Bit definitions of RX_INTERRUPT_STATUS register
|
||||
* @{
|
||||
*/
|
||||
#define RX_DBG_BUF_CAPTURE_DONE OSI_BIT(22)
|
||||
#define RX_ICV_ERROR OSI_BIT(21)
|
||||
#define RX_REPLAY_ERROR OSI_BIT(20)
|
||||
#define RX_MTU_CHECK_FAIL OSI_BIT(19)
|
||||
#define RX_AES_GCM_BUF_OVF OSI_BIT(18)
|
||||
#define RX_MAC_CRC_ERROR OSI_BIT(16)
|
||||
#define RX_PN_EXHAUSTED OSI_BIT(1)
|
||||
#define MACSEC_RX_DBG_BUF_CAPTURE_DONE OSI_BIT(22)
|
||||
#define MACSEC_RX_ICV_ERROR OSI_BIT(21)
|
||||
#define MACSEC_RX_REPLAY_ERROR OSI_BIT(20)
|
||||
#define MACSEC_RX_MTU_CHECK_FAIL OSI_BIT(19)
|
||||
#define MACSEC_RX_AES_GCM_BUF_OVF OSI_BIT(18)
|
||||
#define MACSEC_RX_MAC_CRC_ERROR OSI_BIT(16)
|
||||
#define MACSEC_RX_PN_EXHAUSTED OSI_BIT(1)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup STATS_CONTROL_0 register
|
||||
* @addtogroup MACSEC_STATS_CONTROL_0 register
|
||||
*
|
||||
* @brief Bit definitions of STATS_CONTROL_0 register
|
||||
* @brief Bit definitions of MACSEC_STATS_CONTROL_0 register
|
||||
* @{
|
||||
*/
|
||||
#define STATS_CONTROL0_RD_CPY OSI_BIT(3)
|
||||
#define STATS_CONTROL0_TK_CPY OSI_BIT(2)
|
||||
#define STATS_CONTROL0_CNT_RL_OVR_CPY OSI_BIT(1)
|
||||
#define STATS_CONTROL0_CNT_CLR OSI_BIT(0)
|
||||
#define MACSEC_STATS_CONTROL0_RD_CPY OSI_BIT(3)
|
||||
#define MACSEC_STATS_CONTROL0_TK_CPY OSI_BIT(2)
|
||||
#define MACSEC_STATS_CONTROL0_CNT_RL_OVR_CPY OSI_BIT(1)
|
||||
#define MACSEC_STATS_CONTROL0_CNT_CLR OSI_BIT(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup DEBUG_BUF_CONFIG_0 register
|
||||
* @addtogroup MACSEC_DEBUG_BUF_CONFIG_0 register
|
||||
*
|
||||
* @brief Bit definitions of DEBUG_BUF_CONFIG_0 register
|
||||
* @brief Bit definitions of MACSEC_DEBUG_BUF_CONFIG_0 register
|
||||
* @{
|
||||
*/
|
||||
#define DEBUG_BUF_CONFIG_0_UPDATE OSI_BIT(31)
|
||||
#define DEBUG_BUF_CONFIG_0_CTLR_SEL OSI_BIT(25)
|
||||
#define DEBUG_BUF_CONFIG_0_RW OSI_BIT(24)
|
||||
#define DEBUG_BUF_CONFIG_0_IDX_MASK (OSI_BIT(0) | OSI_BIT(1) | \
|
||||
#define MACSEC_DEBUG_BUF_CONFIG_0_UPDATE OSI_BIT(31)
|
||||
#define MACSEC_DEBUG_BUF_CONFIG_0_CTLR_SEL OSI_BIT(25)
|
||||
#define MACSEC_DEBUG_BUF_CONFIG_0_RW OSI_BIT(24)
|
||||
#define MACSEC_DEBUG_BUF_CONFIG_0_IDX_MASK (OSI_BIT(0) | OSI_BIT(1) | \
|
||||
OSI_BIT(2) | OSI_BIT(3))
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup TX_DEBUG_TRIGGER_EN_0 register
|
||||
* @addtogroup MACSEC_TX_DEBUG_TRIGGER_EN_0 register
|
||||
*
|
||||
* @brief Bit definitions of TX_DEBUG_TRIGGER_EN_0 register
|
||||
* @brief Bit definitions of MACSEC_TX_DEBUG_TRIGGER_EN_0 register
|
||||
* @{
|
||||
*/
|
||||
#define TX_DBG_CAPTURE OSI_BIT(10)
|
||||
#define TX_DBG_ICV_CORRUPT OSI_BIT(9)
|
||||
#define TX_DBG_CRC_CORRUPT OSI_BIT(8)
|
||||
#define TX_DBG_DATA_MATCH OSI_BIT(7)
|
||||
#define TX_DBG_LKUP_MATCH OSI_BIT(6)
|
||||
#define TX_DBG_CRCOUT_MATCH OSI_BIT(5)
|
||||
#define TX_DBG_CRCIN_MATCH OSI_BIT(4)
|
||||
#define TX_DBG_ICV_MATCH OSI_BIT(3)
|
||||
#define TX_DBG_KEY_NOT_VALID OSI_BIT(2)
|
||||
#define TX_DBG_AN_NOT_VALID OSI_BIT(1)
|
||||
#define TX_DBG_LKUP_MISS OSI_BIT(0)
|
||||
#define MACSEC_TX_DBG_CAPTURE OSI_BIT(10)
|
||||
#define MACSEC_TX_DBG_ICV_CORRUPT OSI_BIT(9)
|
||||
#define MACSEC_TX_DBG_CRC_CORRUPT OSI_BIT(8)
|
||||
#define MACSEC_TX_DBG_DATA_MATCH OSI_BIT(7)
|
||||
#define MACSEC_TX_DBG_LKUP_MATCH OSI_BIT(6)
|
||||
#define MACSEC_TX_DBG_CRCOUT_MATCH OSI_BIT(5)
|
||||
#define MACSEC_TX_DBG_CRCIN_MATCH OSI_BIT(4)
|
||||
#define MACSEC_TX_DBG_ICV_MATCH OSI_BIT(3)
|
||||
#define MACSEC_TX_DBG_KEY_NOT_VALID OSI_BIT(2)
|
||||
#define MACSEC_TX_DBG_AN_NOT_VALID OSI_BIT(1)
|
||||
#define MACSEC_TX_DBG_LKUP_MISS OSI_BIT(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup TX_DEBUG_STATUS_0 register
|
||||
* @addtogroup MACSEC_TX_DEBUG_STATUS_0 register
|
||||
*
|
||||
* @brief Bit definitions of TX_DEBUG_STATUS_0 register
|
||||
* @brief Bit definitions of MACSEC_TX_DEBUG_STATUS_0 register
|
||||
* @{
|
||||
*/
|
||||
#define TX_DBG_STS_CAPTURE OSI_BIT(10)
|
||||
#define TX_DBG_STS_ICV_CORRUPT OSI_BIT(9)
|
||||
#define TX_DBG_STS_CRC_CORRUPT OSI_BIT(8)
|
||||
#define TX_DBG_STS_DATA_MATCH OSI_BIT(7)
|
||||
#define TX_DBG_STS_LKUP_MATCH OSI_BIT(6)
|
||||
#define TX_DBG_STS_CRCOUT_MATCH OSI_BIT(5)
|
||||
#define TX_DBG_STS_CRCIN_MATCH OSI_BIT(4)
|
||||
#define TX_DBG_STS_ICV_MATCH OSI_BIT(3)
|
||||
#define TX_DBG_STS_KEY_NOT_VALID OSI_BIT(2)
|
||||
#define TX_DBG_STS_AN_NOT_VALID OSI_BIT(1)
|
||||
#define TX_DBG_STS_LKUP_MISS OSI_BIT(0)
|
||||
#define MACSEC_TX_DBG_STS_CAPTURE OSI_BIT(10)
|
||||
#define MACSEC_TX_DBG_STS_ICV_CORRUPT OSI_BIT(9)
|
||||
#define MACSEC_TX_DBG_STS_CRC_CORRUPT OSI_BIT(8)
|
||||
#define MACSEC_TX_DBG_STS_DATA_MATCH OSI_BIT(7)
|
||||
#define MACSEC_TX_DBG_STS_LKUP_MATCH OSI_BIT(6)
|
||||
#define MACSEC_TX_DBG_STS_CRCOUT_MATCH OSI_BIT(5)
|
||||
#define MACSEC_TX_DBG_STS_CRCIN_MATCH OSI_BIT(4)
|
||||
#define MACSEC_TX_DBG_STS_ICV_MATCH OSI_BIT(3)
|
||||
#define MACSEC_TX_DBG_STS_KEY_NOT_VALID OSI_BIT(2)
|
||||
#define MACSEC_TX_DBG_STS_AN_NOT_VALID OSI_BIT(1)
|
||||
#define MACSEC_TX_DBG_STS_LKUP_MISS OSI_BIT(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup RX_DEBUG_TRIGGER_EN_0 register
|
||||
* @addtogroup MACSEC_RX_DEBUG_TRIGGER_EN_0 register
|
||||
*
|
||||
* @brief Bit definitions of RX_DEBUG_TRIGGER_EN_0 register
|
||||
* @brief Bit definitions of MACSEC_RX_DEBUG_TRIGGER_EN_0 register
|
||||
* @{
|
||||
*/
|
||||
#define RX_DBG_CAPTURE OSI_BIT(10)
|
||||
#define RX_DBG_ICV_ERROR OSI_BIT(9)
|
||||
#define RX_DBG_CRC_CORRUPT OSI_BIT(8)
|
||||
#define RX_DBG_DATA_MATCH OSI_BIT(7)
|
||||
#define RX_DBG_BYP_LKUP_MATCH OSI_BIT(6)
|
||||
#define RX_DBG_CRCOUT_MATCH OSI_BIT(5)
|
||||
#define RX_DBG_CRCIN_MATCH OSI_BIT(4)
|
||||
#define RX_DBG_REPLAY_ERR OSI_BIT(3)
|
||||
#define RX_DBG_KEY_NOT_VALID OSI_BIT(2)
|
||||
#define RX_DBG_LKUP_MISS OSI_BIT(0)
|
||||
#define MACSEC_RX_DBG_CAPTURE OSI_BIT(10)
|
||||
#define MACSEC_RX_DBG_ICV_ERROR OSI_BIT(9)
|
||||
#define MACSEC_RX_DBG_CRC_CORRUPT OSI_BIT(8)
|
||||
#define MACSEC_RX_DBG_DATA_MATCH OSI_BIT(7)
|
||||
#define MACSEC_RX_DBG_BYP_LKUP_MATCH OSI_BIT(6)
|
||||
#define MACSEC_RX_DBG_CRCOUT_MATCH OSI_BIT(5)
|
||||
#define MACSEC_RX_DBG_CRCIN_MATCH OSI_BIT(4)
|
||||
#define MACSEC_RX_DBG_REPLAY_ERR OSI_BIT(3)
|
||||
#define MACSEC_RX_DBG_KEY_NOT_VALID OSI_BIT(2)
|
||||
#define MACSEC_RX_DBG_LKUP_MISS OSI_BIT(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup RX_DEBUG_STATUS_0 register
|
||||
* @addtogroup MACSEC_RX_DEBUG_STATUS_0 register
|
||||
*
|
||||
* @brief Bit definitions of RX_DEBUG_STATUS_0 register
|
||||
* @brief Bit definitions of MACSEC_RX_DEBUG_STATUS_0 register
|
||||
* @{
|
||||
*/
|
||||
#define RX_DBG_STS_CAPTURE OSI_BIT(10)
|
||||
#define RX_DBG_STS_ICV_ERROR OSI_BIT(9)
|
||||
#define RX_DBG_STS_CRC_CORRUPT OSI_BIT(8)
|
||||
#define RX_DBG_STS_DATA_MATCH OSI_BIT(7)
|
||||
#define RX_DBG_STS_BYP_LKUP_MATCH OSI_BIT(6)
|
||||
#define RX_DBG_STS_CRCOUT_MATCH OSI_BIT(5)
|
||||
#define RX_DBG_STS_CRCIN_MATCH OSI_BIT(4)
|
||||
#define RX_DBG_STS_REPLAY_ERR OSI_BIT(3)
|
||||
#define RX_DBG_STS_KEY_NOT_VALID OSI_BIT(2)
|
||||
#define RX_DBG_STS_LKUP_MISS OSI_BIT(0)
|
||||
#define MACSEC_RX_DBG_STS_CAPTURE OSI_BIT(10)
|
||||
#define MACSEC_RX_DBG_STS_ICV_ERROR OSI_BIT(9)
|
||||
#define MACSEC_RX_DBG_STS_CRC_CORRUPT OSI_BIT(8)
|
||||
#define MACSEC_RX_DBG_STS_DATA_MATCH OSI_BIT(7)
|
||||
#define MACSEC_RX_DBG_STS_BYP_LKUP_MATCH OSI_BIT(6)
|
||||
#define MACSEC_RX_DBG_STS_CRCOUT_MATCH OSI_BIT(5)
|
||||
#define MACSEC_RX_DBG_STS_CRCIN_MATCH OSI_BIT(4)
|
||||
#define MACSEC_RX_DBG_STS_REPLAY_ERR OSI_BIT(3)
|
||||
#define MACSEC_RX_DBG_STS_KEY_NOT_VALID OSI_BIT(2)
|
||||
#define MACSEC_RX_DBG_STS_LKUP_MISS OSI_BIT(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup TX_DEBUG_STATUS_0 register
|
||||
* @addtogroup MACSEC_TX_DEBUG_CONTROL_0 register
|
||||
*
|
||||
* @brief Bit definitions of TX_DEBUG_STATUS_0 register
|
||||
* @brief Bit definitions of MACSEC_TX_DEBUG_CONTROL_0 register
|
||||
* @{
|
||||
*/
|
||||
#define TX_DBG_STS_CAPTURE OSI_BIT(10)
|
||||
#define TX_DBG_STS_ICV_CORRUPT OSI_BIT(9)
|
||||
#define TX_DBG_STS_CRC_CORRUPT OSI_BIT(8)
|
||||
#define TX_DBG_STS_DATA_MATCH OSI_BIT(7)
|
||||
#define TX_DBG_STS_LKUP_MATCH OSI_BIT(6)
|
||||
#define TX_DBG_STS_CRCOUT_MATCH OSI_BIT(5)
|
||||
#define TX_DBG_STS_CRCIN_MATCH OSI_BIT(4)
|
||||
#define TX_DBG_STS_ICV_MATCH OSI_BIT(3)
|
||||
#define TX_DBG_STS_KEY_NOT_VALID OSI_BIT(2)
|
||||
#define TX_DBG_STS_AN_NOT_VALID OSI_BIT(1)
|
||||
#define TX_DBG_STS_LKUP_MISS OSI_BIT(0)
|
||||
#define MACSEC_TX_DEBUG_CONTROL_0_START_CAP OSI_BIT(31)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup TX_DEBUG_CONTROL_0 register
|
||||
* @addtogroup MACSEC_RX_DEBUG_CONTROL_0 register
|
||||
*
|
||||
* @brief Bit definitions of TX_DEBUG_CONTROL_0 register
|
||||
* @brief Bit definitions of MACSEC_RX_DEBUG_CONTROL_0 register
|
||||
* @{
|
||||
*/
|
||||
#define TX_DEBUG_CONTROL_0_START_CAP OSI_BIT(31)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @addtogroup RX_DEBUG_CONTROL_0 register
|
||||
*
|
||||
* @brief Bit definitions of RX_DEBUG_CONTROL_0 register
|
||||
* @{
|
||||
*/
|
||||
#define RX_DEBUG_CONTROL_0_START_CAP OSI_BIT(31)
|
||||
#define MACSEC_RX_DEBUG_CONTROL_0_START_CAP OSI_BIT(31)
|
||||
/** @} */
|
||||
|
||||
#define MTU_LENGTH_MASK 0xFFFF
|
||||
@@ -457,14 +437,14 @@
|
||||
* @brief Bit definitions of LUT_VALID registers
|
||||
* @{
|
||||
*/
|
||||
#define TX_BYP_LUT_VALID_ENTRY(x) OSI_BIT(x)
|
||||
#define TX_BYP_LUT_VALID_NONE 0x0
|
||||
#define TX_SCI_LUT_VALID_ENTRY(x) OSI_BIT(x)
|
||||
#define TX_SCI_LUT_VALID_NONE 0x0
|
||||
#define RX_BYP_LUT_VALID_ENTRY(x) OSI_BIT(x)
|
||||
#define RX_BYP_LUT_VALID_NONE 0x0
|
||||
#define RX_SCI_LUT_VALID_ENTRY(x) OSI_BIT(x)
|
||||
#define RX_SCI_LUT_VALID_NONE 0x0
|
||||
#define MACSEC_TX_BYP_LUT_VALID_ENTRY(x) OSI_BIT(x)
|
||||
#define MACSEC_TX_BYP_LUT_VALID_NONE 0x0
|
||||
#define MACSEC_TX_SCI_LUT_VALID_ENTRY(x) OSI_BIT(x)
|
||||
#define MACSEC_TX_SCI_LUT_VALID_NONE 0x0
|
||||
#define MACSEC_RX_BYP_LUT_VALID_ENTRY(x) OSI_BIT(x)
|
||||
#define MACSEC_RX_BYP_LUT_VALID_NONE 0x0
|
||||
#define MACSEC_RX_SCI_LUT_VALID_ENTRY(x) OSI_BIT(x)
|
||||
#define MACSEC_RX_SCI_LUT_VALID_NONE 0x0
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
@@ -476,60 +456,60 @@
|
||||
#define MACSEC_LUT_DATA_REG_CNT 7
|
||||
/* Bit Offsets for LUT DATA[x] registers for various lookup field masks */
|
||||
/* DA mask bits in LUT_DATA[1] register */
|
||||
#define LUT_DA_BYTE0_INACTIVE OSI_BIT(16)
|
||||
#define LUT_DA_BYTE1_INACTIVE OSI_BIT(17)
|
||||
#define LUT_DA_BYTE2_INACTIVE OSI_BIT(18)
|
||||
#define LUT_DA_BYTE3_INACTIVE OSI_BIT(19)
|
||||
#define LUT_DA_BYTE4_INACTIVE OSI_BIT(20)
|
||||
#define LUT_DA_BYTE5_INACTIVE OSI_BIT(21)
|
||||
#define MACSEC_LUT_DA_BYTE0_INACTIVE OSI_BIT(16)
|
||||
#define MACSEC_LUT_DA_BYTE1_INACTIVE OSI_BIT(17)
|
||||
#define MACSEC_LUT_DA_BYTE2_INACTIVE OSI_BIT(18)
|
||||
#define MACSEC_LUT_DA_BYTE3_INACTIVE OSI_BIT(19)
|
||||
#define MACSEC_LUT_DA_BYTE4_INACTIVE OSI_BIT(20)
|
||||
#define MACSEC_LUT_DA_BYTE5_INACTIVE OSI_BIT(21)
|
||||
/* SA mask bits in LUT_DATA[3] register */
|
||||
#define LUT_SA_BYTE0_INACTIVE OSI_BIT(6)
|
||||
#define LUT_SA_BYTE1_INACTIVE OSI_BIT(7)
|
||||
#define LUT_SA_BYTE2_INACTIVE OSI_BIT(8)
|
||||
#define LUT_SA_BYTE3_INACTIVE OSI_BIT(9)
|
||||
#define LUT_SA_BYTE4_INACTIVE OSI_BIT(10)
|
||||
#define LUT_SA_BYTE5_INACTIVE OSI_BIT(11)
|
||||
#define MACSEC_LUT_SA_BYTE0_INACTIVE OSI_BIT(6)
|
||||
#define MACSEC_LUT_SA_BYTE1_INACTIVE OSI_BIT(7)
|
||||
#define MACSEC_LUT_SA_BYTE2_INACTIVE OSI_BIT(8)
|
||||
#define MACSEC_LUT_SA_BYTE3_INACTIVE OSI_BIT(9)
|
||||
#define MACSEC_LUT_SA_BYTE4_INACTIVE OSI_BIT(10)
|
||||
#define MACSEC_LUT_SA_BYTE5_INACTIVE OSI_BIT(11)
|
||||
/* Ether type mask in LUT_DATA[3] register */
|
||||
#define LUT_ETHTYPE_INACTIVE OSI_BIT(28)
|
||||
#define MACSEC_LUT_ETHTYPE_INACTIVE OSI_BIT(28)
|
||||
/* VLAN PCP mask in LUT_DATA[4] register */
|
||||
#define LUT_VLAN_PCP_INACTIVE OSI_BIT(0)
|
||||
#define MACSEC_LUT_VLAN_PCP_INACTIVE OSI_BIT(0)
|
||||
/* VLAN ID mask in LUT_DATA[4] register */
|
||||
#define LUT_VLAN_ID_INACTIVE OSI_BIT(13)
|
||||
#define MACSEC_LUT_VLAN_ID_INACTIVE OSI_BIT(13)
|
||||
/* VLAN mask in LUT_DATA[4] register */
|
||||
#define LUT_VLAN_ACTIVE OSI_BIT(14)
|
||||
#define MACSEC_LUT_VLAN_ACTIVE OSI_BIT(14)
|
||||
/* Byte pattern masks in LUT_DATA[4] register */
|
||||
#define LUT_BYTE0_PATTERN_INACTIVE OSI_BIT(29)
|
||||
#define MACSEC_LUT_BYTE0_PATTERN_INACTIVE OSI_BIT(29)
|
||||
/* Byte pattern masks in LUT_DATA[5] register */
|
||||
#define LUT_BYTE1_PATTERN_INACTIVE OSI_BIT(12)
|
||||
#define LUT_BYTE2_PATTERN_INACTIVE OSI_BIT(27)
|
||||
#define MACSEC_LUT_BYTE1_PATTERN_INACTIVE OSI_BIT(12)
|
||||
#define MACSEC_LUT_BYTE2_PATTERN_INACTIVE OSI_BIT(27)
|
||||
/* Byte pattern masks in LUT_DATA[6] register */
|
||||
#define LUT_BYTE3_PATTERN_INACTIVE OSI_BIT(10)
|
||||
#define MACSEC_LUT_BYTE3_PATTERN_INACTIVE OSI_BIT(10)
|
||||
/* Preemptable packet in LUT_DATA[6] register */
|
||||
#define LUT_PREEMPT OSI_BIT(11)
|
||||
#define MACSEC_LUT_PREEMPT OSI_BIT(11)
|
||||
/* Preempt mask in LUT_DATA[6] register */
|
||||
#define LUT_PREEMPT_INACTIVE OSI_BIT(12)
|
||||
#define MACSEC_LUT_PREEMPT_INACTIVE OSI_BIT(12)
|
||||
/* Controlled port mask in LUT_DATA[6] register */
|
||||
#define LUT_CONTROLLED_PORT OSI_BIT(13)
|
||||
#define MACSEC_LUT_CONTROLLED_PORT OSI_BIT(13)
|
||||
/* DVLAN packet in LUT_DATA[6] register */
|
||||
#define BYP_LUT_DVLAN_PKT OSI_BIT(14)
|
||||
#define MACSEC_BYP_LUT_DVLAN_PKT OSI_BIT(14)
|
||||
/* DVLAN outer/inner tag select in LUT_DATA[6] register */
|
||||
#define BYP_LUT_DVLAN_OUTER_INNER_TAG_SEL OSI_BIT(15)
|
||||
/* AN valid bits for SCI LUT in LUT_DATA[6] register */
|
||||
#define LUT_AN0_VALID OSI_BIT(13)
|
||||
#define LUT_AN1_VALID OSI_BIT(14)
|
||||
#define LUT_AN2_VALID OSI_BIT(15)
|
||||
#define LUT_AN3_VALID OSI_BIT(16)
|
||||
#define MACSEC_LUT_AN0_VALID OSI_BIT(13)
|
||||
#define MACSEC_LUT_AN1_VALID OSI_BIT(14)
|
||||
#define MACSEC_LUT_AN2_VALID OSI_BIT(15)
|
||||
#define MACSEC_LUT_AN3_VALID OSI_BIT(16)
|
||||
/* DVLAN packet in LUT_DATA[6] register */
|
||||
#define TX_SCI_LUT_DVLAN_PKT OSI_BIT(21)
|
||||
#define MACSEC_TX_SCI_LUT_DVLAN_PKT OSI_BIT(21)
|
||||
/* DVLAN outer/inner tag select in LUT_DATA[6] register */
|
||||
#define TX_SCI_LUT_DVLAN_OUTER_INNER_TAG_SEL OSI_BIT(22)
|
||||
#define MACSEC_TX_SCI_LUT_DVLAN_OUTER_INNER_TAG_SEL OSI_BIT(22)
|
||||
/* SA State LUT entry valid in LUT_DATA[0] register */
|
||||
#define SA_STATE_LUT_ENTRY_VALID OSI_BIT(0)
|
||||
#define MACSEC_SA_STATE_LUT_ENTRY_VALID OSI_BIT(0)
|
||||
|
||||
/* Preemptable packet in LUT_DATA[2] register for Rx SCI */
|
||||
#define RX_SCI_LUT_PREEMPT OSI_BIT(8)
|
||||
#define MACSEC_RX_SCI_LUT_PREEMPT OSI_BIT(8)
|
||||
/* Preempt mask in LUT_DATA[2] register for Rx SCI */
|
||||
#define RX_SCI_LUT_PREEMPT_INACTIVE OSI_BIT(9)
|
||||
#define MACSEC_RX_SCI_LUT_PREEMPT_INACTIVE OSI_BIT(9)
|
||||
/** @} */
|
||||
|
||||
/* debug buffer data read/write length */
|
||||
|
||||
Reference in New Issue
Block a user