18c2ecf20Sopenharmony_ci/* bnx2.h: QLogic bnx2 network driver. 28c2ecf20Sopenharmony_ci * 38c2ecf20Sopenharmony_ci * Copyright (c) 2004-2014 Broadcom Corporation 48c2ecf20Sopenharmony_ci * Copyright (c) 2014-2015 QLogic Corporation 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify 78c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License as published by 88c2ecf20Sopenharmony_ci * the Free Software Foundation. 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * Written by: Michael Chan (mchan@broadcom.com) 118c2ecf20Sopenharmony_ci */ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#ifndef BNX2_H 158c2ecf20Sopenharmony_ci#define BNX2_H 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci/* Hardware data structures and register definitions automatically 188c2ecf20Sopenharmony_ci * generated from RTL code. Do not modify. 198c2ecf20Sopenharmony_ci */ 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci/* 228c2ecf20Sopenharmony_ci * tx_bd definition 238c2ecf20Sopenharmony_ci */ 248c2ecf20Sopenharmony_cistruct bnx2_tx_bd { 258c2ecf20Sopenharmony_ci u32 tx_bd_haddr_hi; 268c2ecf20Sopenharmony_ci u32 tx_bd_haddr_lo; 278c2ecf20Sopenharmony_ci u32 tx_bd_mss_nbytes; 288c2ecf20Sopenharmony_ci #define TX_BD_TCP6_OFF2_SHL (14) 298c2ecf20Sopenharmony_ci u32 tx_bd_vlan_tag_flags; 308c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_CONN_FAULT (1<<0) 318c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_TCP6_OFF0_MSK (3<<1) 328c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_TCP6_OFF0_SHL (1) 338c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_TCP_UDP_CKSUM (1<<1) 348c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_IP_CKSUM (1<<2) 358c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_VLAN_TAG (1<<3) 368c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_COAL_NOW (1<<4) 378c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_DONT_GEN_CRC (1<<5) 388c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_END (1<<6) 398c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_START (1<<7) 408c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_SW_OPTION_WORD (0x1f<<8) 418c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_TCP6_OFF4_SHL (12) 428c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_SW_FLAGS (1<<13) 438c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_SW_SNAP (1<<14) 448c2ecf20Sopenharmony_ci #define TX_BD_FLAGS_SW_LSO (1<<15) 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci}; 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci/* 508c2ecf20Sopenharmony_ci * rx_bd definition 518c2ecf20Sopenharmony_ci */ 528c2ecf20Sopenharmony_cistruct bnx2_rx_bd { 538c2ecf20Sopenharmony_ci u32 rx_bd_haddr_hi; 548c2ecf20Sopenharmony_ci u32 rx_bd_haddr_lo; 558c2ecf20Sopenharmony_ci u32 rx_bd_len; 568c2ecf20Sopenharmony_ci u32 rx_bd_flags; 578c2ecf20Sopenharmony_ci #define RX_BD_FLAGS_NOPUSH (1<<0) 588c2ecf20Sopenharmony_ci #define RX_BD_FLAGS_DUMMY (1<<1) 598c2ecf20Sopenharmony_ci #define RX_BD_FLAGS_END (1<<2) 608c2ecf20Sopenharmony_ci #define RX_BD_FLAGS_START (1<<3) 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci}; 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci#define BNX2_RX_ALIGN 16 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ci/* 678c2ecf20Sopenharmony_ci * status_block definition 688c2ecf20Sopenharmony_ci */ 698c2ecf20Sopenharmony_cistruct status_block { 708c2ecf20Sopenharmony_ci u32 status_attn_bits; 718c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_LINK_STATE (1L<<0) 728c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_TX_SCHEDULER_ABORT (1L<<1) 738c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_TX_BD_READ_ABORT (1L<<2) 748c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_TX_BD_CACHE_ABORT (1L<<3) 758c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_TX_PROCESSOR_ABORT (1L<<4) 768c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_TX_DMA_ABORT (1L<<5) 778c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_TX_PATCHUP_ABORT (1L<<6) 788c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_TX_ASSEMBLER_ABORT (1L<<7) 798c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_RX_PARSER_MAC_ABORT (1L<<8) 808c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_RX_PARSER_CATCHUP_ABORT (1L<<9) 818c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_RX_MBUF_ABORT (1L<<10) 828c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_RX_LOOKUP_ABORT (1L<<11) 838c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_RX_PROCESSOR_ABORT (1L<<12) 848c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_RX_V2P_ABORT (1L<<13) 858c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_RX_BD_CACHE_ABORT (1L<<14) 868c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_RX_DMA_ABORT (1L<<15) 878c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_COMPLETION_ABORT (1L<<16) 888c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_HOST_COALESCE_ABORT (1L<<17) 898c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_MAILBOX_QUEUE_ABORT (1L<<18) 908c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_CONTEXT_ABORT (1L<<19) 918c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_CMD_SCHEDULER_ABORT (1L<<20) 928c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_CMD_PROCESSOR_ABORT (1L<<21) 938c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_MGMT_PROCESSOR_ABORT (1L<<22) 948c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_MAC_ABORT (1L<<23) 958c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_TIMER_ABORT (1L<<24) 968c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_DMAE_ABORT (1L<<25) 978c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_FLSH_ABORT (1L<<26) 988c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_GRC_ABORT (1L<<27) 998c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_EPB_ERROR (1L<<30) 1008c2ecf20Sopenharmony_ci #define STATUS_ATTN_BITS_PARITY_ERROR (1L<<31) 1018c2ecf20Sopenharmony_ci 1028c2ecf20Sopenharmony_ci u32 status_attn_bits_ack; 1038c2ecf20Sopenharmony_ci#if defined(__BIG_ENDIAN) 1048c2ecf20Sopenharmony_ci u16 status_tx_quick_consumer_index0; 1058c2ecf20Sopenharmony_ci u16 status_tx_quick_consumer_index1; 1068c2ecf20Sopenharmony_ci u16 status_tx_quick_consumer_index2; 1078c2ecf20Sopenharmony_ci u16 status_tx_quick_consumer_index3; 1088c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index0; 1098c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index1; 1108c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index2; 1118c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index3; 1128c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index4; 1138c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index5; 1148c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index6; 1158c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index7; 1168c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index8; 1178c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index9; 1188c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index10; 1198c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index11; 1208c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index12; 1218c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index13; 1228c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index14; 1238c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index15; 1248c2ecf20Sopenharmony_ci u16 status_completion_producer_index; 1258c2ecf20Sopenharmony_ci u16 status_cmd_consumer_index; 1268c2ecf20Sopenharmony_ci u16 status_idx; 1278c2ecf20Sopenharmony_ci u8 status_unused; 1288c2ecf20Sopenharmony_ci u8 status_blk_num; 1298c2ecf20Sopenharmony_ci#elif defined(__LITTLE_ENDIAN) 1308c2ecf20Sopenharmony_ci u16 status_tx_quick_consumer_index1; 1318c2ecf20Sopenharmony_ci u16 status_tx_quick_consumer_index0; 1328c2ecf20Sopenharmony_ci u16 status_tx_quick_consumer_index3; 1338c2ecf20Sopenharmony_ci u16 status_tx_quick_consumer_index2; 1348c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index1; 1358c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index0; 1368c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index3; 1378c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index2; 1388c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index5; 1398c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index4; 1408c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index7; 1418c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index6; 1428c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index9; 1438c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index8; 1448c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index11; 1458c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index10; 1468c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index13; 1478c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index12; 1488c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index15; 1498c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index14; 1508c2ecf20Sopenharmony_ci u16 status_cmd_consumer_index; 1518c2ecf20Sopenharmony_ci u16 status_completion_producer_index; 1528c2ecf20Sopenharmony_ci u8 status_blk_num; 1538c2ecf20Sopenharmony_ci u8 status_unused; 1548c2ecf20Sopenharmony_ci u16 status_idx; 1558c2ecf20Sopenharmony_ci#endif 1568c2ecf20Sopenharmony_ci}; 1578c2ecf20Sopenharmony_ci 1588c2ecf20Sopenharmony_ci/* 1598c2ecf20Sopenharmony_ci * status_block definition 1608c2ecf20Sopenharmony_ci */ 1618c2ecf20Sopenharmony_cistruct status_block_msix { 1628c2ecf20Sopenharmony_ci#if defined(__BIG_ENDIAN) 1638c2ecf20Sopenharmony_ci u16 status_tx_quick_consumer_index; 1648c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index; 1658c2ecf20Sopenharmony_ci u16 status_completion_producer_index; 1668c2ecf20Sopenharmony_ci u16 status_cmd_consumer_index; 1678c2ecf20Sopenharmony_ci u32 status_unused; 1688c2ecf20Sopenharmony_ci u16 status_idx; 1698c2ecf20Sopenharmony_ci u8 status_unused2; 1708c2ecf20Sopenharmony_ci u8 status_blk_num; 1718c2ecf20Sopenharmony_ci#elif defined(__LITTLE_ENDIAN) 1728c2ecf20Sopenharmony_ci u16 status_rx_quick_consumer_index; 1738c2ecf20Sopenharmony_ci u16 status_tx_quick_consumer_index; 1748c2ecf20Sopenharmony_ci u16 status_cmd_consumer_index; 1758c2ecf20Sopenharmony_ci u16 status_completion_producer_index; 1768c2ecf20Sopenharmony_ci u32 status_unused; 1778c2ecf20Sopenharmony_ci u8 status_blk_num; 1788c2ecf20Sopenharmony_ci u8 status_unused2; 1798c2ecf20Sopenharmony_ci u16 status_idx; 1808c2ecf20Sopenharmony_ci#endif 1818c2ecf20Sopenharmony_ci}; 1828c2ecf20Sopenharmony_ci 1838c2ecf20Sopenharmony_ci#define BNX2_SBLK_MSIX_ALIGN_SIZE 128 1848c2ecf20Sopenharmony_ci 1858c2ecf20Sopenharmony_ci 1868c2ecf20Sopenharmony_ci/* 1878c2ecf20Sopenharmony_ci * statistics_block definition 1888c2ecf20Sopenharmony_ci */ 1898c2ecf20Sopenharmony_cistruct statistics_block { 1908c2ecf20Sopenharmony_ci u32 stat_IfHCInOctets_hi; 1918c2ecf20Sopenharmony_ci u32 stat_IfHCInOctets_lo; 1928c2ecf20Sopenharmony_ci u32 stat_IfHCInBadOctets_hi; 1938c2ecf20Sopenharmony_ci u32 stat_IfHCInBadOctets_lo; 1948c2ecf20Sopenharmony_ci u32 stat_IfHCOutOctets_hi; 1958c2ecf20Sopenharmony_ci u32 stat_IfHCOutOctets_lo; 1968c2ecf20Sopenharmony_ci u32 stat_IfHCOutBadOctets_hi; 1978c2ecf20Sopenharmony_ci u32 stat_IfHCOutBadOctets_lo; 1988c2ecf20Sopenharmony_ci u32 stat_IfHCInUcastPkts_hi; 1998c2ecf20Sopenharmony_ci u32 stat_IfHCInUcastPkts_lo; 2008c2ecf20Sopenharmony_ci u32 stat_IfHCInMulticastPkts_hi; 2018c2ecf20Sopenharmony_ci u32 stat_IfHCInMulticastPkts_lo; 2028c2ecf20Sopenharmony_ci u32 stat_IfHCInBroadcastPkts_hi; 2038c2ecf20Sopenharmony_ci u32 stat_IfHCInBroadcastPkts_lo; 2048c2ecf20Sopenharmony_ci u32 stat_IfHCOutUcastPkts_hi; 2058c2ecf20Sopenharmony_ci u32 stat_IfHCOutUcastPkts_lo; 2068c2ecf20Sopenharmony_ci u32 stat_IfHCOutMulticastPkts_hi; 2078c2ecf20Sopenharmony_ci u32 stat_IfHCOutMulticastPkts_lo; 2088c2ecf20Sopenharmony_ci u32 stat_IfHCOutBroadcastPkts_hi; 2098c2ecf20Sopenharmony_ci u32 stat_IfHCOutBroadcastPkts_lo; 2108c2ecf20Sopenharmony_ci u32 stat_emac_tx_stat_dot3statsinternalmactransmiterrors; 2118c2ecf20Sopenharmony_ci u32 stat_Dot3StatsCarrierSenseErrors; 2128c2ecf20Sopenharmony_ci u32 stat_Dot3StatsFCSErrors; 2138c2ecf20Sopenharmony_ci u32 stat_Dot3StatsAlignmentErrors; 2148c2ecf20Sopenharmony_ci u32 stat_Dot3StatsSingleCollisionFrames; 2158c2ecf20Sopenharmony_ci u32 stat_Dot3StatsMultipleCollisionFrames; 2168c2ecf20Sopenharmony_ci u32 stat_Dot3StatsDeferredTransmissions; 2178c2ecf20Sopenharmony_ci u32 stat_Dot3StatsExcessiveCollisions; 2188c2ecf20Sopenharmony_ci u32 stat_Dot3StatsLateCollisions; 2198c2ecf20Sopenharmony_ci u32 stat_EtherStatsCollisions; 2208c2ecf20Sopenharmony_ci u32 stat_EtherStatsFragments; 2218c2ecf20Sopenharmony_ci u32 stat_EtherStatsJabbers; 2228c2ecf20Sopenharmony_ci u32 stat_EtherStatsUndersizePkts; 2238c2ecf20Sopenharmony_ci u32 stat_EtherStatsOverrsizePkts; 2248c2ecf20Sopenharmony_ci u32 stat_EtherStatsPktsRx64Octets; 2258c2ecf20Sopenharmony_ci u32 stat_EtherStatsPktsRx65Octetsto127Octets; 2268c2ecf20Sopenharmony_ci u32 stat_EtherStatsPktsRx128Octetsto255Octets; 2278c2ecf20Sopenharmony_ci u32 stat_EtherStatsPktsRx256Octetsto511Octets; 2288c2ecf20Sopenharmony_ci u32 stat_EtherStatsPktsRx512Octetsto1023Octets; 2298c2ecf20Sopenharmony_ci u32 stat_EtherStatsPktsRx1024Octetsto1522Octets; 2308c2ecf20Sopenharmony_ci u32 stat_EtherStatsPktsRx1523Octetsto9022Octets; 2318c2ecf20Sopenharmony_ci u32 stat_EtherStatsPktsTx64Octets; 2328c2ecf20Sopenharmony_ci u32 stat_EtherStatsPktsTx65Octetsto127Octets; 2338c2ecf20Sopenharmony_ci u32 stat_EtherStatsPktsTx128Octetsto255Octets; 2348c2ecf20Sopenharmony_ci u32 stat_EtherStatsPktsTx256Octetsto511Octets; 2358c2ecf20Sopenharmony_ci u32 stat_EtherStatsPktsTx512Octetsto1023Octets; 2368c2ecf20Sopenharmony_ci u32 stat_EtherStatsPktsTx1024Octetsto1522Octets; 2378c2ecf20Sopenharmony_ci u32 stat_EtherStatsPktsTx1523Octetsto9022Octets; 2388c2ecf20Sopenharmony_ci u32 stat_XonPauseFramesReceived; 2398c2ecf20Sopenharmony_ci u32 stat_XoffPauseFramesReceived; 2408c2ecf20Sopenharmony_ci u32 stat_OutXonSent; 2418c2ecf20Sopenharmony_ci u32 stat_OutXoffSent; 2428c2ecf20Sopenharmony_ci u32 stat_FlowControlDone; 2438c2ecf20Sopenharmony_ci u32 stat_MacControlFramesReceived; 2448c2ecf20Sopenharmony_ci u32 stat_XoffStateEntered; 2458c2ecf20Sopenharmony_ci u32 stat_IfInFramesL2FilterDiscards; 2468c2ecf20Sopenharmony_ci u32 stat_IfInRuleCheckerDiscards; 2478c2ecf20Sopenharmony_ci u32 stat_IfInFTQDiscards; 2488c2ecf20Sopenharmony_ci u32 stat_IfInMBUFDiscards; 2498c2ecf20Sopenharmony_ci u32 stat_IfInRuleCheckerP4Hit; 2508c2ecf20Sopenharmony_ci u32 stat_CatchupInRuleCheckerDiscards; 2518c2ecf20Sopenharmony_ci u32 stat_CatchupInFTQDiscards; 2528c2ecf20Sopenharmony_ci u32 stat_CatchupInMBUFDiscards; 2538c2ecf20Sopenharmony_ci u32 stat_CatchupInRuleCheckerP4Hit; 2548c2ecf20Sopenharmony_ci u32 stat_GenStat00; 2558c2ecf20Sopenharmony_ci u32 stat_GenStat01; 2568c2ecf20Sopenharmony_ci u32 stat_GenStat02; 2578c2ecf20Sopenharmony_ci u32 stat_GenStat03; 2588c2ecf20Sopenharmony_ci u32 stat_GenStat04; 2598c2ecf20Sopenharmony_ci u32 stat_GenStat05; 2608c2ecf20Sopenharmony_ci u32 stat_GenStat06; 2618c2ecf20Sopenharmony_ci u32 stat_GenStat07; 2628c2ecf20Sopenharmony_ci u32 stat_GenStat08; 2638c2ecf20Sopenharmony_ci u32 stat_GenStat09; 2648c2ecf20Sopenharmony_ci u32 stat_GenStat10; 2658c2ecf20Sopenharmony_ci u32 stat_GenStat11; 2668c2ecf20Sopenharmony_ci u32 stat_GenStat12; 2678c2ecf20Sopenharmony_ci u32 stat_GenStat13; 2688c2ecf20Sopenharmony_ci u32 stat_GenStat14; 2698c2ecf20Sopenharmony_ci u32 stat_GenStat15; 2708c2ecf20Sopenharmony_ci u32 stat_FwRxDrop; 2718c2ecf20Sopenharmony_ci}; 2728c2ecf20Sopenharmony_ci 2738c2ecf20Sopenharmony_ci 2748c2ecf20Sopenharmony_ci/* 2758c2ecf20Sopenharmony_ci * l2_fhdr definition 2768c2ecf20Sopenharmony_ci */ 2778c2ecf20Sopenharmony_cistruct l2_fhdr { 2788c2ecf20Sopenharmony_ci u32 l2_fhdr_status; 2798c2ecf20Sopenharmony_ci #define L2_FHDR_STATUS_RULE_CLASS (0x7<<0) 2808c2ecf20Sopenharmony_ci #define L2_FHDR_STATUS_RULE_P2 (1<<3) 2818c2ecf20Sopenharmony_ci #define L2_FHDR_STATUS_RULE_P3 (1<<4) 2828c2ecf20Sopenharmony_ci #define L2_FHDR_STATUS_RULE_P4 (1<<5) 2838c2ecf20Sopenharmony_ci #define L2_FHDR_STATUS_L2_VLAN_TAG (1<<6) 2848c2ecf20Sopenharmony_ci #define L2_FHDR_STATUS_L2_LLC_SNAP (1<<7) 2858c2ecf20Sopenharmony_ci #define L2_FHDR_STATUS_RSS_HASH (1<<8) 2868c2ecf20Sopenharmony_ci #define L2_FHDR_STATUS_IP_DATAGRAM (1<<13) 2878c2ecf20Sopenharmony_ci #define L2_FHDR_STATUS_TCP_SEGMENT (1<<14) 2888c2ecf20Sopenharmony_ci #define L2_FHDR_STATUS_UDP_DATAGRAM (1<<15) 2898c2ecf20Sopenharmony_ci 2908c2ecf20Sopenharmony_ci #define L2_FHDR_STATUS_SPLIT (1<<16) 2918c2ecf20Sopenharmony_ci #define L2_FHDR_ERRORS_BAD_CRC (1<<17) 2928c2ecf20Sopenharmony_ci #define L2_FHDR_ERRORS_PHY_DECODE (1<<18) 2938c2ecf20Sopenharmony_ci #define L2_FHDR_ERRORS_ALIGNMENT (1<<19) 2948c2ecf20Sopenharmony_ci #define L2_FHDR_ERRORS_TOO_SHORT (1<<20) 2958c2ecf20Sopenharmony_ci #define L2_FHDR_ERRORS_GIANT_FRAME (1<<21) 2968c2ecf20Sopenharmony_ci #define L2_FHDR_ERRORS_TCP_XSUM (1<<28) 2978c2ecf20Sopenharmony_ci #define L2_FHDR_ERRORS_UDP_XSUM (1<<31) 2988c2ecf20Sopenharmony_ci 2998c2ecf20Sopenharmony_ci #define L2_FHDR_STATUS_USE_RXHASH \ 3008c2ecf20Sopenharmony_ci (L2_FHDR_STATUS_TCP_SEGMENT | L2_FHDR_STATUS_RSS_HASH) 3018c2ecf20Sopenharmony_ci 3028c2ecf20Sopenharmony_ci u32 l2_fhdr_hash; 3038c2ecf20Sopenharmony_ci#if defined(__BIG_ENDIAN) 3048c2ecf20Sopenharmony_ci u16 l2_fhdr_pkt_len; 3058c2ecf20Sopenharmony_ci u16 l2_fhdr_vlan_tag; 3068c2ecf20Sopenharmony_ci u16 l2_fhdr_ip_xsum; 3078c2ecf20Sopenharmony_ci u16 l2_fhdr_tcp_udp_xsum; 3088c2ecf20Sopenharmony_ci#elif defined(__LITTLE_ENDIAN) 3098c2ecf20Sopenharmony_ci u16 l2_fhdr_vlan_tag; 3108c2ecf20Sopenharmony_ci u16 l2_fhdr_pkt_len; 3118c2ecf20Sopenharmony_ci u16 l2_fhdr_tcp_udp_xsum; 3128c2ecf20Sopenharmony_ci u16 l2_fhdr_ip_xsum; 3138c2ecf20Sopenharmony_ci#endif 3148c2ecf20Sopenharmony_ci}; 3158c2ecf20Sopenharmony_ci 3168c2ecf20Sopenharmony_ci#define BNX2_RX_OFFSET (sizeof(struct l2_fhdr) + 2) 3178c2ecf20Sopenharmony_ci 3188c2ecf20Sopenharmony_ci/* 3198c2ecf20Sopenharmony_ci * l2_context definition 3208c2ecf20Sopenharmony_ci */ 3218c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TYPE 0x00000000 3228c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TYPE_SIZE_L2 ((0xc0/0x20)<<16) 3238c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TYPE_TYPE (0xf<<28) 3248c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TYPE_TYPE_EMPTY (0<<28) 3258c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TYPE_TYPE_L2 (1<<28) 3268c2ecf20Sopenharmony_ci 3278c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TX_HOST_BIDX 0x00000088 3288c2ecf20Sopenharmony_ci#define BNX2_L2CTX_EST_NBD 0x00000088 3298c2ecf20Sopenharmony_ci#define BNX2_L2CTX_CMD_TYPE 0x00000088 3308c2ecf20Sopenharmony_ci#define BNX2_L2CTX_CMD_TYPE_TYPE (0xf<<24) 3318c2ecf20Sopenharmony_ci#define BNX2_L2CTX_CMD_TYPE_TYPE_L2 (0<<24) 3328c2ecf20Sopenharmony_ci#define BNX2_L2CTX_CMD_TYPE_TYPE_TCP (1<<24) 3338c2ecf20Sopenharmony_ci 3348c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TX_HOST_BSEQ 0x00000090 3358c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TSCH_BSEQ 0x00000094 3368c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TBDR_BSEQ 0x00000098 3378c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TBDR_BOFF 0x0000009c 3388c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TBDR_BIDX 0x0000009c 3398c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TBDR_BHADDR_HI 0x000000a0 3408c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TBDR_BHADDR_LO 0x000000a4 3418c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TXP_BOFF 0x000000a8 3428c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TXP_BIDX 0x000000a8 3438c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TXP_BSEQ 0x000000ac 3448c2ecf20Sopenharmony_ci 3458c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TYPE_XI 0x00000080 3468c2ecf20Sopenharmony_ci#define BNX2_L2CTX_CMD_TYPE_XI 0x00000240 3478c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TBDR_BHADDR_HI_XI 0x00000258 3488c2ecf20Sopenharmony_ci#define BNX2_L2CTX_TBDR_BHADDR_LO_XI 0x0000025c 3498c2ecf20Sopenharmony_ci 3508c2ecf20Sopenharmony_ci/* 3518c2ecf20Sopenharmony_ci * l2_bd_chain_context definition 3528c2ecf20Sopenharmony_ci */ 3538c2ecf20Sopenharmony_ci#define BNX2_L2CTX_BD_PRE_READ 0x00000000 3548c2ecf20Sopenharmony_ci#define BNX2_L2CTX_CTX_SIZE 0x00000000 3558c2ecf20Sopenharmony_ci#define BNX2_L2CTX_CTX_TYPE 0x00000000 3568c2ecf20Sopenharmony_ci#define BNX2_L2CTX_FLOW_CTRL_ENABLE 0x000000ff 3578c2ecf20Sopenharmony_ci#define BNX2_L2CTX_CTX_TYPE_SIZE_L2 ((0x20/20)<<16) 3588c2ecf20Sopenharmony_ci#define BNX2_L2CTX_CTX_TYPE_CTX_BD_CHN_TYPE (0xf<<28) 3598c2ecf20Sopenharmony_ci#define BNX2_L2CTX_CTX_TYPE_CTX_BD_CHN_TYPE_UNDEFINED (0<<28) 3608c2ecf20Sopenharmony_ci#define BNX2_L2CTX_CTX_TYPE_CTX_BD_CHN_TYPE_VALUE (1<<28) 3618c2ecf20Sopenharmony_ci 3628c2ecf20Sopenharmony_ci#define BNX2_L2CTX_HOST_BDIDX 0x00000004 3638c2ecf20Sopenharmony_ci#define BNX2_L2CTX_L5_STATUSB_NUM_SHIFT 16 3648c2ecf20Sopenharmony_ci#define BNX2_L2CTX_L2_STATUSB_NUM_SHIFT 24 3658c2ecf20Sopenharmony_ci#define BNX2_L2CTX_L5_STATUSB_NUM(sb_id) \ 3668c2ecf20Sopenharmony_ci (((sb_id) > 0) ? (((sb_id) + 7) << BNX2_L2CTX_L5_STATUSB_NUM_SHIFT) : 0) 3678c2ecf20Sopenharmony_ci#define BNX2_L2CTX_L2_STATUSB_NUM(sb_id) \ 3688c2ecf20Sopenharmony_ci (((sb_id) > 0) ? (((sb_id) + 7) << BNX2_L2CTX_L2_STATUSB_NUM_SHIFT) : 0) 3698c2ecf20Sopenharmony_ci#define BNX2_L2CTX_HOST_BSEQ 0x00000008 3708c2ecf20Sopenharmony_ci#define BNX2_L2CTX_NX_BSEQ 0x0000000c 3718c2ecf20Sopenharmony_ci#define BNX2_L2CTX_NX_BDHADDR_HI 0x00000010 3728c2ecf20Sopenharmony_ci#define BNX2_L2CTX_NX_BDHADDR_LO 0x00000014 3738c2ecf20Sopenharmony_ci#define BNX2_L2CTX_NX_BDIDX 0x00000018 3748c2ecf20Sopenharmony_ci 3758c2ecf20Sopenharmony_ci#define BNX2_L2CTX_HOST_PG_BDIDX 0x00000044 3768c2ecf20Sopenharmony_ci#define BNX2_L2CTX_PG_BUF_SIZE 0x00000048 3778c2ecf20Sopenharmony_ci#define BNX2_L2CTX_RBDC_KEY 0x0000004c 3788c2ecf20Sopenharmony_ci#define BNX2_L2CTX_RBDC_JUMBO_KEY 0x3ffe 3798c2ecf20Sopenharmony_ci#define BNX2_L2CTX_NX_PG_BDHADDR_HI 0x00000050 3808c2ecf20Sopenharmony_ci#define BNX2_L2CTX_NX_PG_BDHADDR_LO 0x00000054 3818c2ecf20Sopenharmony_ci 3828c2ecf20Sopenharmony_ci/* 3838c2ecf20Sopenharmony_ci * pci_config_l definition 3848c2ecf20Sopenharmony_ci * offset: 0000 3858c2ecf20Sopenharmony_ci */ 3868c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MSI_CONTROL 0x00000058 3878c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MSI_CONTROL_ENABLE (1L<<16) 3888c2ecf20Sopenharmony_ci 3898c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG 0x00000068 3908c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG_TARGET_BYTE_SWAP (1L<<2) 3918c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG_TARGET_MB_WORD_SWAP (1L<<3) 3928c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG_RESERVED1 (1L<<4) 3938c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG_CLOCK_CTL_ENA (1L<<5) 3948c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG_TARGET_GRC_WORD_SWAP (1L<<6) 3958c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG_REG_WINDOW_ENA (1L<<7) 3968c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG_CORE_RST_REQ (1L<<8) 3978c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG_CORE_RST_BSY (1L<<9) 3988c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG_GRC_WIN1_SWAP_EN (1L<<10) 3998c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG_GRC_WIN2_SWAP_EN (1L<<11) 4008c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG_GRC_WIN3_SWAP_EN (1L<<12) 4018c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG_ASIC_METAL_REV (0xffL<<16) 4028c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG_ASIC_BASE_REV (0xfL<<24) 4038c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_CONFIG_ASIC_ID (0xfL<<28) 4048c2ecf20Sopenharmony_ci 4058c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_STATUS 0x0000006c 4068c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_STATUS_INTA_VALUE (1L<<0) 4078c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_STATUS_32BIT_DET (1L<<1) 4088c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_STATUS_M66EN (1L<<2) 4098c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_STATUS_PCIX_DET (1L<<3) 4108c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_STATUS_PCIX_SPEED (0x3L<<4) 4118c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_STATUS_PCIX_SPEED_66 (0L<<4) 4128c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_STATUS_PCIX_SPEED_100 (1L<<4) 4138c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_STATUS_PCIX_SPEED_133 (2L<<4) 4148c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_STATUS_PCIX_SPEED_PCI_MODE (3L<<4) 4158c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MISC_STATUS_BAD_MEM_WRITE_BE (1L<<8) 4168c2ecf20Sopenharmony_ci 4178c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS 0x00000070 4188c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET (0xfL<<0) 4198c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_32MHZ (0L<<0) 4208c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_38MHZ (1L<<0) 4218c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_48MHZ (2L<<0) 4228c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_55MHZ (3L<<0) 4238c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_66MHZ (4L<<0) 4248c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_80MHZ (5L<<0) 4258c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_95MHZ (6L<<0) 4268c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_133MHZ (7L<<0) 4278c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_LOW (0xfL<<0) 4288c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_CORE_CLK_DISABLE (1L<<6) 4298c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_CORE_CLK_ALT (1L<<7) 4308c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_CORE_CLK_ALT_SRC (0x7L<<8) 4318c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_CORE_CLK_ALT_SRC_UNDEF (0L<<8) 4328c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_CORE_CLK_ALT_SRC_12 (1L<<8) 4338c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_CORE_CLK_ALT_SRC_6 (2L<<8) 4348c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_CORE_CLK_ALT_SRC_62 (4L<<8) 4358c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_MIN_POWER (1L<<11) 4368c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_CORE_CLK_PLL_SPEED (0xfL<<12) 4378c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_CORE_CLK_PLL_SPEED_100 (0L<<12) 4388c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_CORE_CLK_PLL_SPEED_80 (1L<<12) 4398c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_CORE_CLK_PLL_SPEED_50 (2L<<12) 4408c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_CORE_CLK_PLL_SPEED_40 (4L<<12) 4418c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_CORE_CLK_PLL_SPEED_25 (8L<<12) 4428c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_CORE_CLK_PLL_STOP (1L<<16) 4438c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_RESERVED_17 (1L<<17) 4448c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_RESERVED_18 (1L<<18) 4458c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_RESERVED_19 (1L<<19) 4468c2ecf20Sopenharmony_ci#define BNX2_PCICFG_PCI_CLOCK_CONTROL_BITS_RESERVED (0xfffL<<20) 4478c2ecf20Sopenharmony_ci 4488c2ecf20Sopenharmony_ci#define BNX2_PCICFG_REG_WINDOW_ADDRESS 0x00000078 4498c2ecf20Sopenharmony_ci#define BNX2_PCICFG_REG_WINDOW_ADDRESS_VAL (0xfffffL<<2) 4508c2ecf20Sopenharmony_ci 4518c2ecf20Sopenharmony_ci#define BNX2_PCICFG_REG_WINDOW 0x00000080 4528c2ecf20Sopenharmony_ci#define BNX2_PCICFG_INT_ACK_CMD 0x00000084 4538c2ecf20Sopenharmony_ci#define BNX2_PCICFG_INT_ACK_CMD_INDEX (0xffffL<<0) 4548c2ecf20Sopenharmony_ci#define BNX2_PCICFG_INT_ACK_CMD_INDEX_VALID (1L<<16) 4558c2ecf20Sopenharmony_ci#define BNX2_PCICFG_INT_ACK_CMD_USE_INT_HC_PARAM (1L<<17) 4568c2ecf20Sopenharmony_ci#define BNX2_PCICFG_INT_ACK_CMD_MASK_INT (1L<<18) 4578c2ecf20Sopenharmony_ci#define BNX2_PCICFG_INT_ACK_CMD_INTERRUPT_NUM (0xfL<<24) 4588c2ecf20Sopenharmony_ci#define BNX2_PCICFG_INT_ACK_CMD_INT_NUM_SHIFT 24 4598c2ecf20Sopenharmony_ci 4608c2ecf20Sopenharmony_ci#define BNX2_PCICFG_STATUS_BIT_SET_CMD 0x00000088 4618c2ecf20Sopenharmony_ci#define BNX2_PCICFG_STATUS_BIT_CLEAR_CMD 0x0000008c 4628c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MAILBOX_QUEUE_ADDR 0x00000090 4638c2ecf20Sopenharmony_ci#define BNX2_PCICFG_MAILBOX_QUEUE_DATA 0x00000094 4648c2ecf20Sopenharmony_ci 4658c2ecf20Sopenharmony_ci#define BNX2_PCICFG_DEVICE_CONTROL 0x000000b4 4668c2ecf20Sopenharmony_ci#define BNX2_PCICFG_DEVICE_STATUS_NO_PEND ((1L<<5)<<16) 4678c2ecf20Sopenharmony_ci 4688c2ecf20Sopenharmony_ci/* 4698c2ecf20Sopenharmony_ci * pci_reg definition 4708c2ecf20Sopenharmony_ci * offset: 0x400 4718c2ecf20Sopenharmony_ci */ 4728c2ecf20Sopenharmony_ci#define BNX2_PCI_GRC_WINDOW_ADDR 0x00000400 4738c2ecf20Sopenharmony_ci#define BNX2_PCI_GRC_WINDOW_ADDR_VALUE (0x1ffL<<13) 4748c2ecf20Sopenharmony_ci#define BNX2_PCI_GRC_WINDOW_ADDR_SEP_WIN (1L<<31) 4758c2ecf20Sopenharmony_ci 4768c2ecf20Sopenharmony_ci#define BNX2_PCI_GRC_WINDOW2_BASE 0xc000 4778c2ecf20Sopenharmony_ci#define BNX2_PCI_GRC_WINDOW3_BASE 0xe000 4788c2ecf20Sopenharmony_ci 4798c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1 0x00000404 4808c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_RESERVED0 (0xffL<<0) 4818c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_READ_BOUNDARY (0x7L<<8) 4828c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_READ_BOUNDARY_OFF (0L<<8) 4838c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_READ_BOUNDARY_16 (1L<<8) 4848c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_READ_BOUNDARY_32 (2L<<8) 4858c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_READ_BOUNDARY_64 (3L<<8) 4868c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_READ_BOUNDARY_128 (4L<<8) 4878c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_READ_BOUNDARY_256 (5L<<8) 4888c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_READ_BOUNDARY_512 (6L<<8) 4898c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_READ_BOUNDARY_1024 (7L<<8) 4908c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_WRITE_BOUNDARY (0x7L<<11) 4918c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_WRITE_BOUNDARY_OFF (0L<<11) 4928c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_WRITE_BOUNDARY_16 (1L<<11) 4938c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_WRITE_BOUNDARY_32 (2L<<11) 4948c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_WRITE_BOUNDARY_64 (3L<<11) 4958c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_WRITE_BOUNDARY_128 (4L<<11) 4968c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_WRITE_BOUNDARY_256 (5L<<11) 4978c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_WRITE_BOUNDARY_512 (6L<<11) 4988c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_WRITE_BOUNDARY_1024 (7L<<11) 4998c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_1_RESERVED1 (0x3ffffL<<14) 5008c2ecf20Sopenharmony_ci 5018c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2 0x00000408 5028c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE (0xfL<<0) 5038c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_DISABLED (0L<<0) 5048c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_64K (1L<<0) 5058c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_128K (2L<<0) 5068c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_256K (3L<<0) 5078c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_512K (4L<<0) 5088c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_1M (5L<<0) 5098c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_2M (6L<<0) 5108c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_4M (7L<<0) 5118c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_8M (8L<<0) 5128c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_16M (9L<<0) 5138c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_32M (10L<<0) 5148c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_64M (11L<<0) 5158c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_128M (12L<<0) 5168c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_256M (13L<<0) 5178c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_512M (14L<<0) 5188c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_SIZE_1G (15L<<0) 5198c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR1_64ENA (1L<<4) 5208c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_RETRY (1L<<5) 5218c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_CFG_CYCLE_RETRY (1L<<6) 5228c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_FIRST_CFG_DONE (1L<<7) 5238c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE (0xffL<<8) 5248c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_DISABLED (0L<<8) 5258c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_1K (1L<<8) 5268c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_2K (2L<<8) 5278c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_4K (3L<<8) 5288c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_8K (4L<<8) 5298c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_16K (5L<<8) 5308c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_32K (6L<<8) 5318c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_64K (7L<<8) 5328c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_128K (8L<<8) 5338c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_256K (9L<<8) 5348c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_512K (10L<<8) 5358c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_1M (11L<<8) 5368c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_2M (12L<<8) 5378c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_4M (13L<<8) 5388c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_8M (14L<<8) 5398c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_EXP_ROM_SIZE_16M (15L<<8) 5408c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_MAX_SPLIT_LIMIT (0x1fL<<16) 5418c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_MAX_READ_LIMIT (0x3L<<21) 5428c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_MAX_READ_LIMIT_512 (0L<<21) 5438c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_MAX_READ_LIMIT_1K (1L<<21) 5448c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_MAX_READ_LIMIT_2K (2L<<21) 5458c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_MAX_READ_LIMIT_4K (3L<<21) 5468c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_FORCE_32_BIT_MSTR (1L<<23) 5478c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_FORCE_32_BIT_TGT (1L<<24) 5488c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_KEEP_REQ_ASSERT (1L<<25) 5498c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_RESERVED0 (0x3fL<<26) 5508c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_BAR_PREFETCH_XI (1L<<16) 5518c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_2_RESERVED0_XI (0x7fffL<<17) 5528c2ecf20Sopenharmony_ci 5538c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_3 0x0000040c 5548c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_3_STICKY_BYTE (0xffL<<0) 5558c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_3_REG_STICKY_BYTE (0xffL<<8) 5568c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_3_FORCE_PME (1L<<24) 5578c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_3_PME_STATUS (1L<<25) 5588c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_3_PME_ENABLE (1L<<26) 5598c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_3_PM_STATE (0x3L<<27) 5608c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_3_VAUX_PRESET (1L<<30) 5618c2ecf20Sopenharmony_ci#define BNX2_PCI_CONFIG_3_PCI_POWER (1L<<31) 5628c2ecf20Sopenharmony_ci 5638c2ecf20Sopenharmony_ci#define BNX2_PCI_PM_DATA_A 0x00000410 5648c2ecf20Sopenharmony_ci#define BNX2_PCI_PM_DATA_A_PM_DATA_0_PRG (0xffL<<0) 5658c2ecf20Sopenharmony_ci#define BNX2_PCI_PM_DATA_A_PM_DATA_1_PRG (0xffL<<8) 5668c2ecf20Sopenharmony_ci#define BNX2_PCI_PM_DATA_A_PM_DATA_2_PRG (0xffL<<16) 5678c2ecf20Sopenharmony_ci#define BNX2_PCI_PM_DATA_A_PM_DATA_3_PRG (0xffL<<24) 5688c2ecf20Sopenharmony_ci 5698c2ecf20Sopenharmony_ci#define BNX2_PCI_PM_DATA_B 0x00000414 5708c2ecf20Sopenharmony_ci#define BNX2_PCI_PM_DATA_B_PM_DATA_4_PRG (0xffL<<0) 5718c2ecf20Sopenharmony_ci#define BNX2_PCI_PM_DATA_B_PM_DATA_5_PRG (0xffL<<8) 5728c2ecf20Sopenharmony_ci#define BNX2_PCI_PM_DATA_B_PM_DATA_6_PRG (0xffL<<16) 5738c2ecf20Sopenharmony_ci#define BNX2_PCI_PM_DATA_B_PM_DATA_7_PRG (0xffL<<24) 5748c2ecf20Sopenharmony_ci 5758c2ecf20Sopenharmony_ci#define BNX2_PCI_SWAP_DIAG0 0x00000418 5768c2ecf20Sopenharmony_ci#define BNX2_PCI_SWAP_DIAG1 0x0000041c 5778c2ecf20Sopenharmony_ci#define BNX2_PCI_EXP_ROM_ADDR 0x00000420 5788c2ecf20Sopenharmony_ci#define BNX2_PCI_EXP_ROM_ADDR_ADDRESS (0x3fffffL<<2) 5798c2ecf20Sopenharmony_ci#define BNX2_PCI_EXP_ROM_ADDR_REQ (1L<<31) 5808c2ecf20Sopenharmony_ci 5818c2ecf20Sopenharmony_ci#define BNX2_PCI_EXP_ROM_DATA 0x00000424 5828c2ecf20Sopenharmony_ci#define BNX2_PCI_VPD_INTF 0x00000428 5838c2ecf20Sopenharmony_ci#define BNX2_PCI_VPD_INTF_INTF_REQ (1L<<0) 5848c2ecf20Sopenharmony_ci 5858c2ecf20Sopenharmony_ci#define BNX2_PCI_VPD_ADDR_FLAG 0x0000042c 5868c2ecf20Sopenharmony_ci#define BNX2_PCI_VPD_ADDR_FLAG_MSK 0x0000ffff 5878c2ecf20Sopenharmony_ci#define BNX2_PCI_VPD_ADDR_FLAG_SL 0L 5888c2ecf20Sopenharmony_ci#define BNX2_PCI_VPD_ADDR_FLAG_ADDRESS (0x1fffL<<2) 5898c2ecf20Sopenharmony_ci#define BNX2_PCI_VPD_ADDR_FLAG_WR (1L<<15) 5908c2ecf20Sopenharmony_ci 5918c2ecf20Sopenharmony_ci#define BNX2_PCI_VPD_DATA 0x00000430 5928c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL1 0x00000434 5938c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL1_DEVICE_ID (0xffffL<<0) 5948c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL1_VENDOR_ID (0xffffL<<16) 5958c2ecf20Sopenharmony_ci 5968c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL2 0x00000438 5978c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL2_SUBSYSTEM_VENDOR_ID (0xffffL<<0) 5988c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL2_SUBSYSTEM_ID (0xffffL<<16) 5998c2ecf20Sopenharmony_ci 6008c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL3 0x0000043c 6018c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL3_CLASS_CODE (0xffffffL<<0) 6028c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL3_REVISION_ID (0xffL<<24) 6038c2ecf20Sopenharmony_ci 6048c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4 0x00000440 6058c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA (0xfL<<0) 6068c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_0 (0L<<0) 6078c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_1 (1L<<0) 6088c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_2 (2L<<0) 6098c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_3 (3L<<0) 6108c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_4 (4L<<0) 6118c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_5 (5L<<0) 6128c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_6 (6L<<0) 6138c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_7 (7L<<0) 6148c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_8 (8L<<0) 6158c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_9 (9L<<0) 6168c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_10 (10L<<0) 6178c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_11 (11L<<0) 6188c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_12 (12L<<0) 6198c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_13 (13L<<0) 6208c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_14 (14L<<0) 6218c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_CAP_ENA_15 (15L<<0) 6228c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_RESERVED0 (0x3L<<4) 6238c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_PM_SCALE_PRG (0x3L<<6) 6248c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_PM_SCALE_PRG_0 (0L<<6) 6258c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_PM_SCALE_PRG_1 (1L<<6) 6268c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_PM_SCALE_PRG_2 (2L<<6) 6278c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_PM_SCALE_PRG_3 (3L<<6) 6288c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_MSI_PV_MASK_CAP (1L<<8) 6298c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_MSI_LIMIT (0x7L<<9) 6308c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_MULTI_MSG_CAP (0x7L<<12) 6318c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_MSI_ENABLE (1L<<15) 6328c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_MAX_64_ADVERTIZE (1L<<16) 6338c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_MAX_133_ADVERTIZE (1L<<17) 6348c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_RESERVED2 (0x7L<<18) 6358c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_MAX_CUMULATIVE_SIZE_B21 (0x3L<<21) 6368c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_MAX_SPLIT_SIZE_B21 (0x3L<<23) 6378c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_MAX_CUMULATIVE_SIZE_B0 (1L<<25) 6388c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_MAX_MEM_READ_SIZE_B10 (0x3L<<26) 6398c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_MAX_SPLIT_SIZE_B0 (1L<<28) 6408c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_RESERVED3 (0x7L<<29) 6418c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL4_RESERVED3_XI (0xffffL<<16) 6428c2ecf20Sopenharmony_ci 6438c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL5 0x00000444 6448c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL5_D1_SUPPORT (1L<<0) 6458c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL5_D2_SUPPORT (1L<<1) 6468c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL5_PME_IN_D0 (1L<<2) 6478c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL5_PME_IN_D1 (1L<<3) 6488c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL5_PME_IN_D2 (1L<<4) 6498c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL5_PME_IN_D3_HOT (1L<<5) 6508c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL5_RESERVED0_TE (0x3ffffffL<<6) 6518c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL5_PM_VERSION_XI (0x7L<<6) 6528c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL5_NO_SOFT_RESET_XI (1L<<9) 6538c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL5_RESERVED0_XI (0x3fffffL<<10) 6548c2ecf20Sopenharmony_ci 6558c2ecf20Sopenharmony_ci#define BNX2_PCI_PCIX_EXTENDED_STATUS 0x00000448 6568c2ecf20Sopenharmony_ci#define BNX2_PCI_PCIX_EXTENDED_STATUS_NO_SNOOP (1L<<8) 6578c2ecf20Sopenharmony_ci#define BNX2_PCI_PCIX_EXTENDED_STATUS_LONG_BURST (1L<<9) 6588c2ecf20Sopenharmony_ci#define BNX2_PCI_PCIX_EXTENDED_STATUS_SPLIT_COMP_MSG_CLASS (0xfL<<16) 6598c2ecf20Sopenharmony_ci#define BNX2_PCI_PCIX_EXTENDED_STATUS_SPLIT_COMP_MSG_IDX (0xffL<<24) 6608c2ecf20Sopenharmony_ci 6618c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL6 0x0000044c 6628c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL6_MAX_LAT (0xffL<<0) 6638c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL6_MIN_GNT (0xffL<<8) 6648c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL6_BIST (0xffL<<16) 6658c2ecf20Sopenharmony_ci#define BNX2_PCI_ID_VAL6_RESERVED0 (0xffL<<24) 6668c2ecf20Sopenharmony_ci 6678c2ecf20Sopenharmony_ci#define BNX2_PCI_MSI_DATA 0x00000450 6688c2ecf20Sopenharmony_ci#define BNX2_PCI_MSI_DATA_MSI_DATA (0xffffL<<0) 6698c2ecf20Sopenharmony_ci 6708c2ecf20Sopenharmony_ci#define BNX2_PCI_MSI_ADDR_H 0x00000454 6718c2ecf20Sopenharmony_ci#define BNX2_PCI_MSI_ADDR_L 0x00000458 6728c2ecf20Sopenharmony_ci#define BNX2_PCI_MSI_ADDR_L_VAL (0x3fffffffL<<2) 6738c2ecf20Sopenharmony_ci 6748c2ecf20Sopenharmony_ci#define BNX2_PCI_CFG_ACCESS_CMD 0x0000045c 6758c2ecf20Sopenharmony_ci#define BNX2_PCI_CFG_ACCESS_CMD_ADR (0x3fL<<2) 6768c2ecf20Sopenharmony_ci#define BNX2_PCI_CFG_ACCESS_CMD_RD_REQ (1L<<27) 6778c2ecf20Sopenharmony_ci#define BNX2_PCI_CFG_ACCESS_CMD_WR_REQ (0xfL<<28) 6788c2ecf20Sopenharmony_ci 6798c2ecf20Sopenharmony_ci#define BNX2_PCI_CFG_ACCESS_DATA 0x00000460 6808c2ecf20Sopenharmony_ci#define BNX2_PCI_MSI_MASK 0x00000464 6818c2ecf20Sopenharmony_ci#define BNX2_PCI_MSI_MASK_MSI_MASK (0xffffffffL<<0) 6828c2ecf20Sopenharmony_ci 6838c2ecf20Sopenharmony_ci#define BNX2_PCI_MSI_PEND 0x00000468 6848c2ecf20Sopenharmony_ci#define BNX2_PCI_MSI_PEND_MSI_PEND (0xffffffffL<<0) 6858c2ecf20Sopenharmony_ci 6868c2ecf20Sopenharmony_ci#define BNX2_PCI_PM_DATA_C 0x0000046c 6878c2ecf20Sopenharmony_ci#define BNX2_PCI_PM_DATA_C_PM_DATA_8_PRG (0xffL<<0) 6888c2ecf20Sopenharmony_ci#define BNX2_PCI_PM_DATA_C_RESERVED0 (0xffffffL<<8) 6898c2ecf20Sopenharmony_ci 6908c2ecf20Sopenharmony_ci#define BNX2_PCI_MSIX_CONTROL 0x000004c0 6918c2ecf20Sopenharmony_ci#define BNX2_PCI_MSIX_CONTROL_MSIX_TBL_SIZ (0x7ffL<<0) 6928c2ecf20Sopenharmony_ci#define BNX2_PCI_MSIX_CONTROL_RESERVED0 (0x1fffffL<<11) 6938c2ecf20Sopenharmony_ci 6948c2ecf20Sopenharmony_ci#define BNX2_PCI_MSIX_TBL_OFF_BIR 0x000004c4 6958c2ecf20Sopenharmony_ci#define BNX2_PCI_MSIX_TBL_OFF_BIR_MSIX_TBL_BIR (0x7L<<0) 6968c2ecf20Sopenharmony_ci#define BNX2_PCI_MSIX_TBL_OFF_BIR_MSIX_TBL_OFF (0x1fffffffL<<3) 6978c2ecf20Sopenharmony_ci 6988c2ecf20Sopenharmony_ci#define BNX2_PCI_MSIX_PBA_OFF_BIT 0x000004c8 6998c2ecf20Sopenharmony_ci#define BNX2_PCI_MSIX_PBA_OFF_BIT_MSIX_PBA_BIR (0x7L<<0) 7008c2ecf20Sopenharmony_ci#define BNX2_PCI_MSIX_PBA_OFF_BIT_MSIX_PBA_OFF (0x1fffffffL<<3) 7018c2ecf20Sopenharmony_ci 7028c2ecf20Sopenharmony_ci#define BNX2_PCI_PCIE_CAPABILITY 0x000004d0 7038c2ecf20Sopenharmony_ci#define BNX2_PCI_PCIE_CAPABILITY_INTERRUPT_MSG_NUM (0x1fL<<0) 7048c2ecf20Sopenharmony_ci#define BNX2_PCI_PCIE_CAPABILITY_COMPLY_PCIE_1_1 (1L<<5) 7058c2ecf20Sopenharmony_ci 7068c2ecf20Sopenharmony_ci#define BNX2_PCI_DEVICE_CAPABILITY 0x000004d4 7078c2ecf20Sopenharmony_ci#define BNX2_PCI_DEVICE_CAPABILITY_MAX_PL_SIZ_SUPPORTED (0x7L<<0) 7088c2ecf20Sopenharmony_ci#define BNX2_PCI_DEVICE_CAPABILITY_EXTENDED_TAG_SUPPORT (1L<<5) 7098c2ecf20Sopenharmony_ci#define BNX2_PCI_DEVICE_CAPABILITY_L0S_ACCEPTABLE_LATENCY (0x7L<<6) 7108c2ecf20Sopenharmony_ci#define BNX2_PCI_DEVICE_CAPABILITY_L1_ACCEPTABLE_LATENCY (0x7L<<9) 7118c2ecf20Sopenharmony_ci#define BNX2_PCI_DEVICE_CAPABILITY_ROLE_BASED_ERR_RPT (1L<<15) 7128c2ecf20Sopenharmony_ci 7138c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY 0x000004dc 7148c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_MAX_LINK_SPEED (0xfL<<0) 7158c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_MAX_LINK_SPEED_0001 (1L<<0) 7168c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_MAX_LINK_SPEED_0010 (1L<<0) 7178c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_MAX_LINK_WIDTH (0x1fL<<4) 7188c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_CLK_POWER_MGMT (1L<<9) 7198c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_ASPM_SUPPORT (0x3L<<10) 7208c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_L0S_EXIT_LAT (0x7L<<12) 7218c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_L0S_EXIT_LAT_101 (5L<<12) 7228c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_L0S_EXIT_LAT_110 (6L<<12) 7238c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_L1_EXIT_LAT (0x7L<<15) 7248c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_L1_EXIT_LAT_001 (1L<<15) 7258c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_L1_EXIT_LAT_010 (2L<<15) 7268c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_L0S_EXIT_COMM_LAT (0x7L<<18) 7278c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_L0S_EXIT_COMM_LAT_101 (5L<<18) 7288c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_L0S_EXIT_COMM_LAT_110 (6L<<18) 7298c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_L1_EXIT_COMM_LAT (0x7L<<21) 7308c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_L1_EXIT_COMM_LAT_001 (1L<<21) 7318c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_L1_EXIT_COMM_LAT_010 (2L<<21) 7328c2ecf20Sopenharmony_ci#define BNX2_PCI_LINK_CAPABILITY_PORT_NUM (0xffL<<24) 7338c2ecf20Sopenharmony_ci 7348c2ecf20Sopenharmony_ci#define BNX2_PCI_PCIE_DEVICE_CAPABILITY_2 0x000004e4 7358c2ecf20Sopenharmony_ci#define BNX2_PCI_PCIE_DEVICE_CAPABILITY_2_CMPL_TO_RANGE_SUPP (0xfL<<0) 7368c2ecf20Sopenharmony_ci#define BNX2_PCI_PCIE_DEVICE_CAPABILITY_2_CMPL_TO_DISABL_SUPP (1L<<4) 7378c2ecf20Sopenharmony_ci#define BNX2_PCI_PCIE_DEVICE_CAPABILITY_2_RESERVED (0x7ffffffL<<5) 7388c2ecf20Sopenharmony_ci 7398c2ecf20Sopenharmony_ci#define BNX2_PCI_PCIE_LINK_CAPABILITY_2 0x000004e8 7408c2ecf20Sopenharmony_ci#define BNX2_PCI_PCIE_LINK_CAPABILITY_2_RESERVED (0xffffffffL<<0) 7418c2ecf20Sopenharmony_ci 7428c2ecf20Sopenharmony_ci#define BNX2_PCI_GRC_WINDOW1_ADDR 0x00000610 7438c2ecf20Sopenharmony_ci#define BNX2_PCI_GRC_WINDOW1_ADDR_VALUE (0x1ffL<<13) 7448c2ecf20Sopenharmony_ci 7458c2ecf20Sopenharmony_ci#define BNX2_PCI_GRC_WINDOW2_ADDR 0x00000614 7468c2ecf20Sopenharmony_ci#define BNX2_PCI_GRC_WINDOW2_ADDR_VALUE (0x1ffL<<13) 7478c2ecf20Sopenharmony_ci 7488c2ecf20Sopenharmony_ci#define BNX2_PCI_GRC_WINDOW3_ADDR 0x00000618 7498c2ecf20Sopenharmony_ci#define BNX2_PCI_GRC_WINDOW3_ADDR_VALUE (0x1ffL<<13) 7508c2ecf20Sopenharmony_ci 7518c2ecf20Sopenharmony_ci#define BNX2_MSIX_TABLE_ADDR 0x318000 7528c2ecf20Sopenharmony_ci#define BNX2_MSIX_PBA_ADDR 0x31c000 7538c2ecf20Sopenharmony_ci 7548c2ecf20Sopenharmony_ci/* 7558c2ecf20Sopenharmony_ci * misc_reg definition 7568c2ecf20Sopenharmony_ci * offset: 0x800 7578c2ecf20Sopenharmony_ci */ 7588c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND 0x00000800 7598c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_ENABLE_ALL (1L<<0) 7608c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_DISABLE_ALL (1L<<1) 7618c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_SW_RESET (1L<<4) 7628c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_POR_RESET (1L<<5) 7638c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_HD_RESET (1L<<6) 7648c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_CMN_SW_RESET (1L<<7) 7658c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_PAR_ERROR (1L<<8) 7668c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_CS16_ERR (1L<<9) 7678c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_CS16_ERR_LOC (0xfL<<12) 7688c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_PAR_ERR_RAM (0x7fL<<16) 7698c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_POWERDOWN_EVENT (1L<<23) 7708c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_SW_SHUTDOWN (1L<<24) 7718c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_SHUTDOWN_EN (1L<<25) 7728c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_DINTEG_ATTN_EN (1L<<26) 7738c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_PCIE_LINK_IN_L23 (1L<<27) 7748c2ecf20Sopenharmony_ci#define BNX2_MISC_COMMAND_PCIE_DIS (1L<<28) 7758c2ecf20Sopenharmony_ci 7768c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG 0x00000804 7778c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_GRC_TMOUT (1L<<0) 7788c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_NVM_WR_EN (0x3L<<1) 7798c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_NVM_WR_EN_PROTECT (0L<<1) 7808c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_NVM_WR_EN_PCI (1L<<1) 7818c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_NVM_WR_EN_ALLOW (2L<<1) 7828c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_NVM_WR_EN_ALLOW2 (3L<<1) 7838c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_BIST_EN (1L<<3) 7848c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_CK25_OUT_ALT_SRC (1L<<4) 7858c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_RESERVED5_TE (1L<<5) 7868c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_RESERVED6_TE (1L<<6) 7878c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_CLK_CTL_OVERRIDE (1L<<7) 7888c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE (0x7L<<8) 7898c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_MAC (0L<<8) 7908c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY1_TE (1L<<8) 7918c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY2_TE (2L<<8) 7928c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY3_TE (3L<<8) 7938c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY4_TE (4L<<8) 7948c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY5_TE (5L<<8) 7958c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY6_TE (6L<<8) 7968c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY7_TE (7L<<8) 7978c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_MCP_GRC_TMOUT_TE (1L<<11) 7988c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_DBU_GRC_TMOUT_TE (1L<<12) 7998c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_XI (0xfL<<8) 8008c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_MAC_XI (0L<<8) 8018c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY1_XI (1L<<8) 8028c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY2_XI (2L<<8) 8038c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY3_XI (3L<<8) 8048c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_MAC2_XI (4L<<8) 8058c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY4_XI (5L<<8) 8068c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY5_XI (6L<<8) 8078c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY6_XI (7L<<8) 8088c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_MAC3_XI (8L<<8) 8098c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY7_XI (9L<<8) 8108c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY8_XI (10L<<8) 8118c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY9_XI (11L<<8) 8128c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_MAC4_XI (12L<<8) 8138c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY10_XI (13L<<8) 8148c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_PHY11_XI (14L<<8) 8158c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_LEDMODE_UNUSED_XI (15L<<8) 8168c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_PORT_SELECT_XI (1L<<13) 8178c2ecf20Sopenharmony_ci#define BNX2_MISC_CFG_PARITY_MODE_XI (1L<<14) 8188c2ecf20Sopenharmony_ci 8198c2ecf20Sopenharmony_ci#define BNX2_MISC_ID 0x00000808 8208c2ecf20Sopenharmony_ci#define BNX2_MISC_ID_BOND_ID (0xfL<<0) 8218c2ecf20Sopenharmony_ci#define BNX2_MISC_ID_BOND_ID_X (0L<<0) 8228c2ecf20Sopenharmony_ci#define BNX2_MISC_ID_BOND_ID_C (3L<<0) 8238c2ecf20Sopenharmony_ci#define BNX2_MISC_ID_BOND_ID_S (12L<<0) 8248c2ecf20Sopenharmony_ci#define BNX2_MISC_ID_CHIP_METAL (0xffL<<4) 8258c2ecf20Sopenharmony_ci#define BNX2_MISC_ID_CHIP_REV (0xfL<<12) 8268c2ecf20Sopenharmony_ci#define BNX2_MISC_ID_CHIP_NUM (0xffffL<<16) 8278c2ecf20Sopenharmony_ci 8288c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS 0x0000080c 8298c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_TX_SCHEDULER_ENABLE (1L<<0) 8308c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_TX_BD_READ_ENABLE (1L<<1) 8318c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_TX_BD_CACHE_ENABLE (1L<<2) 8328c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_TX_PROCESSOR_ENABLE (1L<<3) 8338c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_TX_DMA_ENABLE (1L<<4) 8348c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_TX_PATCHUP_ENABLE (1L<<5) 8358c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_TX_PAYLOAD_Q_ENABLE (1L<<6) 8368c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_TX_HEADER_Q_ENABLE (1L<<7) 8378c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_TX_ASSEMBLER_ENABLE (1L<<8) 8388c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_EMAC_ENABLE (1L<<9) 8398c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_RX_PARSER_MAC_ENABLE (1L<<10) 8408c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_RX_PARSER_CATCHUP_ENABLE (1L<<11) 8418c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_RX_MBUF_ENABLE (1L<<12) 8428c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_RX_LOOKUP_ENABLE (1L<<13) 8438c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_RX_PROCESSOR_ENABLE (1L<<14) 8448c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_RX_V2P_ENABLE (1L<<15) 8458c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_RX_BD_CACHE_ENABLE (1L<<16) 8468c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_RX_DMA_ENABLE (1L<<17) 8478c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_COMPLETION_ENABLE (1L<<18) 8488c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_HOST_COALESCE_ENABLE (1L<<19) 8498c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_MAILBOX_QUEUE_ENABLE (1L<<20) 8508c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_CONTEXT_ENABLE (1L<<21) 8518c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_CMD_SCHEDULER_ENABLE (1L<<22) 8528c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_CMD_PROCESSOR_ENABLE (1L<<23) 8538c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_MGMT_PROCESSOR_ENABLE (1L<<24) 8548c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_TIMER_ENABLE (1L<<25) 8558c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_DMA_ENGINE_ENABLE (1L<<26) 8568c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_UMP_ENABLE (1L<<27) 8578c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_RV2P_CMD_SCHEDULER_ENABLE (1L<<28) 8588c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_STATUS_BITS_RSVD_FUTURE_ENABLE (0x7L<<29) 8598c2ecf20Sopenharmony_ci 8608c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS 0x00000810 8618c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_TX_SCHEDULER_ENABLE (1L<<0) 8628c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_TX_BD_READ_ENABLE (1L<<1) 8638c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_TX_BD_CACHE_ENABLE (1L<<2) 8648c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_TX_PROCESSOR_ENABLE (1L<<3) 8658c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_TX_DMA_ENABLE (1L<<4) 8668c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_TX_PATCHUP_ENABLE (1L<<5) 8678c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_TX_PAYLOAD_Q_ENABLE (1L<<6) 8688c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_TX_HEADER_Q_ENABLE (1L<<7) 8698c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_TX_ASSEMBLER_ENABLE (1L<<8) 8708c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_EMAC_ENABLE (1L<<9) 8718c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_RX_PARSER_MAC_ENABLE (1L<<10) 8728c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_RX_PARSER_CATCHUP_ENABLE (1L<<11) 8738c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_RX_MBUF_ENABLE (1L<<12) 8748c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_RX_LOOKUP_ENABLE (1L<<13) 8758c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_RX_PROCESSOR_ENABLE (1L<<14) 8768c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_RX_V2P_ENABLE (1L<<15) 8778c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_RX_BD_CACHE_ENABLE (1L<<16) 8788c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_RX_DMA_ENABLE (1L<<17) 8798c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_COMPLETION_ENABLE (1L<<18) 8808c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_HOST_COALESCE_ENABLE (1L<<19) 8818c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_MAILBOX_QUEUE_ENABLE (1L<<20) 8828c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_CONTEXT_ENABLE (1L<<21) 8838c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_CMD_SCHEDULER_ENABLE (1L<<22) 8848c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_CMD_PROCESSOR_ENABLE (1L<<23) 8858c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_MGMT_PROCESSOR_ENABLE (1L<<24) 8868c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_TIMER_ENABLE (1L<<25) 8878c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_DMA_ENGINE_ENABLE (1L<<26) 8888c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_UMP_ENABLE (1L<<27) 8898c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_RV2P_CMD_SCHEDULER_ENABLE (1L<<28) 8908c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_SET_BITS_RSVD_FUTURE_ENABLE (0x7L<<29) 8918c2ecf20Sopenharmony_ci 8928c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS 0x00000814 8938c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_TX_SCHEDULER_ENABLE (1L<<0) 8948c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_TX_BD_READ_ENABLE (1L<<1) 8958c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_TX_BD_CACHE_ENABLE (1L<<2) 8968c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_TX_PROCESSOR_ENABLE (1L<<3) 8978c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_TX_DMA_ENABLE (1L<<4) 8988c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_TX_PATCHUP_ENABLE (1L<<5) 8998c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_TX_PAYLOAD_Q_ENABLE (1L<<6) 9008c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_TX_HEADER_Q_ENABLE (1L<<7) 9018c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_TX_ASSEMBLER_ENABLE (1L<<8) 9028c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_EMAC_ENABLE (1L<<9) 9038c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_RX_PARSER_MAC_ENABLE (1L<<10) 9048c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_RX_PARSER_CATCHUP_ENABLE (1L<<11) 9058c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_RX_MBUF_ENABLE (1L<<12) 9068c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_RX_LOOKUP_ENABLE (1L<<13) 9078c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_RX_PROCESSOR_ENABLE (1L<<14) 9088c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_RX_V2P_ENABLE (1L<<15) 9098c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_RX_BD_CACHE_ENABLE (1L<<16) 9108c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_RX_DMA_ENABLE (1L<<17) 9118c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_COMPLETION_ENABLE (1L<<18) 9128c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_HOST_COALESCE_ENABLE (1L<<19) 9138c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_MAILBOX_QUEUE_ENABLE (1L<<20) 9148c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_CONTEXT_ENABLE (1L<<21) 9158c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_CMD_SCHEDULER_ENABLE (1L<<22) 9168c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_CMD_PROCESSOR_ENABLE (1L<<23) 9178c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_MGMT_PROCESSOR_ENABLE (1L<<24) 9188c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_TIMER_ENABLE (1L<<25) 9198c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_DMA_ENGINE_ENABLE (1L<<26) 9208c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_UMP_ENABLE (1L<<27) 9218c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_RV2P_CMD_SCHEDULER_ENABLE (1L<<28) 9228c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_CLR_BITS_RSVD_FUTURE_ENABLE (0x7L<<29) 9238c2ecf20Sopenharmony_ci 9248c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS 0x00000818 9258c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET (0xfL<<0) 9268c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_32MHZ (0L<<0) 9278c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_38MHZ (1L<<0) 9288c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_48MHZ (2L<<0) 9298c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_55MHZ (3L<<0) 9308c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_66MHZ (4L<<0) 9318c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_80MHZ (5L<<0) 9328c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_95MHZ (6L<<0) 9338c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_133MHZ (7L<<0) 9348c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_PCI_CLK_SPD_DET_LOW (0xfL<<0) 9358c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_DISABLE (1L<<6) 9368c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_ALT (1L<<7) 9378c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_ALT_SRC (0x7L<<8) 9388c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_ALT_SRC_UNDEF (0L<<8) 9398c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_ALT_SRC_12 (1L<<8) 9408c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_ALT_SRC_6 (2L<<8) 9418c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_ALT_SRC_62 (4L<<8) 9428c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_RESERVED0_XI (0x7L<<8) 9438c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_MIN_POWER (1L<<11) 9448c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_PLL_SPEED (0xfL<<12) 9458c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_PLL_SPEED_100 (0L<<12) 9468c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_PLL_SPEED_80 (1L<<12) 9478c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_PLL_SPEED_50 (2L<<12) 9488c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_PLL_SPEED_40 (4L<<12) 9498c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_PLL_SPEED_25 (8L<<12) 9508c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_RESERVED1_XI (0xfL<<12) 9518c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_PLL_STOP (1L<<16) 9528c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_RESERVED_17_TE (1L<<17) 9538c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_RESERVED_18_TE (1L<<18) 9548c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_RESERVED_19_TE (1L<<19) 9558c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_RESERVED_TE (0xfffL<<20) 9568c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_ALT_MGMT_XI (1L<<17) 9578c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_RESERVED2_XI (0x3fL<<18) 9588c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_PLL_VCO_XI (0x7L<<24) 9598c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_RESERVED3_XI (1L<<27) 9608c2ecf20Sopenharmony_ci#define BNX2_MISC_CLOCK_CONTROL_BITS_CORE_CLK_PLL_SPEED_XI (0xfL<<28) 9618c2ecf20Sopenharmony_ci 9628c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO 0x0000081c 9638c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_VALUE (0xffL<<0) 9648c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_SET (0xffL<<8) 9658c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_CLR (0xffL<<16) 9668c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_FLOAT (0xffL<<24) 9678c2ecf20Sopenharmony_ci 9688c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_INT 0x00000820 9698c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_INT_INT_STATE_TE (0xfL<<0) 9708c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_INT_OLD_VALUE_TE (0xfL<<8) 9718c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_INT_OLD_SET_TE (0xfL<<16) 9728c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_INT_OLD_CLR_TE (0xfL<<24) 9738c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_INT_INT_STATE_XI (0xffL<<0) 9748c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_INT_OLD_VALUE_XI (0xffL<<8) 9758c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_INT_OLD_SET_XI (0xffL<<16) 9768c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_INT_OLD_CLR_XI (0xffL<<24) 9778c2ecf20Sopenharmony_ci 9788c2ecf20Sopenharmony_ci#define BNX2_MISC_CONFIG_LFSR 0x00000824 9798c2ecf20Sopenharmony_ci#define BNX2_MISC_CONFIG_LFSR_DIV (0xffffL<<0) 9808c2ecf20Sopenharmony_ci 9818c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS 0x00000828 9828c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_TX_SCHEDULER_ENABLE (1L<<0) 9838c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_TX_BD_READ_ENABLE (1L<<1) 9848c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_TX_BD_CACHE_ENABLE (1L<<2) 9858c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_TX_PROCESSOR_ENABLE (1L<<3) 9868c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_TX_DMA_ENABLE (1L<<4) 9878c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_TX_PATCHUP_ENABLE (1L<<5) 9888c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_TX_PAYLOAD_Q_ENABLE (1L<<6) 9898c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_TX_HEADER_Q_ENABLE (1L<<7) 9908c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_TX_ASSEMBLER_ENABLE (1L<<8) 9918c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_EMAC_ENABLE (1L<<9) 9928c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_RX_PARSER_MAC_ENABLE (1L<<10) 9938c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_RX_PARSER_CATCHUP_ENABLE (1L<<11) 9948c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_RX_MBUF_ENABLE (1L<<12) 9958c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_RX_LOOKUP_ENABLE (1L<<13) 9968c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_RX_PROCESSOR_ENABLE (1L<<14) 9978c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_RX_V2P_ENABLE (1L<<15) 9988c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_RX_BD_CACHE_ENABLE (1L<<16) 9998c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_RX_DMA_ENABLE (1L<<17) 10008c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_COMPLETION_ENABLE (1L<<18) 10018c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_HOST_COALESCE_ENABLE (1L<<19) 10028c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_MAILBOX_QUEUE_ENABLE (1L<<20) 10038c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_CONTEXT_ENABLE (1L<<21) 10048c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_CMD_SCHEDULER_ENABLE (1L<<22) 10058c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_CMD_PROCESSOR_ENABLE (1L<<23) 10068c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_MGMT_PROCESSOR_ENABLE (1L<<24) 10078c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_TIMER_ENABLE (1L<<25) 10088c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_DMA_ENGINE_ENABLE (1L<<26) 10098c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_UMP_ENABLE (1L<<27) 10108c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_RV2P_CMD_SCHEDULER_ENABLE (1L<<28) 10118c2ecf20Sopenharmony_ci#define BNX2_MISC_LFSR_MASK_BITS_RSVD_FUTURE_ENABLE (0x7L<<29) 10128c2ecf20Sopenharmony_ci 10138c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_REQ0 0x0000082c 10148c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_REQ1 0x00000830 10158c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_REQ2 0x00000834 10168c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_REQ3 0x00000838 10178c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_REQ4 0x0000083c 10188c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_FREE0 0x00000840 10198c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_FREE1 0x00000844 10208c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_FREE2 0x00000848 10218c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_FREE3 0x0000084c 10228c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_FREE4 0x00000850 10238c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_REQ_STATUS0 0x00000854 10248c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_REQ_STATUS1 0x00000858 10258c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_REQ_STATUS2 0x0000085c 10268c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_REQ_STATUS3 0x00000860 10278c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_REQ_STATUS4 0x00000864 10288c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT0 0x00000868 10298c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT0_0 (0x7L<<0) 10308c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT0_1 (0x7L<<4) 10318c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT0_2 (0x7L<<8) 10328c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT0_3 (0x7L<<12) 10338c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT0_4 (0x7L<<16) 10348c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT0_5 (0x7L<<20) 10358c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT0_6 (0x7L<<24) 10368c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT0_7 (0x7L<<28) 10378c2ecf20Sopenharmony_ci 10388c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT1 0x0000086c 10398c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT1_8 (0x7L<<0) 10408c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT1_9 (0x7L<<4) 10418c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT1_10 (0x7L<<8) 10428c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT1_11 (0x7L<<12) 10438c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT1_12 (0x7L<<16) 10448c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT1_13 (0x7L<<20) 10458c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT1_14 (0x7L<<24) 10468c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT1_15 (0x7L<<28) 10478c2ecf20Sopenharmony_ci 10488c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT2 0x00000870 10498c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT2_16 (0x7L<<0) 10508c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT2_17 (0x7L<<4) 10518c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT2_18 (0x7L<<8) 10528c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT2_19 (0x7L<<12) 10538c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT2_20 (0x7L<<16) 10548c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT2_21 (0x7L<<20) 10558c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT2_22 (0x7L<<24) 10568c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT2_23 (0x7L<<28) 10578c2ecf20Sopenharmony_ci 10588c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT3 0x00000874 10598c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT3_24 (0x7L<<0) 10608c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT3_25 (0x7L<<4) 10618c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT3_26 (0x7L<<8) 10628c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT3_27 (0x7L<<12) 10638c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT3_28 (0x7L<<16) 10648c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT3_29 (0x7L<<20) 10658c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT3_30 (0x7L<<24) 10668c2ecf20Sopenharmony_ci#define BNX2_MISC_ARB_GNT3_31 (0x7L<<28) 10678c2ecf20Sopenharmony_ci 10688c2ecf20Sopenharmony_ci#define BNX2_MISC_RESERVED1 0x00000878 10698c2ecf20Sopenharmony_ci#define BNX2_MISC_RESERVED1_MISC_RESERVED1_VALUE (0x3fL<<0) 10708c2ecf20Sopenharmony_ci 10718c2ecf20Sopenharmony_ci#define BNX2_MISC_RESERVED2 0x0000087c 10728c2ecf20Sopenharmony_ci#define BNX2_MISC_RESERVED2_PCIE_DIS (1L<<0) 10738c2ecf20Sopenharmony_ci#define BNX2_MISC_RESERVED2_LINK_IN_L23 (1L<<1) 10748c2ecf20Sopenharmony_ci 10758c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL 0x00000880 10768c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_ASF_RST (1L<<0) 10778c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_TSC_EN (1L<<1) 10788c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_WG_TO (1L<<2) 10798c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_HB_TO (1L<<3) 10808c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_PA_TO (1L<<4) 10818c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_PL_TO (1L<<5) 10828c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_RT_TO (1L<<6) 10838c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_SMB_EVENT (1L<<7) 10848c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_STRETCH_EN (1L<<8) 10858c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_STRETCH_PULSE (1L<<9) 10868c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_RES (0x3L<<10) 10878c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_SMB_EN (1L<<12) 10888c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_SMB_BB_EN (1L<<13) 10898c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_SMB_NO_ADDR_FILT (1L<<14) 10908c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_SMB_AUTOREAD (1L<<15) 10918c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_NIC_SMB_ADDR1 (0x7fL<<16) 10928c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_NIC_SMB_ADDR2 (0x7fL<<23) 10938c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_EN_NIC_SMB_ADDR_0 (1L<<30) 10948c2ecf20Sopenharmony_ci#define BNX2_MISC_SM_ASF_CONTROL_SMB_EARLY_ATTN (1L<<31) 10958c2ecf20Sopenharmony_ci 10968c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_IN 0x00000884 10978c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_IN_DAT_IN (0xffL<<0) 10988c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_IN_RDY (1L<<8) 10998c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_IN_DONE (1L<<9) 11008c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_IN_FIRSTBYTE (1L<<10) 11018c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_IN_STATUS (0x7L<<11) 11028c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_IN_STATUS_OK (0x0L<<11) 11038c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_IN_STATUS_PEC (0x1L<<11) 11048c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_IN_STATUS_OFLOW (0x2L<<11) 11058c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_IN_STATUS_STOP (0x3L<<11) 11068c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_IN_STATUS_TIMEOUT (0x4L<<11) 11078c2ecf20Sopenharmony_ci 11088c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT 0x00000888 11098c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_DAT_OUT (0xffL<<0) 11108c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_RDY (1L<<8) 11118c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_START (1L<<9) 11128c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_LAST (1L<<10) 11138c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_ACC_TYPE (1L<<11) 11148c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_ENB_PEC (1L<<12) 11158c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_GET_RX_LEN (1L<<13) 11168c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_READ_LEN (0x3fL<<14) 11178c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_STATUS (0xfL<<20) 11188c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_STATUS_OK (0L<<20) 11198c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_STATUS_FIRST_NACK (1L<<20) 11208c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_STATUS_UFLOW (2L<<20) 11218c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_STATUS_STOP (3L<<20) 11228c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_STATUS_TIMEOUT (4L<<20) 11238c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_STATUS_FIRST_LOST (5L<<20) 11248c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_STATUS_BADACK (6L<<20) 11258c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_STATUS_SUB_NACK (9L<<20) 11268c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_STATUS_SUB_LOST (0xdL<<20) 11278c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_SLAVEMODE (1L<<24) 11288c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_DAT_EN (1L<<25) 11298c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_DAT_IN (1L<<26) 11308c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_CLK_EN (1L<<27) 11318c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_OUT_SMB_OUT_CLK_IN (1L<<28) 11328c2ecf20Sopenharmony_ci 11338c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_WATCHDOG 0x0000088c 11348c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_WATCHDOG_WATCHDOG (0xffffL<<0) 11358c2ecf20Sopenharmony_ci 11368c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_HEARTBEAT 0x00000890 11378c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_HEARTBEAT_HEARTBEAT (0xffffL<<0) 11388c2ecf20Sopenharmony_ci 11398c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_POLL_ASF 0x00000894 11408c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_POLL_ASF_POLL_ASF (0xffffL<<0) 11418c2ecf20Sopenharmony_ci 11428c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_POLL_LEGACY 0x00000898 11438c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_POLL_LEGACY_POLL_LEGACY (0xffffL<<0) 11448c2ecf20Sopenharmony_ci 11458c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_RETRAN 0x0000089c 11468c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_RETRAN_RETRAN (0xffL<<0) 11478c2ecf20Sopenharmony_ci 11488c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_TIMESTAMP 0x000008a0 11498c2ecf20Sopenharmony_ci#define BNX2_MISC_SMB_TIMESTAMP_TIMESTAMP (0xffffffffL<<0) 11508c2ecf20Sopenharmony_ci 11518c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0 0x000008a4 11528c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_COM_MISC_CTXC (1L<<0) 11538c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_COM_MISC_REGF (1L<<1) 11548c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_COM_MISC_SCPAD (1L<<2) 11558c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CP_MISC_CTXC (1L<<3) 11568c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CP_MISC_REGF (1L<<4) 11578c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CP_MISC_SCPAD (1L<<5) 11588c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CS_MISC_TMEM (1L<<6) 11598c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CTX_MISC_ACCM0 (1L<<7) 11608c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CTX_MISC_ACCM1 (1L<<8) 11618c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CTX_MISC_ACCM2 (1L<<9) 11628c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CTX_MISC_ACCM3 (1L<<10) 11638c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CTX_MISC_ACCM4 (1L<<11) 11648c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CTX_MISC_ACCM5 (1L<<12) 11658c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CTX_MISC_PGTBL (1L<<13) 11668c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_DMAE_MISC_DR0 (1L<<14) 11678c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_DMAE_MISC_DR1 (1L<<15) 11688c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_DMAE_MISC_DR2 (1L<<16) 11698c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_DMAE_MISC_DR3 (1L<<17) 11708c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_DMAE_MISC_DR4 (1L<<18) 11718c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_DMAE_MISC_DW0 (1L<<19) 11728c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_DMAE_MISC_DW1 (1L<<20) 11738c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_DMAE_MISC_DW2 (1L<<21) 11748c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_HC_MISC_DMA (1L<<22) 11758c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_MCP_MISC_REGF (1L<<23) 11768c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_MCP_MISC_SCPAD (1L<<24) 11778c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_MQ_MISC_CTX (1L<<25) 11788c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RBDC_MISC (1L<<26) 11798c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RBUF_MISC_MB (1L<<27) 11808c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RBUF_MISC_PTR (1L<<28) 11818c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RDE_MISC_RPC (1L<<29) 11828c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RDE_MISC_RPM (1L<<30) 11838c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RV2P_MISC_CB0REGS (1L<<31) 11848c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_COM_DMAE_PERR_EN_XI (1L<<0) 11858c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CP_DMAE_PERR_EN_XI (1L<<1) 11868c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RPM_ACPIBEMEM_PERR_EN_XI (1L<<2) 11878c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CTX_USAGE_CNT_PERR_EN_XI (1L<<3) 11888c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CTX_PGTBL_PERR_EN_XI (1L<<4) 11898c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CTX_CACHE_PERR_EN_XI (1L<<5) 11908c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CTX_MIRROR_PERR_EN_XI (1L<<6) 11918c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_COM_CTXC_PERR_EN_XI (1L<<7) 11928c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_COM_SCPAD_PERR_EN_XI (1L<<8) 11938c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CP_CTXC_PERR_EN_XI (1L<<9) 11948c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CP_SCPAD_PERR_EN_XI (1L<<10) 11958c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RXP_RBUFC_PERR_EN_XI (1L<<11) 11968c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RXP_CTXC_PERR_EN_XI (1L<<12) 11978c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RXP_SCPAD_PERR_EN_XI (1L<<13) 11988c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_TPAT_SCPAD_PERR_EN_XI (1L<<14) 11998c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_TXP_CTXC_PERR_EN_XI (1L<<15) 12008c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_TXP_SCPAD_PERR_EN_XI (1L<<16) 12018c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_CS_TMEM_PERR_EN_XI (1L<<17) 12028c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_MQ_CTX_PERR_EN_XI (1L<<18) 12038c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RPM_DFIFOMEM_PERR_EN_XI (1L<<19) 12048c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RPC_DFIFOMEM_PERR_EN_XI (1L<<20) 12058c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RBUF_PTRMEM_PERR_EN_XI (1L<<21) 12068c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RBUF_DATAMEM_PERR_EN_XI (1L<<22) 12078c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RV2P_P2IRAM_PERR_EN_XI (1L<<23) 12088c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RV2P_P1IRAM_PERR_EN_XI (1L<<24) 12098c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RV2P_CB1REGS_PERR_EN_XI (1L<<25) 12108c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_RV2P_CB0REGS_PERR_EN_XI (1L<<26) 12118c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_TPBUF_PERR_EN_XI (1L<<27) 12128c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_THBUF_PERR_EN_XI (1L<<28) 12138c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_TDMA_PERR_EN_XI (1L<<29) 12148c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_TBDC_PERR_EN_XI (1L<<30) 12158c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA0_TSCH_LR_PERR_EN_XI (1L<<31) 12168c2ecf20Sopenharmony_ci 12178c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1 0x000008a8 12188c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RV2P_MISC_CB1REGS (1L<<0) 12198c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RV2P_MISC_P1IRAM (1L<<1) 12208c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RV2P_MISC_P2IRAM (1L<<2) 12218c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RXP_MISC_CTXC (1L<<3) 12228c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RXP_MISC_REGF (1L<<4) 12238c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RXP_MISC_SCPAD (1L<<5) 12248c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RXP_MISC_RBUFC (1L<<6) 12258c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TBDC_MISC (1L<<7) 12268c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TDMA_MISC (1L<<8) 12278c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_THBUF_MISC_MB0 (1L<<9) 12288c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_THBUF_MISC_MB1 (1L<<10) 12298c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TPAT_MISC_REGF (1L<<11) 12308c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TPAT_MISC_SCPAD (1L<<12) 12318c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TPBUF_MISC_MB (1L<<13) 12328c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TSCH_MISC_LR (1L<<14) 12338c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TXP_MISC_CTXC (1L<<15) 12348c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TXP_MISC_REGF (1L<<16) 12358c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TXP_MISC_SCPAD (1L<<17) 12368c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_UMP_MISC_FIORX (1L<<18) 12378c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_UMP_MISC_FIOTX (1L<<19) 12388c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_UMP_MISC_RX (1L<<20) 12398c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_UMP_MISC_TX (1L<<21) 12408c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RDMAQ_MISC (1L<<22) 12418c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_CSQ_MISC (1L<<23) 12428c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_CPQ_MISC (1L<<24) 12438c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_MCPQ_MISC (1L<<25) 12448c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RV2PMQ_MISC (1L<<26) 12458c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RV2PPQ_MISC (1L<<27) 12468c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RV2PTQ_MISC (1L<<28) 12478c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RXPQ_MISC (1L<<29) 12488c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RXPCQ_MISC (1L<<30) 12498c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RLUPQ_MISC (1L<<31) 12508c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RBDC_PERR_EN_XI (1L<<0) 12518c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RDMA_DFIFO_PERR_EN_XI (1L<<2) 12528c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_HC_STATS_PERR_EN_XI (1L<<3) 12538c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_HC_MSIX_PERR_EN_XI (1L<<4) 12548c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_HC_PRODUCSTB_PERR_EN_XI (1L<<5) 12558c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_HC_CONSUMSTB_PERR_EN_XI (1L<<6) 12568c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TPATQ_PERR_EN_XI (1L<<7) 12578c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_MCPQ_PERR_EN_XI (1L<<8) 12588c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TDMAQ_PERR_EN_XI (1L<<9) 12598c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TXPQ_PERR_EN_XI (1L<<10) 12608c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_COMTQ_PERR_EN_XI (1L<<11) 12618c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_COMQ_PERR_EN_XI (1L<<12) 12628c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RLUPQ_PERR_EN_XI (1L<<13) 12638c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RXPQ_PERR_EN_XI (1L<<14) 12648c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RV2PPQ_PERR_EN_XI (1L<<15) 12658c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RDMAQ_PERR_EN_XI (1L<<16) 12668c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TASQ_PERR_EN_XI (1L<<17) 12678c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TBDRQ_PERR_EN_XI (1L<<18) 12688c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_TSCHQ_PERR_EN_XI (1L<<19) 12698c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_COMXQ_PERR_EN_XI (1L<<20) 12708c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RXPCQ_PERR_EN_XI (1L<<21) 12718c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RV2PTQ_PERR_EN_XI (1L<<22) 12728c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RV2PMQ_PERR_EN_XI (1L<<23) 12738c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_CPQ_PERR_EN_XI (1L<<24) 12748c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_CSQ_PERR_EN_XI (1L<<25) 12758c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RLUP_CID_PERR_EN_XI (1L<<26) 12768c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RV2PCS_TMEM_PERR_EN_XI (1L<<27) 12778c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_RV2PCSQ_PERR_EN_XI (1L<<28) 12788c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA1_MQ_IDX_PERR_EN_XI (1L<<29) 12798c2ecf20Sopenharmony_ci 12808c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2 0x000008ac 12818c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_COMQ_MISC (1L<<0) 12828c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_COMXQ_MISC (1L<<1) 12838c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_COMTQ_MISC (1L<<2) 12848c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_TSCHQ_MISC (1L<<3) 12858c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_TBDRQ_MISC (1L<<4) 12868c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_TXPQ_MISC (1L<<5) 12878c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_TDMAQ_MISC (1L<<6) 12888c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_TPATQ_MISC (1L<<7) 12898c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_TASQ_MISC (1L<<8) 12908c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_TGT_FIFO_PERR_EN_XI (1L<<0) 12918c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_UMP_TX_PERR_EN_XI (1L<<1) 12928c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_UMP_RX_PERR_EN_XI (1L<<2) 12938c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_MCP_ROM_PERR_EN_XI (1L<<3) 12948c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_MCP_SCPAD_PERR_EN_XI (1L<<4) 12958c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_HB_MEM_PERR_EN_XI (1L<<5) 12968c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_ENA2_PCIE_REPLAY_PERR_EN_XI (1L<<6) 12978c2ecf20Sopenharmony_ci 12988c2ecf20Sopenharmony_ci#define BNX2_MISC_DEBUG_VECTOR_SEL 0x000008b0 12998c2ecf20Sopenharmony_ci#define BNX2_MISC_DEBUG_VECTOR_SEL_0 (0xfffL<<0) 13008c2ecf20Sopenharmony_ci#define BNX2_MISC_DEBUG_VECTOR_SEL_1 (0xfffL<<12) 13018c2ecf20Sopenharmony_ci#define BNX2_MISC_DEBUG_VECTOR_SEL_1_XI (0xfffL<<15) 13028c2ecf20Sopenharmony_ci 13038c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL 0x000008b4 13048c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_2 (0xfL<<0) 13058c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_XI (0xfL<<0) 13068c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_PLUS14_XI (0L<<0) 13078c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_PLUS12_XI (1L<<0) 13088c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_PLUS10_XI (2L<<0) 13098c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_PLUS8_XI (3L<<0) 13108c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_PLUS6_XI (4L<<0) 13118c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_PLUS4_XI (5L<<0) 13128c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_PLUS2_XI (6L<<0) 13138c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_NOM_XI (7L<<0) 13148c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_MINUS2_XI (8L<<0) 13158c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_MINUS4_XI (9L<<0) 13168c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_MINUS6_XI (10L<<0) 13178c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_MINUS8_XI (11L<<0) 13188c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_MINUS10_XI (12L<<0) 13198c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_MINUS12_XI (13L<<0) 13208c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_MINUS14_XI (14L<<0) 13218c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MAIN_MINUS16_XI (15L<<0) 13228c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5 (0xfL<<4) 13238c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_PLUS14 (0L<<4) 13248c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_PLUS12 (1L<<4) 13258c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_PLUS10 (2L<<4) 13268c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_PLUS8 (3L<<4) 13278c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_PLUS6 (4L<<4) 13288c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_PLUS4 (5L<<4) 13298c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_PLUS2 (6L<<4) 13308c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_NOM (7L<<4) 13318c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_MINUS2 (8L<<4) 13328c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_MINUS4 (9L<<4) 13338c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_MINUS6 (10L<<4) 13348c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_MINUS8 (11L<<4) 13358c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_MINUS10 (12L<<4) 13368c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_MINUS12 (13L<<4) 13378c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_MINUS14 (14L<<4) 13388c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_2_5_MINUS16 (15L<<4) 13398c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT (0xfL<<8) 13408c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_PLUS14 (0L<<8) 13418c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_PLUS12 (1L<<8) 13428c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_PLUS10 (2L<<8) 13438c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_PLUS8 (3L<<8) 13448c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_PLUS6 (4L<<8) 13458c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_PLUS4 (5L<<8) 13468c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_PLUS2 (6L<<8) 13478c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_NOM (7L<<8) 13488c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_MINUS2 (8L<<8) 13498c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_MINUS4 (9L<<8) 13508c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_MINUS6 (10L<<8) 13518c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_MINUS8 (11L<<8) 13528c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_MINUS10 (12L<<8) 13538c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_MINUS12 (13L<<8) 13548c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_MINUS14 (14L<<8) 13558c2ecf20Sopenharmony_ci#define BNX2_MISC_VREG_CONTROL_1_0_MGMT_MINUS16 (15L<<8) 13568c2ecf20Sopenharmony_ci 13578c2ecf20Sopenharmony_ci#define BNX2_MISC_FINAL_CLK_CTL_VAL 0x000008b8 13588c2ecf20Sopenharmony_ci#define BNX2_MISC_FINAL_CLK_CTL_VAL_MISC_FINAL_CLK_CTL_VAL (0x3ffffffL<<6) 13598c2ecf20Sopenharmony_ci 13608c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0 0x000008bc 13618c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_TX_DRIVE (1L<<0) 13628c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_RMII_MODE (1L<<1) 13638c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_RMII_CRSDV_SEL (1L<<2) 13648c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_RVMII_MODE (1L<<3) 13658c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_FLASH_SAMP_SCLK_NEGEDGE_TE (1L<<4) 13668c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_HIDDEN_REVISION_ID_TE (1L<<5) 13678c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_HC_CNTL_TMOUT_CTR_RST_TE (1L<<6) 13688c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_RESERVED1_XI (0x7L<<4) 13698c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_ENA_CORE_RST_ON_MAIN_PWR_GOING_AWAY (1L<<7) 13708c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_ENA_SEL_VAUX_B_IN_L2_TE (1L<<8) 13718c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_GRC_BNK_FREE_FIX_TE (1L<<9) 13728c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_LED_ACT_SEL_TE (1L<<10) 13738c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_RESERVED2_XI (0x7L<<8) 13748c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_UP1_DEF0 (1L<<11) 13758c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_FIBER_MODE_DIS_DEF (1L<<12) 13768c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_FORCE2500_DEF (1L<<13) 13778c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_AUTODETECT_DIS_DEF (1L<<14) 13788c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_PARALLEL_DETECT_DEF (1L<<15) 13798c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_DAI (0xfL<<16) 13808c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_DAI_3MA (0L<<16) 13818c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_DAI_2P5MA (1L<<16) 13828c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_DAI_2P0MA (3L<<16) 13838c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_DAI_1P5MA (5L<<16) 13848c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_DAI_1P0MA (7L<<16) 13858c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_DAI_PWRDN (15L<<16) 13868c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_PRE2DIS (1L<<20) 13878c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_PRE1DIS (1L<<21) 13888c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_CTAT (0x3L<<22) 13898c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_CTAT_M6P (0L<<22) 13908c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_CTAT_M0P (1L<<22) 13918c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_CTAT_P0P (2L<<22) 13928c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_CTAT_P6P (3L<<22) 13938c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_PTAT (0x3L<<24) 13948c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_PTAT_M6P (0L<<24) 13958c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_PTAT_M0P (1L<<24) 13968c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_PTAT_P0P (2L<<24) 13978c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_PTAT_P6P (3L<<24) 13988c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_IAMP_ADJ (0x3L<<26) 13998c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_IAMP_ADJ_240UA (0L<<26) 14008c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_IAMP_ADJ_160UA (1L<<26) 14018c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_IAMP_ADJ_400UA (2L<<26) 14028c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_IAMP_ADJ_320UA (3L<<26) 14038c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_ICBUF_ADJ (0x3L<<28) 14048c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_ICBUF_ADJ_240UA (0L<<28) 14058c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_ICBUF_ADJ_160UA (1L<<28) 14068c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_ICBUF_ADJ_400UA (2L<<28) 14078c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_ICBUF_ADJ_320UA (3L<<28) 14088c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_XTAL_ADJ (0x3L<<30) 14098c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_XTAL_ADJ_1P57 (0L<<30) 14108c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_XTAL_ADJ_1P45 (1L<<30) 14118c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_XTAL_ADJ_1P62 (2L<<30) 14128c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL0_OSCCTRL_XTAL_ADJ_1P66 (3L<<30) 14138c2ecf20Sopenharmony_ci 14148c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL1 0x000008c0 14158c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL1_1_ATTN_BTN_PRSNT_TE (1L<<0) 14168c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL1_1_ATTN_IND_PRSNT_TE (1L<<1) 14178c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL1_1_PWR_IND_PRSNT_TE (1L<<2) 14188c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL1_0_PCIE_LOOPBACK_TE (1L<<3) 14198c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL1_RESERVED_SOFT_XI (0xffffL<<0) 14208c2ecf20Sopenharmony_ci#define BNX2_MISC_GP_HW_CTL1_RESERVED_HARD_XI (0xffffL<<16) 14218c2ecf20Sopenharmony_ci 14228c2ecf20Sopenharmony_ci#define BNX2_MISC_NEW_HW_CTL 0x000008c4 14238c2ecf20Sopenharmony_ci#define BNX2_MISC_NEW_HW_CTL_MAIN_POR_BYPASS (1L<<0) 14248c2ecf20Sopenharmony_ci#define BNX2_MISC_NEW_HW_CTL_RINGOSC_ENABLE (1L<<1) 14258c2ecf20Sopenharmony_ci#define BNX2_MISC_NEW_HW_CTL_RINGOSC_SEL0 (1L<<2) 14268c2ecf20Sopenharmony_ci#define BNX2_MISC_NEW_HW_CTL_RINGOSC_SEL1 (1L<<3) 14278c2ecf20Sopenharmony_ci#define BNX2_MISC_NEW_HW_CTL_RESERVED_SHARED (0xfffL<<4) 14288c2ecf20Sopenharmony_ci#define BNX2_MISC_NEW_HW_CTL_RESERVED_SPLIT (0xffffL<<16) 14298c2ecf20Sopenharmony_ci 14308c2ecf20Sopenharmony_ci#define BNX2_MISC_NEW_CORE_CTL 0x000008c8 14318c2ecf20Sopenharmony_ci#define BNX2_MISC_NEW_CORE_CTL_LINK_HOLDOFF_SUCCESS (1L<<0) 14328c2ecf20Sopenharmony_ci#define BNX2_MISC_NEW_CORE_CTL_LINK_HOLDOFF_REQ (1L<<1) 14338c2ecf20Sopenharmony_ci#define BNX2_MISC_NEW_CORE_CTL_DMA_ENABLE (1L<<16) 14348c2ecf20Sopenharmony_ci#define BNX2_MISC_NEW_CORE_CTL_RESERVED_CMN (0x3fffL<<2) 14358c2ecf20Sopenharmony_ci#define BNX2_MISC_NEW_CORE_CTL_RESERVED_TC (0xffffL<<16) 14368c2ecf20Sopenharmony_ci 14378c2ecf20Sopenharmony_ci#define BNX2_MISC_ECO_HW_CTL 0x000008cc 14388c2ecf20Sopenharmony_ci#define BNX2_MISC_ECO_HW_CTL_LARGE_GRC_TMOUT_EN (1L<<0) 14398c2ecf20Sopenharmony_ci#define BNX2_MISC_ECO_HW_CTL_RESERVED_SOFT (0x7fffL<<1) 14408c2ecf20Sopenharmony_ci#define BNX2_MISC_ECO_HW_CTL_RESERVED_HARD (0xffffL<<16) 14418c2ecf20Sopenharmony_ci 14428c2ecf20Sopenharmony_ci#define BNX2_MISC_ECO_CORE_CTL 0x000008d0 14438c2ecf20Sopenharmony_ci#define BNX2_MISC_ECO_CORE_CTL_RESERVED_SOFT (0xffffL<<0) 14448c2ecf20Sopenharmony_ci#define BNX2_MISC_ECO_CORE_CTL_RESERVED_HARD (0xffffL<<16) 14458c2ecf20Sopenharmony_ci 14468c2ecf20Sopenharmony_ci#define BNX2_MISC_PPIO 0x000008d4 14478c2ecf20Sopenharmony_ci#define BNX2_MISC_PPIO_VALUE (0xfL<<0) 14488c2ecf20Sopenharmony_ci#define BNX2_MISC_PPIO_SET (0xfL<<8) 14498c2ecf20Sopenharmony_ci#define BNX2_MISC_PPIO_CLR (0xfL<<16) 14508c2ecf20Sopenharmony_ci#define BNX2_MISC_PPIO_FLOAT (0xfL<<24) 14518c2ecf20Sopenharmony_ci 14528c2ecf20Sopenharmony_ci#define BNX2_MISC_PPIO_INT 0x000008d8 14538c2ecf20Sopenharmony_ci#define BNX2_MISC_PPIO_INT_INT_STATE (0xfL<<0) 14548c2ecf20Sopenharmony_ci#define BNX2_MISC_PPIO_INT_OLD_VALUE (0xfL<<8) 14558c2ecf20Sopenharmony_ci#define BNX2_MISC_PPIO_INT_OLD_SET (0xfL<<16) 14568c2ecf20Sopenharmony_ci#define BNX2_MISC_PPIO_INT_OLD_CLR (0xfL<<24) 14578c2ecf20Sopenharmony_ci 14588c2ecf20Sopenharmony_ci#define BNX2_MISC_RESET_NUMS 0x000008dc 14598c2ecf20Sopenharmony_ci#define BNX2_MISC_RESET_NUMS_NUM_HARD_RESETS (0x7L<<0) 14608c2ecf20Sopenharmony_ci#define BNX2_MISC_RESET_NUMS_NUM_PCIE_RESETS (0x7L<<4) 14618c2ecf20Sopenharmony_ci#define BNX2_MISC_RESET_NUMS_NUM_PERSTB_RESETS (0x7L<<8) 14628c2ecf20Sopenharmony_ci#define BNX2_MISC_RESET_NUMS_NUM_CMN_RESETS (0x7L<<12) 14638c2ecf20Sopenharmony_ci#define BNX2_MISC_RESET_NUMS_NUM_PORT_RESETS (0x7L<<16) 14648c2ecf20Sopenharmony_ci 14658c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR 0x000008e0 14668c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_ENA_PCI (1L<<0) 14678c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_ENA_RDMA (1L<<1) 14688c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_ENA_TDMA (1L<<2) 14698c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_ENA_EMAC (1L<<3) 14708c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_ENA_CTX (1L<<4) 14718c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_ENA_TBDR (1L<<5) 14728c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_ENA_RBDC (1L<<6) 14738c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_ENA_COM (1L<<7) 14748c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_ENA_CP (1L<<8) 14758c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_STA_PCI (1L<<16) 14768c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_STA_RDMA (1L<<17) 14778c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_STA_TDMA (1L<<18) 14788c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_STA_EMAC (1L<<19) 14798c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_STA_CTX (1L<<20) 14808c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_STA_TBDR (1L<<21) 14818c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_STA_RBDC (1L<<22) 14828c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_STA_COM (1L<<23) 14838c2ecf20Sopenharmony_ci#define BNX2_MISC_CS16_ERR_STA_CP (1L<<24) 14848c2ecf20Sopenharmony_ci 14858c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_EVENT 0x000008e4 14868c2ecf20Sopenharmony_ci#define BNX2_MISC_SPIO_EVENT_ENABLE (0xffL<<0) 14878c2ecf20Sopenharmony_ci 14888c2ecf20Sopenharmony_ci#define BNX2_MISC_PPIO_EVENT 0x000008e8 14898c2ecf20Sopenharmony_ci#define BNX2_MISC_PPIO_EVENT_ENABLE (0xfL<<0) 14908c2ecf20Sopenharmony_ci 14918c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL 0x000008ec 14928c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID (0xffL<<0) 14938c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_X (0L<<0) 14948c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_C (3L<<0) 14958c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_BOND_ID_S (12L<<0) 14968c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL_STRAP (0x7L<<8) 14978c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_PORT_SWAP_PIN (1L<<11) 14988c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_SERDES1_SIGDET (1L<<12) 14998c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_SERDES0_SIGDET (1L<<13) 15008c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_PHY1_SIGDET (1L<<14) 15018c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_PHY0_SIGDET (1L<<15) 15028c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_LCPLL_RST (1L<<16) 15038c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_SERDES1_RST (1L<<17) 15048c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_SERDES0_RST (1L<<18) 15058c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_PHY1_RST (1L<<19) 15068c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_PHY0_RST (1L<<20) 15078c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_PHY_CTRL (0x7L<<21) 15088c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_PORT_SWAP (1L<<24) 15098c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_STRAP_OVERRIDE (1L<<25) 15108c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_PHY_SERDES_IDDQ (0xfL<<26) 15118c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_PHY_SERDES_IDDQ_SER1_IDDQ (1L<<26) 15128c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_PHY_SERDES_IDDQ_SER0_IDDQ (2L<<26) 15138c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_PHY_SERDES_IDDQ_PHY1_IDDQ (4L<<26) 15148c2ecf20Sopenharmony_ci#define BNX2_MISC_DUAL_MEDIA_CTRL_PHY_SERDES_IDDQ_PHY0_IDDQ (8L<<26) 15158c2ecf20Sopenharmony_ci 15168c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1 0x000008f0 15178c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_FMODE (0x7L<<0) 15188c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_FMODE_IDLE (0L<<0) 15198c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_FMODE_WRITE (1L<<0) 15208c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_FMODE_INIT (2L<<0) 15218c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_FMODE_SET (3L<<0) 15228c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_FMODE_RST (4L<<0) 15238c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_FMODE_VERIFY (5L<<0) 15248c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_FMODE_RESERVED0 (6L<<0) 15258c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_FMODE_RESERVED1 (7L<<0) 15268c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_USEPINS (1L<<8) 15278c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_PROGSEL (1L<<9) 15288c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_PROGSTART (1L<<10) 15298c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_PCOUNT (0x7L<<16) 15308c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_PBYP (1L<<19) 15318c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_VSEL (0xfL<<20) 15328c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_TM (0x7L<<27) 15338c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_SADBYP (1L<<30) 15348c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD1_DEBUG (1L<<31) 15358c2ecf20Sopenharmony_ci 15368c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD2 0x000008f4 15378c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD2_OTP_ROM_ADDR (0x3ffL<<0) 15388c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD2_DOSEL (0x7fL<<16) 15398c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD2_DOSEL_0 (0L<<16) 15408c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD2_DOSEL_1 (1L<<16) 15418c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_CMD2_DOSEL_127 (127L<<16) 15428c2ecf20Sopenharmony_ci 15438c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_STATUS 0x000008f8 15448c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_STATUS_DATA (0xffL<<0) 15458c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_STATUS_VALID (1L<<8) 15468c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_STATUS_BUSY (1L<<9) 15478c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_STATUS_BUSYSM (1L<<10) 15488c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_STATUS_DONE (1L<<11) 15498c2ecf20Sopenharmony_ci 15508c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_SHIFT1_CMD 0x000008fc 15518c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_SHIFT1_CMD_RESET_MODE_N (1L<<0) 15528c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_SHIFT1_CMD_SHIFT_DONE (1L<<1) 15538c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_SHIFT1_CMD_SHIFT_START (1L<<2) 15548c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_SHIFT1_CMD_LOAD_DATA (1L<<3) 15558c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_SHIFT1_CMD_SHIFT_SELECT (0x1fL<<8) 15568c2ecf20Sopenharmony_ci 15578c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_SHIFT1_DATA 0x00000900 15588c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_SHIFT2_CMD 0x00000904 15598c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_SHIFT2_CMD_RESET_MODE_N (1L<<0) 15608c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_SHIFT2_CMD_SHIFT_DONE (1L<<1) 15618c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_SHIFT2_CMD_SHIFT_START (1L<<2) 15628c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_SHIFT2_CMD_LOAD_DATA (1L<<3) 15638c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_SHIFT2_CMD_SHIFT_SELECT (0x1fL<<8) 15648c2ecf20Sopenharmony_ci 15658c2ecf20Sopenharmony_ci#define BNX2_MISC_OTP_SHIFT2_DATA 0x00000908 15668c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS0 0x0000090c 15678c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS0_MBIST_EN (1L<<0) 15688c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS0_BIST_SETUP (0x3L<<1) 15698c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS0_MBIST_ASYNC_RESET (1L<<3) 15708c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS0_MBIST_DONE (1L<<8) 15718c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS0_MBIST_GO (1L<<9) 15728c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS0_BIST_OVERRIDE (1L<<31) 15738c2ecf20Sopenharmony_ci 15748c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_MEMSTATUS0 0x00000910 15758c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS1 0x00000914 15768c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS1_MBIST_EN (1L<<0) 15778c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS1_BIST_SETUP (0x3L<<1) 15788c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS1_MBIST_ASYNC_RESET (1L<<3) 15798c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS1_MBIST_DONE (1L<<8) 15808c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS1_MBIST_GO (1L<<9) 15818c2ecf20Sopenharmony_ci 15828c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_MEMSTATUS1 0x00000918 15838c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS2 0x0000091c 15848c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS2_MBIST_EN (1L<<0) 15858c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS2_BIST_SETUP (0x3L<<1) 15868c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS2_MBIST_ASYNC_RESET (1L<<3) 15878c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS2_MBIST_DONE (1L<<8) 15888c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS2_MBIST_GO (1L<<9) 15898c2ecf20Sopenharmony_ci 15908c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_MEMSTATUS2 0x00000920 15918c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS3 0x00000924 15928c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS3_MBIST_EN (1L<<0) 15938c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS3_BIST_SETUP (0x3L<<1) 15948c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS3_MBIST_ASYNC_RESET (1L<<3) 15958c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS3_MBIST_DONE (1L<<8) 15968c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS3_MBIST_GO (1L<<9) 15978c2ecf20Sopenharmony_ci 15988c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_MEMSTATUS3 0x00000928 15998c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS4 0x0000092c 16008c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS4_MBIST_EN (1L<<0) 16018c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS4_BIST_SETUP (0x3L<<1) 16028c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS4_MBIST_ASYNC_RESET (1L<<3) 16038c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS4_MBIST_DONE (1L<<8) 16048c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS4_MBIST_GO (1L<<9) 16058c2ecf20Sopenharmony_ci 16068c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_MEMSTATUS4 0x00000930 16078c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS5 0x00000934 16088c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS5_MBIST_EN (1L<<0) 16098c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS5_BIST_SETUP (0x3L<<1) 16108c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS5_MBIST_ASYNC_RESET (1L<<3) 16118c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS5_MBIST_DONE (1L<<8) 16128c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_CS5_MBIST_GO (1L<<9) 16138c2ecf20Sopenharmony_ci 16148c2ecf20Sopenharmony_ci#define BNX2_MISC_BIST_MEMSTATUS5 0x00000938 16158c2ecf20Sopenharmony_ci#define BNX2_MISC_MEM_TM0 0x0000093c 16168c2ecf20Sopenharmony_ci#define BNX2_MISC_MEM_TM0_PCIE_REPLAY_TM (0xfL<<0) 16178c2ecf20Sopenharmony_ci#define BNX2_MISC_MEM_TM0_MCP_SCPAD (0xfL<<8) 16188c2ecf20Sopenharmony_ci#define BNX2_MISC_MEM_TM0_UMP_TM (0xffL<<16) 16198c2ecf20Sopenharmony_ci#define BNX2_MISC_MEM_TM0_HB_MEM_TM (0xfL<<24) 16208c2ecf20Sopenharmony_ci 16218c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL 0x00000940 16228c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_PH_DET_DIS (1L<<0) 16238c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_FREQ_DET_DIS (1L<<1) 16248c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_LCPX (0x3fL<<2) 16258c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_RX (0x3L<<8) 16268c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_VC_EN (1L<<10) 16278c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_VCO_MG (0x3L<<11) 16288c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_KVCO_XF (0x7L<<13) 16298c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_KVCO_XS (0x7L<<16) 16308c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_TESTD_EN (1L<<19) 16318c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_TESTD_SEL (0x7L<<20) 16328c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_TESTA_EN (1L<<23) 16338c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_TESTA_SEL (0x3L<<24) 16348c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_ATTEN_FREF (1L<<26) 16358c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_DIGITAL_RST (1L<<27) 16368c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_ANALOG_RST (1L<<28) 16378c2ecf20Sopenharmony_ci#define BNX2_MISC_USPLL_CTRL_LOCK (1L<<29) 16388c2ecf20Sopenharmony_ci 16398c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0 0x00000944 16408c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_COM_DMAE_PERR (1L<<0) 16418c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_CP_DMAE_PERR (1L<<1) 16428c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_RPM_ACPIBEMEM_PERR (1L<<2) 16438c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_CTX_USAGE_CNT_PERR (1L<<3) 16448c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_CTX_PGTBL_PERR (1L<<4) 16458c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_CTX_CACHE_PERR (1L<<5) 16468c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_CTX_MIRROR_PERR (1L<<6) 16478c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_COM_CTXC_PERR (1L<<7) 16488c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_COM_SCPAD_PERR (1L<<8) 16498c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_CP_CTXC_PERR (1L<<9) 16508c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_CP_SCPAD_PERR (1L<<10) 16518c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_RXP_RBUFC_PERR (1L<<11) 16528c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_RXP_CTXC_PERR (1L<<12) 16538c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_RXP_SCPAD_PERR (1L<<13) 16548c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_TPAT_SCPAD_PERR (1L<<14) 16558c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_TXP_CTXC_PERR (1L<<15) 16568c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_TXP_SCPAD_PERR (1L<<16) 16578c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_CS_TMEM_PERR (1L<<17) 16588c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_MQ_CTX_PERR (1L<<18) 16598c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_RPM_DFIFOMEM_PERR (1L<<19) 16608c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_RPC_DFIFOMEM_PERR (1L<<20) 16618c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_RBUF_PTRMEM_PERR (1L<<21) 16628c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_RBUF_DATAMEM_PERR (1L<<22) 16638c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_RV2P_P2IRAM_PERR (1L<<23) 16648c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_RV2P_P1IRAM_PERR (1L<<24) 16658c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_RV2P_CB1REGS_PERR (1L<<25) 16668c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_RV2P_CB0REGS_PERR (1L<<26) 16678c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_TPBUF_PERR (1L<<27) 16688c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_THBUF_PERR (1L<<28) 16698c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_TDMA_PERR (1L<<29) 16708c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_TBDC_PERR (1L<<30) 16718c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS0_TSCH_LR_PERR (1L<<31) 16728c2ecf20Sopenharmony_ci 16738c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1 0x00000948 16748c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_RBDC_PERR (1L<<0) 16758c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_RDMA_DFIFO_PERR (1L<<2) 16768c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_HC_STATS_PERR (1L<<3) 16778c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_HC_MSIX_PERR (1L<<4) 16788c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_HC_PRODUCSTB_PERR (1L<<5) 16798c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_HC_CONSUMSTB_PERR (1L<<6) 16808c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_TPATQ_PERR (1L<<7) 16818c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_MCPQ_PERR (1L<<8) 16828c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_TDMAQ_PERR (1L<<9) 16838c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_TXPQ_PERR (1L<<10) 16848c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_COMTQ_PERR (1L<<11) 16858c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_COMQ_PERR (1L<<12) 16868c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_RLUPQ_PERR (1L<<13) 16878c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_RXPQ_PERR (1L<<14) 16888c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_RV2PPQ_PERR (1L<<15) 16898c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_RDMAQ_PERR (1L<<16) 16908c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_TASQ_PERR (1L<<17) 16918c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_TBDRQ_PERR (1L<<18) 16928c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_TSCHQ_PERR (1L<<19) 16938c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_COMXQ_PERR (1L<<20) 16948c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_RXPCQ_PERR (1L<<21) 16958c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_RV2PTQ_PERR (1L<<22) 16968c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_RV2PMQ_PERR (1L<<23) 16978c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_CPQ_PERR (1L<<24) 16988c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_CSQ_PERR (1L<<25) 16998c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_RLUP_CID_PERR (1L<<26) 17008c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_RV2PCS_TMEM_PERR (1L<<27) 17018c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_RV2PCSQ_PERR (1L<<28) 17028c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS1_MQ_IDX_PERR (1L<<29) 17038c2ecf20Sopenharmony_ci 17048c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS2 0x0000094c 17058c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS2_TGT_FIFO_PERR (1L<<0) 17068c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS2_UMP_TX_PERR (1L<<1) 17078c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS2_UMP_RX_PERR (1L<<2) 17088c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS2_MCP_ROM_PERR (1L<<3) 17098c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS2_MCP_SCPAD_PERR (1L<<4) 17108c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS2_HB_MEM_PERR (1L<<5) 17118c2ecf20Sopenharmony_ci#define BNX2_MISC_PERR_STATUS2_PCIE_REPLAY_PERR (1L<<6) 17128c2ecf20Sopenharmony_ci 17138c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0 0x00000950 17148c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_OAC (0x7L<<0) 17158c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_OAC_NEGTWENTY (0L<<0) 17168c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_OAC_ZERO (1L<<0) 17178c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_OAC_TWENTY (3L<<0) 17188c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_OAC_FORTY (7L<<0) 17198c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_ICP_CTRL (0x7L<<3) 17208c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_ICP_CTRL_360 (0L<<3) 17218c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_ICP_CTRL_480 (1L<<3) 17228c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_ICP_CTRL_600 (3L<<3) 17238c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_ICP_CTRL_720 (7L<<3) 17248c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_BIAS_CTRL (0x3L<<6) 17258c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_PLL_OBSERVE (0x7L<<8) 17268c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_VTH_CTRL (0x3L<<11) 17278c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_VTH_CTRL_0 (0L<<11) 17288c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_VTH_CTRL_1 (1L<<11) 17298c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_VTH_CTRL_2 (2L<<11) 17308c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_PLLSEQSTART (1L<<13) 17318c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_RESERVED (1L<<14) 17328c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_CAPRETRY_EN (1L<<15) 17338c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_FREQMONITOR_EN (1L<<16) 17348c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_FREQDETRESTART_EN (1L<<17) 17358c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_FREQDETRETRY_EN (1L<<18) 17368c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_PLLFORCEFDONE_EN (1L<<19) 17378c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_PLLFORCEFDONE (1L<<20) 17388c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_PLLFORCEFPASS (1L<<21) 17398c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_PLLFORCECAPDONE_EN (1L<<22) 17408c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_PLLFORCECAPDONE (1L<<23) 17418c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_PLLFORCECAPPASS_EN (1L<<24) 17428c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_PLLFORCECAPPASS (1L<<25) 17438c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_CAPRESTART (1L<<26) 17448c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL0_CAPSELECTM_EN (1L<<27) 17458c2ecf20Sopenharmony_ci 17468c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL1 0x00000954 17478c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL1_CAPSELECTM (0x1fL<<0) 17488c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL1_CAPFORCESLOWDOWN_EN (1L<<5) 17498c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL1_CAPFORCESLOWDOWN (1L<<6) 17508c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_CTRL1_SLOWDN_XOR (1L<<7) 17518c2ecf20Sopenharmony_ci 17528c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_STATUS 0x00000958 17538c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_STATUS_FREQDONE_SM (1L<<0) 17548c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_STATUS_FREQPASS_SM (1L<<1) 17558c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_STATUS_PLLSEQDONE (1L<<2) 17568c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_STATUS_PLLSEQPASS (1L<<3) 17578c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_STATUS_PLLSTATE (0x7L<<4) 17588c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_STATUS_CAPSTATE (0x7L<<7) 17598c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_STATUS_CAPSELECT (0x1fL<<10) 17608c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_STATUS_SLOWDN_INDICATOR (1L<<15) 17618c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_STATUS_SLOWDN_INDICATOR_0 (0L<<15) 17628c2ecf20Sopenharmony_ci#define BNX2_MISC_LCPLL_STATUS_SLOWDN_INDICATOR_1 (1L<<15) 17638c2ecf20Sopenharmony_ci 17648c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL 0x0000095c 17658c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_FREQ_MON (1L<<5) 17668c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_FREQ_MON_OFF (0L<<5) 17678c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_FREQ_MON_ON (1L<<5) 17688c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_XTAL_ADJCM (0x3L<<6) 17698c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_XTAL_ADJCM_0 (0L<<6) 17708c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_XTAL_ADJCM_1 (1L<<6) 17718c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_XTAL_ADJCM_2 (2L<<6) 17728c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_XTAL_ADJCM_3 (3L<<6) 17738c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_ICBUF_ADJ (0x3L<<8) 17748c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_ICBUF_ADJ_0 (0L<<8) 17758c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_ICBUF_ADJ_1 (1L<<8) 17768c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_ICBUF_ADJ_2 (2L<<8) 17778c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_ICBUF_ADJ_3 (3L<<8) 17788c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_IAMP_ADJ (0x3L<<10) 17798c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_IAMP_ADJ_0 (0L<<10) 17808c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_IAMP_ADJ_1 (1L<<10) 17818c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_IAMP_ADJ_2 (2L<<10) 17828c2ecf20Sopenharmony_ci#define BNX2_MISC_OSCFUNDS_CTRL_IAMP_ADJ_3 (3L<<10) 17838c2ecf20Sopenharmony_ci 17848c2ecf20Sopenharmony_ci 17858c2ecf20Sopenharmony_ci/* 17868c2ecf20Sopenharmony_ci * nvm_reg definition 17878c2ecf20Sopenharmony_ci * offset: 0x6400 17888c2ecf20Sopenharmony_ci */ 17898c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND 0x00006400 17908c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND_RST (1L<<0) 17918c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND_DONE (1L<<3) 17928c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND_DOIT (1L<<4) 17938c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND_WR (1L<<5) 17948c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND_ERASE (1L<<6) 17958c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND_FIRST (1L<<7) 17968c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND_LAST (1L<<8) 17978c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND_WREN (1L<<16) 17988c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND_WRDI (1L<<17) 17998c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND_EWSR (1L<<18) 18008c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND_WRSR (1L<<19) 18018c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND_RD_ID (1L<<20) 18028c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND_RD_STATUS (1L<<21) 18038c2ecf20Sopenharmony_ci#define BNX2_NVM_COMMAND_MODE_256 (1L<<22) 18048c2ecf20Sopenharmony_ci 18058c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS 0x00006404 18068c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_PI_FSM_STATE (0xfL<<0) 18078c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_EE_FSM_STATE (0xfL<<4) 18088c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_EQ_FSM_STATE (0xfL<<8) 18098c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_XI (0x1fL<<0) 18108c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_IDLE_XI (0L<<0) 18118c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_CMD0_XI (1L<<0) 18128c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_CMD1_XI (2L<<0) 18138c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_CMD_FINISH0_XI (3L<<0) 18148c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_CMD_FINISH1_XI (4L<<0) 18158c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_ADDR0_XI (5L<<0) 18168c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_WRITE_DATA0_XI (6L<<0) 18178c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_WRITE_DATA1_XI (7L<<0) 18188c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_WRITE_DATA2_XI (8L<<0) 18198c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_READ_DATA0_XI (9L<<0) 18208c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_READ_DATA1_XI (10L<<0) 18218c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_READ_DATA2_XI (11L<<0) 18228c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_READ_STATUS_RDID0_XI (12L<<0) 18238c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_READ_STATUS_RDID1_XI (13L<<0) 18248c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_READ_STATUS_RDID2_XI (14L<<0) 18258c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_READ_STATUS_RDID3_XI (15L<<0) 18268c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_READ_STATUS_RDID4_XI (16L<<0) 18278c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_CHECK_BUSY0_XI (17L<<0) 18288c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_ST_WREN_XI (18L<<0) 18298c2ecf20Sopenharmony_ci#define BNX2_NVM_STATUS_SPI_FSM_STATE_SPI_WAIT_XI (19L<<0) 18308c2ecf20Sopenharmony_ci 18318c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE 0x00006408 18328c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE_NVM_WRITE_VALUE (0xffffffffL<<0) 18338c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE_NVM_WRITE_VALUE_BIT_BANG (0L<<0) 18348c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE_NVM_WRITE_VALUE_EECLK (1L<<0) 18358c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE_NVM_WRITE_VALUE_EEDATA (2L<<0) 18368c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE_NVM_WRITE_VALUE_SCLK (4L<<0) 18378c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE_NVM_WRITE_VALUE_CS_B (8L<<0) 18388c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE_NVM_WRITE_VALUE_SO (16L<<0) 18398c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE_NVM_WRITE_VALUE_SI (32L<<0) 18408c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE_NVM_WRITE_VALUE_SI_XI (1L<<0) 18418c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE_NVM_WRITE_VALUE_SO_XI (2L<<0) 18428c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE_NVM_WRITE_VALUE_CS_B_XI (4L<<0) 18438c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE_NVM_WRITE_VALUE_SCLK_XI (8L<<0) 18448c2ecf20Sopenharmony_ci 18458c2ecf20Sopenharmony_ci#define BNX2_NVM_ADDR 0x0000640c 18468c2ecf20Sopenharmony_ci#define BNX2_NVM_ADDR_NVM_ADDR_VALUE (0xffffffL<<0) 18478c2ecf20Sopenharmony_ci#define BNX2_NVM_ADDR_NVM_ADDR_VALUE_BIT_BANG (0L<<0) 18488c2ecf20Sopenharmony_ci#define BNX2_NVM_ADDR_NVM_ADDR_VALUE_EECLK (1L<<0) 18498c2ecf20Sopenharmony_ci#define BNX2_NVM_ADDR_NVM_ADDR_VALUE_EEDATA (2L<<0) 18508c2ecf20Sopenharmony_ci#define BNX2_NVM_ADDR_NVM_ADDR_VALUE_SCLK (4L<<0) 18518c2ecf20Sopenharmony_ci#define BNX2_NVM_ADDR_NVM_ADDR_VALUE_CS_B (8L<<0) 18528c2ecf20Sopenharmony_ci#define BNX2_NVM_ADDR_NVM_ADDR_VALUE_SO (16L<<0) 18538c2ecf20Sopenharmony_ci#define BNX2_NVM_ADDR_NVM_ADDR_VALUE_SI (32L<<0) 18548c2ecf20Sopenharmony_ci#define BNX2_NVM_ADDR_NVM_ADDR_VALUE_SI_XI (1L<<0) 18558c2ecf20Sopenharmony_ci#define BNX2_NVM_ADDR_NVM_ADDR_VALUE_SO_XI (2L<<0) 18568c2ecf20Sopenharmony_ci#define BNX2_NVM_ADDR_NVM_ADDR_VALUE_CS_B_XI (4L<<0) 18578c2ecf20Sopenharmony_ci#define BNX2_NVM_ADDR_NVM_ADDR_VALUE_SCLK_XI (8L<<0) 18588c2ecf20Sopenharmony_ci 18598c2ecf20Sopenharmony_ci#define BNX2_NVM_READ 0x00006410 18608c2ecf20Sopenharmony_ci#define BNX2_NVM_READ_NVM_READ_VALUE (0xffffffffL<<0) 18618c2ecf20Sopenharmony_ci#define BNX2_NVM_READ_NVM_READ_VALUE_BIT_BANG (0L<<0) 18628c2ecf20Sopenharmony_ci#define BNX2_NVM_READ_NVM_READ_VALUE_EECLK (1L<<0) 18638c2ecf20Sopenharmony_ci#define BNX2_NVM_READ_NVM_READ_VALUE_EEDATA (2L<<0) 18648c2ecf20Sopenharmony_ci#define BNX2_NVM_READ_NVM_READ_VALUE_SCLK (4L<<0) 18658c2ecf20Sopenharmony_ci#define BNX2_NVM_READ_NVM_READ_VALUE_CS_B (8L<<0) 18668c2ecf20Sopenharmony_ci#define BNX2_NVM_READ_NVM_READ_VALUE_SO (16L<<0) 18678c2ecf20Sopenharmony_ci#define BNX2_NVM_READ_NVM_READ_VALUE_SI (32L<<0) 18688c2ecf20Sopenharmony_ci#define BNX2_NVM_READ_NVM_READ_VALUE_SI_XI (1L<<0) 18698c2ecf20Sopenharmony_ci#define BNX2_NVM_READ_NVM_READ_VALUE_SO_XI (2L<<0) 18708c2ecf20Sopenharmony_ci#define BNX2_NVM_READ_NVM_READ_VALUE_CS_B_XI (4L<<0) 18718c2ecf20Sopenharmony_ci#define BNX2_NVM_READ_NVM_READ_VALUE_SCLK_XI (8L<<0) 18728c2ecf20Sopenharmony_ci 18738c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1 0x00006414 18748c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_FLASH_MODE (1L<<0) 18758c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_BUFFER_MODE (1L<<1) 18768c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_PASS_MODE (1L<<2) 18778c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_BITBANG_MODE (1L<<3) 18788c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_STATUS_BIT (0x7L<<4) 18798c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_STATUS_BIT_FLASH_RDY (0L<<4) 18808c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_STATUS_BIT_BUFFER_RDY (7L<<4) 18818c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_SPI_CLK_DIV (0xfL<<7) 18828c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_SEE_CLK_DIV (0x7ffL<<11) 18838c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_STRAP_CONTROL_0 (1L<<23) 18848c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_PROTECT_MODE (1L<<24) 18858c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_FLASH_SIZE (1L<<25) 18868c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_FW_USTRAP_1 (1L<<26) 18878c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_FW_USTRAP_0 (1L<<27) 18888c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_FW_USTRAP_2 (1L<<28) 18898c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_FW_USTRAP_3 (1L<<29) 18908c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_FW_FLASH_TYPE_EN (1L<<30) 18918c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG1_COMPAT_BYPASSS (1L<<31) 18928c2ecf20Sopenharmony_ci 18938c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG2 0x00006418 18948c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG2_ERASE_CMD (0xffL<<0) 18958c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG2_DUMMY (0xffL<<8) 18968c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG2_STATUS_CMD (0xffL<<16) 18978c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG2_READ_ID (0xffL<<24) 18988c2ecf20Sopenharmony_ci 18998c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG3 0x0000641c 19008c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG3_BUFFER_RD_CMD (0xffL<<0) 19018c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG3_WRITE_CMD (0xffL<<8) 19028c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG3_BUFFER_WRITE_CMD (0xffL<<16) 19038c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG3_READ_CMD (0xffL<<24) 19048c2ecf20Sopenharmony_ci 19058c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB 0x00006420 19068c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_ARB_REQ_SET0 (1L<<0) 19078c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_ARB_REQ_SET1 (1L<<1) 19088c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_ARB_REQ_SET2 (1L<<2) 19098c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_ARB_REQ_SET3 (1L<<3) 19108c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_ARB_REQ_CLR0 (1L<<4) 19118c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_ARB_REQ_CLR1 (1L<<5) 19128c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_ARB_REQ_CLR2 (1L<<6) 19138c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_ARB_REQ_CLR3 (1L<<7) 19148c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_ARB_ARB0 (1L<<8) 19158c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_ARB_ARB1 (1L<<9) 19168c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_ARB_ARB2 (1L<<10) 19178c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_ARB_ARB3 (1L<<11) 19188c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_REQ0 (1L<<12) 19198c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_REQ1 (1L<<13) 19208c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_REQ2 (1L<<14) 19218c2ecf20Sopenharmony_ci#define BNX2_NVM_SW_ARB_REQ3 (1L<<15) 19228c2ecf20Sopenharmony_ci 19238c2ecf20Sopenharmony_ci#define BNX2_NVM_ACCESS_ENABLE 0x00006424 19248c2ecf20Sopenharmony_ci#define BNX2_NVM_ACCESS_ENABLE_EN (1L<<0) 19258c2ecf20Sopenharmony_ci#define BNX2_NVM_ACCESS_ENABLE_WR_EN (1L<<1) 19268c2ecf20Sopenharmony_ci 19278c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE1 0x00006428 19288c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE1_WREN_CMD (0xffL<<0) 19298c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE1_WRDI_CMD (0xffL<<8) 19308c2ecf20Sopenharmony_ci#define BNX2_NVM_WRITE1_SR_DATA (0xffL<<16) 19318c2ecf20Sopenharmony_ci 19328c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4 0x0000642c 19338c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_FLASH_SIZE (0x7L<<0) 19348c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_FLASH_SIZE_1MBIT (0L<<0) 19358c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_FLASH_SIZE_2MBIT (1L<<0) 19368c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_FLASH_SIZE_4MBIT (2L<<0) 19378c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_FLASH_SIZE_8MBIT (3L<<0) 19388c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_FLASH_SIZE_16MBIT (4L<<0) 19398c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_FLASH_SIZE_32MBIT (5L<<0) 19408c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_FLASH_SIZE_64MBIT (6L<<0) 19418c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_FLASH_SIZE_128MBIT (7L<<0) 19428c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_FLASH_VENDOR (1L<<3) 19438c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_FLASH_VENDOR_ST (0L<<3) 19448c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_FLASH_VENDOR_ATMEL (1L<<3) 19458c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_MODE_256_EMPTY_BIT_LOC (0x3L<<4) 19468c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_MODE_256_EMPTY_BIT_LOC_BIT8 (0L<<4) 19478c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_MODE_256_EMPTY_BIT_LOC_BIT9 (1L<<4) 19488c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_MODE_256_EMPTY_BIT_LOC_BIT10 (2L<<4) 19498c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_MODE_256_EMPTY_BIT_LOC_BIT11 (3L<<4) 19508c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_STATUS_BIT_POLARITY (1L<<6) 19518c2ecf20Sopenharmony_ci#define BNX2_NVM_CFG4_RESERVED (0x1ffffffL<<7) 19528c2ecf20Sopenharmony_ci 19538c2ecf20Sopenharmony_ci#define BNX2_NVM_RECONFIG 0x00006430 19548c2ecf20Sopenharmony_ci#define BNX2_NVM_RECONFIG_ORIG_STRAP_VALUE (0xfL<<0) 19558c2ecf20Sopenharmony_ci#define BNX2_NVM_RECONFIG_ORIG_STRAP_VALUE_ST (0L<<0) 19568c2ecf20Sopenharmony_ci#define BNX2_NVM_RECONFIG_ORIG_STRAP_VALUE_ATMEL (1L<<0) 19578c2ecf20Sopenharmony_ci#define BNX2_NVM_RECONFIG_RECONFIG_STRAP_VALUE (0xfL<<4) 19588c2ecf20Sopenharmony_ci#define BNX2_NVM_RECONFIG_RESERVED (0x7fffffL<<8) 19598c2ecf20Sopenharmony_ci#define BNX2_NVM_RECONFIG_RECONFIG_DONE (1L<<31) 19608c2ecf20Sopenharmony_ci 19618c2ecf20Sopenharmony_ci 19628c2ecf20Sopenharmony_ci 19638c2ecf20Sopenharmony_ci/* 19648c2ecf20Sopenharmony_ci * dma_reg definition 19658c2ecf20Sopenharmony_ci * offset: 0xc00 19668c2ecf20Sopenharmony_ci */ 19678c2ecf20Sopenharmony_ci#define BNX2_DMA_COMMAND 0x00000c00 19688c2ecf20Sopenharmony_ci#define BNX2_DMA_COMMAND_ENABLE (1L<<0) 19698c2ecf20Sopenharmony_ci 19708c2ecf20Sopenharmony_ci#define BNX2_DMA_STATUS 0x00000c04 19718c2ecf20Sopenharmony_ci#define BNX2_DMA_STATUS_PAR_ERROR_STATE (1L<<0) 19728c2ecf20Sopenharmony_ci#define BNX2_DMA_STATUS_READ_TRANSFERS_STAT (1L<<16) 19738c2ecf20Sopenharmony_ci#define BNX2_DMA_STATUS_READ_DELAY_PCI_CLKS_STAT (1L<<17) 19748c2ecf20Sopenharmony_ci#define BNX2_DMA_STATUS_BIG_READ_TRANSFERS_STAT (1L<<18) 19758c2ecf20Sopenharmony_ci#define BNX2_DMA_STATUS_BIG_READ_DELAY_PCI_CLKS_STAT (1L<<19) 19768c2ecf20Sopenharmony_ci#define BNX2_DMA_STATUS_BIG_READ_RETRY_AFTER_DATA_STAT (1L<<20) 19778c2ecf20Sopenharmony_ci#define BNX2_DMA_STATUS_WRITE_TRANSFERS_STAT (1L<<21) 19788c2ecf20Sopenharmony_ci#define BNX2_DMA_STATUS_WRITE_DELAY_PCI_CLKS_STAT (1L<<22) 19798c2ecf20Sopenharmony_ci#define BNX2_DMA_STATUS_BIG_WRITE_TRANSFERS_STAT (1L<<23) 19808c2ecf20Sopenharmony_ci#define BNX2_DMA_STATUS_BIG_WRITE_DELAY_PCI_CLKS_STAT (1L<<24) 19818c2ecf20Sopenharmony_ci#define BNX2_DMA_STATUS_BIG_WRITE_RETRY_AFTER_DATA_STAT (1L<<25) 19828c2ecf20Sopenharmony_ci#define BNX2_DMA_STATUS_GLOBAL_ERR_XI (1L<<0) 19838c2ecf20Sopenharmony_ci#define BNX2_DMA_STATUS_BME_XI (1L<<4) 19848c2ecf20Sopenharmony_ci 19858c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG 0x00000c08 19868c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_DATA_BYTE_SWAP (1L<<0) 19878c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_DATA_WORD_SWAP (1L<<1) 19888c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_CNTL_BYTE_SWAP (1L<<4) 19898c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_CNTL_WORD_SWAP (1L<<5) 19908c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_ONE_DMA (1L<<6) 19918c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_CNTL_TWO_DMA (1L<<7) 19928c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_CNTL_FPGA_MODE (1L<<8) 19938c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_CNTL_PING_PONG_DMA (1L<<10) 19948c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_CNTL_PCI_COMP_DLY (1L<<11) 19958c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_NO_RCHANS_IN_USE (0xfL<<12) 19968c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_NO_WCHANS_IN_USE (0xfL<<16) 19978c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_PCI_CLK_CMP_BITS (0x7L<<20) 19988c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_PCI_FAST_CLK_CMP (1L<<23) 19998c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_BIG_SIZE (0xfL<<24) 20008c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_BIG_SIZE_NONE (0x0L<<24) 20018c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_BIG_SIZE_64 (0x1L<<24) 20028c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_BIG_SIZE_128 (0x2L<<24) 20038c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_BIG_SIZE_256 (0x4L<<24) 20048c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_BIG_SIZE_512 (0x8L<<24) 20058c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_DAT_WBSWAP_MODE_XI (0x3L<<0) 20068c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_CTL_WBSWAP_MODE_XI (0x3L<<4) 20078c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_MAX_PL_XI (0x7L<<12) 20088c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_MAX_PL_128B_XI (0L<<12) 20098c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_MAX_PL_256B_XI (1L<<12) 20108c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_MAX_PL_512B_XI (2L<<12) 20118c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_MAX_PL_EN_XI (1L<<15) 20128c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_MAX_RRS_XI (0x7L<<16) 20138c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_MAX_RRS_128B_XI (0L<<16) 20148c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_MAX_RRS_256B_XI (1L<<16) 20158c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_MAX_RRS_512B_XI (2L<<16) 20168c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_MAX_RRS_1024B_XI (3L<<16) 20178c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_MAX_RRS_2048B_XI (4L<<16) 20188c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_MAX_RRS_4096B_XI (5L<<16) 20198c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_MAX_RRS_EN_XI (1L<<19) 20208c2ecf20Sopenharmony_ci#define BNX2_DMA_CONFIG_NO_64SWAP_EN_XI (1L<<31) 20218c2ecf20Sopenharmony_ci 20228c2ecf20Sopenharmony_ci#define BNX2_DMA_BLACKOUT 0x00000c0c 20238c2ecf20Sopenharmony_ci#define BNX2_DMA_BLACKOUT_RD_RETRY_BLACKOUT (0xffL<<0) 20248c2ecf20Sopenharmony_ci#define BNX2_DMA_BLACKOUT_2ND_RD_RETRY_BLACKOUT (0xffL<<8) 20258c2ecf20Sopenharmony_ci#define BNX2_DMA_BLACKOUT_WR_RETRY_BLACKOUT (0xffL<<16) 20268c2ecf20Sopenharmony_ci 20278c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0 0x00000c10 20288c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_TBDC_NO_SNOOP (1L<<0) 20298c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_TBDC_RELAX_ORDER (1L<<1) 20308c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_TBDC_PRIORITY (1L<<2) 20318c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_TBDC_TRAFFIC_CLASS (0x7L<<4) 20328c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_TBDC_PARAM_EN (1L<<7) 20338c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_RBDC_NO_SNOOP (1L<<8) 20348c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_RBDC_RELAX_ORDER (1L<<9) 20358c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_RBDC_PRIORITY (1L<<10) 20368c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_RBDC_TRAFFIC_CLASS (0x7L<<12) 20378c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_RBDC_PARAM_EN (1L<<15) 20388c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_TDMA_NO_SNOOP (1L<<16) 20398c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_TDMA_RELAX_ORDER (1L<<17) 20408c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_TDMA_PRIORITY (1L<<18) 20418c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_TDMA_TRAFFIC_CLASS (0x7L<<20) 20428c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_TDMA_PARAM_EN (1L<<23) 20438c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_CTX_NO_SNOOP (1L<<24) 20448c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_CTX_RELAX_ORDER (1L<<25) 20458c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_CTX_PRIORITY (1L<<26) 20468c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_CTX_TRAFFIC_CLASS (0x7L<<28) 20478c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_0_CTX_PARAM_EN (1L<<31) 20488c2ecf20Sopenharmony_ci 20498c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_1 0x00000c14 20508c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_1_COM_NO_SNOOP (1L<<0) 20518c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_1_COM_RELAX_ORDER (1L<<1) 20528c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_1_COM_PRIORITY (1L<<2) 20538c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_1_COM_TRAFFIC_CLASS (0x7L<<4) 20548c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_1_COM_PARAM_EN (1L<<7) 20558c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_1_CP_NO_SNOOP (1L<<8) 20568c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_1_CP_RELAX_ORDER (1L<<9) 20578c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_1_CP_PRIORITY (1L<<10) 20588c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_1_CP_TRAFFIC_CLASS (0x7L<<12) 20598c2ecf20Sopenharmony_ci#define BNX2_DMA_READ_MASTER_SETTING_1_CP_PARAM_EN (1L<<15) 20608c2ecf20Sopenharmony_ci 20618c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0 0x00000c18 20628c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_HC_NO_SNOOP (1L<<0) 20638c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_HC_RELAX_ORDER (1L<<1) 20648c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_HC_PRIORITY (1L<<2) 20658c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_HC_CS_VLD (1L<<3) 20668c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_HC_TRAFFIC_CLASS (0x7L<<4) 20678c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_HC_PARAM_EN (1L<<7) 20688c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_RDMA_NO_SNOOP (1L<<8) 20698c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_RDMA_RELAX_ORDER (1L<<9) 20708c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_RDMA_PRIORITY (1L<<10) 20718c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_RDMA_CS_VLD (1L<<11) 20728c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_RDMA_TRAFFIC_CLASS (0x7L<<12) 20738c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_RDMA_PARAM_EN (1L<<15) 20748c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_CTX_NO_SNOOP (1L<<24) 20758c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_CTX_RELAX_ORDER (1L<<25) 20768c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_CTX_PRIORITY (1L<<26) 20778c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_CTX_CS_VLD (1L<<27) 20788c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_CTX_TRAFFIC_CLASS (0x7L<<28) 20798c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_0_CTX_PARAM_EN (1L<<31) 20808c2ecf20Sopenharmony_ci 20818c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_1 0x00000c1c 20828c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_1_COM_NO_SNOOP (1L<<0) 20838c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_1_COM_RELAX_ORDER (1L<<1) 20848c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_1_COM_PRIORITY (1L<<2) 20858c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_1_COM_CS_VLD (1L<<3) 20868c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_1_COM_TRAFFIC_CLASS (0x7L<<4) 20878c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_1_COM_PARAM_EN (1L<<7) 20888c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_1_CP_NO_SNOOP (1L<<8) 20898c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_1_CP_RELAX_ORDER (1L<<9) 20908c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_1_CP_PRIORITY (1L<<10) 20918c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_1_CP_CS_VLD (1L<<11) 20928c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_1_CP_TRAFFIC_CLASS (0x7L<<12) 20938c2ecf20Sopenharmony_ci#define BNX2_DMA_WRITE_MASTER_SETTING_1_CP_PARAM_EN (1L<<15) 20948c2ecf20Sopenharmony_ci 20958c2ecf20Sopenharmony_ci#define BNX2_DMA_ARBITER 0x00000c20 20968c2ecf20Sopenharmony_ci#define BNX2_DMA_ARBITER_NUM_READS (0x7L<<0) 20978c2ecf20Sopenharmony_ci#define BNX2_DMA_ARBITER_WR_ARB_MODE (1L<<4) 20988c2ecf20Sopenharmony_ci#define BNX2_DMA_ARBITER_WR_ARB_MODE_STRICT (0L<<4) 20998c2ecf20Sopenharmony_ci#define BNX2_DMA_ARBITER_WR_ARB_MODE_RND_RBN (1L<<4) 21008c2ecf20Sopenharmony_ci#define BNX2_DMA_ARBITER_RD_ARB_MODE (0x3L<<5) 21018c2ecf20Sopenharmony_ci#define BNX2_DMA_ARBITER_RD_ARB_MODE_STRICT (0L<<5) 21028c2ecf20Sopenharmony_ci#define BNX2_DMA_ARBITER_RD_ARB_MODE_RND_RBN (1L<<5) 21038c2ecf20Sopenharmony_ci#define BNX2_DMA_ARBITER_RD_ARB_MODE_WGT_RND_RBN (2L<<5) 21048c2ecf20Sopenharmony_ci#define BNX2_DMA_ARBITER_ALT_MODE_EN (1L<<8) 21058c2ecf20Sopenharmony_ci#define BNX2_DMA_ARBITER_RR_MODE (1L<<9) 21068c2ecf20Sopenharmony_ci#define BNX2_DMA_ARBITER_TIMER_MODE (1L<<10) 21078c2ecf20Sopenharmony_ci#define BNX2_DMA_ARBITER_OUSTD_READ_REQ (0xfL<<12) 21088c2ecf20Sopenharmony_ci 21098c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_TIMERS 0x00000c24 21108c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_TIMERS_RD_DRR_WAIT_TIME (0xffL<<0) 21118c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_TIMERS_TM_MIN_TIMEOUT (0xffL<<12) 21128c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_TIMERS_TM_MAX_TIMEOUT (0xfffL<<20) 21138c2ecf20Sopenharmony_ci 21148c2ecf20Sopenharmony_ci#define BNX2_DMA_DEBUG_VECT_PEEK 0x00000c2c 21158c2ecf20Sopenharmony_ci#define BNX2_DMA_DEBUG_VECT_PEEK_1_VALUE (0x7ffL<<0) 21168c2ecf20Sopenharmony_ci#define BNX2_DMA_DEBUG_VECT_PEEK_1_PEEK_EN (1L<<11) 21178c2ecf20Sopenharmony_ci#define BNX2_DMA_DEBUG_VECT_PEEK_1_SEL (0xfL<<12) 21188c2ecf20Sopenharmony_ci#define BNX2_DMA_DEBUG_VECT_PEEK_2_VALUE (0x7ffL<<16) 21198c2ecf20Sopenharmony_ci#define BNX2_DMA_DEBUG_VECT_PEEK_2_PEEK_EN (1L<<27) 21208c2ecf20Sopenharmony_ci#define BNX2_DMA_DEBUG_VECT_PEEK_2_SEL (0xfL<<28) 21218c2ecf20Sopenharmony_ci 21228c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00 0x00000c30 21238c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00_CHANNEL (0xfL<<0) 21248c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00_MASTER (0x7L<<4) 21258c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00_MASTER_CTX (0L<<4) 21268c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00_MASTER_RBDC (1L<<4) 21278c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00_MASTER_TBDC (2L<<4) 21288c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00_MASTER_COM (3L<<4) 21298c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00_MASTER_CP (4L<<4) 21308c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00_MASTER_TDMA (5L<<4) 21318c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00_SWAP (0x3L<<7) 21328c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00_SWAP_CONFIG (0L<<7) 21338c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00_SWAP_DATA (1L<<7) 21348c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00_SWAP_CONTROL (2L<<7) 21358c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00_FUNCTION (1L<<9) 21368c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_00_VALID (1L<<10) 21378c2ecf20Sopenharmony_ci 21388c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01 0x00000c34 21398c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01_CHANNEL (0xfL<<0) 21408c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01_MASTER (0x7L<<4) 21418c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01_MASTER_CTX (0L<<4) 21428c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01_MASTER_RBDC (1L<<4) 21438c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01_MASTER_TBDC (2L<<4) 21448c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01_MASTER_COM (3L<<4) 21458c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01_MASTER_CP (4L<<4) 21468c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01_MASTER_TDMA (5L<<4) 21478c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01_SWAP (0x3L<<7) 21488c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01_SWAP_CONFIG (0L<<7) 21498c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01_SWAP_DATA (1L<<7) 21508c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01_SWAP_CONTROL (2L<<7) 21518c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01_FUNCTION (1L<<9) 21528c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_01_VALID (1L<<10) 21538c2ecf20Sopenharmony_ci 21548c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02 0x00000c38 21558c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02_CHANNEL (0xfL<<0) 21568c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02_MASTER (0x7L<<4) 21578c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02_MASTER_CTX (0L<<4) 21588c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02_MASTER_RBDC (1L<<4) 21598c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02_MASTER_TBDC (2L<<4) 21608c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02_MASTER_COM (3L<<4) 21618c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02_MASTER_CP (4L<<4) 21628c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02_MASTER_TDMA (5L<<4) 21638c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02_SWAP (0x3L<<7) 21648c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02_SWAP_CONFIG (0L<<7) 21658c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02_SWAP_DATA (1L<<7) 21668c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02_SWAP_CONTROL (2L<<7) 21678c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02_FUNCTION (1L<<9) 21688c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_02_VALID (1L<<10) 21698c2ecf20Sopenharmony_ci 21708c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03 0x00000c3c 21718c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03_CHANNEL (0xfL<<0) 21728c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03_MASTER (0x7L<<4) 21738c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03_MASTER_CTX (0L<<4) 21748c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03_MASTER_RBDC (1L<<4) 21758c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03_MASTER_TBDC (2L<<4) 21768c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03_MASTER_COM (3L<<4) 21778c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03_MASTER_CP (4L<<4) 21788c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03_MASTER_TDMA (5L<<4) 21798c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03_SWAP (0x3L<<7) 21808c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03_SWAP_CONFIG (0L<<7) 21818c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03_SWAP_DATA (1L<<7) 21828c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03_SWAP_CONTROL (2L<<7) 21838c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03_FUNCTION (1L<<9) 21848c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_03_VALID (1L<<10) 21858c2ecf20Sopenharmony_ci 21868c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04 0x00000c40 21878c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04_CHANNEL (0xfL<<0) 21888c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04_MASTER (0x7L<<4) 21898c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04_MASTER_CTX (0L<<4) 21908c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04_MASTER_RBDC (1L<<4) 21918c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04_MASTER_TBDC (2L<<4) 21928c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04_MASTER_COM (3L<<4) 21938c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04_MASTER_CP (4L<<4) 21948c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04_MASTER_TDMA (5L<<4) 21958c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04_SWAP (0x3L<<7) 21968c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04_SWAP_CONFIG (0L<<7) 21978c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04_SWAP_DATA (1L<<7) 21988c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04_SWAP_CONTROL (2L<<7) 21998c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04_FUNCTION (1L<<9) 22008c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_04_VALID (1L<<10) 22018c2ecf20Sopenharmony_ci 22028c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05 0x00000c44 22038c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05_CHANNEL (0xfL<<0) 22048c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05_MASTER (0x7L<<4) 22058c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05_MASTER_CTX (0L<<4) 22068c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05_MASTER_RBDC (1L<<4) 22078c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05_MASTER_TBDC (2L<<4) 22088c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05_MASTER_COM (3L<<4) 22098c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05_MASTER_CP (4L<<4) 22108c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05_MASTER_TDMA (5L<<4) 22118c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05_SWAP (0x3L<<7) 22128c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05_SWAP_CONFIG (0L<<7) 22138c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05_SWAP_DATA (1L<<7) 22148c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05_SWAP_CONTROL (2L<<7) 22158c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05_FUNCTION (1L<<9) 22168c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_05_VALID (1L<<10) 22178c2ecf20Sopenharmony_ci 22188c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06 0x00000c48 22198c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06_CHANNEL (0xfL<<0) 22208c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06_MASTER (0x7L<<4) 22218c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06_MASTER_CTX (0L<<4) 22228c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06_MASTER_RBDC (1L<<4) 22238c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06_MASTER_TBDC (2L<<4) 22248c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06_MASTER_COM (3L<<4) 22258c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06_MASTER_CP (4L<<4) 22268c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06_MASTER_TDMA (5L<<4) 22278c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06_SWAP (0x3L<<7) 22288c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06_SWAP_CONFIG (0L<<7) 22298c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06_SWAP_DATA (1L<<7) 22308c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06_SWAP_CONTROL (2L<<7) 22318c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06_FUNCTION (1L<<9) 22328c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_06_VALID (1L<<10) 22338c2ecf20Sopenharmony_ci 22348c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07 0x00000c4c 22358c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07_CHANNEL (0xfL<<0) 22368c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07_MASTER (0x7L<<4) 22378c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07_MASTER_CTX (0L<<4) 22388c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07_MASTER_RBDC (1L<<4) 22398c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07_MASTER_TBDC (2L<<4) 22408c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07_MASTER_COM (3L<<4) 22418c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07_MASTER_CP (4L<<4) 22428c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07_MASTER_TDMA (5L<<4) 22438c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07_SWAP (0x3L<<7) 22448c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07_SWAP_CONFIG (0L<<7) 22458c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07_SWAP_DATA (1L<<7) 22468c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07_SWAP_CONTROL (2L<<7) 22478c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07_FUNCTION (1L<<9) 22488c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_07_VALID (1L<<10) 22498c2ecf20Sopenharmony_ci 22508c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08 0x00000c50 22518c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08_CHANNEL (0xfL<<0) 22528c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08_MASTER (0x7L<<4) 22538c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08_MASTER_CTX (0L<<4) 22548c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08_MASTER_RBDC (1L<<4) 22558c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08_MASTER_TBDC (2L<<4) 22568c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08_MASTER_COM (3L<<4) 22578c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08_MASTER_CP (4L<<4) 22588c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08_MASTER_TDMA (5L<<4) 22598c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08_SWAP (0x3L<<7) 22608c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08_SWAP_CONFIG (0L<<7) 22618c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08_SWAP_DATA (1L<<7) 22628c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08_SWAP_CONTROL (2L<<7) 22638c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08_FUNCTION (1L<<9) 22648c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_08_VALID (1L<<10) 22658c2ecf20Sopenharmony_ci 22668c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09 0x00000c54 22678c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09_CHANNEL (0xfL<<0) 22688c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09_MASTER (0x7L<<4) 22698c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09_MASTER_CTX (0L<<4) 22708c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09_MASTER_RBDC (1L<<4) 22718c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09_MASTER_TBDC (2L<<4) 22728c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09_MASTER_COM (3L<<4) 22738c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09_MASTER_CP (4L<<4) 22748c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09_MASTER_TDMA (5L<<4) 22758c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09_SWAP (0x3L<<7) 22768c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09_SWAP_CONFIG (0L<<7) 22778c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09_SWAP_DATA (1L<<7) 22788c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09_SWAP_CONTROL (2L<<7) 22798c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09_FUNCTION (1L<<9) 22808c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_09_VALID (1L<<10) 22818c2ecf20Sopenharmony_ci 22828c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10 0x00000c58 22838c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10_CHANNEL (0xfL<<0) 22848c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10_MASTER (0x7L<<4) 22858c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10_MASTER_CTX (0L<<4) 22868c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10_MASTER_RBDC (1L<<4) 22878c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10_MASTER_TBDC (2L<<4) 22888c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10_MASTER_COM (3L<<4) 22898c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10_MASTER_CP (4L<<4) 22908c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10_MASTER_TDMA (5L<<4) 22918c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10_SWAP (0x3L<<7) 22928c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10_SWAP_CONFIG (0L<<7) 22938c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10_SWAP_DATA (1L<<7) 22948c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10_SWAP_CONTROL (2L<<7) 22958c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10_FUNCTION (1L<<9) 22968c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_10_VALID (1L<<10) 22978c2ecf20Sopenharmony_ci 22988c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11 0x00000c5c 22998c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11_CHANNEL (0xfL<<0) 23008c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11_MASTER (0x7L<<4) 23018c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11_MASTER_CTX (0L<<4) 23028c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11_MASTER_RBDC (1L<<4) 23038c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11_MASTER_TBDC (2L<<4) 23048c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11_MASTER_COM (3L<<4) 23058c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11_MASTER_CP (4L<<4) 23068c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11_MASTER_TDMA (5L<<4) 23078c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11_SWAP (0x3L<<7) 23088c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11_SWAP_CONFIG (0L<<7) 23098c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11_SWAP_DATA (1L<<7) 23108c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11_SWAP_CONTROL (2L<<7) 23118c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11_FUNCTION (1L<<9) 23128c2ecf20Sopenharmony_ci#define BNX2_DMA_TAG_RAM_11_VALID (1L<<10) 23138c2ecf20Sopenharmony_ci 23148c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_22 0x00000c60 23158c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_30 0x00000c64 23168c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_31 0x00000c68 23178c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_32 0x00000c6c 23188c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_40 0x00000c70 23198c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_41 0x00000c74 23208c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_42 0x00000c78 23218c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_50 0x00000c7c 23228c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_51 0x00000c80 23238c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_52 0x00000c84 23248c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_60 0x00000c88 23258c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_61 0x00000c8c 23268c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_62 0x00000c90 23278c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_70 0x00000c94 23288c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_71 0x00000c98 23298c2ecf20Sopenharmony_ci#define BNX2_DMA_RCHAN_STAT_72 0x00000c9c 23308c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_00 0x00000ca0 23318c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_00_WCHAN_STA_HOST_ADDR_LOW (0xffffffffL<<0) 23328c2ecf20Sopenharmony_ci 23338c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_01 0x00000ca4 23348c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_01_WCHAN_STA_HOST_ADDR_HIGH (0xffffffffL<<0) 23358c2ecf20Sopenharmony_ci 23368c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_02 0x00000ca8 23378c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_02_LENGTH (0xffffL<<0) 23388c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_02_WORD_SWAP (1L<<16) 23398c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_02_BYTE_SWAP (1L<<17) 23408c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_02_PRIORITY_LVL (1L<<18) 23418c2ecf20Sopenharmony_ci 23428c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_10 0x00000cac 23438c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_11 0x00000cb0 23448c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_12 0x00000cb4 23458c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_20 0x00000cb8 23468c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_21 0x00000cbc 23478c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_22 0x00000cc0 23488c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_30 0x00000cc4 23498c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_31 0x00000cc8 23508c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_32 0x00000ccc 23518c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_40 0x00000cd0 23528c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_41 0x00000cd4 23538c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_42 0x00000cd8 23548c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_50 0x00000cdc 23558c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_51 0x00000ce0 23568c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_52 0x00000ce4 23578c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_60 0x00000ce8 23588c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_61 0x00000cec 23598c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_62 0x00000cf0 23608c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_70 0x00000cf4 23618c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_71 0x00000cf8 23628c2ecf20Sopenharmony_ci#define BNX2_DMA_WCHAN_STAT_72 0x00000cfc 23638c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_STAT_00 0x00000d00 23648c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_STAT_00_MASTER (0xffffL<<0) 23658c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_STAT_00_MASTER_ENC (0xffL<<16) 23668c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_STAT_00_CUR_BINMSTR (0xffL<<24) 23678c2ecf20Sopenharmony_ci 23688c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_STAT_01 0x00000d04 23698c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_STAT_01_LPR_RPTR (0xfL<<0) 23708c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_STAT_01_LPR_WPTR (0xfL<<4) 23718c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_STAT_01_LPB_RPTR (0xfL<<8) 23728c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_STAT_01_LPB_WPTR (0xfL<<12) 23738c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_STAT_01_HPR_RPTR (0xfL<<16) 23748c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_STAT_01_HPR_WPTR (0xfL<<20) 23758c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_STAT_01_HPB_RPTR (0xfL<<24) 23768c2ecf20Sopenharmony_ci#define BNX2_DMA_ARB_STAT_01_HPB_WPTR (0xfL<<28) 23778c2ecf20Sopenharmony_ci 23788c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL0_CMD 0x00000f00 23798c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL0_CMD_PWRUP_DONE (1L<<0) 23808c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL0_CMD_SHIFT_DONE (1L<<1) 23818c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL0_CMD_SHIFT (1L<<2) 23828c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL0_CMD_LOAD (1L<<3) 23838c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL0_CMD_SEL (0xfL<<8) 23848c2ecf20Sopenharmony_ci 23858c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL0_DATA 0x00000f04 23868c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL1_CMD 0x00000f08 23878c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL1_CMD_PWRUP_DONE (1L<<0) 23888c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL1_CMD_SHIFT_DONE (1L<<1) 23898c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL1_CMD_SHIFT (1L<<2) 23908c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL1_CMD_LOAD (1L<<3) 23918c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL1_CMD_SEL (0xfL<<8) 23928c2ecf20Sopenharmony_ci 23938c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL1_DATA 0x00000f0c 23948c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL2_CMD 0x00000f10 23958c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL2_CMD_PWRUP_DONE (1L<<0) 23968c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL2_CMD_SHIFT_DONE (1L<<1) 23978c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL2_CMD_SHIFT (1L<<2) 23988c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL2_CMD_LOAD (1L<<3) 23998c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL2_CMD_SEL (0xfL<<8) 24008c2ecf20Sopenharmony_ci 24018c2ecf20Sopenharmony_ci#define BNX2_DMA_FUSE_CTRL2_DATA 0x00000f14 24028c2ecf20Sopenharmony_ci 24038c2ecf20Sopenharmony_ci 24048c2ecf20Sopenharmony_ci/* 24058c2ecf20Sopenharmony_ci * context_reg definition 24068c2ecf20Sopenharmony_ci * offset: 0x1000 24078c2ecf20Sopenharmony_ci */ 24088c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND 0x00001000 24098c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_ENABLED (1L<<0) 24108c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_DISABLE_USAGE_CNT (1L<<1) 24118c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_DISABLE_PLRU (1L<<2) 24128c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_DISABLE_COMBINE_READ (1L<<3) 24138c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_FLUSH_AHEAD (0x1fL<<8) 24148c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_MEM_INIT (1L<<13) 24158c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_PAGE_SIZE (0xfL<<16) 24168c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_PAGE_SIZE_256 (0L<<16) 24178c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_PAGE_SIZE_512 (1L<<16) 24188c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_PAGE_SIZE_1K (2L<<16) 24198c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_PAGE_SIZE_2K (3L<<16) 24208c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_PAGE_SIZE_4K (4L<<16) 24218c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_PAGE_SIZE_8K (5L<<16) 24228c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_PAGE_SIZE_16K (6L<<16) 24238c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_PAGE_SIZE_32K (7L<<16) 24248c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_PAGE_SIZE_64K (8L<<16) 24258c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_PAGE_SIZE_128K (9L<<16) 24268c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_PAGE_SIZE_256K (10L<<16) 24278c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_PAGE_SIZE_512K (11L<<16) 24288c2ecf20Sopenharmony_ci#define BNX2_CTX_COMMAND_PAGE_SIZE_1M (12L<<16) 24298c2ecf20Sopenharmony_ci 24308c2ecf20Sopenharmony_ci#define BNX2_CTX_STATUS 0x00001004 24318c2ecf20Sopenharmony_ci#define BNX2_CTX_STATUS_LOCK_WAIT (1L<<0) 24328c2ecf20Sopenharmony_ci#define BNX2_CTX_STATUS_READ_STAT (1L<<16) 24338c2ecf20Sopenharmony_ci#define BNX2_CTX_STATUS_WRITE_STAT (1L<<17) 24348c2ecf20Sopenharmony_ci#define BNX2_CTX_STATUS_ACC_STALL_STAT (1L<<18) 24358c2ecf20Sopenharmony_ci#define BNX2_CTX_STATUS_LOCK_STALL_STAT (1L<<19) 24368c2ecf20Sopenharmony_ci#define BNX2_CTX_STATUS_EXT_READ_STAT (1L<<20) 24378c2ecf20Sopenharmony_ci#define BNX2_CTX_STATUS_EXT_WRITE_STAT (1L<<21) 24388c2ecf20Sopenharmony_ci#define BNX2_CTX_STATUS_MISS_STAT (1L<<22) 24398c2ecf20Sopenharmony_ci#define BNX2_CTX_STATUS_HIT_STAT (1L<<23) 24408c2ecf20Sopenharmony_ci#define BNX2_CTX_STATUS_DEAD_LOCK (1L<<24) 24418c2ecf20Sopenharmony_ci#define BNX2_CTX_STATUS_USAGE_CNT_ERR (1L<<25) 24428c2ecf20Sopenharmony_ci#define BNX2_CTX_STATUS_INVALID_PAGE (1L<<26) 24438c2ecf20Sopenharmony_ci 24448c2ecf20Sopenharmony_ci#define BNX2_CTX_VIRT_ADDR 0x00001008 24458c2ecf20Sopenharmony_ci#define BNX2_CTX_VIRT_ADDR_VIRT_ADDR (0x7fffL<<6) 24468c2ecf20Sopenharmony_ci 24478c2ecf20Sopenharmony_ci#define BNX2_CTX_PAGE_TBL 0x0000100c 24488c2ecf20Sopenharmony_ci#define BNX2_CTX_PAGE_TBL_PAGE_TBL (0x3fffL<<6) 24498c2ecf20Sopenharmony_ci 24508c2ecf20Sopenharmony_ci#define BNX2_CTX_DATA_ADR 0x00001010 24518c2ecf20Sopenharmony_ci#define BNX2_CTX_DATA_ADR_DATA_ADR (0x7ffffL<<2) 24528c2ecf20Sopenharmony_ci 24538c2ecf20Sopenharmony_ci#define BNX2_CTX_DATA 0x00001014 24548c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK 0x00001018 24558c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_TYPE (0x7L<<0) 24568c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_TYPE_LOCK_TYPE_VOID (0x0L<<0) 24578c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_TYPE_LOCK_TYPE_PROTOCOL (0x1L<<0) 24588c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_TYPE_LOCK_TYPE_TX (0x2L<<0) 24598c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_TYPE_LOCK_TYPE_TIMER (0x4L<<0) 24608c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_TYPE_LOCK_TYPE_COMPLETE (0x7L<<0) 24618c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_TYPE_VOID_XI (0L<<0) 24628c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_TYPE_PROTOCOL_XI (1L<<0) 24638c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_TYPE_TX_XI (2L<<0) 24648c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_TYPE_TIMER_XI (4L<<0) 24658c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_TYPE_COMPLETE_XI (7L<<0) 24668c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_CID_VALUE (0x3fffL<<7) 24678c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_GRANTED (1L<<26) 24688c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_MODE (0x7L<<27) 24698c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_MODE_UNLOCK (0x0L<<27) 24708c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_MODE_IMMEDIATE (0x1L<<27) 24718c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_MODE_SURE (0x2L<<27) 24728c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_STATUS (1L<<30) 24738c2ecf20Sopenharmony_ci#define BNX2_CTX_LOCK_REQ (1L<<31) 24748c2ecf20Sopenharmony_ci 24758c2ecf20Sopenharmony_ci#define BNX2_CTX_CTX_CTRL 0x0000101c 24768c2ecf20Sopenharmony_ci#define BNX2_CTX_CTX_CTRL_CTX_ADDR (0x7ffffL<<2) 24778c2ecf20Sopenharmony_ci#define BNX2_CTX_CTX_CTRL_MOD_USAGE_CNT (0x3L<<21) 24788c2ecf20Sopenharmony_ci#define BNX2_CTX_CTX_CTRL_NO_RAM_ACC (1L<<23) 24798c2ecf20Sopenharmony_ci#define BNX2_CTX_CTX_CTRL_PREFETCH_SIZE (0x3L<<24) 24808c2ecf20Sopenharmony_ci#define BNX2_CTX_CTX_CTRL_ATTR (1L<<26) 24818c2ecf20Sopenharmony_ci#define BNX2_CTX_CTX_CTRL_WRITE_REQ (1L<<30) 24828c2ecf20Sopenharmony_ci#define BNX2_CTX_CTX_CTRL_READ_REQ (1L<<31) 24838c2ecf20Sopenharmony_ci 24848c2ecf20Sopenharmony_ci#define BNX2_CTX_CTX_DATA 0x00001020 24858c2ecf20Sopenharmony_ci#define BNX2_CTX_ACCESS_STATUS 0x00001040 24868c2ecf20Sopenharmony_ci#define BNX2_CTX_ACCESS_STATUS_MASTERENCODED (0xfL<<0) 24878c2ecf20Sopenharmony_ci#define BNX2_CTX_ACCESS_STATUS_ACCESSMEMORYSM (0x3L<<10) 24888c2ecf20Sopenharmony_ci#define BNX2_CTX_ACCESS_STATUS_PAGETABLEINITSM (0x3L<<12) 24898c2ecf20Sopenharmony_ci#define BNX2_CTX_ACCESS_STATUS_ACCESSMEMORYINITSM (0x3L<<14) 24908c2ecf20Sopenharmony_ci#define BNX2_CTX_ACCESS_STATUS_QUALIFIED_REQUEST (0x7ffL<<17) 24918c2ecf20Sopenharmony_ci#define BNX2_CTX_ACCESS_STATUS_CAMMASTERENCODED_XI (0x1fL<<0) 24928c2ecf20Sopenharmony_ci#define BNX2_CTX_ACCESS_STATUS_CACHEMASTERENCODED_XI (0x1fL<<5) 24938c2ecf20Sopenharmony_ci#define BNX2_CTX_ACCESS_STATUS_REQUEST_XI (0x3fffffL<<10) 24948c2ecf20Sopenharmony_ci 24958c2ecf20Sopenharmony_ci#define BNX2_CTX_DBG_LOCK_STATUS 0x00001044 24968c2ecf20Sopenharmony_ci#define BNX2_CTX_DBG_LOCK_STATUS_SM (0x3ffL<<0) 24978c2ecf20Sopenharmony_ci#define BNX2_CTX_DBG_LOCK_STATUS_MATCH (0x3ffL<<22) 24988c2ecf20Sopenharmony_ci 24998c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS 0x00001048 25008c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_RFIFO_OVERFLOW (1L<<0) 25018c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_INVALID_READ_COMP (1L<<1) 25028c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_FLUSH_START (1L<<6) 25038c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_FREE_ENTRY_CNT (0x3fL<<7) 25048c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_CACHE_ENTRY_NEEDED (0x3fL<<13) 25058c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_RD_CHAN0_ACTIVE (1L<<19) 25068c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_RD_CHAN1_ACTIVE (1L<<20) 25078c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_RD_CHAN2_ACTIVE (1L<<21) 25088c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_RD_CHAN3_ACTIVE (1L<<22) 25098c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_RD_CHAN4_ACTIVE (1L<<23) 25108c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_RD_CHAN5_ACTIVE (1L<<24) 25118c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_RD_CHAN6_ACTIVE (1L<<25) 25128c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_RD_CHAN7_ACTIVE (1L<<26) 25138c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_RD_CHAN8_ACTIVE (1L<<27) 25148c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_RD_CHAN9_ACTIVE (1L<<28) 25158c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_STATUS_RD_CHAN10_ACTIVE (1L<<29) 25168c2ecf20Sopenharmony_ci 25178c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_SM_STATUS 0x0000104c 25188c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_SM_STATUS_CS_DWC (0x7L<<0) 25198c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_SM_STATUS_CS_WFIFOC (0x7L<<3) 25208c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_SM_STATUS_CS_RTAGC (0x7L<<6) 25218c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_SM_STATUS_CS_RFIFOC (0x7L<<9) 25228c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_CTRL_SM_STATUS_INVALID_BLK_ADDR (0x7fffL<<16) 25238c2ecf20Sopenharmony_ci 25248c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_STATUS 0x00001050 25258c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_STATUS_HELD_ENTRIES (0x3ffL<<0) 25268c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_STATUS_MAX_HELD_ENTRIES (0x3ffL<<16) 25278c2ecf20Sopenharmony_ci 25288c2ecf20Sopenharmony_ci#define BNX2_CTX_DMA_STATUS 0x00001054 25298c2ecf20Sopenharmony_ci#define BNX2_CTX_DMA_STATUS_RD_CHAN0_STATUS (0x3L<<0) 25308c2ecf20Sopenharmony_ci#define BNX2_CTX_DMA_STATUS_RD_CHAN1_STATUS (0x3L<<2) 25318c2ecf20Sopenharmony_ci#define BNX2_CTX_DMA_STATUS_RD_CHAN2_STATUS (0x3L<<4) 25328c2ecf20Sopenharmony_ci#define BNX2_CTX_DMA_STATUS_RD_CHAN3_STATUS (0x3L<<6) 25338c2ecf20Sopenharmony_ci#define BNX2_CTX_DMA_STATUS_RD_CHAN4_STATUS (0x3L<<8) 25348c2ecf20Sopenharmony_ci#define BNX2_CTX_DMA_STATUS_RD_CHAN5_STATUS (0x3L<<10) 25358c2ecf20Sopenharmony_ci#define BNX2_CTX_DMA_STATUS_RD_CHAN6_STATUS (0x3L<<12) 25368c2ecf20Sopenharmony_ci#define BNX2_CTX_DMA_STATUS_RD_CHAN7_STATUS (0x3L<<14) 25378c2ecf20Sopenharmony_ci#define BNX2_CTX_DMA_STATUS_RD_CHAN8_STATUS (0x3L<<16) 25388c2ecf20Sopenharmony_ci#define BNX2_CTX_DMA_STATUS_RD_CHAN9_STATUS (0x3L<<18) 25398c2ecf20Sopenharmony_ci#define BNX2_CTX_DMA_STATUS_RD_CHAN10_STATUS (0x3L<<20) 25408c2ecf20Sopenharmony_ci 25418c2ecf20Sopenharmony_ci#define BNX2_CTX_REP_STATUS 0x00001058 25428c2ecf20Sopenharmony_ci#define BNX2_CTX_REP_STATUS_ERROR_ENTRY (0x3ffL<<0) 25438c2ecf20Sopenharmony_ci#define BNX2_CTX_REP_STATUS_ERROR_CLIENT_ID (0x1fL<<10) 25448c2ecf20Sopenharmony_ci#define BNX2_CTX_REP_STATUS_USAGE_CNT_MAX_ERR (1L<<16) 25458c2ecf20Sopenharmony_ci#define BNX2_CTX_REP_STATUS_USAGE_CNT_MIN_ERR (1L<<17) 25468c2ecf20Sopenharmony_ci#define BNX2_CTX_REP_STATUS_USAGE_CNT_MISS_ERR (1L<<18) 25478c2ecf20Sopenharmony_ci 25488c2ecf20Sopenharmony_ci#define BNX2_CTX_CKSUM_ERROR_STATUS 0x0000105c 25498c2ecf20Sopenharmony_ci#define BNX2_CTX_CKSUM_ERROR_STATUS_CALCULATED (0xffffL<<0) 25508c2ecf20Sopenharmony_ci#define BNX2_CTX_CKSUM_ERROR_STATUS_EXPECTED (0xffffL<<16) 25518c2ecf20Sopenharmony_ci 25528c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_0 0x00001080 25538c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_0_CID (0x3fffL<<0) 25548c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_0_TYPE (0x3L<<14) 25558c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_0_MODE (1L<<16) 25568c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_0_MODE_XI (1L<<14) 25578c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_0_TYPE_XI (0x7L<<15) 25588c2ecf20Sopenharmony_ci 25598c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_1 0x00001084 25608c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_2 0x00001088 25618c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_3 0x0000108c 25628c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_4 0x00001090 25638c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_5 0x00001094 25648c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_6 0x00001098 25658c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_7 0x0000109c 25668c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_8 0x000010a0 25678c2ecf20Sopenharmony_ci#define BNX2_CTX_CHNL_LOCK_STATUS_9 0x000010a4 25688c2ecf20Sopenharmony_ci 25698c2ecf20Sopenharmony_ci#define BNX2_CTX_CACHE_DATA 0x000010c4 25708c2ecf20Sopenharmony_ci#define BNX2_CTX_HOST_PAGE_TBL_CTRL 0x000010c8 25718c2ecf20Sopenharmony_ci#define BNX2_CTX_HOST_PAGE_TBL_CTRL_PAGE_TBL_ADDR (0x1ffL<<0) 25728c2ecf20Sopenharmony_ci#define BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ (1L<<30) 25738c2ecf20Sopenharmony_ci#define BNX2_CTX_HOST_PAGE_TBL_CTRL_READ_REQ (1L<<31) 25748c2ecf20Sopenharmony_ci 25758c2ecf20Sopenharmony_ci#define BNX2_CTX_HOST_PAGE_TBL_DATA0 0x000010cc 25768c2ecf20Sopenharmony_ci#define BNX2_CTX_HOST_PAGE_TBL_DATA0_VALID (1L<<0) 25778c2ecf20Sopenharmony_ci#define BNX2_CTX_HOST_PAGE_TBL_DATA0_VALUE (0xffffffL<<8) 25788c2ecf20Sopenharmony_ci 25798c2ecf20Sopenharmony_ci#define BNX2_CTX_HOST_PAGE_TBL_DATA1 0x000010d0 25808c2ecf20Sopenharmony_ci#define BNX2_CTX_CAM_CTRL 0x000010d4 25818c2ecf20Sopenharmony_ci#define BNX2_CTX_CAM_CTRL_CAM_ADDR (0x3ffL<<0) 25828c2ecf20Sopenharmony_ci#define BNX2_CTX_CAM_CTRL_RESET (1L<<27) 25838c2ecf20Sopenharmony_ci#define BNX2_CTX_CAM_CTRL_INVALIDATE (1L<<28) 25848c2ecf20Sopenharmony_ci#define BNX2_CTX_CAM_CTRL_SEARCH (1L<<29) 25858c2ecf20Sopenharmony_ci#define BNX2_CTX_CAM_CTRL_WRITE_REQ (1L<<30) 25868c2ecf20Sopenharmony_ci#define BNX2_CTX_CAM_CTRL_READ_REQ (1L<<31) 25878c2ecf20Sopenharmony_ci 25888c2ecf20Sopenharmony_ci 25898c2ecf20Sopenharmony_ci/* 25908c2ecf20Sopenharmony_ci * emac_reg definition 25918c2ecf20Sopenharmony_ci * offset: 0x1400 25928c2ecf20Sopenharmony_ci */ 25938c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE 0x00001400 25948c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_RESET (1L<<0) 25958c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_HALF_DUPLEX (1L<<1) 25968c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_PORT (0x3L<<2) 25978c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_PORT_NONE (0L<<2) 25988c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_PORT_MII (1L<<2) 25998c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_PORT_GMII (2L<<2) 26008c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_PORT_MII_10M (3L<<2) 26018c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_MAC_LOOP (1L<<4) 26028c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_25G_MODE (1L<<5) 26038c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_TAGGED_MAC_CTL (1L<<7) 26048c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_TX_BURST (1L<<8) 26058c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_MAX_DEFER_DROP_ENA (1L<<9) 26068c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_EXT_LINK_POL (1L<<10) 26078c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_FORCE_LINK (1L<<11) 26088c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_SERDES_MODE (1L<<12) 26098c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_BOND_OVRD (1L<<13) 26108c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_MPKT (1L<<18) 26118c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_MPKT_RCVD (1L<<19) 26128c2ecf20Sopenharmony_ci#define BNX2_EMAC_MODE_ACPI_RCVD (1L<<20) 26138c2ecf20Sopenharmony_ci 26148c2ecf20Sopenharmony_ci#define BNX2_EMAC_STATUS 0x00001404 26158c2ecf20Sopenharmony_ci#define BNX2_EMAC_STATUS_LINK (1L<<11) 26168c2ecf20Sopenharmony_ci#define BNX2_EMAC_STATUS_LINK_CHANGE (1L<<12) 26178c2ecf20Sopenharmony_ci#define BNX2_EMAC_STATUS_SERDES_AUTONEG_COMPLETE (1L<<13) 26188c2ecf20Sopenharmony_ci#define BNX2_EMAC_STATUS_SERDES_AUTONEG_CHANGE (1L<<14) 26198c2ecf20Sopenharmony_ci#define BNX2_EMAC_STATUS_SERDES_NXT_PG_CHANGE (1L<<16) 26208c2ecf20Sopenharmony_ci#define BNX2_EMAC_STATUS_SERDES_RX_CONFIG_IS_0 (1L<<17) 26218c2ecf20Sopenharmony_ci#define BNX2_EMAC_STATUS_SERDES_RX_CONFIG_IS_0_CHANGE (1L<<18) 26228c2ecf20Sopenharmony_ci#define BNX2_EMAC_STATUS_MI_COMPLETE (1L<<22) 26238c2ecf20Sopenharmony_ci#define BNX2_EMAC_STATUS_MI_INT (1L<<23) 26248c2ecf20Sopenharmony_ci#define BNX2_EMAC_STATUS_AP_ERROR (1L<<24) 26258c2ecf20Sopenharmony_ci#define BNX2_EMAC_STATUS_PARITY_ERROR_STATE (1L<<31) 26268c2ecf20Sopenharmony_ci 26278c2ecf20Sopenharmony_ci#define BNX2_EMAC_ATTENTION_ENA 0x00001408 26288c2ecf20Sopenharmony_ci#define BNX2_EMAC_ATTENTION_ENA_LINK (1L<<11) 26298c2ecf20Sopenharmony_ci#define BNX2_EMAC_ATTENTION_ENA_AUTONEG_CHANGE (1L<<14) 26308c2ecf20Sopenharmony_ci#define BNX2_EMAC_ATTENTION_ENA_NXT_PG_CHANGE (1L<<16) 26318c2ecf20Sopenharmony_ci#define BNX2_EMAC_ATTENTION_ENA_SERDES_RX_CONFIG_IS_0_CHANGE (1L<<18) 26328c2ecf20Sopenharmony_ci#define BNX2_EMAC_ATTENTION_ENA_MI_COMPLETE (1L<<22) 26338c2ecf20Sopenharmony_ci#define BNX2_EMAC_ATTENTION_ENA_MI_INT (1L<<23) 26348c2ecf20Sopenharmony_ci#define BNX2_EMAC_ATTENTION_ENA_AP_ERROR (1L<<24) 26358c2ecf20Sopenharmony_ci 26368c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED 0x0000140c 26378c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_OVERRIDE (1L<<0) 26388c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_1000MB_OVERRIDE (1L<<1) 26398c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_100MB_OVERRIDE (1L<<2) 26408c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_10MB_OVERRIDE (1L<<3) 26418c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_TRAFFIC_OVERRIDE (1L<<4) 26428c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_BLNK_TRAFFIC (1L<<5) 26438c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_TRAFFIC (1L<<6) 26448c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_1000MB (1L<<7) 26458c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_100MB (1L<<8) 26468c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_10MB (1L<<9) 26478c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_TRAFFIC_STAT (1L<<10) 26488c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_2500MB (1L<<11) 26498c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_2500MB_OVERRIDE (1L<<12) 26508c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_ACTIVITY_SEL (0x3L<<17) 26518c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_ACTIVITY_SEL_0 (0L<<17) 26528c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_ACTIVITY_SEL_1 (1L<<17) 26538c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_ACTIVITY_SEL_2 (2L<<17) 26548c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_ACTIVITY_SEL_3 (3L<<17) 26558c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_BLNK_RATE (0xfffL<<19) 26568c2ecf20Sopenharmony_ci#define BNX2_EMAC_LED_BLNK_RATE_ENA (1L<<31) 26578c2ecf20Sopenharmony_ci 26588c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH0 0x00001410 26598c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH1 0x00001414 26608c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH2 0x00001418 26618c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH3 0x0000141c 26628c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH4 0x00001420 26638c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH5 0x00001424 26648c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH6 0x00001428 26658c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH7 0x0000142c 26668c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH8 0x00001430 26678c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH9 0x00001434 26688c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH10 0x00001438 26698c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH11 0x0000143c 26708c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH12 0x00001440 26718c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH13 0x00001444 26728c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH14 0x00001448 26738c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH15 0x0000144c 26748c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH16 0x00001450 26758c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH17 0x00001454 26768c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH18 0x00001458 26778c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH19 0x0000145c 26788c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH20 0x00001460 26798c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH21 0x00001464 26808c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH22 0x00001468 26818c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH23 0x0000146c 26828c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH24 0x00001470 26838c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH25 0x00001474 26848c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH26 0x00001478 26858c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH27 0x0000147c 26868c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH28 0x00001480 26878c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH29 0x00001484 26888c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH30 0x00001488 26898c2ecf20Sopenharmony_ci#define BNX2_EMAC_MAC_MATCH31 0x0000148c 26908c2ecf20Sopenharmony_ci#define BNX2_EMAC_BACKOFF_SEED 0x00001498 26918c2ecf20Sopenharmony_ci#define BNX2_EMAC_BACKOFF_SEED_EMAC_BACKOFF_SEED (0x3ffL<<0) 26928c2ecf20Sopenharmony_ci 26938c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MTU_SIZE 0x0000149c 26948c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MTU_SIZE_MTU_SIZE (0xffffL<<0) 26958c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MTU_SIZE_JUMBO_ENA (1L<<31) 26968c2ecf20Sopenharmony_ci 26978c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL 0x000014a4 26988c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_RXR (0x7L<<0) 26998c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_RXG (0x3L<<3) 27008c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_RXCKSEL (1L<<6) 27018c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_TXBIAS (0x7L<<7) 27028c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_BGMAX (1L<<10) 27038c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_BGMIN (1L<<11) 27048c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_TXMODE (1L<<12) 27058c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_TXEDGE (1L<<13) 27068c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_SERDES_MODE (1L<<14) 27078c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_PLLTEST (1L<<15) 27088c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_CDET_EN (1L<<16) 27098c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_TBI_LBK (1L<<17) 27108c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_REMOTE_LBK (1L<<18) 27118c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_REV_PHASE (1L<<19) 27128c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_REGCTL12 (0x3L<<20) 27138c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_CNTL_REGCTL25 (0x3L<<22) 27148c2ecf20Sopenharmony_ci 27158c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_STATUS 0x000014a8 27168c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_STATUS_RX_STAT (0xffL<<0) 27178c2ecf20Sopenharmony_ci#define BNX2_EMAC_SERDES_STATUS_COMMA_DET (1L<<8) 27188c2ecf20Sopenharmony_ci 27198c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM 0x000014ac 27208c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_DATA (0xffffL<<0) 27218c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_REG_ADDR (0x1fL<<16) 27228c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_PHY_ADDR (0x1fL<<21) 27238c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_COMMAND (0x3L<<26) 27248c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_COMMAND_UNDEFINED_0 (0L<<26) 27258c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_COMMAND_ADDRESS (0L<<26) 27268c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_COMMAND_WRITE (1L<<26) 27278c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_COMMAND_READ (2L<<26) 27288c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_COMMAND_WRITE_22_XI (1L<<26) 27298c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_COMMAND_WRITE_45_XI (1L<<26) 27308c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_COMMAND_READ_22_XI (2L<<26) 27318c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_COMMAND_READ_INC_45_XI (2L<<26) 27328c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_COMMAND_UNDEFINED_3 (3L<<26) 27338c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_COMMAND_READ_45 (3L<<26) 27348c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_FAIL (1L<<28) 27358c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_START_BUSY (1L<<29) 27368c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_COMM_DISEXT (1L<<30) 27378c2ecf20Sopenharmony_ci 27388c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_STATUS 0x000014b0 27398c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_STATUS_LINK (1L<<0) 27408c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_STATUS_10MB (1L<<1) 27418c2ecf20Sopenharmony_ci 27428c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_MODE 0x000014b4 27438c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_MODE_SHORT_PREAMBLE (1L<<1) 27448c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_MODE_AUTO_POLL (1L<<4) 27458c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_MODE_BIT_BANG (1L<<8) 27468c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_MODE_MDIO (1L<<9) 27478c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_MODE_MDIO_OE (1L<<10) 27488c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_MODE_MDC (1L<<11) 27498c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_MODE_MDINT (1L<<12) 27508c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_MODE_EXT_MDINT (1L<<13) 27518c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_MODE_CLOCK_CNT (0x1fL<<16) 27528c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_MODE_CLOCK_CNT_XI (0x3fL<<16) 27538c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_MODE_CLAUSE_45_XI (1L<<31) 27548c2ecf20Sopenharmony_ci 27558c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_AUTO_STATUS 0x000014b8 27568c2ecf20Sopenharmony_ci#define BNX2_EMAC_MDIO_AUTO_STATUS_AUTO_ERR (1L<<0) 27578c2ecf20Sopenharmony_ci 27588c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_MODE 0x000014bc 27598c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_MODE_RESET (1L<<0) 27608c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_MODE_CS16_TEST (1L<<2) 27618c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_MODE_EXT_PAUSE_EN (1L<<3) 27628c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_MODE_FLOW_EN (1L<<4) 27638c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_MODE_BIG_BACKOFF (1L<<5) 27648c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_MODE_LONG_PAUSE (1L<<6) 27658c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_MODE_LINK_AWARE (1L<<7) 27668c2ecf20Sopenharmony_ci 27678c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STATUS 0x000014c0 27688c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STATUS_XOFFED (1L<<0) 27698c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STATUS_XOFF_SENT (1L<<1) 27708c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STATUS_XON_SENT (1L<<2) 27718c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STATUS_LINK_UP (1L<<3) 27728c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STATUS_UNDERRUN (1L<<4) 27738c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STATUS_CS16_ERROR (1L<<5) 27748c2ecf20Sopenharmony_ci 27758c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_LENGTHS 0x000014c4 27768c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_LENGTHS_SLOT (0xffL<<0) 27778c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_LENGTHS_IPG (0xfL<<8) 27788c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_LENGTHS_IPG_CRS (0x3L<<12) 27798c2ecf20Sopenharmony_ci 27808c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MODE 0x000014c8 27818c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MODE_RESET (1L<<0) 27828c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MODE_FLOW_EN (1L<<2) 27838c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MODE_KEEP_MAC_CONTROL (1L<<3) 27848c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MODE_KEEP_PAUSE (1L<<4) 27858c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MODE_ACCEPT_OVERSIZE (1L<<5) 27868c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MODE_ACCEPT_RUNTS (1L<<6) 27878c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MODE_LLC_CHK (1L<<7) 27888c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MODE_PROMISCUOUS (1L<<8) 27898c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MODE_NO_CRC_CHK (1L<<9) 27908c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MODE_KEEP_VLAN_TAG (1L<<10) 27918c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MODE_FILT_BROADCAST (1L<<11) 27928c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_MODE_SORT_MODE (1L<<12) 27938c2ecf20Sopenharmony_ci 27948c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STATUS 0x000014cc 27958c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STATUS_FFED (1L<<0) 27968c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STATUS_FF_RECEIVED (1L<<1) 27978c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STATUS_N_RECEIVED (1L<<2) 27988c2ecf20Sopenharmony_ci 27998c2ecf20Sopenharmony_ci#define BNX2_EMAC_MULTICAST_HASH0 0x000014d0 28008c2ecf20Sopenharmony_ci#define BNX2_EMAC_MULTICAST_HASH1 0x000014d4 28018c2ecf20Sopenharmony_ci#define BNX2_EMAC_MULTICAST_HASH2 0x000014d8 28028c2ecf20Sopenharmony_ci#define BNX2_EMAC_MULTICAST_HASH3 0x000014dc 28038c2ecf20Sopenharmony_ci#define BNX2_EMAC_MULTICAST_HASH4 0x000014e0 28048c2ecf20Sopenharmony_ci#define BNX2_EMAC_MULTICAST_HASH5 0x000014e4 28058c2ecf20Sopenharmony_ci#define BNX2_EMAC_MULTICAST_HASH6 0x000014e8 28068c2ecf20Sopenharmony_ci#define BNX2_EMAC_MULTICAST_HASH7 0x000014ec 28078c2ecf20Sopenharmony_ci#define BNX2_EMAC_CKSUM_ERROR_STATUS 0x000014f0 28088c2ecf20Sopenharmony_ci#define BNX2_EMAC_CKSUM_ERROR_STATUS_CALCULATED (0xffffL<<0) 28098c2ecf20Sopenharmony_ci#define BNX2_EMAC_CKSUM_ERROR_STATUS_EXPECTED (0xffffL<<16) 28108c2ecf20Sopenharmony_ci 28118c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_IFHCINOCTETS 0x00001500 28128c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_IFHCINBADOCTETS 0x00001504 28138c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_ETHERSTATSFRAGMENTS 0x00001508 28148c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_IFHCINUCASTPKTS 0x0000150c 28158c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_IFHCINMULTICASTPKTS 0x00001510 28168c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_IFHCINBROADCASTPKTS 0x00001514 28178c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_DOT3STATSFCSERRORS 0x00001518 28188c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_DOT3STATSALIGNMENTERRORS 0x0000151c 28198c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_DOT3STATSCARRIERSENSEERRORS 0x00001520 28208c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_XONPAUSEFRAMESRECEIVED 0x00001524 28218c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_XOFFPAUSEFRAMESRECEIVED 0x00001528 28228c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_MACCONTROLFRAMESRECEIVED 0x0000152c 28238c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_XOFFSTATEENTERED 0x00001530 28248c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_DOT3STATSFRAMESTOOLONG 0x00001534 28258c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_ETHERSTATSJABBERS 0x00001538 28268c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_ETHERSTATSUNDERSIZEPKTS 0x0000153c 28278c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_ETHERSTATSPKTS64OCTETS 0x00001540 28288c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_ETHERSTATSPKTS65OCTETSTO127OCTETS 0x00001544 28298c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_ETHERSTATSPKTS128OCTETSTO255OCTETS 0x00001548 28308c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_ETHERSTATSPKTS256OCTETSTO511OCTETS 0x0000154c 28318c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_ETHERSTATSPKTS512OCTETSTO1023OCTETS 0x00001550 28328c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_ETHERSTATSPKTS1024OCTETSTO1522OCTETS 0x00001554 28338c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_ETHERSTATSPKTSOVER1522OCTETS 0x00001558 28348c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG0 0x0000155c 28358c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG1 0x00001560 28368c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG1_LENGTH_NE_BYTE_COUNT (1L<<0) 28378c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG1_LENGTH_OUT_RANGE (1L<<1) 28388c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG1_BAD_CRC (1L<<2) 28398c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG1_RX_ERROR (1L<<3) 28408c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG1_ALIGN_ERROR (1L<<4) 28418c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG1_LAST_DATA (1L<<5) 28428c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG1_ODD_BYTE_START (1L<<6) 28438c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG1_BYTE_COUNT (0xffffL<<7) 28448c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG1_SLOT_TIME (0xffL<<23) 28458c2ecf20Sopenharmony_ci 28468c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2 0x00001564 28478c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_SM_STATE (0x7L<<0) 28488c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_SM_STATE_IDLE (0x0L<<0) 28498c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_SM_STATE_SFD (0x1L<<0) 28508c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_SM_STATE_DATA (0x2L<<0) 28518c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_SM_STATE_SKEEP (0x3L<<0) 28528c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_SM_STATE_EXT (0x4L<<0) 28538c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_SM_STATE_DROP (0x5L<<0) 28548c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_SM_STATE_SDROP (0x6L<<0) 28558c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_SM_STATE_FC (0x7L<<0) 28568c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_IDI_STATE (0xfL<<3) 28578c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_IDI_STATE_IDLE (0x0L<<3) 28588c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_IDI_STATE_DATA0 (0x1L<<3) 28598c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_IDI_STATE_DATA1 (0x2L<<3) 28608c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_IDI_STATE_DATA2 (0x3L<<3) 28618c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_IDI_STATE_DATA3 (0x4L<<3) 28628c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_IDI_STATE_ABORT (0x5L<<3) 28638c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_IDI_STATE_WAIT (0x6L<<3) 28648c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_IDI_STATE_STATUS (0x7L<<3) 28658c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_IDI_STATE_LAST (0x8L<<3) 28668c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_BYTE_IN (0xffL<<7) 28678c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_FALSEC (1L<<15) 28688c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_TAGGED (1L<<16) 28698c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_PAUSE_STATE (1L<<18) 28708c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_PAUSE_STATE_IDLE (0L<<18) 28718c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_PAUSE_STATE_PAUSED (1L<<18) 28728c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_SE_COUNTER (0xfL<<19) 28738c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG2_QUANTA (0x1fL<<23) 28748c2ecf20Sopenharmony_ci 28758c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG3 0x00001568 28768c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG3_PAUSE_CTR (0xffffL<<0) 28778c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG3_TMP_PAUSE_CTR (0xffffL<<16) 28788c2ecf20Sopenharmony_ci 28798c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4 0x0000156c 28808c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_TYPE_FIELD (0xffffL<<0) 28818c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE (0x3fL<<16) 28828c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_IDLE (0x0L<<16) 28838c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_UMAC2 (0x1L<<16) 28848c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_UMAC3 (0x2L<<16) 28858c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_UNI (0x3L<<16) 28868c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_MMAC3 (0x5L<<16) 28878c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_PSA1 (0x6L<<16) 28888c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_MMAC2 (0x7L<<16) 28898c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_PSA2 (0x7L<<16) 28908c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_PSA3 (0x8L<<16) 28918c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_MC2 (0x9L<<16) 28928c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_MC3 (0xaL<<16) 28938c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_MWAIT1 (0xeL<<16) 28948c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_MWAIT2 (0xfL<<16) 28958c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_MCHECK (0x10L<<16) 28968c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_MC (0x11L<<16) 28978c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_BC2 (0x12L<<16) 28988c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_BC3 (0x13L<<16) 28998c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_BSA1 (0x14L<<16) 29008c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_BSA2 (0x15L<<16) 29018c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_BSA3 (0x16L<<16) 29028c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_BTYPE (0x17L<<16) 29038c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_BC (0x18L<<16) 29048c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_PTYPE (0x19L<<16) 29058c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_CMD (0x1aL<<16) 29068c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_MAC (0x1bL<<16) 29078c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_LATCH (0x1cL<<16) 29088c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_XOFF (0x1dL<<16) 29098c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_XON (0x1eL<<16) 29108c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_PAUSED (0x1fL<<16) 29118c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_NPAUSED (0x20L<<16) 29128c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_TTYPE (0x21L<<16) 29138c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_TVAL (0x22L<<16) 29148c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_USA1 (0x23L<<16) 29158c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_USA2 (0x24L<<16) 29168c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_USA3 (0x25L<<16) 29178c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_UTYPE (0x26L<<16) 29188c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_UTTYPE (0x27L<<16) 29198c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_UTVAL (0x28L<<16) 29208c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_MTYPE (0x29L<<16) 29218c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FILT_STATE_DROP (0x2aL<<16) 29228c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_DROP_PKT (1L<<22) 29238c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_SLOT_FILLED (1L<<23) 29248c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_FALSE_CARRIER (1L<<24) 29258c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_LAST_DATA (1L<<25) 29268c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_SFD_FOUND (1L<<26) 29278c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_ADVANCE (1L<<27) 29288c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG4_START (1L<<28) 29298c2ecf20Sopenharmony_ci 29308c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5 0x00001570 29318c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_PS_IDISM (0x7L<<0) 29328c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_PS_IDISM_IDLE (0L<<0) 29338c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_PS_IDISM_WAIT_EOF (1L<<0) 29348c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_PS_IDISM_WAIT_STAT (2L<<0) 29358c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_PS_IDISM_SET_EOF4FCRC (3L<<0) 29368c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_PS_IDISM_SET_EOF4RDE (4L<<0) 29378c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_PS_IDISM_SET_EOF4ALL (5L<<0) 29388c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_PS_IDISM_1WD_WAIT_STAT (6L<<0) 29398c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_CCODE_BUF1 (0x7L<<4) 29408c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_CCODE_BUF1_VDW (0x0L<<4) 29418c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_CCODE_BUF1_STAT (0x1L<<4) 29428c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_CCODE_BUF1_AEOF (0x2L<<4) 29438c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_CCODE_BUF1_NEOF (0x3L<<4) 29448c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_CCODE_BUF1_SOF (0x4L<<4) 29458c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_CCODE_BUF1_SAEOF (0x6L<<4) 29468c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_CCODE_BUF1_SNEOF (0x7L<<4) 29478c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_EOF_DETECTED (1L<<7) 29488c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_CCODE_BUF0 (0x7L<<8) 29498c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_RPM_IDI_FIFO_FULL (1L<<11) 29508c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_LOAD_CCODE (1L<<12) 29518c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_LOAD_DATA (1L<<13) 29528c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_LOAD_STAT (1L<<14) 29538c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_CLR_STAT (1L<<15) 29548c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_IDI_RPM_CCODE (0x3L<<16) 29558c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_IDI_RPM_ACCEPT (1L<<19) 29568c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_DEBUG5_FMLEN (0xfffL<<20) 29578c2ecf20Sopenharmony_ci 29588c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_FALSECARRIERERRORS 0x00001574 29598c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC0 0x00001580 29608c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC1 0x00001584 29618c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC2 0x00001588 29628c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC3 0x0000158c 29638c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC4 0x00001590 29648c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC5 0x00001594 29658c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC6 0x00001598 29668c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC7 0x0000159c 29678c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC8 0x000015a0 29688c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC9 0x000015a4 29698c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC10 0x000015a8 29708c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC11 0x000015ac 29718c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC12 0x000015b0 29728c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC13 0x000015b4 29738c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC14 0x000015b8 29748c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC15 0x000015bc 29758c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC16 0x000015c0 29768c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC17 0x000015c4 29778c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC18 0x000015c8 29788c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC19 0x000015cc 29798c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC20 0x000015d0 29808c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC21 0x000015d4 29818c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC22 0x000015d8 29828c2ecf20Sopenharmony_ci#define BNX2_EMAC_RXMAC_SUC_DBG_OVERRUNVEC 0x000015dc 29838c2ecf20Sopenharmony_ci#define BNX2_EMAC_RX_STAT_AC_28 0x000015f4 29848c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_IFHCOUTOCTETS 0x00001600 29858c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_IFHCOUTBADOCTETS 0x00001604 29868c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_ETHERSTATSCOLLISIONS 0x00001608 29878c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_OUTXONSENT 0x0000160c 29888c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_OUTXOFFSENT 0x00001610 29898c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_FLOWCONTROLDONE 0x00001614 29908c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_DOT3STATSSINGLECOLLISIONFRAMES 0x00001618 29918c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_DOT3STATSMULTIPLECOLLISIONFRAMES 0x0000161c 29928c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_DOT3STATSDEFERREDTRANSMISSIONS 0x00001620 29938c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_DOT3STATSEXCESSIVECOLLISIONS 0x00001624 29948c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_DOT3STATSLATECOLLISIONS 0x00001628 29958c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_IFHCOUTUCASTPKTS 0x0000162c 29968c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_IFHCOUTMULTICASTPKTS 0x00001630 29978c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_IFHCOUTBROADCASTPKTS 0x00001634 29988c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_ETHERSTATSPKTS64OCTETS 0x00001638 29998c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_ETHERSTATSPKTS65OCTETSTO127OCTETS 0x0000163c 30008c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_ETHERSTATSPKTS128OCTETSTO255OCTETS 0x00001640 30018c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_ETHERSTATSPKTS256OCTETSTO511OCTETS 0x00001644 30028c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_ETHERSTATSPKTS512OCTETSTO1023OCTETS 0x00001648 30038c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_ETHERSTATSPKTS1024OCTETSTO1522OCTETS 0x0000164c 30048c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_ETHERSTATSPKTSOVER1522OCTETS 0x00001650 30058c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_DOT3STATSINTERNALMACTRANSMITERRORS 0x00001654 30068c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG0 0x00001658 30078c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1 0x0000165c 30088c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_ODI_STATE (0xfL<<0) 30098c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_ODI_STATE_IDLE (0x0L<<0) 30108c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_ODI_STATE_START0 (0x1L<<0) 30118c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_ODI_STATE_DATA0 (0x4L<<0) 30128c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_ODI_STATE_DATA1 (0x5L<<0) 30138c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_ODI_STATE_DATA2 (0x6L<<0) 30148c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_ODI_STATE_DATA3 (0x7L<<0) 30158c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_ODI_STATE_WAIT0 (0x8L<<0) 30168c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_ODI_STATE_WAIT1 (0x9L<<0) 30178c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_CRS_ENABLE (1L<<4) 30188c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_BAD_CRC (1L<<5) 30198c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_SE_COUNTER (0xfL<<6) 30208c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_SEND_PAUSE (1L<<10) 30218c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_LATE_COLLISION (1L<<11) 30228c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_MAX_DEFER (1L<<12) 30238c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_DEFERRED (1L<<13) 30248c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_ONE_BYTE (1L<<14) 30258c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_IPG_TIME (0xfL<<15) 30268c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG1_SLOT_TIME (0xffL<<19) 30278c2ecf20Sopenharmony_ci 30288c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG2 0x00001660 30298c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG2_BACK_OFF (0x3ffL<<0) 30308c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG2_BYTE_COUNT (0xffffL<<10) 30318c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG2_COL_COUNT (0x1fL<<26) 30328c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG2_COL_BIT (1L<<31) 30338c2ecf20Sopenharmony_ci 30348c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3 0x00001664 30358c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE (0xfL<<0) 30368c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_IDLE (0x0L<<0) 30378c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_PRE1 (0x1L<<0) 30388c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_PRE2 (0x2L<<0) 30398c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_SFD (0x3L<<0) 30408c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_DATA (0x4L<<0) 30418c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_CRC1 (0x5L<<0) 30428c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_CRC2 (0x6L<<0) 30438c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_EXT (0x7L<<0) 30448c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_STATB (0x8L<<0) 30458c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_STATG (0x9L<<0) 30468c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_JAM (0xaL<<0) 30478c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_EJAM (0xbL<<0) 30488c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_BJAM (0xcL<<0) 30498c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_SWAIT (0xdL<<0) 30508c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SM_STATE_BACKOFF (0xeL<<0) 30518c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_FILT_STATE (0x7L<<4) 30528c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_FILT_STATE_IDLE (0x0L<<4) 30538c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_FILT_STATE_WAIT (0x1L<<4) 30548c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_FILT_STATE_UNI (0x2L<<4) 30558c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_FILT_STATE_MC (0x3L<<4) 30568c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_FILT_STATE_BC2 (0x4L<<4) 30578c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_FILT_STATE_BC3 (0x5L<<4) 30588c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_FILT_STATE_BC (0x6L<<4) 30598c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_CRS_DONE (1L<<7) 30608c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_XOFF (1L<<8) 30618c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_SE_COUNTER (0xfL<<9) 30628c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG3_QUANTA_COUNTER (0x1fL<<13) 30638c2ecf20Sopenharmony_ci 30648c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4 0x00001668 30658c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_COUNTER (0xffffL<<0) 30668c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_STATE (0xfL<<16) 30678c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_STATE_IDLE (0x0L<<16) 30688c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_STATE_MCA1 (0x2L<<16) 30698c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_STATE_MCA2 (0x3L<<16) 30708c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_STATE_SRC3 (0x4L<<16) 30718c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_STATE_SRC2 (0x5L<<16) 30728c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_STATE_MCA3 (0x6L<<16) 30738c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_STATE_SRC1 (0x7L<<16) 30748c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_STATE_CRC1 (0x8L<<16) 30758c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_STATE_CRC2 (0x9L<<16) 30768c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_STATE_TIME (0xaL<<16) 30778c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_STATE_TYPE (0xcL<<16) 30788c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_STATE_WAIT (0xdL<<16) 30798c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_PAUSE_STATE_CMD (0xeL<<16) 30808c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_STATS0_VALID (1L<<20) 30818c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_APPEND_CRC (1L<<21) 30828c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_SLOT_FILLED (1L<<22) 30838c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_MAX_DEFER (1L<<23) 30848c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_SEND_EXTEND (1L<<24) 30858c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_SEND_PADDING (1L<<25) 30868c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_EOF_LOC (1L<<26) 30878c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_COLLIDING (1L<<27) 30888c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_COL_IN (1L<<28) 30898c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_BURSTING (1L<<29) 30908c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_ADVANCE (1L<<30) 30918c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_DEBUG4_GO (1L<<31) 30928c2ecf20Sopenharmony_ci 30938c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC0 0x00001680 30948c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC1 0x00001684 30958c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC2 0x00001688 30968c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC3 0x0000168c 30978c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC4 0x00001690 30988c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC5 0x00001694 30998c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC6 0x00001698 31008c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC7 0x0000169c 31018c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC8 0x000016a0 31028c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC9 0x000016a4 31038c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC10 0x000016a8 31048c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC11 0x000016ac 31058c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC12 0x000016b0 31068c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC13 0x000016b4 31078c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC14 0x000016b8 31088c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC15 0x000016bc 31098c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC16 0x000016c0 31108c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC17 0x000016c4 31118c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC18 0x000016c8 31128c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC19 0x000016cc 31138c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_STAT_AC20 0x000016d0 31148c2ecf20Sopenharmony_ci#define BNX2_EMAC_TXMAC_SUC_DBG_OVERRUNVEC 0x000016d8 31158c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_RATE_LIMIT_CTRL 0x000016fc 31168c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_RATE_LIMIT_CTRL_TX_THROTTLE_INC (0x7fL<<0) 31178c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_RATE_LIMIT_CTRL_TX_THROTTLE_NUM (0x7fL<<16) 31188c2ecf20Sopenharmony_ci#define BNX2_EMAC_TX_RATE_LIMIT_CTRL_RATE_LIMITER_EN (1L<<31) 31198c2ecf20Sopenharmony_ci 31208c2ecf20Sopenharmony_ci 31218c2ecf20Sopenharmony_ci/* 31228c2ecf20Sopenharmony_ci * rpm_reg definition 31238c2ecf20Sopenharmony_ci * offset: 0x1800 31248c2ecf20Sopenharmony_ci */ 31258c2ecf20Sopenharmony_ci#define BNX2_RPM_COMMAND 0x00001800 31268c2ecf20Sopenharmony_ci#define BNX2_RPM_COMMAND_ENABLED (1L<<0) 31278c2ecf20Sopenharmony_ci#define BNX2_RPM_COMMAND_OVERRUN_ABORT (1L<<4) 31288c2ecf20Sopenharmony_ci 31298c2ecf20Sopenharmony_ci#define BNX2_RPM_STATUS 0x00001804 31308c2ecf20Sopenharmony_ci#define BNX2_RPM_STATUS_MBUF_WAIT (1L<<0) 31318c2ecf20Sopenharmony_ci#define BNX2_RPM_STATUS_FREE_WAIT (1L<<1) 31328c2ecf20Sopenharmony_ci 31338c2ecf20Sopenharmony_ci#define BNX2_RPM_CONFIG 0x00001808 31348c2ecf20Sopenharmony_ci#define BNX2_RPM_CONFIG_NO_PSD_HDR_CKSUM (1L<<0) 31358c2ecf20Sopenharmony_ci#define BNX2_RPM_CONFIG_ACPI_ENA (1L<<1) 31368c2ecf20Sopenharmony_ci#define BNX2_RPM_CONFIG_ACPI_KEEP (1L<<2) 31378c2ecf20Sopenharmony_ci#define BNX2_RPM_CONFIG_MP_KEEP (1L<<3) 31388c2ecf20Sopenharmony_ci#define BNX2_RPM_CONFIG_SORT_VECT_VAL (0xfL<<4) 31398c2ecf20Sopenharmony_ci#define BNX2_RPM_CONFIG_DISABLE_WOL_ASSERT (1L<<30) 31408c2ecf20Sopenharmony_ci#define BNX2_RPM_CONFIG_IGNORE_VLAN (1L<<31) 31418c2ecf20Sopenharmony_ci 31428c2ecf20Sopenharmony_ci#define BNX2_RPM_MGMT_PKT_CTRL 0x0000180c 31438c2ecf20Sopenharmony_ci#define BNX2_RPM_MGMT_PKT_CTRL_MGMT_SORT (0xfL<<0) 31448c2ecf20Sopenharmony_ci#define BNX2_RPM_MGMT_PKT_CTRL_MGMT_RULE (0xfL<<4) 31458c2ecf20Sopenharmony_ci#define BNX2_RPM_MGMT_PKT_CTRL_MGMT_DISCARD_EN (1L<<30) 31468c2ecf20Sopenharmony_ci#define BNX2_RPM_MGMT_PKT_CTRL_MGMT_EN (1L<<31) 31478c2ecf20Sopenharmony_ci 31488c2ecf20Sopenharmony_ci#define BNX2_RPM_VLAN_MATCH0 0x00001810 31498c2ecf20Sopenharmony_ci#define BNX2_RPM_VLAN_MATCH0_RPM_VLAN_MTCH0_VALUE (0xfffL<<0) 31508c2ecf20Sopenharmony_ci 31518c2ecf20Sopenharmony_ci#define BNX2_RPM_VLAN_MATCH1 0x00001814 31528c2ecf20Sopenharmony_ci#define BNX2_RPM_VLAN_MATCH1_RPM_VLAN_MTCH1_VALUE (0xfffL<<0) 31538c2ecf20Sopenharmony_ci 31548c2ecf20Sopenharmony_ci#define BNX2_RPM_VLAN_MATCH2 0x00001818 31558c2ecf20Sopenharmony_ci#define BNX2_RPM_VLAN_MATCH2_RPM_VLAN_MTCH2_VALUE (0xfffL<<0) 31568c2ecf20Sopenharmony_ci 31578c2ecf20Sopenharmony_ci#define BNX2_RPM_VLAN_MATCH3 0x0000181c 31588c2ecf20Sopenharmony_ci#define BNX2_RPM_VLAN_MATCH3_RPM_VLAN_MTCH3_VALUE (0xfffL<<0) 31598c2ecf20Sopenharmony_ci 31608c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER0 0x00001820 31618c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER0_PM_EN (0xffffL<<0) 31628c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER0_BC_EN (1L<<16) 31638c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER0_MC_EN (1L<<17) 31648c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER0_MC_HSH_EN (1L<<18) 31658c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER0_PROM_EN (1L<<19) 31668c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER0_VLAN_EN (0xfL<<20) 31678c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER0_PROM_VLAN (1L<<24) 31688c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER0_VLAN_NOTMATCH (1L<<25) 31698c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER0_ENA (1L<<31) 31708c2ecf20Sopenharmony_ci 31718c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER1 0x00001824 31728c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER1_PM_EN (0xffffL<<0) 31738c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER1_BC_EN (1L<<16) 31748c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER1_MC_EN (1L<<17) 31758c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER1_MC_HSH_EN (1L<<18) 31768c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER1_PROM_EN (1L<<19) 31778c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER1_VLAN_EN (0xfL<<20) 31788c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER1_PROM_VLAN (1L<<24) 31798c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER1_ENA (1L<<31) 31808c2ecf20Sopenharmony_ci 31818c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER2 0x00001828 31828c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER2_PM_EN (0xffffL<<0) 31838c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER2_BC_EN (1L<<16) 31848c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER2_MC_EN (1L<<17) 31858c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER2_MC_HSH_EN (1L<<18) 31868c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER2_PROM_EN (1L<<19) 31878c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER2_VLAN_EN (0xfL<<20) 31888c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER2_PROM_VLAN (1L<<24) 31898c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER2_ENA (1L<<31) 31908c2ecf20Sopenharmony_ci 31918c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER3 0x0000182c 31928c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER3_PM_EN (0xffffL<<0) 31938c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER3_BC_EN (1L<<16) 31948c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER3_MC_EN (1L<<17) 31958c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER3_MC_HSH_EN (1L<<18) 31968c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER3_PROM_EN (1L<<19) 31978c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER3_VLAN_EN (0xfL<<20) 31988c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER3_PROM_VLAN (1L<<24) 31998c2ecf20Sopenharmony_ci#define BNX2_RPM_SORT_USER3_ENA (1L<<31) 32008c2ecf20Sopenharmony_ci 32018c2ecf20Sopenharmony_ci#define BNX2_RPM_STAT_L2_FILTER_DISCARDS 0x00001840 32028c2ecf20Sopenharmony_ci#define BNX2_RPM_STAT_RULE_CHECKER_DISCARDS 0x00001844 32038c2ecf20Sopenharmony_ci#define BNX2_RPM_STAT_IFINFTQDISCARDS 0x00001848 32048c2ecf20Sopenharmony_ci#define BNX2_RPM_STAT_IFINMBUFDISCARD 0x0000184c 32058c2ecf20Sopenharmony_ci#define BNX2_RPM_STAT_RULE_CHECKER_P4_HIT 0x00001850 32068c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION0 0x00001854 32078c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION0_NEXT_HEADER_LEN (0xffL<<0) 32088c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION0_NEXT_HEADER (0xffL<<16) 32098c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION0_NEXT_HEADER_LEN_TYPE (1L<<30) 32108c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION0_NEXT_HEADER_EN (1L<<31) 32118c2ecf20Sopenharmony_ci 32128c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION1 0x00001858 32138c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION1_NEXT_HEADER_LEN (0xffL<<0) 32148c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION1_NEXT_HEADER (0xffL<<16) 32158c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION1_NEXT_HEADER_LEN_TYPE (1L<<30) 32168c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION1_NEXT_HEADER_EN (1L<<31) 32178c2ecf20Sopenharmony_ci 32188c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION2 0x0000185c 32198c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION2_NEXT_HEADER_LEN (0xffL<<0) 32208c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION2_NEXT_HEADER (0xffL<<16) 32218c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION2_NEXT_HEADER_LEN_TYPE (1L<<30) 32228c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION2_NEXT_HEADER_EN (1L<<31) 32238c2ecf20Sopenharmony_ci 32248c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION3 0x00001860 32258c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION3_NEXT_HEADER_LEN (0xffL<<0) 32268c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION3_NEXT_HEADER (0xffL<<16) 32278c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION3_NEXT_HEADER_LEN_TYPE (1L<<30) 32288c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION3_NEXT_HEADER_EN (1L<<31) 32298c2ecf20Sopenharmony_ci 32308c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION4 0x00001864 32318c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION4_NEXT_HEADER_LEN (0xffL<<0) 32328c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION4_NEXT_HEADER (0xffL<<16) 32338c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION4_NEXT_HEADER_LEN_TYPE (1L<<30) 32348c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION4_NEXT_HEADER_EN (1L<<31) 32358c2ecf20Sopenharmony_ci 32368c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION5 0x00001868 32378c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION5_NEXT_HEADER_LEN (0xffL<<0) 32388c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION5_NEXT_HEADER (0xffL<<16) 32398c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION5_NEXT_HEADER_LEN_TYPE (1L<<30) 32408c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION5_NEXT_HEADER_EN (1L<<31) 32418c2ecf20Sopenharmony_ci 32428c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION6 0x0000186c 32438c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION6_NEXT_HEADER_LEN (0xffL<<0) 32448c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION6_NEXT_HEADER (0xffL<<16) 32458c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION6_NEXT_HEADER_LEN_TYPE (1L<<30) 32468c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION6_NEXT_HEADER_EN (1L<<31) 32478c2ecf20Sopenharmony_ci 32488c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION7 0x00001870 32498c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION7_NEXT_HEADER_LEN (0xffL<<0) 32508c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION7_NEXT_HEADER (0xffL<<16) 32518c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION7_NEXT_HEADER_LEN_TYPE (1L<<30) 32528c2ecf20Sopenharmony_ci#define BNX2_RPM_IPV6_PROGRAMMABLE_EXTENSION7_NEXT_HEADER_EN (1L<<31) 32538c2ecf20Sopenharmony_ci 32548c2ecf20Sopenharmony_ci#define BNX2_RPM_STAT_AC0 0x00001880 32558c2ecf20Sopenharmony_ci#define BNX2_RPM_STAT_AC1 0x00001884 32568c2ecf20Sopenharmony_ci#define BNX2_RPM_STAT_AC2 0x00001888 32578c2ecf20Sopenharmony_ci#define BNX2_RPM_STAT_AC3 0x0000188c 32588c2ecf20Sopenharmony_ci#define BNX2_RPM_STAT_AC4 0x00001890 32598c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16 0x000018e0 32608c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_OFFSET (0xffL<<0) 32618c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_CLASS (0x7L<<8) 32628c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_PRIORITY (1L<<11) 32638c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_P4 (1L<<12) 32648c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_HDR_TYPE (0x7L<<13) 32658c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_HDR_TYPE_START (0L<<13) 32668c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_HDR_TYPE_IP (1L<<13) 32678c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_HDR_TYPE_TCP (2L<<13) 32688c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_HDR_TYPE_UDP (3L<<13) 32698c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_HDR_TYPE_DATA (4L<<13) 32708c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_HDR_TYPE_TCP_UDP (5L<<13) 32718c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_HDR_TYPE_ICMPV6 (6L<<13) 32728c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_COMP (0x3L<<16) 32738c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_COMP_EQUAL (0L<<16) 32748c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_COMP_NEQUAL (1L<<16) 32758c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_COMP_GREATER (2L<<16) 32768c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_COMP_LESS (3L<<16) 32778c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_MAP (1L<<18) 32788c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_SBIT (1L<<19) 32798c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_CMDSEL (0x1fL<<20) 32808c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_DISCARD (1L<<25) 32818c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_MASK (1L<<26) 32828c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_P1 (1L<<27) 32838c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_P2 (1L<<28) 32848c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_P3 (1L<<29) 32858c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_16_NBIT (1L<<30) 32868c2ecf20Sopenharmony_ci 32878c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_16 0x000018e4 32888c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_16_VALUE (0xffffL<<0) 32898c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_16_MASK (0xffffL<<16) 32908c2ecf20Sopenharmony_ci 32918c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17 0x000018e8 32928c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_OFFSET (0xffL<<0) 32938c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_CLASS (0x7L<<8) 32948c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_PRIORITY (1L<<11) 32958c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_P4 (1L<<12) 32968c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_HDR_TYPE (0x7L<<13) 32978c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_HDR_TYPE_START (0L<<13) 32988c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_HDR_TYPE_IP (1L<<13) 32998c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_HDR_TYPE_TCP (2L<<13) 33008c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_HDR_TYPE_UDP (3L<<13) 33018c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_HDR_TYPE_DATA (4L<<13) 33028c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_HDR_TYPE_TCP_UDP (5L<<13) 33038c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_HDR_TYPE_ICMPV6 (6L<<13) 33048c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_COMP (0x3L<<16) 33058c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_COMP_EQUAL (0L<<16) 33068c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_COMP_NEQUAL (1L<<16) 33078c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_COMP_GREATER (2L<<16) 33088c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_COMP_LESS (3L<<16) 33098c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_MAP (1L<<18) 33108c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_SBIT (1L<<19) 33118c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_CMDSEL (0x1fL<<20) 33128c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_DISCARD (1L<<25) 33138c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_MASK (1L<<26) 33148c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_P1 (1L<<27) 33158c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_P2 (1L<<28) 33168c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_P3 (1L<<29) 33178c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_17_NBIT (1L<<30) 33188c2ecf20Sopenharmony_ci 33198c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_17 0x000018ec 33208c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_17_VALUE (0xffffL<<0) 33218c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_17_MASK (0xffffL<<16) 33228c2ecf20Sopenharmony_ci 33238c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18 0x000018f0 33248c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_OFFSET (0xffL<<0) 33258c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_CLASS (0x7L<<8) 33268c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_PRIORITY (1L<<11) 33278c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_P4 (1L<<12) 33288c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_HDR_TYPE (0x7L<<13) 33298c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_HDR_TYPE_START (0L<<13) 33308c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_HDR_TYPE_IP (1L<<13) 33318c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_HDR_TYPE_TCP (2L<<13) 33328c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_HDR_TYPE_UDP (3L<<13) 33338c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_HDR_TYPE_DATA (4L<<13) 33348c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_HDR_TYPE_TCP_UDP (5L<<13) 33358c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_HDR_TYPE_ICMPV6 (6L<<13) 33368c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_COMP (0x3L<<16) 33378c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_COMP_EQUAL (0L<<16) 33388c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_COMP_NEQUAL (1L<<16) 33398c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_COMP_GREATER (2L<<16) 33408c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_COMP_LESS (3L<<16) 33418c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_MAP (1L<<18) 33428c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_SBIT (1L<<19) 33438c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_CMDSEL (0x1fL<<20) 33448c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_DISCARD (1L<<25) 33458c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_MASK (1L<<26) 33468c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_P1 (1L<<27) 33478c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_P2 (1L<<28) 33488c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_P3 (1L<<29) 33498c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_18_NBIT (1L<<30) 33508c2ecf20Sopenharmony_ci 33518c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_18 0x000018f4 33528c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_18_VALUE (0xffffL<<0) 33538c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_18_MASK (0xffffL<<16) 33548c2ecf20Sopenharmony_ci 33558c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19 0x000018f8 33568c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_OFFSET (0xffL<<0) 33578c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_CLASS (0x7L<<8) 33588c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_PRIORITY (1L<<11) 33598c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_P4 (1L<<12) 33608c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_HDR_TYPE (0x7L<<13) 33618c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_HDR_TYPE_START (0L<<13) 33628c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_HDR_TYPE_IP (1L<<13) 33638c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_HDR_TYPE_TCP (2L<<13) 33648c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_HDR_TYPE_UDP (3L<<13) 33658c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_HDR_TYPE_DATA (4L<<13) 33668c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_HDR_TYPE_TCP_UDP (5L<<13) 33678c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_HDR_TYPE_ICMPV6 (6L<<13) 33688c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_COMP (0x3L<<16) 33698c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_COMP_EQUAL (0L<<16) 33708c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_COMP_NEQUAL (1L<<16) 33718c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_COMP_GREATER (2L<<16) 33728c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_COMP_LESS (3L<<16) 33738c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_MAP (1L<<18) 33748c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_SBIT (1L<<19) 33758c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_CMDSEL (0x1fL<<20) 33768c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_DISCARD (1L<<25) 33778c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_MASK (1L<<26) 33788c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_P1 (1L<<27) 33798c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_P2 (1L<<28) 33808c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_P3 (1L<<29) 33818c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_19_NBIT (1L<<30) 33828c2ecf20Sopenharmony_ci 33838c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_19 0x000018fc 33848c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_19_VALUE (0xffffL<<0) 33858c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_19_MASK (0xffffL<<16) 33868c2ecf20Sopenharmony_ci 33878c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0 0x00001900 33888c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_OFFSET (0xffL<<0) 33898c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_CLASS (0x7L<<8) 33908c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_PRIORITY (1L<<11) 33918c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_P4 (1L<<12) 33928c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_HDR_TYPE (0x7L<<13) 33938c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_HDR_TYPE_START (0L<<13) 33948c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_HDR_TYPE_IP (1L<<13) 33958c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_HDR_TYPE_TCP (2L<<13) 33968c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_HDR_TYPE_UDP (3L<<13) 33978c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_HDR_TYPE_DATA (4L<<13) 33988c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_HDR_TYPE_TCP_UDP (5L<<13) 33998c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_HDR_TYPE_ICMPV6 (6L<<13) 34008c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_COMP (0x3L<<16) 34018c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_COMP_EQUAL (0L<<16) 34028c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_COMP_NEQUAL (1L<<16) 34038c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_COMP_GREATER (2L<<16) 34048c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_COMP_LESS (3L<<16) 34058c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_MAP_XI (1L<<18) 34068c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_SBIT (1L<<19) 34078c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_CMDSEL (0xfL<<20) 34088c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_MAP (1L<<24) 34098c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_CMDSEL_XI (0x1fL<<20) 34108c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_DISCARD (1L<<25) 34118c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_MASK (1L<<26) 34128c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_P1 (1L<<27) 34138c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_P2 (1L<<28) 34148c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_P3 (1L<<29) 34158c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_0_NBIT (1L<<30) 34168c2ecf20Sopenharmony_ci 34178c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_0 0x00001904 34188c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_0_VALUE (0xffffL<<0) 34198c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_0_MASK (0xffffL<<16) 34208c2ecf20Sopenharmony_ci 34218c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1 0x00001908 34228c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_A (0x3ffffL<<0) 34238c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_B (0xfffL<<19) 34248c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_OFFSET_XI (0xffL<<0) 34258c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_CLASS_XI (0x7L<<8) 34268c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_PRIORITY_XI (1L<<11) 34278c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_P4_XI (1L<<12) 34288c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_HDR_TYPE_XI (0x7L<<13) 34298c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_HDR_TYPE_START_XI (0L<<13) 34308c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_HDR_TYPE_IP_XI (1L<<13) 34318c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_HDR_TYPE_TCP_XI (2L<<13) 34328c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_HDR_TYPE_UDP_XI (3L<<13) 34338c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_HDR_TYPE_DATA_XI (4L<<13) 34348c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_HDR_TYPE_TCP_UDP_XI (5L<<13) 34358c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_HDR_TYPE_ICMPV6_XI (6L<<13) 34368c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_COMP_XI (0x3L<<16) 34378c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_COMP_EQUAL_XI (0L<<16) 34388c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_COMP_NEQUAL_XI (1L<<16) 34398c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_COMP_GREATER_XI (2L<<16) 34408c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_COMP_LESS_XI (3L<<16) 34418c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_MAP_XI (1L<<18) 34428c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_SBIT_XI (1L<<19) 34438c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_CMDSEL_XI (0x1fL<<20) 34448c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_DISCARD_XI (1L<<25) 34458c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_MASK_XI (1L<<26) 34468c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_P1_XI (1L<<27) 34478c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_P2_XI (1L<<28) 34488c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_P3_XI (1L<<29) 34498c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_1_NBIT_XI (1L<<30) 34508c2ecf20Sopenharmony_ci 34518c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_1 0x0000190c 34528c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_1_VALUE (0xffffL<<0) 34538c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_1_MASK (0xffffL<<16) 34548c2ecf20Sopenharmony_ci 34558c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2 0x00001910 34568c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_A (0x3ffffL<<0) 34578c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_B (0xfffL<<19) 34588c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_OFFSET_XI (0xffL<<0) 34598c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_CLASS_XI (0x7L<<8) 34608c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_PRIORITY_XI (1L<<11) 34618c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_P4_XI (1L<<12) 34628c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_HDR_TYPE_XI (0x7L<<13) 34638c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_HDR_TYPE_START_XI (0L<<13) 34648c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_HDR_TYPE_IP_XI (1L<<13) 34658c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_HDR_TYPE_TCP_XI (2L<<13) 34668c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_HDR_TYPE_UDP_XI (3L<<13) 34678c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_HDR_TYPE_DATA_XI (4L<<13) 34688c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_HDR_TYPE_TCP_UDP_XI (5L<<13) 34698c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_HDR_TYPE_ICMPV6_XI (6L<<13) 34708c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_COMP_XI (0x3L<<16) 34718c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_COMP_EQUAL_XI (0L<<16) 34728c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_COMP_NEQUAL_XI (1L<<16) 34738c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_COMP_GREATER_XI (2L<<16) 34748c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_COMP_LESS_XI (3L<<16) 34758c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_MAP_XI (1L<<18) 34768c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_SBIT_XI (1L<<19) 34778c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_CMDSEL_XI (0x1fL<<20) 34788c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_DISCARD_XI (1L<<25) 34798c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_MASK_XI (1L<<26) 34808c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_P1_XI (1L<<27) 34818c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_P2_XI (1L<<28) 34828c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_P3_XI (1L<<29) 34838c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_2_NBIT_XI (1L<<30) 34848c2ecf20Sopenharmony_ci 34858c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_2 0x00001914 34868c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_2_VALUE (0xffffL<<0) 34878c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_2_MASK (0xffffL<<16) 34888c2ecf20Sopenharmony_ci 34898c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3 0x00001918 34908c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_A (0x3ffffL<<0) 34918c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_B (0xfffL<<19) 34928c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_OFFSET_XI (0xffL<<0) 34938c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_CLASS_XI (0x7L<<8) 34948c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_PRIORITY_XI (1L<<11) 34958c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_P4_XI (1L<<12) 34968c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_HDR_TYPE_XI (0x7L<<13) 34978c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_HDR_TYPE_START_XI (0L<<13) 34988c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_HDR_TYPE_IP_XI (1L<<13) 34998c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_HDR_TYPE_TCP_XI (2L<<13) 35008c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_HDR_TYPE_UDP_XI (3L<<13) 35018c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_HDR_TYPE_DATA_XI (4L<<13) 35028c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_HDR_TYPE_TCP_UDP_XI (5L<<13) 35038c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_HDR_TYPE_ICMPV6_XI (6L<<13) 35048c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_COMP_XI (0x3L<<16) 35058c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_COMP_EQUAL_XI (0L<<16) 35068c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_COMP_NEQUAL_XI (1L<<16) 35078c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_COMP_GREATER_XI (2L<<16) 35088c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_COMP_LESS_XI (3L<<16) 35098c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_MAP_XI (1L<<18) 35108c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_SBIT_XI (1L<<19) 35118c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_CMDSEL_XI (0x1fL<<20) 35128c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_DISCARD_XI (1L<<25) 35138c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_MASK_XI (1L<<26) 35148c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_P1_XI (1L<<27) 35158c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_P2_XI (1L<<28) 35168c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_P3_XI (1L<<29) 35178c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_3_NBIT_XI (1L<<30) 35188c2ecf20Sopenharmony_ci 35198c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_3 0x0000191c 35208c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_3_VALUE (0xffffL<<0) 35218c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_3_MASK (0xffffL<<16) 35228c2ecf20Sopenharmony_ci 35238c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4 0x00001920 35248c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_A (0x3ffffL<<0) 35258c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_B (0xfffL<<19) 35268c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_OFFSET_XI (0xffL<<0) 35278c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_CLASS_XI (0x7L<<8) 35288c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_PRIORITY_XI (1L<<11) 35298c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_P4_XI (1L<<12) 35308c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_HDR_TYPE_XI (0x7L<<13) 35318c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_HDR_TYPE_START_XI (0L<<13) 35328c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_HDR_TYPE_IP_XI (1L<<13) 35338c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_HDR_TYPE_TCP_XI (2L<<13) 35348c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_HDR_TYPE_UDP_XI (3L<<13) 35358c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_HDR_TYPE_DATA_XI (4L<<13) 35368c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_HDR_TYPE_TCP_UDP_XI (5L<<13) 35378c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_HDR_TYPE_ICMPV6_XI (6L<<13) 35388c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_COMP_XI (0x3L<<16) 35398c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_COMP_EQUAL_XI (0L<<16) 35408c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_COMP_NEQUAL_XI (1L<<16) 35418c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_COMP_GREATER_XI (2L<<16) 35428c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_COMP_LESS_XI (3L<<16) 35438c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_MAP_XI (1L<<18) 35448c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_SBIT_XI (1L<<19) 35458c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_CMDSEL_XI (0x1fL<<20) 35468c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_DISCARD_XI (1L<<25) 35478c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_MASK_XI (1L<<26) 35488c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_P1_XI (1L<<27) 35498c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_P2_XI (1L<<28) 35508c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_P3_XI (1L<<29) 35518c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_4_NBIT_XI (1L<<30) 35528c2ecf20Sopenharmony_ci 35538c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_4 0x00001924 35548c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_4_VALUE (0xffffL<<0) 35558c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_4_MASK (0xffffL<<16) 35568c2ecf20Sopenharmony_ci 35578c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5 0x00001928 35588c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_A (0x3ffffL<<0) 35598c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_B (0xfffL<<19) 35608c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_OFFSET_XI (0xffL<<0) 35618c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_CLASS_XI (0x7L<<8) 35628c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_PRIORITY_XI (1L<<11) 35638c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_P4_XI (1L<<12) 35648c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_HDR_TYPE_XI (0x7L<<13) 35658c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_HDR_TYPE_START_XI (0L<<13) 35668c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_HDR_TYPE_IP_XI (1L<<13) 35678c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_HDR_TYPE_TCP_XI (2L<<13) 35688c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_HDR_TYPE_UDP_XI (3L<<13) 35698c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_HDR_TYPE_DATA_XI (4L<<13) 35708c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_HDR_TYPE_TCP_UDP_XI (5L<<13) 35718c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_HDR_TYPE_ICMPV6_XI (6L<<13) 35728c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_COMP_XI (0x3L<<16) 35738c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_COMP_EQUAL_XI (0L<<16) 35748c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_COMP_NEQUAL_XI (1L<<16) 35758c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_COMP_GREATER_XI (2L<<16) 35768c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_COMP_LESS_XI (3L<<16) 35778c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_MAP_XI (1L<<18) 35788c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_SBIT_XI (1L<<19) 35798c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_CMDSEL_XI (0x1fL<<20) 35808c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_DISCARD_XI (1L<<25) 35818c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_MASK_XI (1L<<26) 35828c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_P1_XI (1L<<27) 35838c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_P2_XI (1L<<28) 35848c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_P3_XI (1L<<29) 35858c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_5_NBIT_XI (1L<<30) 35868c2ecf20Sopenharmony_ci 35878c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_5 0x0000192c 35888c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_5_VALUE (0xffffL<<0) 35898c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_5_MASK (0xffffL<<16) 35908c2ecf20Sopenharmony_ci 35918c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6 0x00001930 35928c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_A (0x3ffffL<<0) 35938c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_B (0xfffL<<19) 35948c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_OFFSET_XI (0xffL<<0) 35958c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_CLASS_XI (0x7L<<8) 35968c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_PRIORITY_XI (1L<<11) 35978c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_P4_XI (1L<<12) 35988c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_HDR_TYPE_XI (0x7L<<13) 35998c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_HDR_TYPE_START_XI (0L<<13) 36008c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_HDR_TYPE_IP_XI (1L<<13) 36018c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_HDR_TYPE_TCP_XI (2L<<13) 36028c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_HDR_TYPE_UDP_XI (3L<<13) 36038c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_HDR_TYPE_DATA_XI (4L<<13) 36048c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_HDR_TYPE_TCP_UDP_XI (5L<<13) 36058c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_HDR_TYPE_ICMPV6_XI (6L<<13) 36068c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_COMP_XI (0x3L<<16) 36078c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_COMP_EQUAL_XI (0L<<16) 36088c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_COMP_NEQUAL_XI (1L<<16) 36098c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_COMP_GREATER_XI (2L<<16) 36108c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_COMP_LESS_XI (3L<<16) 36118c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_MAP_XI (1L<<18) 36128c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_SBIT_XI (1L<<19) 36138c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_CMDSEL_XI (0x1fL<<20) 36148c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_DISCARD_XI (1L<<25) 36158c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_MASK_XI (1L<<26) 36168c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_P1_XI (1L<<27) 36178c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_P2_XI (1L<<28) 36188c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_P3_XI (1L<<29) 36198c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_6_NBIT_XI (1L<<30) 36208c2ecf20Sopenharmony_ci 36218c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_6 0x00001934 36228c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_6_VALUE (0xffffL<<0) 36238c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_6_MASK (0xffffL<<16) 36248c2ecf20Sopenharmony_ci 36258c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7 0x00001938 36268c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_A (0x3ffffL<<0) 36278c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_B (0xfffL<<19) 36288c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_OFFSET_XI (0xffL<<0) 36298c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_CLASS_XI (0x7L<<8) 36308c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_PRIORITY_XI (1L<<11) 36318c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_P4_XI (1L<<12) 36328c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_HDR_TYPE_XI (0x7L<<13) 36338c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_HDR_TYPE_START_XI (0L<<13) 36348c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_HDR_TYPE_IP_XI (1L<<13) 36358c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_HDR_TYPE_TCP_XI (2L<<13) 36368c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_HDR_TYPE_UDP_XI (3L<<13) 36378c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_HDR_TYPE_DATA_XI (4L<<13) 36388c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_HDR_TYPE_TCP_UDP_XI (5L<<13) 36398c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_HDR_TYPE_ICMPV6_XI (6L<<13) 36408c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_COMP_XI (0x3L<<16) 36418c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_COMP_EQUAL_XI (0L<<16) 36428c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_COMP_NEQUAL_XI (1L<<16) 36438c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_COMP_GREATER_XI (2L<<16) 36448c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_COMP_LESS_XI (3L<<16) 36458c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_MAP_XI (1L<<18) 36468c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_SBIT_XI (1L<<19) 36478c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_CMDSEL_XI (0x1fL<<20) 36488c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_DISCARD_XI (1L<<25) 36498c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_MASK_XI (1L<<26) 36508c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_P1_XI (1L<<27) 36518c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_P2_XI (1L<<28) 36528c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_P3_XI (1L<<29) 36538c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_7_NBIT_XI (1L<<30) 36548c2ecf20Sopenharmony_ci 36558c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_7 0x0000193c 36568c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_7_VALUE (0xffffL<<0) 36578c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_7_MASK (0xffffL<<16) 36588c2ecf20Sopenharmony_ci 36598c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8 0x00001940 36608c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_A (0x3ffffL<<0) 36618c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_B (0xfffL<<19) 36628c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_OFFSET_XI (0xffL<<0) 36638c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_CLASS_XI (0x7L<<8) 36648c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_PRIORITY_XI (1L<<11) 36658c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_P4_XI (1L<<12) 36668c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_HDR_TYPE_XI (0x7L<<13) 36678c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_HDR_TYPE_START_XI (0L<<13) 36688c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_HDR_TYPE_IP_XI (1L<<13) 36698c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_HDR_TYPE_TCP_XI (2L<<13) 36708c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_HDR_TYPE_UDP_XI (3L<<13) 36718c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_HDR_TYPE_DATA_XI (4L<<13) 36728c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_HDR_TYPE_TCP_UDP_XI (5L<<13) 36738c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_HDR_TYPE_ICMPV6_XI (6L<<13) 36748c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_COMP_XI (0x3L<<16) 36758c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_COMP_EQUAL_XI (0L<<16) 36768c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_COMP_NEQUAL_XI (1L<<16) 36778c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_COMP_GREATER_XI (2L<<16) 36788c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_COMP_LESS_XI (3L<<16) 36798c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_MAP_XI (1L<<18) 36808c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_SBIT_XI (1L<<19) 36818c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_CMDSEL_XI (0x1fL<<20) 36828c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_DISCARD_XI (1L<<25) 36838c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_MASK_XI (1L<<26) 36848c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_P1_XI (1L<<27) 36858c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_P2_XI (1L<<28) 36868c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_P3_XI (1L<<29) 36878c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_8_NBIT_XI (1L<<30) 36888c2ecf20Sopenharmony_ci 36898c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_8 0x00001944 36908c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_8_VALUE (0xffffL<<0) 36918c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_8_MASK (0xffffL<<16) 36928c2ecf20Sopenharmony_ci 36938c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9 0x00001948 36948c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_A (0x3ffffL<<0) 36958c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_B (0xfffL<<19) 36968c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_OFFSET_XI (0xffL<<0) 36978c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_CLASS_XI (0x7L<<8) 36988c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_PRIORITY_XI (1L<<11) 36998c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_P4_XI (1L<<12) 37008c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_HDR_TYPE_XI (0x7L<<13) 37018c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_HDR_TYPE_START_XI (0L<<13) 37028c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_HDR_TYPE_IP_XI (1L<<13) 37038c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_HDR_TYPE_TCP_XI (2L<<13) 37048c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_HDR_TYPE_UDP_XI (3L<<13) 37058c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_HDR_TYPE_DATA_XI (4L<<13) 37068c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_HDR_TYPE_TCP_UDP_XI (5L<<13) 37078c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_HDR_TYPE_ICMPV6_XI (6L<<13) 37088c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_COMP_XI (0x3L<<16) 37098c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_COMP_EQUAL_XI (0L<<16) 37108c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_COMP_NEQUAL_XI (1L<<16) 37118c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_COMP_GREATER_XI (2L<<16) 37128c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_COMP_LESS_XI (3L<<16) 37138c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_MAP_XI (1L<<18) 37148c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_SBIT_XI (1L<<19) 37158c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_CMDSEL_XI (0x1fL<<20) 37168c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_DISCARD_XI (1L<<25) 37178c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_MASK_XI (1L<<26) 37188c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_P1_XI (1L<<27) 37198c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_P2_XI (1L<<28) 37208c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_P3_XI (1L<<29) 37218c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_9_NBIT_XI (1L<<30) 37228c2ecf20Sopenharmony_ci 37238c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_9 0x0000194c 37248c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_9_VALUE (0xffffL<<0) 37258c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_9_MASK (0xffffL<<16) 37268c2ecf20Sopenharmony_ci 37278c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10 0x00001950 37288c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_A (0x3ffffL<<0) 37298c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_B (0xfffL<<19) 37308c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_OFFSET_XI (0xffL<<0) 37318c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_CLASS_XI (0x7L<<8) 37328c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_PRIORITY_XI (1L<<11) 37338c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_P4_XI (1L<<12) 37348c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_HDR_TYPE_XI (0x7L<<13) 37358c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_HDR_TYPE_START_XI (0L<<13) 37368c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_HDR_TYPE_IP_XI (1L<<13) 37378c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_HDR_TYPE_TCP_XI (2L<<13) 37388c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_HDR_TYPE_UDP_XI (3L<<13) 37398c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_HDR_TYPE_DATA_XI (4L<<13) 37408c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_HDR_TYPE_TCP_UDP_XI (5L<<13) 37418c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_HDR_TYPE_ICMPV6_XI (6L<<13) 37428c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_COMP_XI (0x3L<<16) 37438c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_COMP_EQUAL_XI (0L<<16) 37448c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_COMP_NEQUAL_XI (1L<<16) 37458c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_COMP_GREATER_XI (2L<<16) 37468c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_COMP_LESS_XI (3L<<16) 37478c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_MAP_XI (1L<<18) 37488c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_SBIT_XI (1L<<19) 37498c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_CMDSEL_XI (0x1fL<<20) 37508c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_DISCARD_XI (1L<<25) 37518c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_MASK_XI (1L<<26) 37528c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_P1_XI (1L<<27) 37538c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_P2_XI (1L<<28) 37548c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_P3_XI (1L<<29) 37558c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_10_NBIT_XI (1L<<30) 37568c2ecf20Sopenharmony_ci 37578c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_10 0x00001954 37588c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_10_VALUE (0xffffL<<0) 37598c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_10_MASK (0xffffL<<16) 37608c2ecf20Sopenharmony_ci 37618c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11 0x00001958 37628c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_A (0x3ffffL<<0) 37638c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_B (0xfffL<<19) 37648c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_OFFSET_XI (0xffL<<0) 37658c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_CLASS_XI (0x7L<<8) 37668c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_PRIORITY_XI (1L<<11) 37678c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_P4_XI (1L<<12) 37688c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_HDR_TYPE_XI (0x7L<<13) 37698c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_HDR_TYPE_START_XI (0L<<13) 37708c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_HDR_TYPE_IP_XI (1L<<13) 37718c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_HDR_TYPE_TCP_XI (2L<<13) 37728c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_HDR_TYPE_UDP_XI (3L<<13) 37738c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_HDR_TYPE_DATA_XI (4L<<13) 37748c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_HDR_TYPE_TCP_UDP_XI (5L<<13) 37758c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_HDR_TYPE_ICMPV6_XI (6L<<13) 37768c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_COMP_XI (0x3L<<16) 37778c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_COMP_EQUAL_XI (0L<<16) 37788c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_COMP_NEQUAL_XI (1L<<16) 37798c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_COMP_GREATER_XI (2L<<16) 37808c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_COMP_LESS_XI (3L<<16) 37818c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_MAP_XI (1L<<18) 37828c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_SBIT_XI (1L<<19) 37838c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_CMDSEL_XI (0x1fL<<20) 37848c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_DISCARD_XI (1L<<25) 37858c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_MASK_XI (1L<<26) 37868c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_P1_XI (1L<<27) 37878c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_P2_XI (1L<<28) 37888c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_P3_XI (1L<<29) 37898c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_11_NBIT_XI (1L<<30) 37908c2ecf20Sopenharmony_ci 37918c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_11 0x0000195c 37928c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_11_VALUE (0xffffL<<0) 37938c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_11_MASK (0xffffL<<16) 37948c2ecf20Sopenharmony_ci 37958c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12 0x00001960 37968c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_A (0x3ffffL<<0) 37978c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_B (0xfffL<<19) 37988c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_OFFSET_XI (0xffL<<0) 37998c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_CLASS_XI (0x7L<<8) 38008c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_PRIORITY_XI (1L<<11) 38018c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_P4_XI (1L<<12) 38028c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_HDR_TYPE_XI (0x7L<<13) 38038c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_HDR_TYPE_START_XI (0L<<13) 38048c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_HDR_TYPE_IP_XI (1L<<13) 38058c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_HDR_TYPE_TCP_XI (2L<<13) 38068c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_HDR_TYPE_UDP_XI (3L<<13) 38078c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_HDR_TYPE_DATA_XI (4L<<13) 38088c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_HDR_TYPE_TCP_UDP_XI (5L<<13) 38098c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_HDR_TYPE_ICMPV6_XI (6L<<13) 38108c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_COMP_XI (0x3L<<16) 38118c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_COMP_EQUAL_XI (0L<<16) 38128c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_COMP_NEQUAL_XI (1L<<16) 38138c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_COMP_GREATER_XI (2L<<16) 38148c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_COMP_LESS_XI (3L<<16) 38158c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_MAP_XI (1L<<18) 38168c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_SBIT_XI (1L<<19) 38178c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_CMDSEL_XI (0x1fL<<20) 38188c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_DISCARD_XI (1L<<25) 38198c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_MASK_XI (1L<<26) 38208c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_P1_XI (1L<<27) 38218c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_P2_XI (1L<<28) 38228c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_P3_XI (1L<<29) 38238c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_12_NBIT_XI (1L<<30) 38248c2ecf20Sopenharmony_ci 38258c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_12 0x00001964 38268c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_12_VALUE (0xffffL<<0) 38278c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_12_MASK (0xffffL<<16) 38288c2ecf20Sopenharmony_ci 38298c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13 0x00001968 38308c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_A (0x3ffffL<<0) 38318c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_B (0xfffL<<19) 38328c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_OFFSET_XI (0xffL<<0) 38338c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_CLASS_XI (0x7L<<8) 38348c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_PRIORITY_XI (1L<<11) 38358c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_P4_XI (1L<<12) 38368c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_HDR_TYPE_XI (0x7L<<13) 38378c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_HDR_TYPE_START_XI (0L<<13) 38388c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_HDR_TYPE_IP_XI (1L<<13) 38398c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_HDR_TYPE_TCP_XI (2L<<13) 38408c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_HDR_TYPE_UDP_XI (3L<<13) 38418c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_HDR_TYPE_DATA_XI (4L<<13) 38428c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_HDR_TYPE_TCP_UDP_XI (5L<<13) 38438c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_HDR_TYPE_ICMPV6_XI (6L<<13) 38448c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_COMP_XI (0x3L<<16) 38458c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_COMP_EQUAL_XI (0L<<16) 38468c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_COMP_NEQUAL_XI (1L<<16) 38478c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_COMP_GREATER_XI (2L<<16) 38488c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_COMP_LESS_XI (3L<<16) 38498c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_MAP_XI (1L<<18) 38508c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_SBIT_XI (1L<<19) 38518c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_CMDSEL_XI (0x1fL<<20) 38528c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_DISCARD_XI (1L<<25) 38538c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_MASK_XI (1L<<26) 38548c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_P1_XI (1L<<27) 38558c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_P2_XI (1L<<28) 38568c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_P3_XI (1L<<29) 38578c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_13_NBIT_XI (1L<<30) 38588c2ecf20Sopenharmony_ci 38598c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_13 0x0000196c 38608c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_13_VALUE (0xffffL<<0) 38618c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_13_MASK (0xffffL<<16) 38628c2ecf20Sopenharmony_ci 38638c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14 0x00001970 38648c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_A (0x3ffffL<<0) 38658c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_B (0xfffL<<19) 38668c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_OFFSET_XI (0xffL<<0) 38678c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_CLASS_XI (0x7L<<8) 38688c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_PRIORITY_XI (1L<<11) 38698c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_P4_XI (1L<<12) 38708c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_HDR_TYPE_XI (0x7L<<13) 38718c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_HDR_TYPE_START_XI (0L<<13) 38728c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_HDR_TYPE_IP_XI (1L<<13) 38738c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_HDR_TYPE_TCP_XI (2L<<13) 38748c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_HDR_TYPE_UDP_XI (3L<<13) 38758c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_HDR_TYPE_DATA_XI (4L<<13) 38768c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_HDR_TYPE_TCP_UDP_XI (5L<<13) 38778c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_HDR_TYPE_ICMPV6_XI (6L<<13) 38788c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_COMP_XI (0x3L<<16) 38798c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_COMP_EQUAL_XI (0L<<16) 38808c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_COMP_NEQUAL_XI (1L<<16) 38818c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_COMP_GREATER_XI (2L<<16) 38828c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_COMP_LESS_XI (3L<<16) 38838c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_MAP_XI (1L<<18) 38848c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_SBIT_XI (1L<<19) 38858c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_CMDSEL_XI (0x1fL<<20) 38868c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_DISCARD_XI (1L<<25) 38878c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_MASK_XI (1L<<26) 38888c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_P1_XI (1L<<27) 38898c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_P2_XI (1L<<28) 38908c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_P3_XI (1L<<29) 38918c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_14_NBIT_XI (1L<<30) 38928c2ecf20Sopenharmony_ci 38938c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_14 0x00001974 38948c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_14_VALUE (0xffffL<<0) 38958c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_14_MASK (0xffffL<<16) 38968c2ecf20Sopenharmony_ci 38978c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15 0x00001978 38988c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_A (0x3ffffL<<0) 38998c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_B (0xfffL<<19) 39008c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_OFFSET_XI (0xffL<<0) 39018c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_CLASS_XI (0x7L<<8) 39028c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_PRIORITY_XI (1L<<11) 39038c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_P4_XI (1L<<12) 39048c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_HDR_TYPE_XI (0x7L<<13) 39058c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_HDR_TYPE_START_XI (0L<<13) 39068c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_HDR_TYPE_IP_XI (1L<<13) 39078c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_HDR_TYPE_TCP_XI (2L<<13) 39088c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_HDR_TYPE_UDP_XI (3L<<13) 39098c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_HDR_TYPE_DATA_XI (4L<<13) 39108c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_HDR_TYPE_TCP_UDP_XI (5L<<13) 39118c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_HDR_TYPE_ICMPV6_XI (6L<<13) 39128c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_COMP_XI (0x3L<<16) 39138c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_COMP_EQUAL_XI (0L<<16) 39148c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_COMP_NEQUAL_XI (1L<<16) 39158c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_COMP_GREATER_XI (2L<<16) 39168c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_COMP_LESS_XI (3L<<16) 39178c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_MAP_XI (1L<<18) 39188c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_SBIT_XI (1L<<19) 39198c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_CMDSEL_XI (0x1fL<<20) 39208c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_DISCARD_XI (1L<<25) 39218c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_MASK_XI (1L<<26) 39228c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_P1_XI (1L<<27) 39238c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_P2_XI (1L<<28) 39248c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_P3_XI (1L<<29) 39258c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CNTL_15_NBIT_XI (1L<<30) 39268c2ecf20Sopenharmony_ci 39278c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_15 0x0000197c 39288c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_15_VALUE (0xffffL<<0) 39298c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_VALUE_MASK_15_MASK (0xffffL<<16) 39308c2ecf20Sopenharmony_ci 39318c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CONFIG 0x00001980 39328c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CONFIG_RULE_ENABLE (0xffffL<<0) 39338c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CONFIG_RULE_ENABLE_XI (0xfffffL<<0) 39348c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CONFIG_DEF_CLASS (0x7L<<24) 39358c2ecf20Sopenharmony_ci#define BNX2_RPM_RC_CONFIG_KNUM_OVERWRITE (1L<<31) 39368c2ecf20Sopenharmony_ci 39378c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0 0x00001984 39388c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_FM_BCNT (0xffffL<<0) 39398c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_T_DATA_OFST_VLD (1L<<16) 39408c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_T_UDP_OFST_VLD (1L<<17) 39418c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_T_TCP_OFST_VLD (1L<<18) 39428c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_T_IP_OFST_VLD (1L<<19) 39438c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_IP_MORE_FRGMT (1L<<20) 39448c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_T_IP_NO_TCP_UDP_HDR (1L<<21) 39458c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_LLC_SNAP (1L<<22) 39468c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_FM_STARTED (1L<<23) 39478c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_DONE (1L<<24) 39488c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_WAIT_4_DONE (1L<<25) 39498c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_USE_TPBUF_CKSUM (1L<<26) 39508c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_RX_NO_PSD_HDR_CKSUM (1L<<27) 39518c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_IGNORE_VLAN (1L<<28) 39528c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG0_RP_ENA_ACTIVE (1L<<31) 39538c2ecf20Sopenharmony_ci 39548c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1 0x00001988 39558c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST (0xffffL<<0) 39568c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_IDLE (0L<<0) 39578c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_ETYPE_B6_ALL (1L<<0) 39588c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_ETYPE_B2_IPLLC (2L<<0) 39598c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_ETYPE_B6_IP (4L<<0) 39608c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_ETYPE_B2_IP (8L<<0) 39618c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_IP_START (16L<<0) 39628c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_IP (32L<<0) 39638c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_TCP (64L<<0) 39648c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_UDP (128L<<0) 39658c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_AH (256L<<0) 39668c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_ESP (512L<<0) 39678c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_ESP_PAYLOAD (1024L<<0) 39688c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_DATA (2048L<<0) 39698c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_ADD_CARRY (0x2000L<<0) 39708c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_ADD_CARRYOUT (0x4000L<<0) 39718c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_FSM_CUR_ST_LATCH_RESULT (0x8000L<<0) 39728c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_HDR_BCNT (0x7ffL<<16) 39738c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_UNKNOWN_ETYPE_D (1L<<28) 39748c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_VLAN_REMOVED_D2 (1L<<29) 39758c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_VLAN_REMOVED_D1 (1L<<30) 39768c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG1_EOF_0XTRA_WD (1L<<31) 39778c2ecf20Sopenharmony_ci 39788c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG2 0x0000198c 39798c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG2_CMD_HIT_VEC (0xffffL<<0) 39808c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG2_IP_BCNT (0xffL<<16) 39818c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG2_THIS_CMD_M4 (1L<<24) 39828c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG2_THIS_CMD_M3 (1L<<25) 39838c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG2_THIS_CMD_M2 (1L<<26) 39848c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG2_THIS_CMD_M1 (1L<<27) 39858c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG2_IPIPE_EMPTY (1L<<28) 39868c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG2_FM_DISCARD (1L<<29) 39878c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG2_LAST_RULE_IN_FM_D2 (1L<<30) 39888c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG2_LAST_RULE_IN_FM_D1 (1L<<31) 39898c2ecf20Sopenharmony_ci 39908c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3 0x00001990 39918c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_AVAIL_MBUF_PTR (0x1ffL<<0) 39928c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_RDE_RLUPQ_WR_REQ_INT (1L<<9) 39938c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_RDE_RBUF_WR_LAST_INT (1L<<10) 39948c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_RDE_RBUF_WR_REQ_INT (1L<<11) 39958c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_RDE_RBUF_FREE_REQ (1L<<12) 39968c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_RDE_RBUF_ALLOC_REQ (1L<<13) 39978c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_DFSM_MBUF_NOTAVAIL (1L<<14) 39988c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_RBUF_RDE_SOF_DROP (1L<<15) 39998c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_DFIFO_VLD_ENTRY_CT (0xfL<<16) 40008c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_RDE_SRC_FIFO_ALMFULL (1L<<21) 40018c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_DROP_NXT_VLD (1L<<22) 40028c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_DROP_NXT (1L<<23) 40038c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_FTQ_FSM (0x3L<<24) 40048c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_FTQ_FSM_IDLE (0x0L<<24) 40058c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_FTQ_FSM_WAIT_ACK (0x1L<<24) 40068c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_FTQ_FSM_WAIT_FREE (0x2L<<24) 40078c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBWRITE_FSM (0x3L<<26) 40088c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBWRITE_FSM_WAIT_SOF (0x0L<<26) 40098c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBWRITE_FSM_GET_MBUF (0x1L<<26) 40108c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBWRITE_FSM_DMA_DATA (0x2L<<26) 40118c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBWRITE_FSM_WAIT_DATA (0x3L<<26) 40128c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBWRITE_FSM_WAIT_EOF (0x4L<<26) 40138c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBWRITE_FSM_WAIT_MF_ACK (0x5L<<26) 40148c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBWRITE_FSM_WAIT_DROP_NXT_VLD (0x6L<<26) 40158c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBWRITE_FSM_DONE (0x7L<<26) 40168c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBFREE_FSM (1L<<29) 40178c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBFREE_FSM_IDLE (0L<<29) 40188c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBFREE_FSM_WAIT_ACK (1L<<29) 40198c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBALLOC_FSM (1L<<30) 40208c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBALLOC_FSM_ET_MBUF (0x0L<<30) 40218c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_MBALLOC_FSM_IVE_MBUF (0x1L<<30) 40228c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG3_CCODE_EOF_ERROR (1L<<31) 40238c2ecf20Sopenharmony_ci 40248c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG4 0x00001994 40258c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG4_DFSM_MBUF_CLUSTER (0x1ffffffL<<0) 40268c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG4_DFIFO_CUR_CCODE (0x7L<<25) 40278c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG4_MBWRITE_FSM (0x7L<<28) 40288c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG4_DFIFO_EMPTY (1L<<31) 40298c2ecf20Sopenharmony_ci 40308c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5 0x00001998 40318c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_RDROP_WPTR (0x1fL<<0) 40328c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_RDROP_ACPI_RPTR (0x1fL<<5) 40338c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_RDROP_MC_RPTR (0x1fL<<10) 40348c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_RDROP_RC_RPTR (0x1fL<<15) 40358c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_RDROP_ACPI_EMPTY (1L<<20) 40368c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_RDROP_MC_EMPTY (1L<<21) 40378c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_RDROP_AEOF_VEC_AT_RDROP_MC_RPTR (1L<<22) 40388c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_HOLDREG_WOL_DROP_INT (1L<<23) 40398c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_HOLDREG_DISCARD (1L<<24) 40408c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_HOLDREG_MBUF_NOTAVAIL (1L<<25) 40418c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_HOLDREG_MC_EMPTY (1L<<26) 40428c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_HOLDREG_RC_EMPTY (1L<<27) 40438c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_HOLDREG_FC_EMPTY (1L<<28) 40448c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_HOLDREG_ACPI_EMPTY (1L<<29) 40458c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_HOLDREG_FULL_T (1L<<30) 40468c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG5_HOLDREG_RD (1L<<31) 40478c2ecf20Sopenharmony_ci 40488c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG6 0x0000199c 40498c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG6_ACPI_VEC (0xffffL<<0) 40508c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG6_VEC (0xffffL<<16) 40518c2ecf20Sopenharmony_ci 40528c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG7 0x000019a0 40538c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG7_RPM_DBG7_LAST_CRC (0xffffffffL<<0) 40548c2ecf20Sopenharmony_ci 40558c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8 0x000019a4 40568c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_PS_ACPI_FSM (0xfL<<0) 40578c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_PS_ACPI_FSM_IDLE (0L<<0) 40588c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_PS_ACPI_FSM_SOF_W1_ADDR (1L<<0) 40598c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_PS_ACPI_FSM_SOF_W2_ADDR (2L<<0) 40608c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_PS_ACPI_FSM_SOF_W3_ADDR (3L<<0) 40618c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_PS_ACPI_FSM_SOF_WAIT_THBUF (4L<<0) 40628c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_PS_ACPI_FSM_W3_DATA (5L<<0) 40638c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_PS_ACPI_FSM_W0_ADDR (6L<<0) 40648c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_PS_ACPI_FSM_W1_ADDR (7L<<0) 40658c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_PS_ACPI_FSM_W2_ADDR (8L<<0) 40668c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_PS_ACPI_FSM_W3_ADDR (9L<<0) 40678c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_PS_ACPI_FSM_WAIT_THBUF (10L<<0) 40688c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_COMPARE_AT_W0 (1L<<4) 40698c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_COMPARE_AT_W3_DATA (1L<<5) 40708c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_COMPARE_AT_SOF_WAIT (1L<<6) 40718c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_COMPARE_AT_SOF_W3 (1L<<7) 40728c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_COMPARE_AT_SOF_W2 (1L<<8) 40738c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_EOF_W_LTEQ6_VLDBYTES (1L<<9) 40748c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_EOF_W_LTEQ4_VLDBYTES (1L<<10) 40758c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_NXT_EOF_W_12_VLDBYTES (1L<<11) 40768c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_EOF_DET (1L<<12) 40778c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_SOF_DET (1L<<13) 40788c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_WAIT_4_SOF (1L<<14) 40798c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_ALL_DONE (1L<<15) 40808c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_THBUF_ADDR (0x7fL<<16) 40818c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG8_BYTE_CTR (0xffL<<24) 40828c2ecf20Sopenharmony_ci 40838c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9 0x000019a8 40848c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_OUTFIFO_COUNT (0x7L<<0) 40858c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_RDE_ACPI_RDY (1L<<3) 40868c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_VLD_RD_ENTRY_CT (0x7L<<4) 40878c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_OUTFIFO_OVERRUN_OCCURRED (1L<<28) 40888c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_INFIFO_OVERRUN_OCCURRED (1L<<29) 40898c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_ACPI_MATCH_INT (1L<<30) 40908c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_ACPI_ENABLE_SYN (1L<<31) 40918c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_BEMEM_R_XI (0x1fL<<0) 40928c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_EO_XI (1L<<5) 40938c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_AEOF_DE_XI (1L<<6) 40948c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_SO_XI (1L<<7) 40958c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_WD64_CT_XI (0x1fL<<8) 40968c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_EOF_VLDBYTE_XI (0x7L<<13) 40978c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_ACPI_RDE_PAT_ID_XI (0xfL<<16) 40988c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_CALCRC_RESULT_XI (0x3ffL<<20) 40998c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_DATA_IN_VL_XI (1L<<30) 41008c2ecf20Sopenharmony_ci#define BNX2_RPM_DEBUG9_CALCRC_BUFFER_VLD_XI (1L<<31) 41018c2ecf20Sopenharmony_ci 41028c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W00 0x000019c0 41038c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W01 0x000019c4 41048c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W02 0x000019c8 41058c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W03 0x000019cc 41068c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W10 0x000019d0 41078c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W11 0x000019d4 41088c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W12 0x000019d8 41098c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W13 0x000019dc 41108c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W20 0x000019e0 41118c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W21 0x000019e4 41128c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W22 0x000019e8 41138c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W23 0x000019ec 41148c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W30 0x000019f0 41158c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W31 0x000019f4 41168c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W32 0x000019f8 41178c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DBG_BUF_W33 0x000019fc 41188c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_BYTE_ENABLE_CTRL 0x00001a00 41198c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_BYTE_ENABLE_CTRL_BYTE_ADDRESS (0xffffL<<0) 41208c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_BYTE_ENABLE_CTRL_DEBUGRD (1L<<28) 41218c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_BYTE_ENABLE_CTRL_MODE (1L<<29) 41228c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_BYTE_ENABLE_CTRL_INIT (1L<<30) 41238c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_BYTE_ENABLE_CTRL_WR (1L<<31) 41248c2ecf20Sopenharmony_ci 41258c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CTRL 0x00001a04 41268c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CTRL_PATTERN_ID (0xfL<<0) 41278c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CTRL_CRC_SM_CLR (1L<<30) 41288c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CTRL_WR (1L<<31) 41298c2ecf20Sopenharmony_ci 41308c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DATA 0x00001a08 41318c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_DATA_PATTERN_BE (0xffffffffL<<0) 41328c2ecf20Sopenharmony_ci 41338c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_LEN0 0x00001a0c 41348c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_LEN0_PATTERN_LEN3 (0xffL<<0) 41358c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_LEN0_PATTERN_LEN2 (0xffL<<8) 41368c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_LEN0_PATTERN_LEN1 (0xffL<<16) 41378c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_LEN0_PATTERN_LEN0 (0xffL<<24) 41388c2ecf20Sopenharmony_ci 41398c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_LEN1 0x00001a10 41408c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_LEN1_PATTERN_LEN7 (0xffL<<0) 41418c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_LEN1_PATTERN_LEN6 (0xffL<<8) 41428c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_LEN1_PATTERN_LEN5 (0xffL<<16) 41438c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_LEN1_PATTERN_LEN4 (0xffL<<24) 41448c2ecf20Sopenharmony_ci 41458c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC0 0x00001a18 41468c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC0_PATTERN_CRC0 (0xffffffffL<<0) 41478c2ecf20Sopenharmony_ci 41488c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC1 0x00001a1c 41498c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC1_PATTERN_CRC1 (0xffffffffL<<0) 41508c2ecf20Sopenharmony_ci 41518c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC2 0x00001a20 41528c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC2_PATTERN_CRC2 (0xffffffffL<<0) 41538c2ecf20Sopenharmony_ci 41548c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC3 0x00001a24 41558c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC3_PATTERN_CRC3 (0xffffffffL<<0) 41568c2ecf20Sopenharmony_ci 41578c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC4 0x00001a28 41588c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC4_PATTERN_CRC4 (0xffffffffL<<0) 41598c2ecf20Sopenharmony_ci 41608c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC5 0x00001a2c 41618c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC5_PATTERN_CRC5 (0xffffffffL<<0) 41628c2ecf20Sopenharmony_ci 41638c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC6 0x00001a30 41648c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC6_PATTERN_CRC6 (0xffffffffL<<0) 41658c2ecf20Sopenharmony_ci 41668c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC7 0x00001a34 41678c2ecf20Sopenharmony_ci#define BNX2_RPM_ACPI_PATTERN_CRC7_PATTERN_CRC7 (0xffffffffL<<0) 41688c2ecf20Sopenharmony_ci 41698c2ecf20Sopenharmony_ci 41708c2ecf20Sopenharmony_ci/* 41718c2ecf20Sopenharmony_ci * rlup_reg definition 41728c2ecf20Sopenharmony_ci * offset: 0x2000 41738c2ecf20Sopenharmony_ci */ 41748c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_CONFIG 0x0000201c 41758c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_CONFIG_IPV4_RSS_TYPE_XI (0x3L<<0) 41768c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_CONFIG_IPV4_RSS_TYPE_OFF_XI (0L<<0) 41778c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_CONFIG_IPV4_RSS_TYPE_ALL_XI (1L<<0) 41788c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_CONFIG_IPV4_RSS_TYPE_IP_ONLY_XI (2L<<0) 41798c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_CONFIG_IPV4_RSS_TYPE_RES_XI (3L<<0) 41808c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_CONFIG_IPV6_RSS_TYPE_XI (0x3L<<2) 41818c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_CONFIG_IPV6_RSS_TYPE_OFF_XI (0L<<2) 41828c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_CONFIG_IPV6_RSS_TYPE_ALL_XI (1L<<2) 41838c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_CONFIG_IPV6_RSS_TYPE_IP_ONLY_XI (2L<<2) 41848c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_CONFIG_IPV6_RSS_TYPE_RES_XI (3L<<2) 41858c2ecf20Sopenharmony_ci 41868c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_COMMAND 0x00002048 41878c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_COMMAND_RSS_IND_TABLE_ADDR (0xfUL<<0) 41888c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_COMMAND_RSS_WRITE_MASK (0xffUL<<4) 41898c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_COMMAND_WRITE (1UL<<12) 41908c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_COMMAND_READ (1UL<<13) 41918c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_COMMAND_HASH_MASK (0x7UL<<14) 41928c2ecf20Sopenharmony_ci 41938c2ecf20Sopenharmony_ci#define BNX2_RLUP_RSS_DATA 0x0000204c 41948c2ecf20Sopenharmony_ci 41958c2ecf20Sopenharmony_ci 41968c2ecf20Sopenharmony_ci/* 41978c2ecf20Sopenharmony_ci * rbuf_reg definition 41988c2ecf20Sopenharmony_ci * offset: 0x200000 41998c2ecf20Sopenharmony_ci */ 42008c2ecf20Sopenharmony_ci#define BNX2_RBUF_COMMAND 0x00200000 42018c2ecf20Sopenharmony_ci#define BNX2_RBUF_COMMAND_ENABLED (1L<<0) 42028c2ecf20Sopenharmony_ci#define BNX2_RBUF_COMMAND_FREE_INIT (1L<<1) 42038c2ecf20Sopenharmony_ci#define BNX2_RBUF_COMMAND_RAM_INIT (1L<<2) 42048c2ecf20Sopenharmony_ci#define BNX2_RBUF_COMMAND_PKT_OFFSET_OVFL (1L<<3) 42058c2ecf20Sopenharmony_ci#define BNX2_RBUF_COMMAND_OVER_FREE (1L<<4) 42068c2ecf20Sopenharmony_ci#define BNX2_RBUF_COMMAND_ALLOC_REQ (1L<<5) 42078c2ecf20Sopenharmony_ci#define BNX2_RBUF_COMMAND_EN_PRI_CHNGE_TE (1L<<6) 42088c2ecf20Sopenharmony_ci#define BNX2_RBUF_COMMAND_CU_ISOLATE_XI (1L<<5) 42098c2ecf20Sopenharmony_ci#define BNX2_RBUF_COMMAND_EN_PRI_CHANGE_XI (1L<<6) 42108c2ecf20Sopenharmony_ci#define BNX2_RBUF_COMMAND_GRC_ENDIAN_CONV_DIS_XI (1L<<7) 42118c2ecf20Sopenharmony_ci 42128c2ecf20Sopenharmony_ci#define BNX2_RBUF_STATUS1 0x00200004 42138c2ecf20Sopenharmony_ci#define BNX2_RBUF_STATUS1_FREE_COUNT (0x3ffL<<0) 42148c2ecf20Sopenharmony_ci 42158c2ecf20Sopenharmony_ci#define BNX2_RBUF_STATUS2 0x00200008 42168c2ecf20Sopenharmony_ci#define BNX2_RBUF_STATUS2_FREE_TAIL (0x1ffL<<0) 42178c2ecf20Sopenharmony_ci#define BNX2_RBUF_STATUS2_FREE_HEAD (0x1ffL<<16) 42188c2ecf20Sopenharmony_ci 42198c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG 0x0020000c 42208c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG_XOFF_TRIP (0x3ffL<<0) 42218c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG_XOFF_TRIP_VAL(mtu) \ 42228c2ecf20Sopenharmony_ci ((((mtu) - 1500) * 31 / 1000) + 54) 42238c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG_XON_TRIP (0x3ffL<<16) 42248c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG_XON_TRIP_VAL(mtu) \ 42258c2ecf20Sopenharmony_ci ((((mtu) - 1500) * 39 / 1000) + 66) 42268c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG_VAL(mtu) \ 42278c2ecf20Sopenharmony_ci (BNX2_RBUF_CONFIG_XOFF_TRIP_VAL(mtu) | \ 42288c2ecf20Sopenharmony_ci (BNX2_RBUF_CONFIG_XON_TRIP_VAL(mtu) << 16)) 42298c2ecf20Sopenharmony_ci 42308c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_ALLOC 0x00200010 42318c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_ALLOC_VALUE (0x1ffL<<7) 42328c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_ALLOC_TYPE (1L<<16) 42338c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_ALLOC_ALLOC_REQ (1L<<31) 42348c2ecf20Sopenharmony_ci 42358c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_FREE 0x00200014 42368c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_FREE_COUNT (0x7fL<<0) 42378c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_FREE_TAIL (0x1ffL<<7) 42388c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_FREE_HEAD (0x1ffL<<16) 42398c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_FREE_TYPE (1L<<25) 42408c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_FREE_FREE_REQ (1L<<31) 42418c2ecf20Sopenharmony_ci 42428c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_SEL 0x00200018 42438c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_SEL_COUNT (0x7fL<<0) 42448c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_SEL_TAIL (0x1ffL<<7) 42458c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_SEL_HEAD (0x1ffL<<16) 42468c2ecf20Sopenharmony_ci#define BNX2_RBUF_FW_BUF_SEL_SEL_REQ (1L<<31) 42478c2ecf20Sopenharmony_ci 42488c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG2 0x0020001c 42498c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG2_MAC_DROP_TRIP (0x3ffL<<0) 42508c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG2_MAC_DROP_TRIP_VAL(mtu) \ 42518c2ecf20Sopenharmony_ci ((((mtu) - 1500) * 4 / 1000) + 5) 42528c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG2_MAC_KEEP_TRIP (0x3ffL<<16) 42538c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG2_MAC_KEEP_TRIP_VAL(mtu) \ 42548c2ecf20Sopenharmony_ci ((((mtu) - 1500) * 2 / 100) + 30) 42558c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG2_VAL(mtu) \ 42568c2ecf20Sopenharmony_ci (BNX2_RBUF_CONFIG2_MAC_DROP_TRIP_VAL(mtu) | \ 42578c2ecf20Sopenharmony_ci (BNX2_RBUF_CONFIG2_MAC_KEEP_TRIP_VAL(mtu) << 16)) 42588c2ecf20Sopenharmony_ci 42598c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG3 0x00200020 42608c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG3_CU_DROP_TRIP (0x3ffL<<0) 42618c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG3_CU_DROP_TRIP_VAL(mtu) \ 42628c2ecf20Sopenharmony_ci ((((mtu) - 1500) * 12 / 1000) + 18) 42638c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG3_CU_KEEP_TRIP (0x3ffL<<16) 42648c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG3_CU_KEEP_TRIP_VAL(mtu) \ 42658c2ecf20Sopenharmony_ci ((((mtu) - 1500) * 2 / 100) + 30) 42668c2ecf20Sopenharmony_ci#define BNX2_RBUF_CONFIG3_VAL(mtu) \ 42678c2ecf20Sopenharmony_ci (BNX2_RBUF_CONFIG3_CU_DROP_TRIP_VAL(mtu) | \ 42688c2ecf20Sopenharmony_ci (BNX2_RBUF_CONFIG3_CU_KEEP_TRIP_VAL(mtu) << 16)) 42698c2ecf20Sopenharmony_ci 42708c2ecf20Sopenharmony_ci#define BNX2_RBUF_PKT_DATA 0x00208000 42718c2ecf20Sopenharmony_ci#define BNX2_RBUF_CLIST_DATA 0x00210000 42728c2ecf20Sopenharmony_ci#define BNX2_RBUF_BUF_DATA 0x00220000 42738c2ecf20Sopenharmony_ci 42748c2ecf20Sopenharmony_ci 42758c2ecf20Sopenharmony_ci/* 42768c2ecf20Sopenharmony_ci * rv2p_reg definition 42778c2ecf20Sopenharmony_ci * offset: 0x2800 42788c2ecf20Sopenharmony_ci */ 42798c2ecf20Sopenharmony_ci#define BNX2_RV2P_COMMAND 0x00002800 42808c2ecf20Sopenharmony_ci#define BNX2_RV2P_COMMAND_ENABLED (1L<<0) 42818c2ecf20Sopenharmony_ci#define BNX2_RV2P_COMMAND_PROC1_INTRPT (1L<<1) 42828c2ecf20Sopenharmony_ci#define BNX2_RV2P_COMMAND_PROC2_INTRPT (1L<<2) 42838c2ecf20Sopenharmony_ci#define BNX2_RV2P_COMMAND_ABORT0 (1L<<4) 42848c2ecf20Sopenharmony_ci#define BNX2_RV2P_COMMAND_ABORT1 (1L<<5) 42858c2ecf20Sopenharmony_ci#define BNX2_RV2P_COMMAND_ABORT2 (1L<<6) 42868c2ecf20Sopenharmony_ci#define BNX2_RV2P_COMMAND_ABORT3 (1L<<7) 42878c2ecf20Sopenharmony_ci#define BNX2_RV2P_COMMAND_ABORT4 (1L<<8) 42888c2ecf20Sopenharmony_ci#define BNX2_RV2P_COMMAND_ABORT5 (1L<<9) 42898c2ecf20Sopenharmony_ci#define BNX2_RV2P_COMMAND_PROC1_RESET (1L<<16) 42908c2ecf20Sopenharmony_ci#define BNX2_RV2P_COMMAND_PROC2_RESET (1L<<17) 42918c2ecf20Sopenharmony_ci#define BNX2_RV2P_COMMAND_CTXIF_RESET (1L<<18) 42928c2ecf20Sopenharmony_ci 42938c2ecf20Sopenharmony_ci#define BNX2_RV2P_STATUS 0x00002804 42948c2ecf20Sopenharmony_ci#define BNX2_RV2P_STATUS_ALWAYS_0 (1L<<0) 42958c2ecf20Sopenharmony_ci#define BNX2_RV2P_STATUS_RV2P_GEN_STAT0_CNT (1L<<8) 42968c2ecf20Sopenharmony_ci#define BNX2_RV2P_STATUS_RV2P_GEN_STAT1_CNT (1L<<9) 42978c2ecf20Sopenharmony_ci#define BNX2_RV2P_STATUS_RV2P_GEN_STAT2_CNT (1L<<10) 42988c2ecf20Sopenharmony_ci#define BNX2_RV2P_STATUS_RV2P_GEN_STAT3_CNT (1L<<11) 42998c2ecf20Sopenharmony_ci#define BNX2_RV2P_STATUS_RV2P_GEN_STAT4_CNT (1L<<12) 43008c2ecf20Sopenharmony_ci#define BNX2_RV2P_STATUS_RV2P_GEN_STAT5_CNT (1L<<13) 43018c2ecf20Sopenharmony_ci 43028c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG 0x00002808 43038c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_STALL_PROC1 (1L<<0) 43048c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_STALL_PROC2 (1L<<1) 43058c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PROC1_STALL_ON_ABORT0 (1L<<8) 43068c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PROC1_STALL_ON_ABORT1 (1L<<9) 43078c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PROC1_STALL_ON_ABORT2 (1L<<10) 43088c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PROC1_STALL_ON_ABORT3 (1L<<11) 43098c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PROC1_STALL_ON_ABORT4 (1L<<12) 43108c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PROC1_STALL_ON_ABORT5 (1L<<13) 43118c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PROC2_STALL_ON_ABORT0 (1L<<16) 43128c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PROC2_STALL_ON_ABORT1 (1L<<17) 43138c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PROC2_STALL_ON_ABORT2 (1L<<18) 43148c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PROC2_STALL_ON_ABORT3 (1L<<19) 43158c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PROC2_STALL_ON_ABORT4 (1L<<20) 43168c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PROC2_STALL_ON_ABORT5 (1L<<21) 43178c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PAGE_SIZE (0xfL<<24) 43188c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PAGE_SIZE_256 (0L<<24) 43198c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PAGE_SIZE_512 (1L<<24) 43208c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PAGE_SIZE_1K (2L<<24) 43218c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PAGE_SIZE_2K (3L<<24) 43228c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PAGE_SIZE_4K (4L<<24) 43238c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PAGE_SIZE_8K (5L<<24) 43248c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PAGE_SIZE_16K (6L<<24) 43258c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PAGE_SIZE_32K (7L<<24) 43268c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PAGE_SIZE_64K (8L<<24) 43278c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PAGE_SIZE_128K (9L<<24) 43288c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PAGE_SIZE_256K (10L<<24) 43298c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PAGE_SIZE_512K (11L<<24) 43308c2ecf20Sopenharmony_ci#define BNX2_RV2P_CONFIG_PAGE_SIZE_1M (12L<<24) 43318c2ecf20Sopenharmony_ci 43328c2ecf20Sopenharmony_ci#define BNX2_RV2P_GEN_BFR_ADDR_0 0x00002810 43338c2ecf20Sopenharmony_ci#define BNX2_RV2P_GEN_BFR_ADDR_0_VALUE (0xffffL<<16) 43348c2ecf20Sopenharmony_ci 43358c2ecf20Sopenharmony_ci#define BNX2_RV2P_GEN_BFR_ADDR_1 0x00002814 43368c2ecf20Sopenharmony_ci#define BNX2_RV2P_GEN_BFR_ADDR_1_VALUE (0xffffL<<16) 43378c2ecf20Sopenharmony_ci 43388c2ecf20Sopenharmony_ci#define BNX2_RV2P_GEN_BFR_ADDR_2 0x00002818 43398c2ecf20Sopenharmony_ci#define BNX2_RV2P_GEN_BFR_ADDR_2_VALUE (0xffffL<<16) 43408c2ecf20Sopenharmony_ci 43418c2ecf20Sopenharmony_ci#define BNX2_RV2P_GEN_BFR_ADDR_3 0x0000281c 43428c2ecf20Sopenharmony_ci#define BNX2_RV2P_GEN_BFR_ADDR_3_VALUE (0xffffL<<16) 43438c2ecf20Sopenharmony_ci 43448c2ecf20Sopenharmony_ci#define BNX2_RV2P_INSTR_HIGH 0x00002830 43458c2ecf20Sopenharmony_ci#define BNX2_RV2P_INSTR_HIGH_HIGH (0x1fL<<0) 43468c2ecf20Sopenharmony_ci 43478c2ecf20Sopenharmony_ci#define BNX2_RV2P_INSTR_LOW 0x00002834 43488c2ecf20Sopenharmony_ci#define BNX2_RV2P_INSTR_LOW_LOW (0xffffffffL<<0) 43498c2ecf20Sopenharmony_ci 43508c2ecf20Sopenharmony_ci#define BNX2_RV2P_PROC1_ADDR_CMD 0x00002838 43518c2ecf20Sopenharmony_ci#define BNX2_RV2P_PROC1_ADDR_CMD_ADD (0x3ffL<<0) 43528c2ecf20Sopenharmony_ci#define BNX2_RV2P_PROC1_ADDR_CMD_RDWR (1L<<31) 43538c2ecf20Sopenharmony_ci 43548c2ecf20Sopenharmony_ci#define BNX2_RV2P_PROC2_ADDR_CMD 0x0000283c 43558c2ecf20Sopenharmony_ci#define BNX2_RV2P_PROC2_ADDR_CMD_ADD (0x3ffL<<0) 43568c2ecf20Sopenharmony_ci#define BNX2_RV2P_PROC2_ADDR_CMD_RDWR (1L<<31) 43578c2ecf20Sopenharmony_ci 43588c2ecf20Sopenharmony_ci#define BNX2_RV2P_PROC1_GRC_DEBUG 0x00002840 43598c2ecf20Sopenharmony_ci#define BNX2_RV2P_PROC2_GRC_DEBUG 0x00002844 43608c2ecf20Sopenharmony_ci#define BNX2_RV2P_GRC_PROC_DEBUG 0x00002848 43618c2ecf20Sopenharmony_ci#define BNX2_RV2P_DEBUG_VECT_PEEK 0x0000284c 43628c2ecf20Sopenharmony_ci#define BNX2_RV2P_DEBUG_VECT_PEEK_1_VALUE (0x7ffL<<0) 43638c2ecf20Sopenharmony_ci#define BNX2_RV2P_DEBUG_VECT_PEEK_1_PEEK_EN (1L<<11) 43648c2ecf20Sopenharmony_ci#define BNX2_RV2P_DEBUG_VECT_PEEK_1_SEL (0xfL<<12) 43658c2ecf20Sopenharmony_ci#define BNX2_RV2P_DEBUG_VECT_PEEK_2_VALUE (0x7ffL<<16) 43668c2ecf20Sopenharmony_ci#define BNX2_RV2P_DEBUG_VECT_PEEK_2_PEEK_EN (1L<<27) 43678c2ecf20Sopenharmony_ci#define BNX2_RV2P_DEBUG_VECT_PEEK_2_SEL (0xfL<<28) 43688c2ecf20Sopenharmony_ci 43698c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL 0x00002afc 43708c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_INC_USAGE_CNT (1L<<0) 43718c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE (0xfL<<4) 43728c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_0 (0L<<4) 43738c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_1 (1L<<4) 43748c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_2 (2L<<4) 43758c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_3 (3L<<4) 43768c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_4 (4L<<4) 43778c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_5 (5L<<4) 43788c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_6 (6L<<4) 43798c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_7 (7L<<4) 43808c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_8 (8L<<4) 43818c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_9 (9L<<4) 43828c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_10 (10L<<4) 43838c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_11 (11L<<4) 43848c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_12 (12L<<4) 43858c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_13 (13L<<4) 43868c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_14 (14L<<4) 43878c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_SIZE_15 (15L<<4) 43888c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_PFE_COUNT (0xfL<<12) 43898c2ecf20Sopenharmony_ci#define BNX2_RV2P_MPFE_PFE_CTL_OFFSET (0x1ffL<<16) 43908c2ecf20Sopenharmony_ci 43918c2ecf20Sopenharmony_ci#define BNX2_RV2P_RV2PPQ 0x00002b40 43928c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CMD 0x00002b78 43938c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CMD_OFFSET (0x3ffL<<0) 43948c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CMD_WR_TOP (1L<<10) 43958c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CMD_WR_TOP_0 (0L<<10) 43968c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CMD_WR_TOP_1 (1L<<10) 43978c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CMD_SFT_RESET (1L<<25) 43988c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CMD_RD_DATA (1L<<26) 43998c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CMD_ADD_INTERVEN (1L<<27) 44008c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CMD_ADD_DATA (1L<<28) 44018c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CMD_INTERVENE_CLR (1L<<29) 44028c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CMD_POP (1L<<30) 44038c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CMD_BUSY (1L<<31) 44048c2ecf20Sopenharmony_ci 44058c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CTL 0x00002b7c 44068c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CTL_INTERVENE (1L<<0) 44078c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CTL_OVERFLOW (1L<<1) 44088c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CTL_FORCE_INTERVENE (1L<<2) 44098c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CTL_MAX_DEPTH (0x3ffL<<12) 44108c2ecf20Sopenharmony_ci#define BNX2_RV2P_PFTQ_CTL_CUR_DEPTH (0x3ffL<<22) 44118c2ecf20Sopenharmony_ci 44128c2ecf20Sopenharmony_ci#define BNX2_RV2P_RV2PTQ 0x00002b80 44138c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CMD 0x00002bb8 44148c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CMD_OFFSET (0x3ffL<<0) 44158c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CMD_WR_TOP (1L<<10) 44168c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CMD_WR_TOP_0 (0L<<10) 44178c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CMD_WR_TOP_1 (1L<<10) 44188c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CMD_SFT_RESET (1L<<25) 44198c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CMD_RD_DATA (1L<<26) 44208c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CMD_ADD_INTERVEN (1L<<27) 44218c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CMD_ADD_DATA (1L<<28) 44228c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CMD_INTERVENE_CLR (1L<<29) 44238c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CMD_POP (1L<<30) 44248c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CMD_BUSY (1L<<31) 44258c2ecf20Sopenharmony_ci 44268c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CTL 0x00002bbc 44278c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CTL_INTERVENE (1L<<0) 44288c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CTL_OVERFLOW (1L<<1) 44298c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CTL_FORCE_INTERVENE (1L<<2) 44308c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CTL_MAX_DEPTH (0x3ffL<<12) 44318c2ecf20Sopenharmony_ci#define BNX2_RV2P_TFTQ_CTL_CUR_DEPTH (0x3ffL<<22) 44328c2ecf20Sopenharmony_ci 44338c2ecf20Sopenharmony_ci#define BNX2_RV2P_RV2PMQ 0x00002bc0 44348c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CMD 0x00002bf8 44358c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CMD_OFFSET (0x3ffL<<0) 44368c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CMD_WR_TOP (1L<<10) 44378c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CMD_WR_TOP_0 (0L<<10) 44388c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CMD_WR_TOP_1 (1L<<10) 44398c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CMD_SFT_RESET (1L<<25) 44408c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CMD_RD_DATA (1L<<26) 44418c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CMD_ADD_INTERVEN (1L<<27) 44428c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CMD_ADD_DATA (1L<<28) 44438c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CMD_INTERVENE_CLR (1L<<29) 44448c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CMD_POP (1L<<30) 44458c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CMD_BUSY (1L<<31) 44468c2ecf20Sopenharmony_ci 44478c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CTL 0x00002bfc 44488c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CTL_INTERVENE (1L<<0) 44498c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CTL_OVERFLOW (1L<<1) 44508c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CTL_FORCE_INTERVENE (1L<<2) 44518c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CTL_MAX_DEPTH (0x3ffL<<12) 44528c2ecf20Sopenharmony_ci#define BNX2_RV2P_MFTQ_CTL_CUR_DEPTH (0x3ffL<<22) 44538c2ecf20Sopenharmony_ci 44548c2ecf20Sopenharmony_ci 44558c2ecf20Sopenharmony_ci 44568c2ecf20Sopenharmony_ci/* 44578c2ecf20Sopenharmony_ci * mq_reg definition 44588c2ecf20Sopenharmony_ci * offset: 0x3c00 44598c2ecf20Sopenharmony_ci */ 44608c2ecf20Sopenharmony_ci#define BNX2_MQ_COMMAND 0x00003c00 44618c2ecf20Sopenharmony_ci#define BNX2_MQ_COMMAND_ENABLED (1L<<0) 44628c2ecf20Sopenharmony_ci#define BNX2_MQ_COMMAND_INIT (1L<<1) 44638c2ecf20Sopenharmony_ci#define BNX2_MQ_COMMAND_OVERFLOW (1L<<4) 44648c2ecf20Sopenharmony_ci#define BNX2_MQ_COMMAND_WR_ERROR (1L<<5) 44658c2ecf20Sopenharmony_ci#define BNX2_MQ_COMMAND_RD_ERROR (1L<<6) 44668c2ecf20Sopenharmony_ci#define BNX2_MQ_COMMAND_IDB_CFG_ERROR (1L<<7) 44678c2ecf20Sopenharmony_ci#define BNX2_MQ_COMMAND_IDB_OVERFLOW (1L<<10) 44688c2ecf20Sopenharmony_ci#define BNX2_MQ_COMMAND_NO_BIN_ERROR (1L<<11) 44698c2ecf20Sopenharmony_ci#define BNX2_MQ_COMMAND_NO_MAP_ERROR (1L<<12) 44708c2ecf20Sopenharmony_ci 44718c2ecf20Sopenharmony_ci#define BNX2_MQ_STATUS 0x00003c04 44728c2ecf20Sopenharmony_ci#define BNX2_MQ_STATUS_CTX_ACCESS_STAT (1L<<16) 44738c2ecf20Sopenharmony_ci#define BNX2_MQ_STATUS_CTX_ACCESS64_STAT (1L<<17) 44748c2ecf20Sopenharmony_ci#define BNX2_MQ_STATUS_PCI_STALL_STAT (1L<<18) 44758c2ecf20Sopenharmony_ci#define BNX2_MQ_STATUS_IDB_OFLOW_STAT (1L<<19) 44768c2ecf20Sopenharmony_ci 44778c2ecf20Sopenharmony_ci#define BNX2_MQ_CONFIG 0x00003c08 44788c2ecf20Sopenharmony_ci#define BNX2_MQ_CONFIG_TX_HIGH_PRI (1L<<0) 44798c2ecf20Sopenharmony_ci#define BNX2_MQ_CONFIG_HALT_DIS (1L<<1) 44808c2ecf20Sopenharmony_ci#define BNX2_MQ_CONFIG_BIN_MQ_MODE (1L<<2) 44818c2ecf20Sopenharmony_ci#define BNX2_MQ_CONFIG_DIS_IDB_DROP (1L<<3) 44828c2ecf20Sopenharmony_ci#define BNX2_MQ_CONFIG_KNL_BYP_BLK_SIZE (0x7L<<4) 44838c2ecf20Sopenharmony_ci#define BNX2_MQ_CONFIG_KNL_BYP_BLK_SIZE_256 (0L<<4) 44848c2ecf20Sopenharmony_ci#define BNX2_MQ_CONFIG_KNL_BYP_BLK_SIZE_512 (1L<<4) 44858c2ecf20Sopenharmony_ci#define BNX2_MQ_CONFIG_KNL_BYP_BLK_SIZE_1K (2L<<4) 44868c2ecf20Sopenharmony_ci#define BNX2_MQ_CONFIG_KNL_BYP_BLK_SIZE_2K (3L<<4) 44878c2ecf20Sopenharmony_ci#define BNX2_MQ_CONFIG_KNL_BYP_BLK_SIZE_4K (4L<<4) 44888c2ecf20Sopenharmony_ci#define BNX2_MQ_CONFIG_MAX_DEPTH (0x7fL<<8) 44898c2ecf20Sopenharmony_ci#define BNX2_MQ_CONFIG_CUR_DEPTH (0x7fL<<20) 44908c2ecf20Sopenharmony_ci 44918c2ecf20Sopenharmony_ci#define BNX2_MQ_ENQUEUE1 0x00003c0c 44928c2ecf20Sopenharmony_ci#define BNX2_MQ_ENQUEUE1_OFFSET (0x3fL<<2) 44938c2ecf20Sopenharmony_ci#define BNX2_MQ_ENQUEUE1_CID (0x3fffL<<8) 44948c2ecf20Sopenharmony_ci#define BNX2_MQ_ENQUEUE1_BYTE_MASK (0xfL<<24) 44958c2ecf20Sopenharmony_ci#define BNX2_MQ_ENQUEUE1_KNL_MODE (1L<<28) 44968c2ecf20Sopenharmony_ci 44978c2ecf20Sopenharmony_ci#define BNX2_MQ_ENQUEUE2 0x00003c10 44988c2ecf20Sopenharmony_ci#define BNX2_MQ_BAD_WR_ADDR 0x00003c14 44998c2ecf20Sopenharmony_ci#define BNX2_MQ_BAD_RD_ADDR 0x00003c18 45008c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_BYP_WIND_START 0x00003c1c 45018c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_BYP_WIND_START_VALUE (0xfffffL<<12) 45028c2ecf20Sopenharmony_ci 45038c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_WIND_END 0x00003c20 45048c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_WIND_END_VALUE (0xffffffL<<8) 45058c2ecf20Sopenharmony_ci 45068c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_WRITE_MASK1 0x00003c24 45078c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_TX_MASK1 0x00003c28 45088c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_CMD_MASK1 0x00003c2c 45098c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_COND_ENQUEUE_MASK1 0x00003c30 45108c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_RX_V2P_MASK1 0x00003c34 45118c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_WRITE_MASK2 0x00003c38 45128c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_TX_MASK2 0x00003c3c 45138c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_CMD_MASK2 0x00003c40 45148c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_COND_ENQUEUE_MASK2 0x00003c44 45158c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_RX_V2P_MASK2 0x00003c48 45168c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_BYP_WRITE_MASK1 0x00003c4c 45178c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_BYP_TX_MASK1 0x00003c50 45188c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_BYP_CMD_MASK1 0x00003c54 45198c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_BYP_COND_ENQUEUE_MASK1 0x00003c58 45208c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_BYP_RX_V2P_MASK1 0x00003c5c 45218c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_BYP_WRITE_MASK2 0x00003c60 45228c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_BYP_TX_MASK2 0x00003c64 45238c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_BYP_CMD_MASK2 0x00003c68 45248c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_BYP_COND_ENQUEUE_MASK2 0x00003c6c 45258c2ecf20Sopenharmony_ci#define BNX2_MQ_KNL_BYP_RX_V2P_MASK2 0x00003c70 45268c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_WR_ADDR 0x00003c74 45278c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_WR_ADDR_VALUE (0x3fL<<0) 45288c2ecf20Sopenharmony_ci 45298c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_WR_DATA0 0x00003c78 45308c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_WR_DATA0_VALUE (0xffffffffL<<0) 45318c2ecf20Sopenharmony_ci 45328c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_WR_DATA1 0x00003c7c 45338c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_WR_DATA1_VALUE (0xffffffffL<<0) 45348c2ecf20Sopenharmony_ci 45358c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_WR_DATA2 0x00003c80 45368c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_WR_DATA2_VALUE (0x3fffffffL<<0) 45378c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_WR_DATA2_VALUE_XI (0x7fffffffL<<0) 45388c2ecf20Sopenharmony_ci 45398c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_RD_ADDR 0x00003c84 45408c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_RD_ADDR_VALUE (0x3fL<<0) 45418c2ecf20Sopenharmony_ci 45428c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_RD_DATA0 0x00003c88 45438c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_RD_DATA0_VALUE (0xffffffffL<<0) 45448c2ecf20Sopenharmony_ci 45458c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_RD_DATA1 0x00003c8c 45468c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_RD_DATA1_VALUE (0xffffffffL<<0) 45478c2ecf20Sopenharmony_ci 45488c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_RD_DATA2 0x00003c90 45498c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_RD_DATA2_VALUE (0x3fffffffL<<0) 45508c2ecf20Sopenharmony_ci#define BNX2_MQ_MEM_RD_DATA2_VALUE_XI (0x7fffffffL<<0) 45518c2ecf20Sopenharmony_ci 45528c2ecf20Sopenharmony_ci#define BNX2_MQ_MAP_L2_3 0x00003d2c 45538c2ecf20Sopenharmony_ci#define BNX2_MQ_MAP_L2_3_MQ_OFFSET (0xffL<<0) 45548c2ecf20Sopenharmony_ci#define BNX2_MQ_MAP_L2_3_SZ (0x3L<<8) 45558c2ecf20Sopenharmony_ci#define BNX2_MQ_MAP_L2_3_CTX_OFFSET (0x2ffL<<10) 45568c2ecf20Sopenharmony_ci#define BNX2_MQ_MAP_L2_3_BIN_OFFSET (0x7L<<23) 45578c2ecf20Sopenharmony_ci#define BNX2_MQ_MAP_L2_3_ARM (0x3L<<26) 45588c2ecf20Sopenharmony_ci#define BNX2_MQ_MAP_L2_3_ENA (0x1L<<31) 45598c2ecf20Sopenharmony_ci#define BNX2_MQ_MAP_L2_3_DEFAULT 0x82004646 45608c2ecf20Sopenharmony_ci 45618c2ecf20Sopenharmony_ci#define BNX2_MQ_MAP_L2_5 0x00003d34 45628c2ecf20Sopenharmony_ci#define BNX2_MQ_MAP_L2_5_ARM (0x3L<<26) 45638c2ecf20Sopenharmony_ci 45648c2ecf20Sopenharmony_ci/* 45658c2ecf20Sopenharmony_ci * tsch_reg definition 45668c2ecf20Sopenharmony_ci * offset: 0x4c00 45678c2ecf20Sopenharmony_ci */ 45688c2ecf20Sopenharmony_ci#define BNX2_TSCH_TSS_CFG 0x00004c1c 45698c2ecf20Sopenharmony_ci#define BNX2_TSCH_TSS_CFG_TSS_START_CID (0x7ffL<<8) 45708c2ecf20Sopenharmony_ci#define BNX2_TSCH_TSS_CFG_NUM_OF_TSS_CON (0xfL<<24) 45718c2ecf20Sopenharmony_ci 45728c2ecf20Sopenharmony_ci 45738c2ecf20Sopenharmony_ci 45748c2ecf20Sopenharmony_ci/* 45758c2ecf20Sopenharmony_ci * tbdr_reg definition 45768c2ecf20Sopenharmony_ci * offset: 0x5000 45778c2ecf20Sopenharmony_ci */ 45788c2ecf20Sopenharmony_ci#define BNX2_TBDR_COMMAND 0x00005000 45798c2ecf20Sopenharmony_ci#define BNX2_TBDR_COMMAND_ENABLE (1L<<0) 45808c2ecf20Sopenharmony_ci#define BNX2_TBDR_COMMAND_SOFT_RST (1L<<1) 45818c2ecf20Sopenharmony_ci#define BNX2_TBDR_COMMAND_MSTR_ABORT (1L<<4) 45828c2ecf20Sopenharmony_ci 45838c2ecf20Sopenharmony_ci#define BNX2_TBDR_STATUS 0x00005004 45848c2ecf20Sopenharmony_ci#define BNX2_TBDR_STATUS_DMA_WAIT (1L<<0) 45858c2ecf20Sopenharmony_ci#define BNX2_TBDR_STATUS_FTQ_WAIT (1L<<1) 45868c2ecf20Sopenharmony_ci#define BNX2_TBDR_STATUS_FIFO_OVERFLOW (1L<<2) 45878c2ecf20Sopenharmony_ci#define BNX2_TBDR_STATUS_FIFO_UNDERFLOW (1L<<3) 45888c2ecf20Sopenharmony_ci#define BNX2_TBDR_STATUS_SEARCHMISS_ERROR (1L<<4) 45898c2ecf20Sopenharmony_ci#define BNX2_TBDR_STATUS_FTQ_ENTRY_CNT (1L<<5) 45908c2ecf20Sopenharmony_ci#define BNX2_TBDR_STATUS_BURST_CNT (1L<<6) 45918c2ecf20Sopenharmony_ci 45928c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG 0x00005008 45938c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_MAX_BDS (0xffL<<0) 45948c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_SWAP_MODE (1L<<8) 45958c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PRIORITY (1L<<9) 45968c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_CACHE_NEXT_PAGE_PTRS (1L<<10) 45978c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PAGE_SIZE (0xfL<<24) 45988c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PAGE_SIZE_256 (0L<<24) 45998c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PAGE_SIZE_512 (1L<<24) 46008c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PAGE_SIZE_1K (2L<<24) 46018c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PAGE_SIZE_2K (3L<<24) 46028c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PAGE_SIZE_4K (4L<<24) 46038c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PAGE_SIZE_8K (5L<<24) 46048c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PAGE_SIZE_16K (6L<<24) 46058c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PAGE_SIZE_32K (7L<<24) 46068c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PAGE_SIZE_64K (8L<<24) 46078c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PAGE_SIZE_128K (9L<<24) 46088c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PAGE_SIZE_256K (10L<<24) 46098c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PAGE_SIZE_512K (11L<<24) 46108c2ecf20Sopenharmony_ci#define BNX2_TBDR_CONFIG_PAGE_SIZE_1M (12L<<24) 46118c2ecf20Sopenharmony_ci 46128c2ecf20Sopenharmony_ci#define BNX2_TBDR_DEBUG_VECT_PEEK 0x0000500c 46138c2ecf20Sopenharmony_ci#define BNX2_TBDR_DEBUG_VECT_PEEK_1_VALUE (0x7ffL<<0) 46148c2ecf20Sopenharmony_ci#define BNX2_TBDR_DEBUG_VECT_PEEK_1_PEEK_EN (1L<<11) 46158c2ecf20Sopenharmony_ci#define BNX2_TBDR_DEBUG_VECT_PEEK_1_SEL (0xfL<<12) 46168c2ecf20Sopenharmony_ci#define BNX2_TBDR_DEBUG_VECT_PEEK_2_VALUE (0x7ffL<<16) 46178c2ecf20Sopenharmony_ci#define BNX2_TBDR_DEBUG_VECT_PEEK_2_PEEK_EN (1L<<27) 46188c2ecf20Sopenharmony_ci#define BNX2_TBDR_DEBUG_VECT_PEEK_2_SEL (0xfL<<28) 46198c2ecf20Sopenharmony_ci 46208c2ecf20Sopenharmony_ci#define BNX2_TBDR_CKSUM_ERROR_STATUS 0x00005010 46218c2ecf20Sopenharmony_ci#define BNX2_TBDR_CKSUM_ERROR_STATUS_CALCULATED (0xffffL<<0) 46228c2ecf20Sopenharmony_ci#define BNX2_TBDR_CKSUM_ERROR_STATUS_EXPECTED (0xffffL<<16) 46238c2ecf20Sopenharmony_ci 46248c2ecf20Sopenharmony_ci#define BNX2_TBDR_TBDRQ 0x000053c0 46258c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CMD 0x000053f8 46268c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CMD_OFFSET (0x3ffL<<0) 46278c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CMD_WR_TOP (1L<<10) 46288c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CMD_WR_TOP_0 (0L<<10) 46298c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CMD_WR_TOP_1 (1L<<10) 46308c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CMD_SFT_RESET (1L<<25) 46318c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CMD_RD_DATA (1L<<26) 46328c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CMD_ADD_INTERVEN (1L<<27) 46338c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CMD_ADD_DATA (1L<<28) 46348c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CMD_INTERVENE_CLR (1L<<29) 46358c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CMD_POP (1L<<30) 46368c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CMD_BUSY (1L<<31) 46378c2ecf20Sopenharmony_ci 46388c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CTL 0x000053fc 46398c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CTL_INTERVENE (1L<<0) 46408c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CTL_OVERFLOW (1L<<1) 46418c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CTL_FORCE_INTERVENE (1L<<2) 46428c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CTL_MAX_DEPTH (0x3ffL<<12) 46438c2ecf20Sopenharmony_ci#define BNX2_TBDR_FTQ_CTL_CUR_DEPTH (0x3ffL<<22) 46448c2ecf20Sopenharmony_ci 46458c2ecf20Sopenharmony_ci 46468c2ecf20Sopenharmony_ci/* 46478c2ecf20Sopenharmony_ci * tbdc definition 46488c2ecf20Sopenharmony_ci * offset: 0x5400 46498c2ecf20Sopenharmony_ci */ 46508c2ecf20Sopenharmony_ci#define BNX2_TBDC_COMMAND 0x5400 46518c2ecf20Sopenharmony_ci#define BNX2_TBDC_COMMAND_CMD_ENABLED (1UL<<0) 46528c2ecf20Sopenharmony_ci#define BNX2_TBDC_COMMAND_CMD_FLUSH (1UL<<1) 46538c2ecf20Sopenharmony_ci#define BNX2_TBDC_COMMAND_CMD_SOFT_RST (1UL<<2) 46548c2ecf20Sopenharmony_ci#define BNX2_TBDC_COMMAND_CMD_REG_ARB (1UL<<3) 46558c2ecf20Sopenharmony_ci#define BNX2_TBDC_COMMAND_WRCHK_RANGE_ERROR (1UL<<4) 46568c2ecf20Sopenharmony_ci#define BNX2_TBDC_COMMAND_WRCHK_ALL_ONES_ERROR (1UL<<5) 46578c2ecf20Sopenharmony_ci#define BNX2_TBDC_COMMAND_WRCHK_ALL_ZEROS_ERROR (1UL<<6) 46588c2ecf20Sopenharmony_ci#define BNX2_TBDC_COMMAND_WRCHK_ANY_ONES_ERROR (1UL<<7) 46598c2ecf20Sopenharmony_ci#define BNX2_TBDC_COMMAND_WRCHK_ANY_ZEROS_ERROR (1UL<<8) 46608c2ecf20Sopenharmony_ci 46618c2ecf20Sopenharmony_ci#define BNX2_TBDC_STATUS 0x5404 46628c2ecf20Sopenharmony_ci#define BNX2_TBDC_STATUS_FREE_CNT (0x3fUL<<0) 46638c2ecf20Sopenharmony_ci 46648c2ecf20Sopenharmony_ci#define BNX2_TBDC_BD_ADDR 0x5424 46658c2ecf20Sopenharmony_ci 46668c2ecf20Sopenharmony_ci#define BNX2_TBDC_BIDX 0x542c 46678c2ecf20Sopenharmony_ci#define BNX2_TBDC_BDIDX_BDIDX (0xffffUL<<0) 46688c2ecf20Sopenharmony_ci#define BNX2_TBDC_BDIDX_CMD (0xffUL<<24) 46698c2ecf20Sopenharmony_ci 46708c2ecf20Sopenharmony_ci#define BNX2_TBDC_CID 0x5430 46718c2ecf20Sopenharmony_ci 46728c2ecf20Sopenharmony_ci#define BNX2_TBDC_CAM_OPCODE 0x5434 46738c2ecf20Sopenharmony_ci#define BNX2_TBDC_CAM_OPCODE_OPCODE (0x7UL<<0) 46748c2ecf20Sopenharmony_ci#define BNX2_TBDC_CAM_OPCODE_OPCODE_SEARCH (0UL<<0) 46758c2ecf20Sopenharmony_ci#define BNX2_TBDC_CAM_OPCODE_OPCODE_CACHE_WRITE (1UL<<0) 46768c2ecf20Sopenharmony_ci#define BNX2_TBDC_CAM_OPCODE_OPCODE_INVALIDATE (2UL<<0) 46778c2ecf20Sopenharmony_ci#define BNX2_TBDC_CAM_OPCODE_OPCODE_CAM_WRITE (4UL<<0) 46788c2ecf20Sopenharmony_ci#define BNX2_TBDC_CAM_OPCODE_OPCODE_CAM_READ (5UL<<0) 46798c2ecf20Sopenharmony_ci#define BNX2_TBDC_CAM_OPCODE_OPCODE_RAM_WRITE (6UL<<0) 46808c2ecf20Sopenharmony_ci#define BNX2_TBDC_CAM_OPCODE_OPCODE_RAM_READ (7UL<<0) 46818c2ecf20Sopenharmony_ci#define BNX2_TBDC_CAM_OPCODE_SMASK_BDIDX (1UL<<4) 46828c2ecf20Sopenharmony_ci#define BNX2_TBDC_CAM_OPCODE_SMASK_CID (1UL<<5) 46838c2ecf20Sopenharmony_ci#define BNX2_TBDC_CAM_OPCODE_SMASK_CMD (1UL<<6) 46848c2ecf20Sopenharmony_ci#define BNX2_TBDC_CAM_OPCODE_WMT_FAILED (1UL<<7) 46858c2ecf20Sopenharmony_ci#define BNX2_TBDC_CAM_OPCODE_CAM_VALIDS (0xffUL<<8) 46868c2ecf20Sopenharmony_ci 46878c2ecf20Sopenharmony_ci 46888c2ecf20Sopenharmony_ci/* 46898c2ecf20Sopenharmony_ci * tdma_reg definition 46908c2ecf20Sopenharmony_ci * offset: 0x5c00 46918c2ecf20Sopenharmony_ci */ 46928c2ecf20Sopenharmony_ci#define BNX2_TDMA_COMMAND 0x00005c00 46938c2ecf20Sopenharmony_ci#define BNX2_TDMA_COMMAND_ENABLED (1L<<0) 46948c2ecf20Sopenharmony_ci#define BNX2_TDMA_COMMAND_MASTER_ABORT (1L<<4) 46958c2ecf20Sopenharmony_ci#define BNX2_TDMA_COMMAND_CS16_ERR (1L<<5) 46968c2ecf20Sopenharmony_ci#define BNX2_TDMA_COMMAND_BAD_L2_LENGTH_ABORT (1L<<7) 46978c2ecf20Sopenharmony_ci#define BNX2_TDMA_COMMAND_MASK_CS1 (1L<<20) 46988c2ecf20Sopenharmony_ci#define BNX2_TDMA_COMMAND_MASK_CS2 (1L<<21) 46998c2ecf20Sopenharmony_ci#define BNX2_TDMA_COMMAND_MASK_CS3 (1L<<22) 47008c2ecf20Sopenharmony_ci#define BNX2_TDMA_COMMAND_MASK_CS4 (1L<<23) 47018c2ecf20Sopenharmony_ci#define BNX2_TDMA_COMMAND_FORCE_ILOCK_CKERR (1L<<24) 47028c2ecf20Sopenharmony_ci#define BNX2_TDMA_COMMAND_OFIFO_CLR (1L<<30) 47038c2ecf20Sopenharmony_ci#define BNX2_TDMA_COMMAND_IFIFO_CLR (1L<<31) 47048c2ecf20Sopenharmony_ci 47058c2ecf20Sopenharmony_ci#define BNX2_TDMA_STATUS 0x00005c04 47068c2ecf20Sopenharmony_ci#define BNX2_TDMA_STATUS_DMA_WAIT (1L<<0) 47078c2ecf20Sopenharmony_ci#define BNX2_TDMA_STATUS_PAYLOAD_WAIT (1L<<1) 47088c2ecf20Sopenharmony_ci#define BNX2_TDMA_STATUS_PATCH_FTQ_WAIT (1L<<2) 47098c2ecf20Sopenharmony_ci#define BNX2_TDMA_STATUS_LOCK_WAIT (1L<<3) 47108c2ecf20Sopenharmony_ci#define BNX2_TDMA_STATUS_FTQ_ENTRY_CNT (1L<<16) 47118c2ecf20Sopenharmony_ci#define BNX2_TDMA_STATUS_BURST_CNT (1L<<17) 47128c2ecf20Sopenharmony_ci#define BNX2_TDMA_STATUS_MAX_IFIFO_DEPTH (0x3fL<<20) 47138c2ecf20Sopenharmony_ci#define BNX2_TDMA_STATUS_OFIFO_OVERFLOW (1L<<30) 47148c2ecf20Sopenharmony_ci#define BNX2_TDMA_STATUS_IFIFO_OVERFLOW (1L<<31) 47158c2ecf20Sopenharmony_ci 47168c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG 0x00005c08 47178c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_ONE_DMA (1L<<0) 47188c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_ONE_RECORD (1L<<1) 47198c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_NUM_DMA_CHAN (0x3L<<2) 47208c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_NUM_DMA_CHAN_0 (0L<<2) 47218c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_NUM_DMA_CHAN_1 (1L<<2) 47228c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_NUM_DMA_CHAN_2 (2L<<2) 47238c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_NUM_DMA_CHAN_3 (3L<<2) 47248c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LIMIT_SZ (0xfL<<4) 47258c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LIMIT_SZ_64 (0L<<4) 47268c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LIMIT_SZ_128 (0x4L<<4) 47278c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LIMIT_SZ_256 (0x6L<<4) 47288c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LIMIT_SZ_512 (0x8L<<4) 47298c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LINE_SZ (0xfL<<8) 47308c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LINE_SZ_64 (0L<<8) 47318c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LINE_SZ_128 (4L<<8) 47328c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LINE_SZ_256 (6L<<8) 47338c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LINE_SZ_512 (8L<<8) 47348c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_ALIGN_ENA (1L<<15) 47358c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_CHK_L2_BD (1L<<16) 47368c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_CMPL_ENTRY (1L<<17) 47378c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_OFIFO_CMP (1L<<19) 47388c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_OFIFO_CMP_3 (0L<<19) 47398c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_OFIFO_CMP_2 (1L<<19) 47408c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_FIFO_CMP (0xfL<<20) 47418c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_IFIFO_DEPTH_XI (0x7L<<20) 47428c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_IFIFO_DEPTH_0_XI (0L<<20) 47438c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_IFIFO_DEPTH_4_XI (1L<<20) 47448c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_IFIFO_DEPTH_8_XI (2L<<20) 47458c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_IFIFO_DEPTH_16_XI (3L<<20) 47468c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_IFIFO_DEPTH_32_XI (4L<<20) 47478c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_IFIFO_DEPTH_64_XI (5L<<20) 47488c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_FIFO_CMP_EN_XI (1L<<23) 47498c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_BYTES_OST_XI (0x7L<<24) 47508c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_BYTES_OST_512_XI (0L<<24) 47518c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_BYTES_OST_1024_XI (1L<<24) 47528c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_BYTES_OST_2048_XI (2L<<24) 47538c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_BYTES_OST_4096_XI (3L<<24) 47548c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_BYTES_OST_8192_XI (4L<<24) 47558c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_BYTES_OST_16384_XI (5L<<24) 47568c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_HC_BYPASS_XI (1L<<27) 47578c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LCL_MRRS_XI (0x7L<<28) 47588c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LCL_MRRS_128_XI (0L<<28) 47598c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LCL_MRRS_256_XI (1L<<28) 47608c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LCL_MRRS_512_XI (2L<<28) 47618c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LCL_MRRS_1024_XI (3L<<28) 47628c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LCL_MRRS_2048_XI (4L<<28) 47638c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LCL_MRRS_4096_XI (5L<<28) 47648c2ecf20Sopenharmony_ci#define BNX2_TDMA_CONFIG_LCL_MRRS_EN_XI (1L<<31) 47658c2ecf20Sopenharmony_ci 47668c2ecf20Sopenharmony_ci#define BNX2_TDMA_PAYLOAD_PROD 0x00005c0c 47678c2ecf20Sopenharmony_ci#define BNX2_TDMA_PAYLOAD_PROD_VALUE (0x1fffL<<3) 47688c2ecf20Sopenharmony_ci 47698c2ecf20Sopenharmony_ci#define BNX2_TDMA_DBG_WATCHDOG 0x00005c10 47708c2ecf20Sopenharmony_ci#define BNX2_TDMA_DBG_TRIGGER 0x00005c14 47718c2ecf20Sopenharmony_ci#define BNX2_TDMA_DMAD_FSM 0x00005c80 47728c2ecf20Sopenharmony_ci#define BNX2_TDMA_DMAD_FSM_BD_INVLD (1L<<0) 47738c2ecf20Sopenharmony_ci#define BNX2_TDMA_DMAD_FSM_PUSH (0xfL<<4) 47748c2ecf20Sopenharmony_ci#define BNX2_TDMA_DMAD_FSM_ARB_TBDC (0x3L<<8) 47758c2ecf20Sopenharmony_ci#define BNX2_TDMA_DMAD_FSM_ARB_CTX (1L<<12) 47768c2ecf20Sopenharmony_ci#define BNX2_TDMA_DMAD_FSM_DR_INTF (1L<<16) 47778c2ecf20Sopenharmony_ci#define BNX2_TDMA_DMAD_FSM_DMAD (0x7L<<20) 47788c2ecf20Sopenharmony_ci#define BNX2_TDMA_DMAD_FSM_BD (0xfL<<24) 47798c2ecf20Sopenharmony_ci 47808c2ecf20Sopenharmony_ci#define BNX2_TDMA_DMAD_STATUS 0x00005c84 47818c2ecf20Sopenharmony_ci#define BNX2_TDMA_DMAD_STATUS_RHOLD_PUSH_ENTRY (0x3L<<0) 47828c2ecf20Sopenharmony_ci#define BNX2_TDMA_DMAD_STATUS_RHOLD_DMAD_ENTRY (0x3L<<4) 47838c2ecf20Sopenharmony_ci#define BNX2_TDMA_DMAD_STATUS_RHOLD_BD_ENTRY (0x3L<<8) 47848c2ecf20Sopenharmony_ci#define BNX2_TDMA_DMAD_STATUS_IFTQ_ENUM (0xfL<<12) 47858c2ecf20Sopenharmony_ci 47868c2ecf20Sopenharmony_ci#define BNX2_TDMA_DR_INTF_FSM 0x00005c88 47878c2ecf20Sopenharmony_ci#define BNX2_TDMA_DR_INTF_FSM_L2_COMP (0x3L<<0) 47888c2ecf20Sopenharmony_ci#define BNX2_TDMA_DR_INTF_FSM_TPATQ (0x7L<<4) 47898c2ecf20Sopenharmony_ci#define BNX2_TDMA_DR_INTF_FSM_TPBUF (0x3L<<8) 47908c2ecf20Sopenharmony_ci#define BNX2_TDMA_DR_INTF_FSM_DR_BUF (0x7L<<12) 47918c2ecf20Sopenharmony_ci#define BNX2_TDMA_DR_INTF_FSM_DMAD (0x7L<<16) 47928c2ecf20Sopenharmony_ci 47938c2ecf20Sopenharmony_ci#define BNX2_TDMA_DR_INTF_STATUS 0x00005c8c 47948c2ecf20Sopenharmony_ci#define BNX2_TDMA_DR_INTF_STATUS_HOLE_PHASE (0x7L<<0) 47958c2ecf20Sopenharmony_ci#define BNX2_TDMA_DR_INTF_STATUS_DATA_AVAIL (0x3L<<4) 47968c2ecf20Sopenharmony_ci#define BNX2_TDMA_DR_INTF_STATUS_SHIFT_ADDR (0x7L<<8) 47978c2ecf20Sopenharmony_ci#define BNX2_TDMA_DR_INTF_STATUS_NXT_PNTR (0xfL<<12) 47988c2ecf20Sopenharmony_ci#define BNX2_TDMA_DR_INTF_STATUS_BYTE_COUNT (0x7L<<16) 47998c2ecf20Sopenharmony_ci 48008c2ecf20Sopenharmony_ci#define BNX2_TDMA_PUSH_FSM 0x00005c90 48018c2ecf20Sopenharmony_ci#define BNX2_TDMA_BD_IF_DEBUG 0x00005c94 48028c2ecf20Sopenharmony_ci#define BNX2_TDMA_DMAD_IF_DEBUG 0x00005c98 48038c2ecf20Sopenharmony_ci#define BNX2_TDMA_CTX_IF_DEBUG 0x00005c9c 48048c2ecf20Sopenharmony_ci#define BNX2_TDMA_TPBUF_IF_DEBUG 0x00005ca0 48058c2ecf20Sopenharmony_ci#define BNX2_TDMA_DR_IF_DEBUG 0x00005ca4 48068c2ecf20Sopenharmony_ci#define BNX2_TDMA_TPATQ_IF_DEBUG 0x00005ca8 48078c2ecf20Sopenharmony_ci#define BNX2_TDMA_TDMA_ILOCK_CKSUM 0x00005cac 48088c2ecf20Sopenharmony_ci#define BNX2_TDMA_TDMA_ILOCK_CKSUM_CALCULATED (0xffffL<<0) 48098c2ecf20Sopenharmony_ci#define BNX2_TDMA_TDMA_ILOCK_CKSUM_EXPECTED (0xffffL<<16) 48108c2ecf20Sopenharmony_ci 48118c2ecf20Sopenharmony_ci#define BNX2_TDMA_TDMA_PCIE_CKSUM 0x00005cb0 48128c2ecf20Sopenharmony_ci#define BNX2_TDMA_TDMA_PCIE_CKSUM_CALCULATED (0xffffL<<0) 48138c2ecf20Sopenharmony_ci#define BNX2_TDMA_TDMA_PCIE_CKSUM_EXPECTED (0xffffL<<16) 48148c2ecf20Sopenharmony_ci 48158c2ecf20Sopenharmony_ci#define BNX2_TDMA_TDMAQ 0x00005fc0 48168c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CMD 0x00005ff8 48178c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CMD_OFFSET (0x3ffL<<0) 48188c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CMD_WR_TOP (1L<<10) 48198c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CMD_WR_TOP_0 (0L<<10) 48208c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CMD_WR_TOP_1 (1L<<10) 48218c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CMD_SFT_RESET (1L<<25) 48228c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CMD_RD_DATA (1L<<26) 48238c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CMD_ADD_INTERVEN (1L<<27) 48248c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CMD_ADD_DATA (1L<<28) 48258c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CMD_INTERVENE_CLR (1L<<29) 48268c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CMD_POP (1L<<30) 48278c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CMD_BUSY (1L<<31) 48288c2ecf20Sopenharmony_ci 48298c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CTL 0x00005ffc 48308c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CTL_INTERVENE (1L<<0) 48318c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CTL_OVERFLOW (1L<<1) 48328c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CTL_FORCE_INTERVENE (1L<<2) 48338c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CTL_MAX_DEPTH (0x3ffL<<12) 48348c2ecf20Sopenharmony_ci#define BNX2_TDMA_FTQ_CTL_CUR_DEPTH (0x3ffL<<22) 48358c2ecf20Sopenharmony_ci 48368c2ecf20Sopenharmony_ci 48378c2ecf20Sopenharmony_ci 48388c2ecf20Sopenharmony_ci/* 48398c2ecf20Sopenharmony_ci * hc_reg definition 48408c2ecf20Sopenharmony_ci * offset: 0x6800 48418c2ecf20Sopenharmony_ci */ 48428c2ecf20Sopenharmony_ci#define BNX2_HC_COMMAND 0x00006800 48438c2ecf20Sopenharmony_ci#define BNX2_HC_COMMAND_ENABLE (1L<<0) 48448c2ecf20Sopenharmony_ci#define BNX2_HC_COMMAND_SKIP_ABORT (1L<<4) 48458c2ecf20Sopenharmony_ci#define BNX2_HC_COMMAND_COAL_NOW (1L<<16) 48468c2ecf20Sopenharmony_ci#define BNX2_HC_COMMAND_COAL_NOW_WO_INT (1L<<17) 48478c2ecf20Sopenharmony_ci#define BNX2_HC_COMMAND_STATS_NOW (1L<<18) 48488c2ecf20Sopenharmony_ci#define BNX2_HC_COMMAND_FORCE_INT (0x3L<<19) 48498c2ecf20Sopenharmony_ci#define BNX2_HC_COMMAND_FORCE_INT_NULL (0L<<19) 48508c2ecf20Sopenharmony_ci#define BNX2_HC_COMMAND_FORCE_INT_HIGH (1L<<19) 48518c2ecf20Sopenharmony_ci#define BNX2_HC_COMMAND_FORCE_INT_LOW (2L<<19) 48528c2ecf20Sopenharmony_ci#define BNX2_HC_COMMAND_FORCE_INT_FREE (3L<<19) 48538c2ecf20Sopenharmony_ci#define BNX2_HC_COMMAND_CLR_STAT_NOW (1L<<21) 48548c2ecf20Sopenharmony_ci#define BNX2_HC_COMMAND_MAIN_PWR_INT (1L<<22) 48558c2ecf20Sopenharmony_ci#define BNX2_HC_COMMAND_COAL_ON_NEXT_EVENT (1L<<27) 48568c2ecf20Sopenharmony_ci 48578c2ecf20Sopenharmony_ci#define BNX2_HC_STATUS 0x00006804 48588c2ecf20Sopenharmony_ci#define BNX2_HC_STATUS_MASTER_ABORT (1L<<0) 48598c2ecf20Sopenharmony_ci#define BNX2_HC_STATUS_PARITY_ERROR_STATE (1L<<1) 48608c2ecf20Sopenharmony_ci#define BNX2_HC_STATUS_PCI_CLK_CNT_STAT (1L<<16) 48618c2ecf20Sopenharmony_ci#define BNX2_HC_STATUS_CORE_CLK_CNT_STAT (1L<<17) 48628c2ecf20Sopenharmony_ci#define BNX2_HC_STATUS_NUM_STATUS_BLOCKS_STAT (1L<<18) 48638c2ecf20Sopenharmony_ci#define BNX2_HC_STATUS_NUM_INT_GEN_STAT (1L<<19) 48648c2ecf20Sopenharmony_ci#define BNX2_HC_STATUS_NUM_INT_MBOX_WR_STAT (1L<<20) 48658c2ecf20Sopenharmony_ci#define BNX2_HC_STATUS_CORE_CLKS_TO_HW_INTACK_STAT (1L<<23) 48668c2ecf20Sopenharmony_ci#define BNX2_HC_STATUS_CORE_CLKS_TO_SW_INTACK_STAT (1L<<24) 48678c2ecf20Sopenharmony_ci#define BNX2_HC_STATUS_CORE_CLKS_DURING_SW_INTACK_STAT (1L<<25) 48688c2ecf20Sopenharmony_ci 48698c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG 0x00006808 48708c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_COLLECT_STATS (1L<<0) 48718c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_RX_TMR_MODE (1L<<1) 48728c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_TX_TMR_MODE (1L<<2) 48738c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_COM_TMR_MODE (1L<<3) 48748c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_CMD_TMR_MODE (1L<<4) 48758c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_STATISTIC_PRIORITY (1L<<5) 48768c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_STATUS_PRIORITY (1L<<6) 48778c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_STAT_MEM_ADDR (0xffL<<8) 48788c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_PER_MODE (1L<<16) 48798c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_ONE_SHOT (1L<<17) 48808c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_USE_INT_PARAM (1L<<18) 48818c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_SET_MASK_AT_RD (1L<<19) 48828c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_PER_COLLECT_LIMIT (0xfL<<20) 48838c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_SB_ADDR_INC (0x7L<<24) 48848c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_SB_ADDR_INC_64B (0L<<24) 48858c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_SB_ADDR_INC_128B (1L<<24) 48868c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_SB_ADDR_INC_256B (2L<<24) 48878c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_SB_ADDR_INC_512B (3L<<24) 48888c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_SB_ADDR_INC_1024B (4L<<24) 48898c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_SB_ADDR_INC_2048B (5L<<24) 48908c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_SB_ADDR_INC_4096B (6L<<24) 48918c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_SB_ADDR_INC_8192B (7L<<24) 48928c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_GEN_STAT_AVG_INTR (1L<<29) 48938c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_UNMASK_ALL (1L<<30) 48948c2ecf20Sopenharmony_ci#define BNX2_HC_CONFIG_TX_SEL (1L<<31) 48958c2ecf20Sopenharmony_ci 48968c2ecf20Sopenharmony_ci#define BNX2_HC_ATTN_BITS_ENABLE 0x0000680c 48978c2ecf20Sopenharmony_ci#define BNX2_HC_STATUS_ADDR_L 0x00006810 48988c2ecf20Sopenharmony_ci#define BNX2_HC_STATUS_ADDR_H 0x00006814 48998c2ecf20Sopenharmony_ci#define BNX2_HC_STATISTICS_ADDR_L 0x00006818 49008c2ecf20Sopenharmony_ci#define BNX2_HC_STATISTICS_ADDR_H 0x0000681c 49018c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP 0x00006820 49028c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_VALUE (0xffL<<0) 49038c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_INT (0xffL<<16) 49048c2ecf20Sopenharmony_ci 49058c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP 0x00006824 49068c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_VALUE (0xffL<<0) 49078c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_INT (0xffL<<16) 49088c2ecf20Sopenharmony_ci 49098c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP 0x00006828 49108c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_VALUE (0xffL<<0) 49118c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_INT (0xffL<<16) 49128c2ecf20Sopenharmony_ci 49138c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS 0x0000682c 49148c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_VALUE (0x3ffL<<0) 49158c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_INT (0x3ffL<<16) 49168c2ecf20Sopenharmony_ci 49178c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS 0x00006830 49188c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_VALUE (0x3ffL<<0) 49198c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_INT (0x3ffL<<16) 49208c2ecf20Sopenharmony_ci 49218c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS 0x00006834 49228c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_VALUE (0x3ffL<<0) 49238c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_INT (0x3ffL<<16) 49248c2ecf20Sopenharmony_ci 49258c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS 0x00006838 49268c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_VALUE (0x3ffL<<0) 49278c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_INT (0x3ffL<<16) 49288c2ecf20Sopenharmony_ci 49298c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS 0x0000683c 49308c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_HC_PERIODIC_TICKS (0xffffL<<0) 49318c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_HC_INT_PERIODIC_TICKS (0xffffL<<16) 49328c2ecf20Sopenharmony_ci 49338c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_COLLECT_TICKS 0x00006840 49348c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_COLLECT_TICKS_HC_STAT_COLL_TICKS (0xffL<<4) 49358c2ecf20Sopenharmony_ci 49368c2ecf20Sopenharmony_ci#define BNX2_HC_STATS_TICKS 0x00006844 49378c2ecf20Sopenharmony_ci#define BNX2_HC_STATS_TICKS_HC_STAT_TICKS (0xffffL<<8) 49388c2ecf20Sopenharmony_ci 49398c2ecf20Sopenharmony_ci#define BNX2_HC_STATS_INTERRUPT_STATUS 0x00006848 49408c2ecf20Sopenharmony_ci#define BNX2_HC_STATS_INTERRUPT_STATUS_SB_STATUS (0x1ffL<<0) 49418c2ecf20Sopenharmony_ci#define BNX2_HC_STATS_INTERRUPT_STATUS_INT_STATUS (0x1ffL<<16) 49428c2ecf20Sopenharmony_ci 49438c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_MEM_DATA 0x0000684c 49448c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0 0x00006850 49458c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0 (0x7fL<<0) 49468c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RXP_STAT0 (0L<<0) 49478c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RXP_STAT1 (1L<<0) 49488c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RXP_STAT2 (2L<<0) 49498c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RXP_STAT3 (3L<<0) 49508c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RXP_STAT4 (4L<<0) 49518c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RXP_STAT5 (5L<<0) 49528c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RXP_STAT6 (6L<<0) 49538c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RXP_STAT7 (7L<<0) 49548c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RXP_STAT8 (8L<<0) 49558c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RXP_STAT9 (9L<<0) 49568c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RXP_STAT10 (10L<<0) 49578c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RXP_STAT11 (11L<<0) 49588c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TXP_STAT0 (12L<<0) 49598c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TXP_STAT1 (13L<<0) 49608c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TXP_STAT2 (14L<<0) 49618c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TXP_STAT3 (15L<<0) 49628c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TXP_STAT4 (16L<<0) 49638c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TXP_STAT5 (17L<<0) 49648c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TXP_STAT6 (18L<<0) 49658c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TXP_STAT7 (19L<<0) 49668c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COM_STAT0 (20L<<0) 49678c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COM_STAT1 (21L<<0) 49688c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COM_STAT2 (22L<<0) 49698c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COM_STAT3 (23L<<0) 49708c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COM_STAT4 (24L<<0) 49718c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COM_STAT5 (25L<<0) 49728c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COM_STAT6 (26L<<0) 49738c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COM_STAT7 (27L<<0) 49748c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COM_STAT8 (28L<<0) 49758c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COM_STAT9 (29L<<0) 49768c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COM_STAT10 (30L<<0) 49778c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COM_STAT11 (31L<<0) 49788c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TPAT_STAT0 (32L<<0) 49798c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TPAT_STAT1 (33L<<0) 49808c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TPAT_STAT2 (34L<<0) 49818c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TPAT_STAT3 (35L<<0) 49828c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CP_STAT0 (36L<<0) 49838c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CP_STAT1 (37L<<0) 49848c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CP_STAT2 (38L<<0) 49858c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CP_STAT3 (39L<<0) 49868c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CP_STAT4 (40L<<0) 49878c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CP_STAT5 (41L<<0) 49888c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CP_STAT6 (42L<<0) 49898c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CP_STAT7 (43L<<0) 49908c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_MCP_STAT0 (44L<<0) 49918c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_MCP_STAT1 (45L<<0) 49928c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_MCP_STAT2 (46L<<0) 49938c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_MCP_STAT3 (47L<<0) 49948c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_MCP_STAT4 (48L<<0) 49958c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_MCP_STAT5 (49L<<0) 49968c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_MCP_STAT6 (50L<<0) 49978c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_MCP_STAT7 (51L<<0) 49988c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_PCI_CLK_CNT (52L<<0) 49998c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CORE_CLK_CNT (53L<<0) 50008c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_STATUS_BLOCKS (54L<<0) 50018c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_GEN (55L<<0) 50028c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_MBOX_WR (56L<<0) 50038c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_HW_INTACK (59L<<0) 50048c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_SW_INTACK (60L<<0) 50058c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_DURING_SW_INTACK (61L<<0) 50068c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TSCH_CMD_CNT (62L<<0) 50078c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TSCH_SLOT_CNT (63L<<0) 50088c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CSCH_CMD_CNT (64L<<0) 50098c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CSCH_SLOT_CNT (65L<<0) 50108c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RLUPQ_VALID_CNT (66L<<0) 50118c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RXPQ_VALID_CNT (67L<<0) 50128c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RXPCQ_VALID_CNT (68L<<0) 50138c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RV2PPQ_VALID_CNT (69L<<0) 50148c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RV2PMQ_VALID_CNT (70L<<0) 50158c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RV2PTQ_VALID_CNT (71L<<0) 50168c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RDMAQ_VALID_CNT (72L<<0) 50178c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TSCHQ_VALID_CNT (73L<<0) 50188c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TBDRQ_VALID_CNT (74L<<0) 50198c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TXPQ_VALID_CNT (75L<<0) 50208c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TDMAQ_VALID_CNT (76L<<0) 50218c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TPATQ_VALID_CNT (77L<<0) 50228c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TASQ_VALID_CNT (78L<<0) 50238c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CSQ_VALID_CNT (79L<<0) 50248c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CPQ_VALID_CNT (80L<<0) 50258c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COMXQ_VALID_CNT (81L<<0) 50268c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COMTQ_VALID_CNT (82L<<0) 50278c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_COMQ_VALID_CNT (83L<<0) 50288c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_MGMQ_VALID_CNT (84L<<0) 50298c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_DMAE_READ_TRANSFERS_CNT (85L<<0) 50308c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_DMAE_READ_DELAY_PCI_CLKS_CNT (86L<<0) 50318c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_DMAE_BIG_READ_TRANSFERS_CNT (87L<<0) 50328c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_DMAE_BIG_READ_DELAY_PCI_CLKS_CNT (88L<<0) 50338c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_DMAE_BIG_READ_RETRY_AFTER_DATA_CNT (89L<<0) 50348c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_DMAE_WRITE_TRANSFERS_CNT (90L<<0) 50358c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_DMAE_WRITE_DELAY_PCI_CLKS_CNT (91L<<0) 50368c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_DMAE_BIG_WRITE_TRANSFERS_CNT (92L<<0) 50378c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_DMAE_BIG_WRITE_DELAY_PCI_CLKS_CNT (93L<<0) 50388c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_DMAE_BIG_WRITE_RETRY_AFTER_DATA_CNT (94L<<0) 50398c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CTX_WR_CNT64 (95L<<0) 50408c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CTX_RD_CNT64 (96L<<0) 50418c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CTX_ACC_STALL_CLKS (97L<<0) 50428c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CTX_LOCK_STALL_CLKS (98L<<0) 50438c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_MBQ_CTX_ACCESS_STAT (99L<<0) 50448c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_MBQ_CTX_ACCESS64_STAT (100L<<0) 50458c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_MBQ_PCI_STALL_STAT (101L<<0) 50468c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TBDR_FTQ_ENTRY_CNT (102L<<0) 50478c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TBDR_BURST_CNT (103L<<0) 50488c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TDMA_FTQ_ENTRY_CNT (104L<<0) 50498c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TDMA_BURST_CNT (105L<<0) 50508c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RDMA_FTQ_ENTRY_CNT (106L<<0) 50518c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RDMA_BURST_CNT (107L<<0) 50528c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RLUP_MATCH_CNT (108L<<0) 50538c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TMR_POLL_PASS_CNT (109L<<0) 50548c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TMR_TMR1_CNT (110L<<0) 50558c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TMR_TMR2_CNT (111L<<0) 50568c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TMR_TMR3_CNT (112L<<0) 50578c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TMR_TMR4_CNT (113L<<0) 50588c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_TMR_TMR5_CNT (114L<<0) 50598c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RV2P_STAT0 (115L<<0) 50608c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RV2P_STAT1 (116L<<0) 50618c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RV2P_STAT2 (117L<<0) 50628c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RV2P_STAT3 (118L<<0) 50638c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RV2P_STAT4 (119L<<0) 50648c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RV2P_STAT5 (120L<<0) 50658c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RBDC_PROC1_MISS (121L<<0) 50668c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RBDC_PROC2_MISS (122L<<0) 50678c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RBDC_BURST_CNT (127L<<0) 50688c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_1 (0x7fL<<8) 50698c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_2 (0x7fL<<16) 50708c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_3 (0x7fL<<24) 50718c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_XI (0xffL<<0) 50728c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_UMP_RX_FRAME_DROP_XI (52L<<0) 50738c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_UNUSED_S0_XI (57L<<0) 50748c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_UNUSED_S1_XI (58L<<0) 50758c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_UNUSED_S2_XI (85L<<0) 50768c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_UNUSED_S3_XI (86L<<0) 50778c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_UNUSED_S4_XI (87L<<0) 50788c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_UNUSED_S5_XI (88L<<0) 50798c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_UNUSED_S6_XI (89L<<0) 50808c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_UNUSED_S7_XI (90L<<0) 50818c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_UNUSED_S8_XI (91L<<0) 50828c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_UNUSED_S9_XI (92L<<0) 50838c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_UNUSED_S10_XI (93L<<0) 50848c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_MQ_IDB_OFLOW_XI (94L<<0) 50858c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CTX_BLK_RD_CNT_XI (123L<<0) 50868c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CTX_BLK_WR_CNT_XI (124L<<0) 50878c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CTX_HITS_XI (125L<<0) 50888c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_CTX_MISSES_XI (126L<<0) 50898c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_STATUS_BLOCKS_VEC1_XI (128L<<0) 50908c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_GEN_VEC1_XI (129L<<0) 50918c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_MBOX_WR_VEC1_XI (130L<<0) 50928c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_HW_INTACK_VEC1_XI (131L<<0) 50938c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_SW_INTACK_VEC1_XI (132L<<0) 50948c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_DURING_SW_INTACK_VEC1_XI (133L<<0) 50958c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_STATUS_BLOCKS_VEC2_XI (134L<<0) 50968c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_GEN_VEC2_XI (135L<<0) 50978c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_MBOX_WR_VEC2_XI (136L<<0) 50988c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_HW_INTACK_VEC2_XI (137L<<0) 50998c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_SW_INTACK_VEC2_XI (138L<<0) 51008c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_DURING_SW_INTACK_VEC2_XI (139L<<0) 51018c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_STATUS_BLOCKS_VEC3_XI (140L<<0) 51028c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_GEN_VEC3_XI (141L<<0) 51038c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_MBOX_WR_VEC3_XI (142L<<0) 51048c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_HW_INTACK_VEC3_XI (143L<<0) 51058c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_SW_INTACK_VEC3_XI (144L<<0) 51068c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_DURING_SW_INTACK_VEC3_XI (145L<<0) 51078c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_STATUS_BLOCKS_VEC4_XI (146L<<0) 51088c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_GEN_VEC4_XI (147L<<0) 51098c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_MBOX_WR_VEC4_XI (148L<<0) 51108c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_HW_INTACK_VEC4_XI (149L<<0) 51118c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_SW_INTACK_VEC4_XI (150L<<0) 51128c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_DURING_SW_INTACK_VEC4_XI (151L<<0) 51138c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_STATUS_BLOCKS_VEC5_XI (152L<<0) 51148c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_GEN_VEC5_XI (153L<<0) 51158c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_MBOX_WR_VEC5_XI (154L<<0) 51168c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_HW_INTACK_VEC5_XI (155L<<0) 51178c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_SW_INTACK_VEC5_XI (156L<<0) 51188c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_DURING_SW_INTACK_VEC5_XI (157L<<0) 51198c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_STATUS_BLOCKS_VEC6_XI (158L<<0) 51208c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_GEN_VEC6_XI (159L<<0) 51218c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_MBOX_WR_VEC6_XI (160L<<0) 51228c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_HW_INTACK_VEC6_XI (161L<<0) 51238c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_SW_INTACK_VEC6_XI (162L<<0) 51248c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_DURING_SW_INTACK_VEC6_XI (163L<<0) 51258c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_STATUS_BLOCKS_VEC7_XI (164L<<0) 51268c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_GEN_VEC7_XI (165L<<0) 51278c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_MBOX_WR_VEC7_XI (166L<<0) 51288c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_HW_INTACK_VEC7_XI (167L<<0) 51298c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_SW_INTACK_VEC7_XI (168L<<0) 51308c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_DURING_SW_INTACK_VEC7_XI (169L<<0) 51318c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_STATUS_BLOCKS_VEC8_XI (170L<<0) 51328c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_GEN_VEC8_XI (171L<<0) 51338c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_NUM_INT_MBOX_WR_VEC8_XI (172L<<0) 51348c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_HW_INTACK_VEC8_XI (173L<<0) 51358c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_TO_SW_INTACK_VEC8_XI (174L<<0) 51368c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_HC_CORE_CLKS_DURING_SW_INTACK_VEC8_XI (175L<<0) 51378c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RV2PCS_CMD_CNT_XI (176L<<0) 51388c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RV2PCS_SLOT_CNT_XI (177L<<0) 51398c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_0_RV2PCSQ_VALID_CNT_XI (178L<<0) 51408c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_1_XI (0xffL<<8) 51418c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_2_XI (0xffL<<16) 51428c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_0_GEN_SEL_3_XI (0xffL<<24) 51438c2ecf20Sopenharmony_ci 51448c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_1 0x00006854 51458c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_1_GEN_SEL_4 (0x7fL<<0) 51468c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_1_GEN_SEL_5 (0x7fL<<8) 51478c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_1_GEN_SEL_6 (0x7fL<<16) 51488c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_1_GEN_SEL_7 (0x7fL<<24) 51498c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_1_GEN_SEL_4_XI (0xffL<<0) 51508c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_1_GEN_SEL_5_XI (0xffL<<8) 51518c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_1_GEN_SEL_6_XI (0xffL<<16) 51528c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_1_GEN_SEL_7_XI (0xffL<<24) 51538c2ecf20Sopenharmony_ci 51548c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_2 0x00006858 51558c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_2_GEN_SEL_8 (0x7fL<<0) 51568c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_2_GEN_SEL_9 (0x7fL<<8) 51578c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_2_GEN_SEL_10 (0x7fL<<16) 51588c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_2_GEN_SEL_11 (0x7fL<<24) 51598c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_2_GEN_SEL_8_XI (0xffL<<0) 51608c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_2_GEN_SEL_9_XI (0xffL<<8) 51618c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_2_GEN_SEL_10_XI (0xffL<<16) 51628c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_2_GEN_SEL_11_XI (0xffL<<24) 51638c2ecf20Sopenharmony_ci 51648c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_3 0x0000685c 51658c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_3_GEN_SEL_12 (0x7fL<<0) 51668c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_3_GEN_SEL_13 (0x7fL<<8) 51678c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_3_GEN_SEL_14 (0x7fL<<16) 51688c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_3_GEN_SEL_15 (0x7fL<<24) 51698c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_3_GEN_SEL_12_XI (0xffL<<0) 51708c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_3_GEN_SEL_13_XI (0xffL<<8) 51718c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_3_GEN_SEL_14_XI (0xffL<<16) 51728c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_SEL_3_GEN_SEL_15_XI (0xffL<<24) 51738c2ecf20Sopenharmony_ci 51748c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT0 0x00006888 51758c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT1 0x0000688c 51768c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT2 0x00006890 51778c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT3 0x00006894 51788c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT4 0x00006898 51798c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT5 0x0000689c 51808c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT6 0x000068a0 51818c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT7 0x000068a4 51828c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT8 0x000068a8 51838c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT9 0x000068ac 51848c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT10 0x000068b0 51858c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT11 0x000068b4 51868c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT12 0x000068b8 51878c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT13 0x000068bc 51888c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT14 0x000068c0 51898c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT15 0x000068c4 51908c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC0 0x000068c8 51918c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC1 0x000068cc 51928c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC2 0x000068d0 51938c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC3 0x000068d4 51948c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC4 0x000068d8 51958c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC5 0x000068dc 51968c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC6 0x000068e0 51978c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC7 0x000068e4 51988c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC8 0x000068e8 51998c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC9 0x000068ec 52008c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC10 0x000068f0 52018c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC11 0x000068f4 52028c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC12 0x000068f8 52038c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC13 0x000068fc 52048c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC14 0x00006900 52058c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC15 0x00006904 52068c2ecf20Sopenharmony_ci#define BNX2_HC_STAT_GEN_STAT_AC 0x000068c8 52078c2ecf20Sopenharmony_ci#define BNX2_HC_VIS 0x00006908 52088c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STAT_BUILD_STATE (0xfL<<0) 52098c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STAT_BUILD_STATE_IDLE (0L<<0) 52108c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STAT_BUILD_STATE_START (1L<<0) 52118c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STAT_BUILD_STATE_REQUEST (2L<<0) 52128c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STAT_BUILD_STATE_UPDATE64 (3L<<0) 52138c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STAT_BUILD_STATE_UPDATE32 (4L<<0) 52148c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STAT_BUILD_STATE_UPDATE_DONE (5L<<0) 52158c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STAT_BUILD_STATE_DMA (6L<<0) 52168c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STAT_BUILD_STATE_MSI_CONTROL (7L<<0) 52178c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STAT_BUILD_STATE_MSI_LOW (8L<<0) 52188c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STAT_BUILD_STATE_MSI_HIGH (9L<<0) 52198c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STAT_BUILD_STATE_MSI_DATA (10L<<0) 52208c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_DMA_STAT_STATE (0xfL<<8) 52218c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_DMA_STAT_STATE_IDLE (0L<<8) 52228c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_DMA_STAT_STATE_STATUS_PARAM (1L<<8) 52238c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_DMA_STAT_STATE_STATUS_DMA (2L<<8) 52248c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_DMA_STAT_STATE_WRITE_COMP (3L<<8) 52258c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_DMA_STAT_STATE_COMP (4L<<8) 52268c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_DMA_STAT_STATE_STATISTIC_PARAM (5L<<8) 52278c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_DMA_STAT_STATE_STATISTIC_DMA (6L<<8) 52288c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_DMA_STAT_STATE_WRITE_COMP_1 (7L<<8) 52298c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_DMA_STAT_STATE_WRITE_COMP_2 (8L<<8) 52308c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_DMA_STAT_STATE_WAIT (9L<<8) 52318c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_DMA_STAT_STATE_ABORT (15L<<8) 52328c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_DMA_MSI_STATE (0x7L<<12) 52338c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STATISTIC_DMA_EN_STATE (0x3L<<15) 52348c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STATISTIC_DMA_EN_STATE_IDLE (0L<<15) 52358c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STATISTIC_DMA_EN_STATE_COUNT (1L<<15) 52368c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_STATISTIC_DMA_EN_STATE_START (2L<<15) 52378c2ecf20Sopenharmony_ci 52388c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1 0x0000690c 52398c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_HW_INTACK_STATE (1L<<4) 52408c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_HW_INTACK_STATE_IDLE (0L<<4) 52418c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_HW_INTACK_STATE_COUNT (1L<<4) 52428c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_SW_INTACK_STATE (1L<<5) 52438c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_SW_INTACK_STATE_IDLE (0L<<5) 52448c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_SW_INTACK_STATE_COUNT (1L<<5) 52458c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_DURING_SW_INTACK_STATE (1L<<6) 52468c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_DURING_SW_INTACK_STATE_IDLE (0L<<6) 52478c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_DURING_SW_INTACK_STATE_COUNT (1L<<6) 52488c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_MAILBOX_COUNT_STATE (1L<<7) 52498c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_MAILBOX_COUNT_STATE_IDLE (0L<<7) 52508c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_MAILBOX_COUNT_STATE_COUNT (1L<<7) 52518c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_RAM_RD_ARB_STATE (0xfL<<17) 52528c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_RAM_RD_ARB_STATE_IDLE (0L<<17) 52538c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_RAM_RD_ARB_STATE_DMA (1L<<17) 52548c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_RAM_RD_ARB_STATE_UPDATE (2L<<17) 52558c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_RAM_RD_ARB_STATE_ASSIGN (3L<<17) 52568c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_RAM_RD_ARB_STATE_WAIT (4L<<17) 52578c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_RAM_RD_ARB_STATE_REG_UPDATE (5L<<17) 52588c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_RAM_RD_ARB_STATE_REG_ASSIGN (6L<<17) 52598c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_RAM_RD_ARB_STATE_REG_WAIT (7L<<17) 52608c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_RAM_WR_ARB_STATE (0x3L<<21) 52618c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_RAM_WR_ARB_STATE_NORMAL (0L<<21) 52628c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_RAM_WR_ARB_STATE_CLEAR (1L<<21) 52638c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_INT_GEN_STATE (1L<<23) 52648c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_INT_GEN_STATE_DLE (0L<<23) 52658c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_INT_GEN_STATE_NTERRUPT (1L<<23) 52668c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_STAT_CHAN_ID (0x7L<<24) 52678c2ecf20Sopenharmony_ci#define BNX2_HC_VIS_1_INT_B (1L<<27) 52688c2ecf20Sopenharmony_ci 52698c2ecf20Sopenharmony_ci#define BNX2_HC_DEBUG_VECT_PEEK 0x00006910 52708c2ecf20Sopenharmony_ci#define BNX2_HC_DEBUG_VECT_PEEK_1_VALUE (0x7ffL<<0) 52718c2ecf20Sopenharmony_ci#define BNX2_HC_DEBUG_VECT_PEEK_1_PEEK_EN (1L<<11) 52728c2ecf20Sopenharmony_ci#define BNX2_HC_DEBUG_VECT_PEEK_1_SEL (0xfL<<12) 52738c2ecf20Sopenharmony_ci#define BNX2_HC_DEBUG_VECT_PEEK_2_VALUE (0x7ffL<<16) 52748c2ecf20Sopenharmony_ci#define BNX2_HC_DEBUG_VECT_PEEK_2_PEEK_EN (1L<<27) 52758c2ecf20Sopenharmony_ci#define BNX2_HC_DEBUG_VECT_PEEK_2_SEL (0xfL<<28) 52768c2ecf20Sopenharmony_ci 52778c2ecf20Sopenharmony_ci#define BNX2_HC_COALESCE_NOW 0x00006914 52788c2ecf20Sopenharmony_ci#define BNX2_HC_COALESCE_NOW_COAL_NOW (0x1ffL<<1) 52798c2ecf20Sopenharmony_ci#define BNX2_HC_COALESCE_NOW_COAL_NOW_WO_INT (0x1ffL<<11) 52808c2ecf20Sopenharmony_ci#define BNX2_HC_COALESCE_NOW_COAL_ON_NXT_EVENT (0x1ffL<<21) 52818c2ecf20Sopenharmony_ci 52828c2ecf20Sopenharmony_ci#define BNX2_HC_MSIX_BIT_VECTOR 0x00006918 52838c2ecf20Sopenharmony_ci#define BNX2_HC_MSIX_BIT_VECTOR_VAL (0x1ffL<<0) 52848c2ecf20Sopenharmony_ci 52858c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_1 0x00006a00 52868c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_1_RX_TMR_MODE (1L<<1) 52878c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_1_TX_TMR_MODE (1L<<2) 52888c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_1_COM_TMR_MODE (1L<<3) 52898c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_1_CMD_TMR_MODE (1L<<4) 52908c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_1_PER_MODE (1L<<16) 52918c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_1_ONE_SHOT (1L<<17) 52928c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_1_USE_INT_PARAM (1L<<18) 52938c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_1_PER_COLLECT_LIMIT (0xfL<<20) 52948c2ecf20Sopenharmony_ci 52958c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_1 0x00006a04 52968c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_1_VALUE (0xffL<<0) 52978c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_1_INT (0xffL<<16) 52988c2ecf20Sopenharmony_ci 52998c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_1 0x00006a08 53008c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_1_VALUE (0xffL<<0) 53018c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_1_INT (0xffL<<16) 53028c2ecf20Sopenharmony_ci 53038c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_1 0x00006a0c 53048c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_1_VALUE (0xffL<<0) 53058c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_1_INT (0xffL<<16) 53068c2ecf20Sopenharmony_ci 53078c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_1 0x00006a10 53088c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_1_VALUE (0x3ffL<<0) 53098c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_1_INT (0x3ffL<<16) 53108c2ecf20Sopenharmony_ci 53118c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_1 0x00006a14 53128c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_1_VALUE (0x3ffL<<0) 53138c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_1_INT (0x3ffL<<16) 53148c2ecf20Sopenharmony_ci 53158c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_1 0x00006a18 53168c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_1_VALUE (0x3ffL<<0) 53178c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_1_INT (0x3ffL<<16) 53188c2ecf20Sopenharmony_ci 53198c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_1 0x00006a1c 53208c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_1_VALUE (0x3ffL<<0) 53218c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_1_INT (0x3ffL<<16) 53228c2ecf20Sopenharmony_ci 53238c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_1 0x00006a20 53248c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_1_HC_PERIODIC_TICKS (0xffffL<<0) 53258c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_1_HC_INT_PERIODIC_TICKS (0xffffL<<16) 53268c2ecf20Sopenharmony_ci 53278c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_2 0x00006a24 53288c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_2_RX_TMR_MODE (1L<<1) 53298c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_2_TX_TMR_MODE (1L<<2) 53308c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_2_COM_TMR_MODE (1L<<3) 53318c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_2_CMD_TMR_MODE (1L<<4) 53328c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_2_PER_MODE (1L<<16) 53338c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_2_ONE_SHOT (1L<<17) 53348c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_2_USE_INT_PARAM (1L<<18) 53358c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_2_PER_COLLECT_LIMIT (0xfL<<20) 53368c2ecf20Sopenharmony_ci 53378c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_2 0x00006a28 53388c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_2_VALUE (0xffL<<0) 53398c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_2_INT (0xffL<<16) 53408c2ecf20Sopenharmony_ci 53418c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_2 0x00006a2c 53428c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_2_VALUE (0xffL<<0) 53438c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_2_INT (0xffL<<16) 53448c2ecf20Sopenharmony_ci 53458c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_2 0x00006a30 53468c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_2_VALUE (0xffL<<0) 53478c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_2_INT (0xffL<<16) 53488c2ecf20Sopenharmony_ci 53498c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_2 0x00006a34 53508c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_2_VALUE (0x3ffL<<0) 53518c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_2_INT (0x3ffL<<16) 53528c2ecf20Sopenharmony_ci 53538c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_2 0x00006a38 53548c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_2_VALUE (0x3ffL<<0) 53558c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_2_INT (0x3ffL<<16) 53568c2ecf20Sopenharmony_ci 53578c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_2 0x00006a3c 53588c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_2_VALUE (0x3ffL<<0) 53598c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_2_INT (0x3ffL<<16) 53608c2ecf20Sopenharmony_ci 53618c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_2 0x00006a40 53628c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_2_VALUE (0x3ffL<<0) 53638c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_2_INT (0x3ffL<<16) 53648c2ecf20Sopenharmony_ci 53658c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_2 0x00006a44 53668c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_2_HC_PERIODIC_TICKS (0xffffL<<0) 53678c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_2_HC_INT_PERIODIC_TICKS (0xffffL<<16) 53688c2ecf20Sopenharmony_ci 53698c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_3 0x00006a48 53708c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_3_RX_TMR_MODE (1L<<1) 53718c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_3_TX_TMR_MODE (1L<<2) 53728c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_3_COM_TMR_MODE (1L<<3) 53738c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_3_CMD_TMR_MODE (1L<<4) 53748c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_3_PER_MODE (1L<<16) 53758c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_3_ONE_SHOT (1L<<17) 53768c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_3_USE_INT_PARAM (1L<<18) 53778c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_3_PER_COLLECT_LIMIT (0xfL<<20) 53788c2ecf20Sopenharmony_ci 53798c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_3 0x00006a4c 53808c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_3_VALUE (0xffL<<0) 53818c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_3_INT (0xffL<<16) 53828c2ecf20Sopenharmony_ci 53838c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_3 0x00006a50 53848c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_3_VALUE (0xffL<<0) 53858c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_3_INT (0xffL<<16) 53868c2ecf20Sopenharmony_ci 53878c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_3 0x00006a54 53888c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_3_VALUE (0xffL<<0) 53898c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_3_INT (0xffL<<16) 53908c2ecf20Sopenharmony_ci 53918c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_3 0x00006a58 53928c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_3_VALUE (0x3ffL<<0) 53938c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_3_INT (0x3ffL<<16) 53948c2ecf20Sopenharmony_ci 53958c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_3 0x00006a5c 53968c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_3_VALUE (0x3ffL<<0) 53978c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_3_INT (0x3ffL<<16) 53988c2ecf20Sopenharmony_ci 53998c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_3 0x00006a60 54008c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_3_VALUE (0x3ffL<<0) 54018c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_3_INT (0x3ffL<<16) 54028c2ecf20Sopenharmony_ci 54038c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_3 0x00006a64 54048c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_3_VALUE (0x3ffL<<0) 54058c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_3_INT (0x3ffL<<16) 54068c2ecf20Sopenharmony_ci 54078c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_3 0x00006a68 54088c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_3_HC_PERIODIC_TICKS (0xffffL<<0) 54098c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_3_HC_INT_PERIODIC_TICKS (0xffffL<<16) 54108c2ecf20Sopenharmony_ci 54118c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_4 0x00006a6c 54128c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_4_RX_TMR_MODE (1L<<1) 54138c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_4_TX_TMR_MODE (1L<<2) 54148c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_4_COM_TMR_MODE (1L<<3) 54158c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_4_CMD_TMR_MODE (1L<<4) 54168c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_4_PER_MODE (1L<<16) 54178c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_4_ONE_SHOT (1L<<17) 54188c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_4_USE_INT_PARAM (1L<<18) 54198c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_4_PER_COLLECT_LIMIT (0xfL<<20) 54208c2ecf20Sopenharmony_ci 54218c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_4 0x00006a70 54228c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_4_VALUE (0xffL<<0) 54238c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_4_INT (0xffL<<16) 54248c2ecf20Sopenharmony_ci 54258c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_4 0x00006a74 54268c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_4_VALUE (0xffL<<0) 54278c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_4_INT (0xffL<<16) 54288c2ecf20Sopenharmony_ci 54298c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_4 0x00006a78 54308c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_4_VALUE (0xffL<<0) 54318c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_4_INT (0xffL<<16) 54328c2ecf20Sopenharmony_ci 54338c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_4 0x00006a7c 54348c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_4_VALUE (0x3ffL<<0) 54358c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_4_INT (0x3ffL<<16) 54368c2ecf20Sopenharmony_ci 54378c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_4 0x00006a80 54388c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_4_VALUE (0x3ffL<<0) 54398c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_4_INT (0x3ffL<<16) 54408c2ecf20Sopenharmony_ci 54418c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_4 0x00006a84 54428c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_4_VALUE (0x3ffL<<0) 54438c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_4_INT (0x3ffL<<16) 54448c2ecf20Sopenharmony_ci 54458c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_4 0x00006a88 54468c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_4_VALUE (0x3ffL<<0) 54478c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_4_INT (0x3ffL<<16) 54488c2ecf20Sopenharmony_ci 54498c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_4 0x00006a8c 54508c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_4_HC_PERIODIC_TICKS (0xffffL<<0) 54518c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_4_HC_INT_PERIODIC_TICKS (0xffffL<<16) 54528c2ecf20Sopenharmony_ci 54538c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_5 0x00006a90 54548c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_5_RX_TMR_MODE (1L<<1) 54558c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_5_TX_TMR_MODE (1L<<2) 54568c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_5_COM_TMR_MODE (1L<<3) 54578c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_5_CMD_TMR_MODE (1L<<4) 54588c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_5_PER_MODE (1L<<16) 54598c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_5_ONE_SHOT (1L<<17) 54608c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_5_USE_INT_PARAM (1L<<18) 54618c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_5_PER_COLLECT_LIMIT (0xfL<<20) 54628c2ecf20Sopenharmony_ci 54638c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_5 0x00006a94 54648c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_5_VALUE (0xffL<<0) 54658c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_5_INT (0xffL<<16) 54668c2ecf20Sopenharmony_ci 54678c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_5 0x00006a98 54688c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_5_VALUE (0xffL<<0) 54698c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_5_INT (0xffL<<16) 54708c2ecf20Sopenharmony_ci 54718c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_5 0x00006a9c 54728c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_5_VALUE (0xffL<<0) 54738c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_5_INT (0xffL<<16) 54748c2ecf20Sopenharmony_ci 54758c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_5 0x00006aa0 54768c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_5_VALUE (0x3ffL<<0) 54778c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_5_INT (0x3ffL<<16) 54788c2ecf20Sopenharmony_ci 54798c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_5 0x00006aa4 54808c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_5_VALUE (0x3ffL<<0) 54818c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_5_INT (0x3ffL<<16) 54828c2ecf20Sopenharmony_ci 54838c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_5 0x00006aa8 54848c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_5_VALUE (0x3ffL<<0) 54858c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_5_INT (0x3ffL<<16) 54868c2ecf20Sopenharmony_ci 54878c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_5 0x00006aac 54888c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_5_VALUE (0x3ffL<<0) 54898c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_5_INT (0x3ffL<<16) 54908c2ecf20Sopenharmony_ci 54918c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_5 0x00006ab0 54928c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_5_HC_PERIODIC_TICKS (0xffffL<<0) 54938c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_5_HC_INT_PERIODIC_TICKS (0xffffL<<16) 54948c2ecf20Sopenharmony_ci 54958c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_6 0x00006ab4 54968c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_6_RX_TMR_MODE (1L<<1) 54978c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_6_TX_TMR_MODE (1L<<2) 54988c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_6_COM_TMR_MODE (1L<<3) 54998c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_6_CMD_TMR_MODE (1L<<4) 55008c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_6_PER_MODE (1L<<16) 55018c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_6_ONE_SHOT (1L<<17) 55028c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_6_USE_INT_PARAM (1L<<18) 55038c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_6_PER_COLLECT_LIMIT (0xfL<<20) 55048c2ecf20Sopenharmony_ci 55058c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_6 0x00006ab8 55068c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_6_VALUE (0xffL<<0) 55078c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_6_INT (0xffL<<16) 55088c2ecf20Sopenharmony_ci 55098c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_6 0x00006abc 55108c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_6_VALUE (0xffL<<0) 55118c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_6_INT (0xffL<<16) 55128c2ecf20Sopenharmony_ci 55138c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_6 0x00006ac0 55148c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_6_VALUE (0xffL<<0) 55158c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_6_INT (0xffL<<16) 55168c2ecf20Sopenharmony_ci 55178c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_6 0x00006ac4 55188c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_6_VALUE (0x3ffL<<0) 55198c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_6_INT (0x3ffL<<16) 55208c2ecf20Sopenharmony_ci 55218c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_6 0x00006ac8 55228c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_6_VALUE (0x3ffL<<0) 55238c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_6_INT (0x3ffL<<16) 55248c2ecf20Sopenharmony_ci 55258c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_6 0x00006acc 55268c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_6_VALUE (0x3ffL<<0) 55278c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_6_INT (0x3ffL<<16) 55288c2ecf20Sopenharmony_ci 55298c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_6 0x00006ad0 55308c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_6_VALUE (0x3ffL<<0) 55318c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_6_INT (0x3ffL<<16) 55328c2ecf20Sopenharmony_ci 55338c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_6 0x00006ad4 55348c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_6_HC_PERIODIC_TICKS (0xffffL<<0) 55358c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_6_HC_INT_PERIODIC_TICKS (0xffffL<<16) 55368c2ecf20Sopenharmony_ci 55378c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_7 0x00006ad8 55388c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_7_RX_TMR_MODE (1L<<1) 55398c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_7_TX_TMR_MODE (1L<<2) 55408c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_7_COM_TMR_MODE (1L<<3) 55418c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_7_CMD_TMR_MODE (1L<<4) 55428c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_7_PER_MODE (1L<<16) 55438c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_7_ONE_SHOT (1L<<17) 55448c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_7_USE_INT_PARAM (1L<<18) 55458c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_7_PER_COLLECT_LIMIT (0xfL<<20) 55468c2ecf20Sopenharmony_ci 55478c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_7 0x00006adc 55488c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_7_VALUE (0xffL<<0) 55498c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_7_INT (0xffL<<16) 55508c2ecf20Sopenharmony_ci 55518c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_7 0x00006ae0 55528c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_7_VALUE (0xffL<<0) 55538c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_7_INT (0xffL<<16) 55548c2ecf20Sopenharmony_ci 55558c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_7 0x00006ae4 55568c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_7_VALUE (0xffL<<0) 55578c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_7_INT (0xffL<<16) 55588c2ecf20Sopenharmony_ci 55598c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_7 0x00006ae8 55608c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_7_VALUE (0x3ffL<<0) 55618c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_7_INT (0x3ffL<<16) 55628c2ecf20Sopenharmony_ci 55638c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_7 0x00006aec 55648c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_7_VALUE (0x3ffL<<0) 55658c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_7_INT (0x3ffL<<16) 55668c2ecf20Sopenharmony_ci 55678c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_7 0x00006af0 55688c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_7_VALUE (0x3ffL<<0) 55698c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_7_INT (0x3ffL<<16) 55708c2ecf20Sopenharmony_ci 55718c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_7 0x00006af4 55728c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_7_VALUE (0x3ffL<<0) 55738c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_7_INT (0x3ffL<<16) 55748c2ecf20Sopenharmony_ci 55758c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_7 0x00006af8 55768c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_7_HC_PERIODIC_TICKS (0xffffL<<0) 55778c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_7_HC_INT_PERIODIC_TICKS (0xffffL<<16) 55788c2ecf20Sopenharmony_ci 55798c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_8 0x00006afc 55808c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_8_RX_TMR_MODE (1L<<1) 55818c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_8_TX_TMR_MODE (1L<<2) 55828c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_8_COM_TMR_MODE (1L<<3) 55838c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_8_CMD_TMR_MODE (1L<<4) 55848c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_8_PER_MODE (1L<<16) 55858c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_8_ONE_SHOT (1L<<17) 55868c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_8_USE_INT_PARAM (1L<<18) 55878c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_8_PER_COLLECT_LIMIT (0xfL<<20) 55888c2ecf20Sopenharmony_ci 55898c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_8 0x00006b00 55908c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_8_VALUE (0xffL<<0) 55918c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_8_INT (0xffL<<16) 55928c2ecf20Sopenharmony_ci 55938c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_8 0x00006b04 55948c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_8_VALUE (0xffL<<0) 55958c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_8_INT (0xffL<<16) 55968c2ecf20Sopenharmony_ci 55978c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_8 0x00006b08 55988c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_8_VALUE (0xffL<<0) 55998c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_8_INT (0xffL<<16) 56008c2ecf20Sopenharmony_ci 56018c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_8 0x00006b0c 56028c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_8_VALUE (0x3ffL<<0) 56038c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_8_INT (0x3ffL<<16) 56048c2ecf20Sopenharmony_ci 56058c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_8 0x00006b10 56068c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_8_VALUE (0x3ffL<<0) 56078c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_8_INT (0x3ffL<<16) 56088c2ecf20Sopenharmony_ci 56098c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_8 0x00006b14 56108c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_8_VALUE (0x3ffL<<0) 56118c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_8_INT (0x3ffL<<16) 56128c2ecf20Sopenharmony_ci 56138c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_8 0x00006b18 56148c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_8_VALUE (0x3ffL<<0) 56158c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_8_INT (0x3ffL<<16) 56168c2ecf20Sopenharmony_ci 56178c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_8 0x00006b1c 56188c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_8_HC_PERIODIC_TICKS (0xffffL<<0) 56198c2ecf20Sopenharmony_ci#define BNX2_HC_PERIODIC_TICKS_8_HC_INT_PERIODIC_TICKS (0xffffL<<16) 56208c2ecf20Sopenharmony_ci 56218c2ecf20Sopenharmony_ci#define BNX2_HC_SB_CONFIG_SIZE (BNX2_HC_SB_CONFIG_2 - BNX2_HC_SB_CONFIG_1) 56228c2ecf20Sopenharmony_ci#define BNX2_HC_COMP_PROD_TRIP_OFF (BNX2_HC_COMP_PROD_TRIP_1 - \ 56238c2ecf20Sopenharmony_ci BNX2_HC_SB_CONFIG_1) 56248c2ecf20Sopenharmony_ci#define BNX2_HC_COM_TICKS_OFF (BNX2_HC_COM_TICKS_1 - BNX2_HC_SB_CONFIG_1) 56258c2ecf20Sopenharmony_ci#define BNX2_HC_CMD_TICKS_OFF (BNX2_HC_CMD_TICKS_1 - BNX2_HC_SB_CONFIG_1) 56268c2ecf20Sopenharmony_ci#define BNX2_HC_TX_QUICK_CONS_TRIP_OFF (BNX2_HC_TX_QUICK_CONS_TRIP_1 - \ 56278c2ecf20Sopenharmony_ci BNX2_HC_SB_CONFIG_1) 56288c2ecf20Sopenharmony_ci#define BNX2_HC_TX_TICKS_OFF (BNX2_HC_TX_TICKS_1 - BNX2_HC_SB_CONFIG_1) 56298c2ecf20Sopenharmony_ci#define BNX2_HC_RX_QUICK_CONS_TRIP_OFF (BNX2_HC_RX_QUICK_CONS_TRIP_1 - \ 56308c2ecf20Sopenharmony_ci BNX2_HC_SB_CONFIG_1) 56318c2ecf20Sopenharmony_ci#define BNX2_HC_RX_TICKS_OFF (BNX2_HC_RX_TICKS_1 - BNX2_HC_SB_CONFIG_1) 56328c2ecf20Sopenharmony_ci 56338c2ecf20Sopenharmony_ci 56348c2ecf20Sopenharmony_ci/* 56358c2ecf20Sopenharmony_ci * txp_reg definition 56368c2ecf20Sopenharmony_ci * offset: 0x40000 56378c2ecf20Sopenharmony_ci */ 56388c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_MODE 0x00045000 56398c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_MODE_LOCAL_RST (1L<<0) 56408c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_MODE_STEP_ENA (1L<<1) 56418c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_MODE_PAGE_0_DATA_ENA (1L<<2) 56428c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_MODE_PAGE_0_INST_ENA (1L<<3) 56438c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_MODE_MSG_BIT1 (1L<<6) 56448c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_MODE_INTERRUPT_ENA (1L<<7) 56458c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_MODE_SOFT_HALT (1L<<10) 56468c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_MODE_BAD_DATA_HALT_ENA (1L<<11) 56478c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_MODE_BAD_INST_HALT_ENA (1L<<12) 56488c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_MODE_FIO_ABORT_HALT_ENA (1L<<13) 56498c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_MODE_SPAD_UNDERFLOW_HALT_ENA (1L<<15) 56508c2ecf20Sopenharmony_ci 56518c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE 0x00045004 56528c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE_BREAKPOINT (1L<<0) 56538c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE_BAD_INST_HALTED (1L<<2) 56548c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE_PAGE_0_DATA_HALTED (1L<<3) 56558c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE_PAGE_0_INST_HALTED (1L<<4) 56568c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE_BAD_DATA_ADDR_HALTED (1L<<5) 56578c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE_BAD_PC_HALTED (1L<<6) 56588c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE_ALIGN_HALTED (1L<<7) 56598c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE_FIO_ABORT_HALTED (1L<<8) 56608c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE_SOFT_HALTED (1L<<10) 56618c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE_SPAD_UNDERFLOW (1L<<11) 56628c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE_INTERRUPT (1L<<12) 56638c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE_DATA_ACCESS_STALL (1L<<14) 56648c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE_INST_FETCH_STALL (1L<<15) 56658c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_STATE_BLOCKED_READ (1L<<31) 56668c2ecf20Sopenharmony_ci 56678c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_EVENT_MASK 0x00045008 56688c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_EVENT_MASK_BREAKPOINT_MASK (1L<<0) 56698c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_EVENT_MASK_BAD_INST_HALTED_MASK (1L<<2) 56708c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_EVENT_MASK_PAGE_0_DATA_HALTED_MASK (1L<<3) 56718c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_EVENT_MASK_PAGE_0_INST_HALTED_MASK (1L<<4) 56728c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_EVENT_MASK_BAD_DATA_ADDR_HALTED_MASK (1L<<5) 56738c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_EVENT_MASK_BAD_PC_HALTED_MASK (1L<<6) 56748c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_EVENT_MASK_ALIGN_HALTED_MASK (1L<<7) 56758c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_EVENT_MASK_FIO_ABORT_MASK (1L<<8) 56768c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_EVENT_MASK_SOFT_HALTED_MASK (1L<<10) 56778c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_EVENT_MASK_SPAD_UNDERFLOW_MASK (1L<<11) 56788c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_EVENT_MASK_INTERRUPT_MASK (1L<<12) 56798c2ecf20Sopenharmony_ci 56808c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_PROGRAM_COUNTER 0x0004501c 56818c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_INSTRUCTION 0x00045020 56828c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_DATA_ACCESS 0x00045024 56838c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_INTERRUPT_ENABLE 0x00045028 56848c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_INTERRUPT_VECTOR 0x0004502c 56858c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_INTERRUPT_SAVED_PC 0x00045030 56868c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_HW_BREAKPOINT 0x00045034 56878c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_HW_BREAKPOINT_DISABLE (1L<<0) 56888c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_HW_BREAKPOINT_ADDRESS (0x3fffffffL<<2) 56898c2ecf20Sopenharmony_ci 56908c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_DEBUG_VECT_PEEK 0x00045038 56918c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_DEBUG_VECT_PEEK_1_VALUE (0x7ffL<<0) 56928c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_DEBUG_VECT_PEEK_1_PEEK_EN (1L<<11) 56938c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_DEBUG_VECT_PEEK_1_SEL (0xfL<<12) 56948c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_DEBUG_VECT_PEEK_2_VALUE (0x7ffL<<16) 56958c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_DEBUG_VECT_PEEK_2_PEEK_EN (1L<<27) 56968c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_DEBUG_VECT_PEEK_2_SEL (0xfL<<28) 56978c2ecf20Sopenharmony_ci 56988c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_LAST_BRANCH_ADDR 0x00045048 56998c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_LAST_BRANCH_ADDR_TYPE (1L<<1) 57008c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_LAST_BRANCH_ADDR_TYPE_JUMP (0L<<1) 57018c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_LAST_BRANCH_ADDR_TYPE_BRANCH (1L<<1) 57028c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_LAST_BRANCH_ADDR_LBA (0x3fffffffL<<2) 57038c2ecf20Sopenharmony_ci 57048c2ecf20Sopenharmony_ci#define BNX2_TXP_CPU_REG_FILE 0x00045200 57058c2ecf20Sopenharmony_ci#define BNX2_TXP_TXPQ 0x000453c0 57068c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CMD 0x000453f8 57078c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CMD_OFFSET (0x3ffL<<0) 57088c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CMD_WR_TOP (1L<<10) 57098c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CMD_WR_TOP_0 (0L<<10) 57108c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CMD_WR_TOP_1 (1L<<10) 57118c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CMD_SFT_RESET (1L<<25) 57128c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CMD_RD_DATA (1L<<26) 57138c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CMD_ADD_INTERVEN (1L<<27) 57148c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CMD_ADD_DATA (1L<<28) 57158c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CMD_INTERVENE_CLR (1L<<29) 57168c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CMD_POP (1L<<30) 57178c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CMD_BUSY (1L<<31) 57188c2ecf20Sopenharmony_ci 57198c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CTL 0x000453fc 57208c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CTL_INTERVENE (1L<<0) 57218c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CTL_OVERFLOW (1L<<1) 57228c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CTL_FORCE_INTERVENE (1L<<2) 57238c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CTL_MAX_DEPTH (0x3ffL<<12) 57248c2ecf20Sopenharmony_ci#define BNX2_TXP_FTQ_CTL_CUR_DEPTH (0x3ffL<<22) 57258c2ecf20Sopenharmony_ci 57268c2ecf20Sopenharmony_ci#define BNX2_TXP_SCRATCH 0x00060000 57278c2ecf20Sopenharmony_ci 57288c2ecf20Sopenharmony_ci 57298c2ecf20Sopenharmony_ci/* 57308c2ecf20Sopenharmony_ci * tpat_reg definition 57318c2ecf20Sopenharmony_ci * offset: 0x80000 57328c2ecf20Sopenharmony_ci */ 57338c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_MODE 0x00085000 57348c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_MODE_LOCAL_RST (1L<<0) 57358c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_MODE_STEP_ENA (1L<<1) 57368c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_MODE_PAGE_0_DATA_ENA (1L<<2) 57378c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_MODE_PAGE_0_INST_ENA (1L<<3) 57388c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_MODE_MSG_BIT1 (1L<<6) 57398c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_MODE_INTERRUPT_ENA (1L<<7) 57408c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_MODE_SOFT_HALT (1L<<10) 57418c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_MODE_BAD_DATA_HALT_ENA (1L<<11) 57428c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_MODE_BAD_INST_HALT_ENA (1L<<12) 57438c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_MODE_FIO_ABORT_HALT_ENA (1L<<13) 57448c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_MODE_SPAD_UNDERFLOW_HALT_ENA (1L<<15) 57458c2ecf20Sopenharmony_ci 57468c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE 0x00085004 57478c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE_BREAKPOINT (1L<<0) 57488c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE_BAD_INST_HALTED (1L<<2) 57498c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE_PAGE_0_DATA_HALTED (1L<<3) 57508c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE_PAGE_0_INST_HALTED (1L<<4) 57518c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE_BAD_DATA_ADDR_HALTED (1L<<5) 57528c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE_BAD_PC_HALTED (1L<<6) 57538c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE_ALIGN_HALTED (1L<<7) 57548c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE_FIO_ABORT_HALTED (1L<<8) 57558c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE_SOFT_HALTED (1L<<10) 57568c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE_SPAD_UNDERFLOW (1L<<11) 57578c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE_INTERRUPT (1L<<12) 57588c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE_DATA_ACCESS_STALL (1L<<14) 57598c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE_INST_FETCH_STALL (1L<<15) 57608c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_STATE_BLOCKED_READ (1L<<31) 57618c2ecf20Sopenharmony_ci 57628c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_EVENT_MASK 0x00085008 57638c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_EVENT_MASK_BREAKPOINT_MASK (1L<<0) 57648c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_EVENT_MASK_BAD_INST_HALTED_MASK (1L<<2) 57658c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_EVENT_MASK_PAGE_0_DATA_HALTED_MASK (1L<<3) 57668c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_EVENT_MASK_PAGE_0_INST_HALTED_MASK (1L<<4) 57678c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_EVENT_MASK_BAD_DATA_ADDR_HALTED_MASK (1L<<5) 57688c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_EVENT_MASK_BAD_PC_HALTED_MASK (1L<<6) 57698c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_EVENT_MASK_ALIGN_HALTED_MASK (1L<<7) 57708c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_EVENT_MASK_FIO_ABORT_MASK (1L<<8) 57718c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_EVENT_MASK_SOFT_HALTED_MASK (1L<<10) 57728c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_EVENT_MASK_SPAD_UNDERFLOW_MASK (1L<<11) 57738c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_EVENT_MASK_INTERRUPT_MASK (1L<<12) 57748c2ecf20Sopenharmony_ci 57758c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_PROGRAM_COUNTER 0x0008501c 57768c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_INSTRUCTION 0x00085020 57778c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_DATA_ACCESS 0x00085024 57788c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_INTERRUPT_ENABLE 0x00085028 57798c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_INTERRUPT_VECTOR 0x0008502c 57808c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_INTERRUPT_SAVED_PC 0x00085030 57818c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_HW_BREAKPOINT 0x00085034 57828c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_HW_BREAKPOINT_DISABLE (1L<<0) 57838c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_HW_BREAKPOINT_ADDRESS (0x3fffffffL<<2) 57848c2ecf20Sopenharmony_ci 57858c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_DEBUG_VECT_PEEK 0x00085038 57868c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_DEBUG_VECT_PEEK_1_VALUE (0x7ffL<<0) 57878c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_DEBUG_VECT_PEEK_1_PEEK_EN (1L<<11) 57888c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_DEBUG_VECT_PEEK_1_SEL (0xfL<<12) 57898c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_DEBUG_VECT_PEEK_2_VALUE (0x7ffL<<16) 57908c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_DEBUG_VECT_PEEK_2_PEEK_EN (1L<<27) 57918c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_DEBUG_VECT_PEEK_2_SEL (0xfL<<28) 57928c2ecf20Sopenharmony_ci 57938c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_LAST_BRANCH_ADDR 0x00085048 57948c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_LAST_BRANCH_ADDR_TYPE (1L<<1) 57958c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_LAST_BRANCH_ADDR_TYPE_JUMP (0L<<1) 57968c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_LAST_BRANCH_ADDR_TYPE_BRANCH (1L<<1) 57978c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_LAST_BRANCH_ADDR_LBA (0x3fffffffL<<2) 57988c2ecf20Sopenharmony_ci 57998c2ecf20Sopenharmony_ci#define BNX2_TPAT_CPU_REG_FILE 0x00085200 58008c2ecf20Sopenharmony_ci#define BNX2_TPAT_TPATQ 0x000853c0 58018c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CMD 0x000853f8 58028c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CMD_OFFSET (0x3ffL<<0) 58038c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CMD_WR_TOP (1L<<10) 58048c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CMD_WR_TOP_0 (0L<<10) 58058c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CMD_WR_TOP_1 (1L<<10) 58068c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CMD_SFT_RESET (1L<<25) 58078c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CMD_RD_DATA (1L<<26) 58088c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CMD_ADD_INTERVEN (1L<<27) 58098c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CMD_ADD_DATA (1L<<28) 58108c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CMD_INTERVENE_CLR (1L<<29) 58118c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CMD_POP (1L<<30) 58128c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CMD_BUSY (1L<<31) 58138c2ecf20Sopenharmony_ci 58148c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CTL 0x000853fc 58158c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CTL_INTERVENE (1L<<0) 58168c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CTL_OVERFLOW (1L<<1) 58178c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CTL_FORCE_INTERVENE (1L<<2) 58188c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CTL_MAX_DEPTH (0x3ffL<<12) 58198c2ecf20Sopenharmony_ci#define BNX2_TPAT_FTQ_CTL_CUR_DEPTH (0x3ffL<<22) 58208c2ecf20Sopenharmony_ci 58218c2ecf20Sopenharmony_ci#define BNX2_TPAT_SCRATCH 0x000a0000 58228c2ecf20Sopenharmony_ci 58238c2ecf20Sopenharmony_ci 58248c2ecf20Sopenharmony_ci/* 58258c2ecf20Sopenharmony_ci * rxp_reg definition 58268c2ecf20Sopenharmony_ci * offset: 0xc0000 58278c2ecf20Sopenharmony_ci */ 58288c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_MODE 0x000c5000 58298c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_MODE_LOCAL_RST (1L<<0) 58308c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_MODE_STEP_ENA (1L<<1) 58318c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_MODE_PAGE_0_DATA_ENA (1L<<2) 58328c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_MODE_PAGE_0_INST_ENA (1L<<3) 58338c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_MODE_MSG_BIT1 (1L<<6) 58348c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_MODE_INTERRUPT_ENA (1L<<7) 58358c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_MODE_SOFT_HALT (1L<<10) 58368c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_MODE_BAD_DATA_HALT_ENA (1L<<11) 58378c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_MODE_BAD_INST_HALT_ENA (1L<<12) 58388c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_MODE_FIO_ABORT_HALT_ENA (1L<<13) 58398c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_MODE_SPAD_UNDERFLOW_HALT_ENA (1L<<15) 58408c2ecf20Sopenharmony_ci 58418c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE 0x000c5004 58428c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE_BREAKPOINT (1L<<0) 58438c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE_BAD_INST_HALTED (1L<<2) 58448c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE_PAGE_0_DATA_HALTED (1L<<3) 58458c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE_PAGE_0_INST_HALTED (1L<<4) 58468c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE_BAD_DATA_ADDR_HALTED (1L<<5) 58478c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE_BAD_PC_HALTED (1L<<6) 58488c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE_ALIGN_HALTED (1L<<7) 58498c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE_FIO_ABORT_HALTED (1L<<8) 58508c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE_SOFT_HALTED (1L<<10) 58518c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE_SPAD_UNDERFLOW (1L<<11) 58528c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE_INTERRUPT (1L<<12) 58538c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE_DATA_ACCESS_STALL (1L<<14) 58548c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE_INST_FETCH_STALL (1L<<15) 58558c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_STATE_BLOCKED_READ (1L<<31) 58568c2ecf20Sopenharmony_ci 58578c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_EVENT_MASK 0x000c5008 58588c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_EVENT_MASK_BREAKPOINT_MASK (1L<<0) 58598c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_EVENT_MASK_BAD_INST_HALTED_MASK (1L<<2) 58608c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_EVENT_MASK_PAGE_0_DATA_HALTED_MASK (1L<<3) 58618c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_EVENT_MASK_PAGE_0_INST_HALTED_MASK (1L<<4) 58628c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_EVENT_MASK_BAD_DATA_ADDR_HALTED_MASK (1L<<5) 58638c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_EVENT_MASK_BAD_PC_HALTED_MASK (1L<<6) 58648c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_EVENT_MASK_ALIGN_HALTED_MASK (1L<<7) 58658c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_EVENT_MASK_FIO_ABORT_MASK (1L<<8) 58668c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_EVENT_MASK_SOFT_HALTED_MASK (1L<<10) 58678c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_EVENT_MASK_SPAD_UNDERFLOW_MASK (1L<<11) 58688c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_EVENT_MASK_INTERRUPT_MASK (1L<<12) 58698c2ecf20Sopenharmony_ci 58708c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_PROGRAM_COUNTER 0x000c501c 58718c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_INSTRUCTION 0x000c5020 58728c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_DATA_ACCESS 0x000c5024 58738c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_INTERRUPT_ENABLE 0x000c5028 58748c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_INTERRUPT_VECTOR 0x000c502c 58758c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_INTERRUPT_SAVED_PC 0x000c5030 58768c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_HW_BREAKPOINT 0x000c5034 58778c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_HW_BREAKPOINT_DISABLE (1L<<0) 58788c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_HW_BREAKPOINT_ADDRESS (0x3fffffffL<<2) 58798c2ecf20Sopenharmony_ci 58808c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_DEBUG_VECT_PEEK 0x000c5038 58818c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_DEBUG_VECT_PEEK_1_VALUE (0x7ffL<<0) 58828c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_DEBUG_VECT_PEEK_1_PEEK_EN (1L<<11) 58838c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_DEBUG_VECT_PEEK_1_SEL (0xfL<<12) 58848c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_DEBUG_VECT_PEEK_2_VALUE (0x7ffL<<16) 58858c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_DEBUG_VECT_PEEK_2_PEEK_EN (1L<<27) 58868c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_DEBUG_VECT_PEEK_2_SEL (0xfL<<28) 58878c2ecf20Sopenharmony_ci 58888c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_LAST_BRANCH_ADDR 0x000c5048 58898c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_LAST_BRANCH_ADDR_TYPE (1L<<1) 58908c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_LAST_BRANCH_ADDR_TYPE_JUMP (0L<<1) 58918c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_LAST_BRANCH_ADDR_TYPE_BRANCH (1L<<1) 58928c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_LAST_BRANCH_ADDR_LBA (0x3fffffffL<<2) 58938c2ecf20Sopenharmony_ci 58948c2ecf20Sopenharmony_ci#define BNX2_RXP_CPU_REG_FILE 0x000c5200 58958c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL 0x000c537c 58968c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_INC_USAGE_CNT (1L<<0) 58978c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE (0xfL<<4) 58988c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_0 (0L<<4) 58998c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_1 (1L<<4) 59008c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_2 (2L<<4) 59018c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_3 (3L<<4) 59028c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_4 (4L<<4) 59038c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_5 (5L<<4) 59048c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_6 (6L<<4) 59058c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_7 (7L<<4) 59068c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_8 (8L<<4) 59078c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_9 (9L<<4) 59088c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_10 (10L<<4) 59098c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_11 (11L<<4) 59108c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_12 (12L<<4) 59118c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_13 (13L<<4) 59128c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_14 (14L<<4) 59138c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_SIZE_15 (15L<<4) 59148c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_PFE_COUNT (0xfL<<12) 59158c2ecf20Sopenharmony_ci#define BNX2_RXP_PFE_PFE_CTL_OFFSET (0x1ffL<<16) 59168c2ecf20Sopenharmony_ci 59178c2ecf20Sopenharmony_ci#define BNX2_RXP_RXPCQ 0x000c5380 59188c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CMD 0x000c53b8 59198c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CMD_OFFSET (0x3ffL<<0) 59208c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CMD_WR_TOP (1L<<10) 59218c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CMD_WR_TOP_0 (0L<<10) 59228c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CMD_WR_TOP_1 (1L<<10) 59238c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CMD_SFT_RESET (1L<<25) 59248c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CMD_RD_DATA (1L<<26) 59258c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CMD_ADD_INTERVEN (1L<<27) 59268c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CMD_ADD_DATA (1L<<28) 59278c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CMD_INTERVENE_CLR (1L<<29) 59288c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CMD_POP (1L<<30) 59298c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CMD_BUSY (1L<<31) 59308c2ecf20Sopenharmony_ci 59318c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CTL 0x000c53bc 59328c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CTL_INTERVENE (1L<<0) 59338c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CTL_OVERFLOW (1L<<1) 59348c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CTL_FORCE_INTERVENE (1L<<2) 59358c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CTL_MAX_DEPTH (0x3ffL<<12) 59368c2ecf20Sopenharmony_ci#define BNX2_RXP_CFTQ_CTL_CUR_DEPTH (0x3ffL<<22) 59378c2ecf20Sopenharmony_ci 59388c2ecf20Sopenharmony_ci#define BNX2_RXP_RXPQ 0x000c53c0 59398c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CMD 0x000c53f8 59408c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CMD_OFFSET (0x3ffL<<0) 59418c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CMD_WR_TOP (1L<<10) 59428c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CMD_WR_TOP_0 (0L<<10) 59438c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CMD_WR_TOP_1 (1L<<10) 59448c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CMD_SFT_RESET (1L<<25) 59458c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CMD_RD_DATA (1L<<26) 59468c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CMD_ADD_INTERVEN (1L<<27) 59478c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CMD_ADD_DATA (1L<<28) 59488c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CMD_INTERVENE_CLR (1L<<29) 59498c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CMD_POP (1L<<30) 59508c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CMD_BUSY (1L<<31) 59518c2ecf20Sopenharmony_ci 59528c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CTL 0x000c53fc 59538c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CTL_INTERVENE (1L<<0) 59548c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CTL_OVERFLOW (1L<<1) 59558c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CTL_FORCE_INTERVENE (1L<<2) 59568c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CTL_MAX_DEPTH (0x3ffL<<12) 59578c2ecf20Sopenharmony_ci#define BNX2_RXP_FTQ_CTL_CUR_DEPTH (0x3ffL<<22) 59588c2ecf20Sopenharmony_ci 59598c2ecf20Sopenharmony_ci#define BNX2_RXP_SCRATCH 0x000e0000 59608c2ecf20Sopenharmony_ci#define BNX2_RXP_SCRATCH_RXP_FLOOD 0x000e0024 59618c2ecf20Sopenharmony_ci#define BNX2_RXP_SCRATCH_RSS_TBL_SZ 0x000e0038 59628c2ecf20Sopenharmony_ci#define BNX2_RXP_SCRATCH_RSS_TBL 0x000e003c 59638c2ecf20Sopenharmony_ci#define BNX2_RXP_SCRATCH_RSS_TBL_MAX_ENTRIES 128 59648c2ecf20Sopenharmony_ci 59658c2ecf20Sopenharmony_ci 59668c2ecf20Sopenharmony_ci/* 59678c2ecf20Sopenharmony_ci * com_reg definition 59688c2ecf20Sopenharmony_ci * offset: 0x100000 59698c2ecf20Sopenharmony_ci */ 59708c2ecf20Sopenharmony_ci#define BNX2_COM_CKSUM_ERROR_STATUS 0x00100000 59718c2ecf20Sopenharmony_ci#define BNX2_COM_CKSUM_ERROR_STATUS_CALCULATED (0xffffL<<0) 59728c2ecf20Sopenharmony_ci#define BNX2_COM_CKSUM_ERROR_STATUS_EXPECTED (0xffffL<<16) 59738c2ecf20Sopenharmony_ci 59748c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_MODE 0x00105000 59758c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_MODE_LOCAL_RST (1L<<0) 59768c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_MODE_STEP_ENA (1L<<1) 59778c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_MODE_PAGE_0_DATA_ENA (1L<<2) 59788c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_MODE_PAGE_0_INST_ENA (1L<<3) 59798c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_MODE_MSG_BIT1 (1L<<6) 59808c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_MODE_INTERRUPT_ENA (1L<<7) 59818c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_MODE_SOFT_HALT (1L<<10) 59828c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_MODE_BAD_DATA_HALT_ENA (1L<<11) 59838c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_MODE_BAD_INST_HALT_ENA (1L<<12) 59848c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_MODE_FIO_ABORT_HALT_ENA (1L<<13) 59858c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_MODE_SPAD_UNDERFLOW_HALT_ENA (1L<<15) 59868c2ecf20Sopenharmony_ci 59878c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE 0x00105004 59888c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE_BREAKPOINT (1L<<0) 59898c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE_BAD_INST_HALTED (1L<<2) 59908c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE_PAGE_0_DATA_HALTED (1L<<3) 59918c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE_PAGE_0_INST_HALTED (1L<<4) 59928c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE_BAD_DATA_ADDR_HALTED (1L<<5) 59938c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE_BAD_PC_HALTED (1L<<6) 59948c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE_ALIGN_HALTED (1L<<7) 59958c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE_FIO_ABORT_HALTED (1L<<8) 59968c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE_SOFT_HALTED (1L<<10) 59978c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE_SPAD_UNDERFLOW (1L<<11) 59988c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE_INTERRUPT (1L<<12) 59998c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE_DATA_ACCESS_STALL (1L<<14) 60008c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE_INST_FETCH_STALL (1L<<15) 60018c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_STATE_BLOCKED_READ (1L<<31) 60028c2ecf20Sopenharmony_ci 60038c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_EVENT_MASK 0x00105008 60048c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_EVENT_MASK_BREAKPOINT_MASK (1L<<0) 60058c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_EVENT_MASK_BAD_INST_HALTED_MASK (1L<<2) 60068c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_EVENT_MASK_PAGE_0_DATA_HALTED_MASK (1L<<3) 60078c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_EVENT_MASK_PAGE_0_INST_HALTED_MASK (1L<<4) 60088c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_EVENT_MASK_BAD_DATA_ADDR_HALTED_MASK (1L<<5) 60098c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_EVENT_MASK_BAD_PC_HALTED_MASK (1L<<6) 60108c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_EVENT_MASK_ALIGN_HALTED_MASK (1L<<7) 60118c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_EVENT_MASK_FIO_ABORT_MASK (1L<<8) 60128c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_EVENT_MASK_SOFT_HALTED_MASK (1L<<10) 60138c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_EVENT_MASK_SPAD_UNDERFLOW_MASK (1L<<11) 60148c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_EVENT_MASK_INTERRUPT_MASK (1L<<12) 60158c2ecf20Sopenharmony_ci 60168c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_PROGRAM_COUNTER 0x0010501c 60178c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_INSTRUCTION 0x00105020 60188c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_DATA_ACCESS 0x00105024 60198c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_INTERRUPT_ENABLE 0x00105028 60208c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_INTERRUPT_VECTOR 0x0010502c 60218c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_INTERRUPT_SAVED_PC 0x00105030 60228c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_HW_BREAKPOINT 0x00105034 60238c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_HW_BREAKPOINT_DISABLE (1L<<0) 60248c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_HW_BREAKPOINT_ADDRESS (0x3fffffffL<<2) 60258c2ecf20Sopenharmony_ci 60268c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_DEBUG_VECT_PEEK 0x00105038 60278c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_DEBUG_VECT_PEEK_1_VALUE (0x7ffL<<0) 60288c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_DEBUG_VECT_PEEK_1_PEEK_EN (1L<<11) 60298c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_DEBUG_VECT_PEEK_1_SEL (0xfL<<12) 60308c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_DEBUG_VECT_PEEK_2_VALUE (0x7ffL<<16) 60318c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_DEBUG_VECT_PEEK_2_PEEK_EN (1L<<27) 60328c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_DEBUG_VECT_PEEK_2_SEL (0xfL<<28) 60338c2ecf20Sopenharmony_ci 60348c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_LAST_BRANCH_ADDR 0x00105048 60358c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_LAST_BRANCH_ADDR_TYPE (1L<<1) 60368c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_LAST_BRANCH_ADDR_TYPE_JUMP (0L<<1) 60378c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_LAST_BRANCH_ADDR_TYPE_BRANCH (1L<<1) 60388c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_LAST_BRANCH_ADDR_LBA (0x3fffffffL<<2) 60398c2ecf20Sopenharmony_ci 60408c2ecf20Sopenharmony_ci#define BNX2_COM_CPU_REG_FILE 0x00105200 60418c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL 0x001052bc 60428c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_INC_USAGE_CNT (1L<<0) 60438c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE (0xfL<<4) 60448c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_0 (0L<<4) 60458c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_1 (1L<<4) 60468c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_2 (2L<<4) 60478c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_3 (3L<<4) 60488c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_4 (4L<<4) 60498c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_5 (5L<<4) 60508c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_6 (6L<<4) 60518c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_7 (7L<<4) 60528c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_8 (8L<<4) 60538c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_9 (9L<<4) 60548c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_10 (10L<<4) 60558c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_11 (11L<<4) 60568c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_12 (12L<<4) 60578c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_13 (13L<<4) 60588c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_14 (14L<<4) 60598c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_SIZE_15 (15L<<4) 60608c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_PFE_COUNT (0xfL<<12) 60618c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_PFE_PFE_CTL_OFFSET (0x1ffL<<16) 60628c2ecf20Sopenharmony_ci 60638c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ 0x00105340 60648c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CMD 0x00105378 60658c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CMD_OFFSET (0x3ffL<<0) 60668c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CMD_WR_TOP (1L<<10) 60678c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CMD_WR_TOP_0 (0L<<10) 60688c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CMD_WR_TOP_1 (1L<<10) 60698c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CMD_SFT_RESET (1L<<25) 60708c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CMD_RD_DATA (1L<<26) 60718c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CMD_ADD_INTERVEN (1L<<27) 60728c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CMD_ADD_DATA (1L<<28) 60738c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CMD_INTERVENE_CLR (1L<<29) 60748c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CMD_POP (1L<<30) 60758c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CMD_BUSY (1L<<31) 60768c2ecf20Sopenharmony_ci 60778c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CTL 0x0010537c 60788c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CTL_INTERVENE (1L<<0) 60798c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CTL_OVERFLOW (1L<<1) 60808c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CTL_FORCE_INTERVENE (1L<<2) 60818c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CTL_MAX_DEPTH (0x3ffL<<12) 60828c2ecf20Sopenharmony_ci#define BNX2_COM_COMXQ_FTQ_CTL_CUR_DEPTH (0x3ffL<<22) 60838c2ecf20Sopenharmony_ci 60848c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ 0x00105380 60858c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CMD 0x001053b8 60868c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CMD_OFFSET (0x3ffL<<0) 60878c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CMD_WR_TOP (1L<<10) 60888c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CMD_WR_TOP_0 (0L<<10) 60898c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CMD_WR_TOP_1 (1L<<10) 60908c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CMD_SFT_RESET (1L<<25) 60918c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CMD_RD_DATA (1L<<26) 60928c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CMD_ADD_INTERVEN (1L<<27) 60938c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CMD_ADD_DATA (1L<<28) 60948c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CMD_INTERVENE_CLR (1L<<29) 60958c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CMD_POP (1L<<30) 60968c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CMD_BUSY (1L<<31) 60978c2ecf20Sopenharmony_ci 60988c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CTL 0x001053bc 60998c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CTL_INTERVENE (1L<<0) 61008c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CTL_OVERFLOW (1L<<1) 61018c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CTL_FORCE_INTERVENE (1L<<2) 61028c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CTL_MAX_DEPTH (0x3ffL<<12) 61038c2ecf20Sopenharmony_ci#define BNX2_COM_COMTQ_FTQ_CTL_CUR_DEPTH (0x3ffL<<22) 61048c2ecf20Sopenharmony_ci 61058c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ 0x001053c0 61068c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CMD 0x001053f8 61078c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CMD_OFFSET (0x3ffL<<0) 61088c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CMD_WR_TOP (1L<<10) 61098c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CMD_WR_TOP_0 (0L<<10) 61108c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CMD_WR_TOP_1 (1L<<10) 61118c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CMD_SFT_RESET (1L<<25) 61128c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CMD_RD_DATA (1L<<26) 61138c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CMD_ADD_INTERVEN (1L<<27) 61148c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CMD_ADD_DATA (1L<<28) 61158c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CMD_INTERVENE_CLR (1L<<29) 61168c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CMD_POP (1L<<30) 61178c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CMD_BUSY (1L<<31) 61188c2ecf20Sopenharmony_ci 61198c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CTL 0x001053fc 61208c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CTL_INTERVENE (1L<<0) 61218c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CTL_OVERFLOW (1L<<1) 61228c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CTL_FORCE_INTERVENE (1L<<2) 61238c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CTL_MAX_DEPTH (0x3ffL<<12) 61248c2ecf20Sopenharmony_ci#define BNX2_COM_COMQ_FTQ_CTL_CUR_DEPTH (0x3ffL<<22) 61258c2ecf20Sopenharmony_ci 61268c2ecf20Sopenharmony_ci#define BNX2_COM_SCRATCH 0x00120000 61278c2ecf20Sopenharmony_ci 61288c2ecf20Sopenharmony_ci#define BNX2_FW_RX_LOW_LATENCY 0x00120058 61298c2ecf20Sopenharmony_ci#define BNX2_FW_RX_DROP_COUNT 0x00120084 61308c2ecf20Sopenharmony_ci 61318c2ecf20Sopenharmony_ci 61328c2ecf20Sopenharmony_ci/* 61338c2ecf20Sopenharmony_ci * cp_reg definition 61348c2ecf20Sopenharmony_ci * offset: 0x180000 61358c2ecf20Sopenharmony_ci */ 61368c2ecf20Sopenharmony_ci#define BNX2_CP_CKSUM_ERROR_STATUS 0x00180000 61378c2ecf20Sopenharmony_ci#define BNX2_CP_CKSUM_ERROR_STATUS_CALCULATED (0xffffL<<0) 61388c2ecf20Sopenharmony_ci#define BNX2_CP_CKSUM_ERROR_STATUS_EXPECTED (0xffffL<<16) 61398c2ecf20Sopenharmony_ci 61408c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_MODE 0x00185000 61418c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_MODE_LOCAL_RST (1L<<0) 61428c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_MODE_STEP_ENA (1L<<1) 61438c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_MODE_PAGE_0_DATA_ENA (1L<<2) 61448c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_MODE_PAGE_0_INST_ENA (1L<<3) 61458c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_MODE_MSG_BIT1 (1L<<6) 61468c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_MODE_INTERRUPT_ENA (1L<<7) 61478c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_MODE_SOFT_HALT (1L<<10) 61488c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_MODE_BAD_DATA_HALT_ENA (1L<<11) 61498c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_MODE_BAD_INST_HALT_ENA (1L<<12) 61508c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_MODE_FIO_ABORT_HALT_ENA (1L<<13) 61518c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_MODE_SPAD_UNDERFLOW_HALT_ENA (1L<<15) 61528c2ecf20Sopenharmony_ci 61538c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE 0x00185004 61548c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE_BREAKPOINT (1L<<0) 61558c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE_BAD_INST_HALTED (1L<<2) 61568c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE_PAGE_0_DATA_HALTED (1L<<3) 61578c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE_PAGE_0_INST_HALTED (1L<<4) 61588c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE_BAD_DATA_ADDR_HALTED (1L<<5) 61598c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE_BAD_PC_HALTED (1L<<6) 61608c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE_ALIGN_HALTED (1L<<7) 61618c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE_FIO_ABORT_HALTED (1L<<8) 61628c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE_SOFT_HALTED (1L<<10) 61638c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE_SPAD_UNDERFLOW (1L<<11) 61648c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE_INTERRUPT (1L<<12) 61658c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE_DATA_ACCESS_STALL (1L<<14) 61668c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE_INST_FETCH_STALL (1L<<15) 61678c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_STATE_BLOCKED_READ (1L<<31) 61688c2ecf20Sopenharmony_ci 61698c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_EVENT_MASK 0x00185008 61708c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_EVENT_MASK_BREAKPOINT_MASK (1L<<0) 61718c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_EVENT_MASK_BAD_INST_HALTED_MASK (1L<<2) 61728c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_EVENT_MASK_PAGE_0_DATA_HALTED_MASK (1L<<3) 61738c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_EVENT_MASK_PAGE_0_INST_HALTED_MASK (1L<<4) 61748c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_EVENT_MASK_BAD_DATA_ADDR_HALTED_MASK (1L<<5) 61758c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_EVENT_MASK_BAD_PC_HALTED_MASK (1L<<6) 61768c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_EVENT_MASK_ALIGN_HALTED_MASK (1L<<7) 61778c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_EVENT_MASK_FIO_ABORT_MASK (1L<<8) 61788c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_EVENT_MASK_SOFT_HALTED_MASK (1L<<10) 61798c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_EVENT_MASK_SPAD_UNDERFLOW_MASK (1L<<11) 61808c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_EVENT_MASK_INTERRUPT_MASK (1L<<12) 61818c2ecf20Sopenharmony_ci 61828c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_PROGRAM_COUNTER 0x0018501c 61838c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_INSTRUCTION 0x00185020 61848c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_DATA_ACCESS 0x00185024 61858c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_INTERRUPT_ENABLE 0x00185028 61868c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_INTERRUPT_VECTOR 0x0018502c 61878c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_INTERRUPT_SAVED_PC 0x00185030 61888c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_HW_BREAKPOINT 0x00185034 61898c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_HW_BREAKPOINT_DISABLE (1L<<0) 61908c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_HW_BREAKPOINT_ADDRESS (0x3fffffffL<<2) 61918c2ecf20Sopenharmony_ci 61928c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_DEBUG_VECT_PEEK 0x00185038 61938c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_DEBUG_VECT_PEEK_1_VALUE (0x7ffL<<0) 61948c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_DEBUG_VECT_PEEK_1_PEEK_EN (1L<<11) 61958c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_DEBUG_VECT_PEEK_1_SEL (0xfL<<12) 61968c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_DEBUG_VECT_PEEK_2_VALUE (0x7ffL<<16) 61978c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_DEBUG_VECT_PEEK_2_PEEK_EN (1L<<27) 61988c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_DEBUG_VECT_PEEK_2_SEL (0xfL<<28) 61998c2ecf20Sopenharmony_ci 62008c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_LAST_BRANCH_ADDR 0x00185048 62018c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_LAST_BRANCH_ADDR_TYPE (1L<<1) 62028c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_LAST_BRANCH_ADDR_TYPE_JUMP (0L<<1) 62038c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_LAST_BRANCH_ADDR_TYPE_BRANCH (1L<<1) 62048c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_LAST_BRANCH_ADDR_LBA (0x3fffffffL<<2) 62058c2ecf20Sopenharmony_ci 62068c2ecf20Sopenharmony_ci#define BNX2_CP_CPU_REG_FILE 0x00185200 62078c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL 0x001853bc 62088c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_INC_USAGE_CNT (1L<<0) 62098c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE (0xfL<<4) 62108c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_0 (0L<<4) 62118c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_1 (1L<<4) 62128c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_2 (2L<<4) 62138c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_3 (3L<<4) 62148c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_4 (4L<<4) 62158c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_5 (5L<<4) 62168c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_6 (6L<<4) 62178c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_7 (7L<<4) 62188c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_8 (8L<<4) 62198c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_9 (9L<<4) 62208c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_10 (10L<<4) 62218c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_11 (11L<<4) 62228c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_12 (12L<<4) 62238c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_13 (13L<<4) 62248c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_14 (14L<<4) 62258c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_SIZE_15 (15L<<4) 62268c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_PFE_COUNT (0xfL<<12) 62278c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_PFE_PFE_CTL_OFFSET (0x1ffL<<16) 62288c2ecf20Sopenharmony_ci 62298c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ 0x001853c0 62308c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CMD 0x001853f8 62318c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CMD_OFFSET (0x3ffL<<0) 62328c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CMD_WR_TOP (1L<<10) 62338c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CMD_WR_TOP_0 (0L<<10) 62348c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CMD_WR_TOP_1 (1L<<10) 62358c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CMD_SFT_RESET (1L<<25) 62368c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CMD_RD_DATA (1L<<26) 62378c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CMD_ADD_INTERVEN (1L<<27) 62388c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CMD_ADD_DATA (1L<<28) 62398c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CMD_INTERVENE_CLR (1L<<29) 62408c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CMD_POP (1L<<30) 62418c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CMD_BUSY (1L<<31) 62428c2ecf20Sopenharmony_ci 62438c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CTL 0x001853fc 62448c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CTL_INTERVENE (1L<<0) 62458c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CTL_OVERFLOW (1L<<1) 62468c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CTL_FORCE_INTERVENE (1L<<2) 62478c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CTL_MAX_DEPTH (0x3ffL<<12) 62488c2ecf20Sopenharmony_ci#define BNX2_CP_CPQ_FTQ_CTL_CUR_DEPTH (0x3ffL<<22) 62498c2ecf20Sopenharmony_ci 62508c2ecf20Sopenharmony_ci#define BNX2_CP_SCRATCH 0x001a0000 62518c2ecf20Sopenharmony_ci 62528c2ecf20Sopenharmony_ci#define BNX2_FW_MAX_ISCSI_CONN 0x001a0080 62538c2ecf20Sopenharmony_ci 62548c2ecf20Sopenharmony_ci 62558c2ecf20Sopenharmony_ci/* 62568c2ecf20Sopenharmony_ci * mcp_reg definition 62578c2ecf20Sopenharmony_ci * offset: 0x140000 62588c2ecf20Sopenharmony_ci */ 62598c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_CONTROL 0x00140080 62608c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_CONTROL_SMBUS_SEL (1L<<30) 62618c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_CONTROL_MCP_ISOLATE (1L<<31) 62628c2ecf20Sopenharmony_ci 62638c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_ATTENTION_STATUS 0x00140084 62648c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_ATTENTION_STATUS_DRV_DOORBELL (1L<<29) 62658c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_ATTENTION_STATUS_WATCHDOG_TIMEOUT (1L<<30) 62668c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_ATTENTION_STATUS_CPU_EVENT (1L<<31) 62678c2ecf20Sopenharmony_ci 62688c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_HEARTBEAT_CONTROL 0x00140088 62698c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_HEARTBEAT_CONTROL_MCP_HEARTBEAT_ENABLE (1L<<31) 62708c2ecf20Sopenharmony_ci 62718c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_HEARTBEAT_STATUS 0x0014008c 62728c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_HEARTBEAT_STATUS_MCP_HEARTBEAT_PERIOD (0x7ffL<<0) 62738c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_HEARTBEAT_STATUS_VALID (1L<<31) 62748c2ecf20Sopenharmony_ci 62758c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_HEARTBEAT 0x00140090 62768c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_HEARTBEAT_MCP_HEARTBEAT_COUNT (0x3fffffffL<<0) 62778c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_HEARTBEAT_MCP_HEARTBEAT_INC (1L<<30) 62788c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_HEARTBEAT_MCP_HEARTBEAT_RESET (1L<<31) 62798c2ecf20Sopenharmony_ci 62808c2ecf20Sopenharmony_ci#define BNX2_MCP_WATCHDOG_RESET 0x00140094 62818c2ecf20Sopenharmony_ci#define BNX2_MCP_WATCHDOG_RESET_WATCHDOG_RESET (1L<<31) 62828c2ecf20Sopenharmony_ci 62838c2ecf20Sopenharmony_ci#define BNX2_MCP_WATCHDOG_CONTROL 0x00140098 62848c2ecf20Sopenharmony_ci#define BNX2_MCP_WATCHDOG_CONTROL_WATCHDOG_TIMEOUT (0xfffffffL<<0) 62858c2ecf20Sopenharmony_ci#define BNX2_MCP_WATCHDOG_CONTROL_WATCHDOG_ATTN (1L<<29) 62868c2ecf20Sopenharmony_ci#define BNX2_MCP_WATCHDOG_CONTROL_MCP_RST_ENABLE (1L<<30) 62878c2ecf20Sopenharmony_ci#define BNX2_MCP_WATCHDOG_CONTROL_WATCHDOG_ENABLE (1L<<31) 62888c2ecf20Sopenharmony_ci 62898c2ecf20Sopenharmony_ci#define BNX2_MCP_ACCESS_LOCK 0x0014009c 62908c2ecf20Sopenharmony_ci#define BNX2_MCP_ACCESS_LOCK_LOCK (1L<<31) 62918c2ecf20Sopenharmony_ci 62928c2ecf20Sopenharmony_ci#define BNX2_MCP_TOE_ID 0x001400a0 62938c2ecf20Sopenharmony_ci#define BNX2_MCP_TOE_ID_FUNCTION_ID (1L<<31) 62948c2ecf20Sopenharmony_ci 62958c2ecf20Sopenharmony_ci#define BNX2_MCP_MAILBOX_CFG 0x001400a4 62968c2ecf20Sopenharmony_ci#define BNX2_MCP_MAILBOX_CFG_MAILBOX_OFFSET (0x3fffL<<0) 62978c2ecf20Sopenharmony_ci#define BNX2_MCP_MAILBOX_CFG_MAILBOX_SIZE (0xfffL<<20) 62988c2ecf20Sopenharmony_ci 62998c2ecf20Sopenharmony_ci#define BNX2_MCP_MAILBOX_CFG_OTHER_FUNC 0x001400a8 63008c2ecf20Sopenharmony_ci#define BNX2_MCP_MAILBOX_CFG_OTHER_FUNC_MAILBOX_OFFSET (0x3fffL<<0) 63018c2ecf20Sopenharmony_ci#define BNX2_MCP_MAILBOX_CFG_OTHER_FUNC_MAILBOX_SIZE (0xfffL<<20) 63028c2ecf20Sopenharmony_ci 63038c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_DOORBELL 0x001400ac 63048c2ecf20Sopenharmony_ci#define BNX2_MCP_MCP_DOORBELL_MCP_DOORBELL (1L<<31) 63058c2ecf20Sopenharmony_ci 63068c2ecf20Sopenharmony_ci#define BNX2_MCP_DRIVER_DOORBELL 0x001400b0 63078c2ecf20Sopenharmony_ci#define BNX2_MCP_DRIVER_DOORBELL_DRIVER_DOORBELL (1L<<31) 63088c2ecf20Sopenharmony_ci 63098c2ecf20Sopenharmony_ci#define BNX2_MCP_DRIVER_DOORBELL_OTHER_FUNC 0x001400b4 63108c2ecf20Sopenharmony_ci#define BNX2_MCP_DRIVER_DOORBELL_OTHER_FUNC_DRIVER_DOORBELL (1L<<31) 63118c2ecf20Sopenharmony_ci 63128c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_MODE 0x00145000 63138c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_MODE_LOCAL_RST (1L<<0) 63148c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_MODE_STEP_ENA (1L<<1) 63158c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_MODE_PAGE_0_DATA_ENA (1L<<2) 63168c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_MODE_PAGE_0_INST_ENA (1L<<3) 63178c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_MODE_MSG_BIT1 (1L<<6) 63188c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_MODE_INTERRUPT_ENA (1L<<7) 63198c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_MODE_SOFT_HALT (1L<<10) 63208c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_MODE_BAD_DATA_HALT_ENA (1L<<11) 63218c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_MODE_BAD_INST_HALT_ENA (1L<<12) 63228c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_MODE_FIO_ABORT_HALT_ENA (1L<<13) 63238c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_MODE_SPAD_UNDERFLOW_HALT_ENA (1L<<15) 63248c2ecf20Sopenharmony_ci 63258c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE 0x00145004 63268c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE_BREAKPOINT (1L<<0) 63278c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE_BAD_INST_HALTED (1L<<2) 63288c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE_PAGE_0_DATA_HALTED (1L<<3) 63298c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE_PAGE_0_INST_HALTED (1L<<4) 63308c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE_BAD_DATA_ADDR_HALTED (1L<<5) 63318c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE_BAD_PC_HALTED (1L<<6) 63328c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE_ALIGN_HALTED (1L<<7) 63338c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE_FIO_ABORT_HALTED (1L<<8) 63348c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE_SOFT_HALTED (1L<<10) 63358c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE_SPAD_UNDERFLOW (1L<<11) 63368c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE_INTERRUPT (1L<<12) 63378c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE_DATA_ACCESS_STALL (1L<<14) 63388c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE_INST_FETCH_STALL (1L<<15) 63398c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_STATE_BLOCKED_READ (1L<<31) 63408c2ecf20Sopenharmony_ci 63418c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_EVENT_MASK 0x00145008 63428c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_EVENT_MASK_BREAKPOINT_MASK (1L<<0) 63438c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_EVENT_MASK_BAD_INST_HALTED_MASK (1L<<2) 63448c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_EVENT_MASK_PAGE_0_DATA_HALTED_MASK (1L<<3) 63458c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_EVENT_MASK_PAGE_0_INST_HALTED_MASK (1L<<4) 63468c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_EVENT_MASK_BAD_DATA_ADDR_HALTED_MASK (1L<<5) 63478c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_EVENT_MASK_BAD_PC_HALTED_MASK (1L<<6) 63488c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_EVENT_MASK_ALIGN_HALTED_MASK (1L<<7) 63498c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_EVENT_MASK_FIO_ABORT_MASK (1L<<8) 63508c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_EVENT_MASK_SOFT_HALTED_MASK (1L<<10) 63518c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_EVENT_MASK_SPAD_UNDERFLOW_MASK (1L<<11) 63528c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_EVENT_MASK_INTERRUPT_MASK (1L<<12) 63538c2ecf20Sopenharmony_ci 63548c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_PROGRAM_COUNTER 0x0014501c 63558c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_INSTRUCTION 0x00145020 63568c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_DATA_ACCESS 0x00145024 63578c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_INTERRUPT_ENABLE 0x00145028 63588c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_INTERRUPT_VECTOR 0x0014502c 63598c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_INTERRUPT_SAVED_PC 0x00145030 63608c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_HW_BREAKPOINT 0x00145034 63618c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_HW_BREAKPOINT_DISABLE (1L<<0) 63628c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_HW_BREAKPOINT_ADDRESS (0x3fffffffL<<2) 63638c2ecf20Sopenharmony_ci 63648c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_DEBUG_VECT_PEEK 0x00145038 63658c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_DEBUG_VECT_PEEK_1_VALUE (0x7ffL<<0) 63668c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_DEBUG_VECT_PEEK_1_PEEK_EN (1L<<11) 63678c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_DEBUG_VECT_PEEK_1_SEL (0xfL<<12) 63688c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_DEBUG_VECT_PEEK_2_VALUE (0x7ffL<<16) 63698c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_DEBUG_VECT_PEEK_2_PEEK_EN (1L<<27) 63708c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_DEBUG_VECT_PEEK_2_SEL (0xfL<<28) 63718c2ecf20Sopenharmony_ci 63728c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_LAST_BRANCH_ADDR 0x00145048 63738c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_LAST_BRANCH_ADDR_TYPE (1L<<1) 63748c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_LAST_BRANCH_ADDR_TYPE_JUMP (0L<<1) 63758c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_LAST_BRANCH_ADDR_TYPE_BRANCH (1L<<1) 63768c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_LAST_BRANCH_ADDR_LBA (0x3fffffffL<<2) 63778c2ecf20Sopenharmony_ci 63788c2ecf20Sopenharmony_ci#define BNX2_MCP_CPU_REG_FILE 0x00145200 63798c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ 0x001453c0 63808c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CMD 0x001453f8 63818c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CMD_OFFSET (0x3ffL<<0) 63828c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CMD_WR_TOP (1L<<10) 63838c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CMD_WR_TOP_0 (0L<<10) 63848c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CMD_WR_TOP_1 (1L<<10) 63858c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CMD_SFT_RESET (1L<<25) 63868c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CMD_RD_DATA (1L<<26) 63878c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CMD_ADD_INTERVEN (1L<<27) 63888c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CMD_ADD_DATA (1L<<28) 63898c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CMD_INTERVENE_CLR (1L<<29) 63908c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CMD_POP (1L<<30) 63918c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CMD_BUSY (1L<<31) 63928c2ecf20Sopenharmony_ci 63938c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CTL 0x001453fc 63948c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CTL_INTERVENE (1L<<0) 63958c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CTL_OVERFLOW (1L<<1) 63968c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CTL_FORCE_INTERVENE (1L<<2) 63978c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CTL_MAX_DEPTH (0x3ffL<<12) 63988c2ecf20Sopenharmony_ci#define BNX2_MCP_MCPQ_FTQ_CTL_CUR_DEPTH (0x3ffL<<22) 63998c2ecf20Sopenharmony_ci 64008c2ecf20Sopenharmony_ci#define BNX2_MCP_ROM 0x00150000 64018c2ecf20Sopenharmony_ci#define BNX2_MCP_SCRATCH 0x00160000 64028c2ecf20Sopenharmony_ci#define BNX2_MCP_STATE_P1 0x0016f9c8 64038c2ecf20Sopenharmony_ci#define BNX2_MCP_STATE_P0 0x0016fdc8 64048c2ecf20Sopenharmony_ci#define BNX2_MCP_STATE_P1_5708 0x001699c8 64058c2ecf20Sopenharmony_ci#define BNX2_MCP_STATE_P0_5708 0x00169dc8 64068c2ecf20Sopenharmony_ci 64078c2ecf20Sopenharmony_ci#define BNX2_SHM_HDR_SIGNATURE BNX2_MCP_SCRATCH 64088c2ecf20Sopenharmony_ci#define BNX2_SHM_HDR_SIGNATURE_SIG_MASK 0xffff0000 64098c2ecf20Sopenharmony_ci#define BNX2_SHM_HDR_SIGNATURE_SIG 0x53530000 64108c2ecf20Sopenharmony_ci#define BNX2_SHM_HDR_SIGNATURE_VER_MASK 0x000000ff 64118c2ecf20Sopenharmony_ci#define BNX2_SHM_HDR_SIGNATURE_VER_ONE 0x00000001 64128c2ecf20Sopenharmony_ci 64138c2ecf20Sopenharmony_ci#define BNX2_SHM_HDR_ADDR_0 BNX2_MCP_SCRATCH + 4 64148c2ecf20Sopenharmony_ci#define BNX2_SHM_HDR_ADDR_1 BNX2_MCP_SCRATCH + 8 64158c2ecf20Sopenharmony_ci 64168c2ecf20Sopenharmony_ci 64178c2ecf20Sopenharmony_ci#define NUM_MC_HASH_REGISTERS 8 64188c2ecf20Sopenharmony_ci 64198c2ecf20Sopenharmony_ci 64208c2ecf20Sopenharmony_ci/* PHY_ID1: bits 31-16; PHY_ID2: bits 15-0. */ 64218c2ecf20Sopenharmony_ci#define PHY_BCM5706_PHY_ID 0x00206160 64228c2ecf20Sopenharmony_ci 64238c2ecf20Sopenharmony_ci#define PHY_ID(id) ((id) & 0xfffffff0) 64248c2ecf20Sopenharmony_ci#define PHY_REV_ID(id) ((id) & 0xf) 64258c2ecf20Sopenharmony_ci 64268c2ecf20Sopenharmony_ci/* 5708 Serdes PHY registers */ 64278c2ecf20Sopenharmony_ci 64288c2ecf20Sopenharmony_ci#define BCM5708S_BMCR_FORCE_2500 0x20 64298c2ecf20Sopenharmony_ci 64308c2ecf20Sopenharmony_ci#define BCM5708S_UP1 0xb 64318c2ecf20Sopenharmony_ci 64328c2ecf20Sopenharmony_ci#define BCM5708S_UP1_2G5 0x1 64338c2ecf20Sopenharmony_ci 64348c2ecf20Sopenharmony_ci#define BCM5708S_BLK_ADDR 0x1f 64358c2ecf20Sopenharmony_ci 64368c2ecf20Sopenharmony_ci#define BCM5708S_BLK_ADDR_DIG 0x0000 64378c2ecf20Sopenharmony_ci#define BCM5708S_BLK_ADDR_DIG3 0x0002 64388c2ecf20Sopenharmony_ci#define BCM5708S_BLK_ADDR_TX_MISC 0x0005 64398c2ecf20Sopenharmony_ci 64408c2ecf20Sopenharmony_ci/* Digital Block */ 64418c2ecf20Sopenharmony_ci#define BCM5708S_1000X_CTL1 0x10 64428c2ecf20Sopenharmony_ci 64438c2ecf20Sopenharmony_ci#define BCM5708S_1000X_CTL1_FIBER_MODE 0x0001 64448c2ecf20Sopenharmony_ci#define BCM5708S_1000X_CTL1_AUTODET_EN 0x0010 64458c2ecf20Sopenharmony_ci 64468c2ecf20Sopenharmony_ci#define BCM5708S_1000X_CTL2 0x11 64478c2ecf20Sopenharmony_ci 64488c2ecf20Sopenharmony_ci#define BCM5708S_1000X_CTL2_PLLEL_DET_EN 0x0001 64498c2ecf20Sopenharmony_ci 64508c2ecf20Sopenharmony_ci#define BCM5708S_1000X_STAT1 0x14 64518c2ecf20Sopenharmony_ci 64528c2ecf20Sopenharmony_ci#define BCM5708S_1000X_STAT1_SGMII 0x0001 64538c2ecf20Sopenharmony_ci#define BCM5708S_1000X_STAT1_LINK 0x0002 64548c2ecf20Sopenharmony_ci#define BCM5708S_1000X_STAT1_FD 0x0004 64558c2ecf20Sopenharmony_ci#define BCM5708S_1000X_STAT1_SPEED_MASK 0x0018 64568c2ecf20Sopenharmony_ci#define BCM5708S_1000X_STAT1_SPEED_10 0x0000 64578c2ecf20Sopenharmony_ci#define BCM5708S_1000X_STAT1_SPEED_100 0x0008 64588c2ecf20Sopenharmony_ci#define BCM5708S_1000X_STAT1_SPEED_1G 0x0010 64598c2ecf20Sopenharmony_ci#define BCM5708S_1000X_STAT1_SPEED_2G5 0x0018 64608c2ecf20Sopenharmony_ci#define BCM5708S_1000X_STAT1_TX_PAUSE 0x0020 64618c2ecf20Sopenharmony_ci#define BCM5708S_1000X_STAT1_RX_PAUSE 0x0040 64628c2ecf20Sopenharmony_ci 64638c2ecf20Sopenharmony_ci/* Digital3 Block */ 64648c2ecf20Sopenharmony_ci#define BCM5708S_DIG_3_0 0x10 64658c2ecf20Sopenharmony_ci 64668c2ecf20Sopenharmony_ci#define BCM5708S_DIG_3_0_USE_IEEE 0x0001 64678c2ecf20Sopenharmony_ci 64688c2ecf20Sopenharmony_ci/* Tx/Misc Block */ 64698c2ecf20Sopenharmony_ci#define BCM5708S_TX_ACTL1 0x15 64708c2ecf20Sopenharmony_ci 64718c2ecf20Sopenharmony_ci#define BCM5708S_TX_ACTL1_DRIVER_VCM 0x30 64728c2ecf20Sopenharmony_ci 64738c2ecf20Sopenharmony_ci#define BCM5708S_TX_ACTL3 0x17 64748c2ecf20Sopenharmony_ci 64758c2ecf20Sopenharmony_ci#define MII_BNX2_EXT_STATUS 0x11 64768c2ecf20Sopenharmony_ci#define EXT_STATUS_MDIX (1 << 13) 64778c2ecf20Sopenharmony_ci 64788c2ecf20Sopenharmony_ci#define MII_BNX2_AUX_CTL 0x18 64798c2ecf20Sopenharmony_ci#define AUX_CTL_MISC_CTL 0x7007 64808c2ecf20Sopenharmony_ci#define AUX_CTL_MISC_CTL_WIRESPEED (1 << 4) 64818c2ecf20Sopenharmony_ci#define AUX_CTL_MISC_CTL_AUTOMDIX (1 << 9) 64828c2ecf20Sopenharmony_ci#define AUX_CTL_MISC_CTL_WR (1 << 15) 64838c2ecf20Sopenharmony_ci 64848c2ecf20Sopenharmony_ci#define MII_BNX2_DSP_RW_PORT 0x15 64858c2ecf20Sopenharmony_ci#define MII_BNX2_DSP_ADDRESS 0x17 64868c2ecf20Sopenharmony_ci#define MII_BNX2_DSP_EXPAND_REG 0x0f00 64878c2ecf20Sopenharmony_ci#define MII_EXPAND_REG1 (MII_BNX2_DSP_EXPAND_REG | 1) 64888c2ecf20Sopenharmony_ci#define MII_EXPAND_REG1_RUDI_C 0x20 64898c2ecf20Sopenharmony_ci#define MII_EXPAND_SERDES_CTL (MII_BNX2_DSP_EXPAND_REG | 3) 64908c2ecf20Sopenharmony_ci 64918c2ecf20Sopenharmony_ci#define MII_BNX2_MISC_SHADOW 0x1c 64928c2ecf20Sopenharmony_ci#define MISC_SHDW_AN_DBG 0x6800 64938c2ecf20Sopenharmony_ci#define MISC_SHDW_AN_DBG_NOSYNC 0x0002 64948c2ecf20Sopenharmony_ci#define MISC_SHDW_AN_DBG_RUDI_INVALID 0x0100 64958c2ecf20Sopenharmony_ci#define MISC_SHDW_MODE_CTL 0x7c00 64968c2ecf20Sopenharmony_ci#define MISC_SHDW_MODE_CTL_SIG_DET 0x0010 64978c2ecf20Sopenharmony_ci 64988c2ecf20Sopenharmony_ci#define MII_BNX2_BLK_ADDR 0x1f 64998c2ecf20Sopenharmony_ci#define MII_BNX2_BLK_ADDR_IEEE0 0x0000 65008c2ecf20Sopenharmony_ci#define MII_BNX2_BLK_ADDR_GP_STATUS 0x8120 65018c2ecf20Sopenharmony_ci#define MII_BNX2_GP_TOP_AN_STATUS1 0x1b 65028c2ecf20Sopenharmony_ci#define MII_BNX2_GP_TOP_AN_SPEED_MSK 0x3f00 65038c2ecf20Sopenharmony_ci#define MII_BNX2_GP_TOP_AN_SPEED_10 0x0000 65048c2ecf20Sopenharmony_ci#define MII_BNX2_GP_TOP_AN_SPEED_100 0x0100 65058c2ecf20Sopenharmony_ci#define MII_BNX2_GP_TOP_AN_SPEED_1G 0x0200 65068c2ecf20Sopenharmony_ci#define MII_BNX2_GP_TOP_AN_SPEED_2_5G 0x0300 65078c2ecf20Sopenharmony_ci#define MII_BNX2_GP_TOP_AN_SPEED_1GKV 0x0d00 65088c2ecf20Sopenharmony_ci#define MII_BNX2_GP_TOP_AN_FD 0x8 65098c2ecf20Sopenharmony_ci#define MII_BNX2_BLK_ADDR_SERDES_DIG 0x8300 65108c2ecf20Sopenharmony_ci#define MII_BNX2_SERDES_DIG_1000XCTL1 0x10 65118c2ecf20Sopenharmony_ci#define MII_BNX2_SD_1000XCTL1_FIBER 0x01 65128c2ecf20Sopenharmony_ci#define MII_BNX2_SD_1000XCTL1_AUTODET 0x10 65138c2ecf20Sopenharmony_ci#define MII_BNX2_SERDES_DIG_MISC1 0x18 65148c2ecf20Sopenharmony_ci#define MII_BNX2_SD_MISC1_FORCE_MSK 0xf 65158c2ecf20Sopenharmony_ci#define MII_BNX2_SD_MISC1_FORCE_2_5G 0x0 65168c2ecf20Sopenharmony_ci#define MII_BNX2_SD_MISC1_FORCE 0x10 65178c2ecf20Sopenharmony_ci#define MII_BNX2_BLK_ADDR_OVER1G 0x8320 65188c2ecf20Sopenharmony_ci#define MII_BNX2_OVER1G_UP1 0x19 65198c2ecf20Sopenharmony_ci#define MII_BNX2_BLK_ADDR_BAM_NXTPG 0x8350 65208c2ecf20Sopenharmony_ci#define MII_BNX2_BAM_NXTPG_CTL 0x10 65218c2ecf20Sopenharmony_ci#define MII_BNX2_NXTPG_CTL_BAM 0x1 65228c2ecf20Sopenharmony_ci#define MII_BNX2_NXTPG_CTL_T2 0x2 65238c2ecf20Sopenharmony_ci#define MII_BNX2_BLK_ADDR_CL73_USERB0 0x8370 65248c2ecf20Sopenharmony_ci#define MII_BNX2_CL73_BAM_CTL1 0x12 65258c2ecf20Sopenharmony_ci#define MII_BNX2_CL73_BAM_EN 0x8000 65268c2ecf20Sopenharmony_ci#define MII_BNX2_CL73_BAM_STA_MGR_EN 0x4000 65278c2ecf20Sopenharmony_ci#define MII_BNX2_CL73_BAM_NP_AFT_BP_EN 0x2000 65288c2ecf20Sopenharmony_ci#define MII_BNX2_BLK_ADDR_AER 0xffd0 65298c2ecf20Sopenharmony_ci#define MII_BNX2_AER_AER 0x1e 65308c2ecf20Sopenharmony_ci#define MII_BNX2_AER_AER_AN_MMD 0x3800 65318c2ecf20Sopenharmony_ci#define MII_BNX2_BLK_ADDR_COMBO_IEEEB0 0xffe0 65328c2ecf20Sopenharmony_ci 65338c2ecf20Sopenharmony_ci#define MIN_ETHERNET_PACKET_SIZE (ETH_ZLEN - ETH_HLEN) 65348c2ecf20Sopenharmony_ci#define MAX_ETHERNET_PACKET_SIZE ETH_DATA_LEN 65358c2ecf20Sopenharmony_ci#define MAX_ETHERNET_JUMBO_PACKET_SIZE 9000 65368c2ecf20Sopenharmony_ci 65378c2ecf20Sopenharmony_ci#define BNX2_RX_COPY_THRESH 128 65388c2ecf20Sopenharmony_ci 65398c2ecf20Sopenharmony_ci#define BNX2_MISC_ENABLE_DEFAULT 0x17ffffff 65408c2ecf20Sopenharmony_ci 65418c2ecf20Sopenharmony_ci#define BNX2_START_UNICAST_ADDRESS_INDEX 4 65428c2ecf20Sopenharmony_ci#define BNX2_END_UNICAST_ADDRESS_INDEX 7 65438c2ecf20Sopenharmony_ci#define BNX2_MAX_UNICAST_ADDRESSES (BNX2_END_UNICAST_ADDRESS_INDEX - \ 65448c2ecf20Sopenharmony_ci BNX2_START_UNICAST_ADDRESS_INDEX + 1) 65458c2ecf20Sopenharmony_ci 65468c2ecf20Sopenharmony_ci#define DMA_READ_CHANS 5 65478c2ecf20Sopenharmony_ci#define DMA_WRITE_CHANS 3 65488c2ecf20Sopenharmony_ci 65498c2ecf20Sopenharmony_ci/* Use CPU native page size up to 16K for the ring sizes. */ 65508c2ecf20Sopenharmony_ci#if (PAGE_SHIFT > 14) 65518c2ecf20Sopenharmony_ci#define BNX2_PAGE_BITS 14 65528c2ecf20Sopenharmony_ci#else 65538c2ecf20Sopenharmony_ci#define BNX2_PAGE_BITS PAGE_SHIFT 65548c2ecf20Sopenharmony_ci#endif 65558c2ecf20Sopenharmony_ci#define BNX2_PAGE_SIZE (1 << BNX2_PAGE_BITS) 65568c2ecf20Sopenharmony_ci 65578c2ecf20Sopenharmony_ci#define BNX2_TX_DESC_CNT (BNX2_PAGE_SIZE / sizeof(struct bnx2_tx_bd)) 65588c2ecf20Sopenharmony_ci#define BNX2_MAX_TX_DESC_CNT (BNX2_TX_DESC_CNT - 1) 65598c2ecf20Sopenharmony_ci 65608c2ecf20Sopenharmony_ci#define BNX2_MAX_RX_RINGS 8 65618c2ecf20Sopenharmony_ci#define BNX2_MAX_RX_PG_RINGS 32 65628c2ecf20Sopenharmony_ci#define BNX2_RX_DESC_CNT (BNX2_PAGE_SIZE / sizeof(struct bnx2_rx_bd)) 65638c2ecf20Sopenharmony_ci#define BNX2_MAX_RX_DESC_CNT (BNX2_RX_DESC_CNT - 1) 65648c2ecf20Sopenharmony_ci#define BNX2_MAX_TOTAL_RX_DESC_CNT (BNX2_MAX_RX_DESC_CNT * BNX2_MAX_RX_RINGS) 65658c2ecf20Sopenharmony_ci#define BNX2_MAX_TOTAL_RX_PG_DESC_CNT \ 65668c2ecf20Sopenharmony_ci (BNX2_MAX_RX_DESC_CNT * BNX2_MAX_RX_PG_RINGS) 65678c2ecf20Sopenharmony_ci 65688c2ecf20Sopenharmony_ci#define BNX2_NEXT_TX_BD(x) (((x) & (BNX2_MAX_TX_DESC_CNT - 1)) == \ 65698c2ecf20Sopenharmony_ci (BNX2_MAX_TX_DESC_CNT - 1)) ? \ 65708c2ecf20Sopenharmony_ci (x) + 2 : (x) + 1 65718c2ecf20Sopenharmony_ci 65728c2ecf20Sopenharmony_ci#define BNX2_TX_RING_IDX(x) ((x) & BNX2_MAX_TX_DESC_CNT) 65738c2ecf20Sopenharmony_ci 65748c2ecf20Sopenharmony_ci#define BNX2_NEXT_RX_BD(x) (((x) & (BNX2_MAX_RX_DESC_CNT - 1)) == \ 65758c2ecf20Sopenharmony_ci (BNX2_MAX_RX_DESC_CNT - 1)) ? \ 65768c2ecf20Sopenharmony_ci (x) + 2 : (x) + 1 65778c2ecf20Sopenharmony_ci 65788c2ecf20Sopenharmony_ci#define BNX2_RX_RING_IDX(x) ((x) & bp->rx_max_ring_idx) 65798c2ecf20Sopenharmony_ci#define BNX2_RX_PG_RING_IDX(x) ((x) & bp->rx_max_pg_ring_idx) 65808c2ecf20Sopenharmony_ci 65818c2ecf20Sopenharmony_ci#define BNX2_RX_RING(x) (((x) & ~BNX2_MAX_RX_DESC_CNT) >> (BNX2_PAGE_BITS - 4)) 65828c2ecf20Sopenharmony_ci#define BNX2_RX_IDX(x) ((x) & BNX2_MAX_RX_DESC_CNT) 65838c2ecf20Sopenharmony_ci 65848c2ecf20Sopenharmony_ci/* Context size. */ 65858c2ecf20Sopenharmony_ci#define CTX_SHIFT 7 65868c2ecf20Sopenharmony_ci#define CTX_SIZE (1 << CTX_SHIFT) 65878c2ecf20Sopenharmony_ci#define CTX_MASK (CTX_SIZE - 1) 65888c2ecf20Sopenharmony_ci#define GET_CID_ADDR(_cid) ((_cid) << CTX_SHIFT) 65898c2ecf20Sopenharmony_ci#define GET_CID(_cid_addr) ((_cid_addr) >> CTX_SHIFT) 65908c2ecf20Sopenharmony_ci 65918c2ecf20Sopenharmony_ci#define PHY_CTX_SHIFT 6 65928c2ecf20Sopenharmony_ci#define PHY_CTX_SIZE (1 << PHY_CTX_SHIFT) 65938c2ecf20Sopenharmony_ci#define PHY_CTX_MASK (PHY_CTX_SIZE - 1) 65948c2ecf20Sopenharmony_ci#define GET_PCID_ADDR(_pcid) ((_pcid) << PHY_CTX_SHIFT) 65958c2ecf20Sopenharmony_ci#define GET_PCID(_pcid_addr) ((_pcid_addr) >> PHY_CTX_SHIFT) 65968c2ecf20Sopenharmony_ci 65978c2ecf20Sopenharmony_ci#define MB_KERNEL_CTX_SHIFT 8 65988c2ecf20Sopenharmony_ci#define MB_KERNEL_CTX_SIZE (1 << MB_KERNEL_CTX_SHIFT) 65998c2ecf20Sopenharmony_ci#define MB_KERNEL_CTX_MASK (MB_KERNEL_CTX_SIZE - 1) 66008c2ecf20Sopenharmony_ci#define MB_GET_CID_ADDR(_cid) (0x10000 + ((_cid) << MB_KERNEL_CTX_SHIFT)) 66018c2ecf20Sopenharmony_ci 66028c2ecf20Sopenharmony_ci#define MAX_CID_CNT 0x4000 66038c2ecf20Sopenharmony_ci#define MAX_CID_ADDR (GET_CID_ADDR(MAX_CID_CNT)) 66048c2ecf20Sopenharmony_ci#define INVALID_CID_ADDR 0xffffffff 66058c2ecf20Sopenharmony_ci 66068c2ecf20Sopenharmony_ci#define TX_CID 16 66078c2ecf20Sopenharmony_ci#define TX_TSS_CID 32 66088c2ecf20Sopenharmony_ci#define RX_CID 0 66098c2ecf20Sopenharmony_ci#define RX_RSS_CID 4 66108c2ecf20Sopenharmony_ci#define RX_MAX_RSS_RINGS 7 66118c2ecf20Sopenharmony_ci#define RX_MAX_RINGS (RX_MAX_RSS_RINGS + 1) 66128c2ecf20Sopenharmony_ci#define TX_MAX_TSS_RINGS 7 66138c2ecf20Sopenharmony_ci#define TX_MAX_RINGS (TX_MAX_TSS_RINGS + 1) 66148c2ecf20Sopenharmony_ci 66158c2ecf20Sopenharmony_ci#define MB_TX_CID_ADDR MB_GET_CID_ADDR(TX_CID) 66168c2ecf20Sopenharmony_ci#define MB_RX_CID_ADDR MB_GET_CID_ADDR(RX_CID) 66178c2ecf20Sopenharmony_ci 66188c2ecf20Sopenharmony_ci/* 66198c2ecf20Sopenharmony_ci * This driver uses new build_skb() API : 66208c2ecf20Sopenharmony_ci * RX ring buffer contains pointer to kmalloc() data only, 66218c2ecf20Sopenharmony_ci * skb are built only after Hardware filled the frame. 66228c2ecf20Sopenharmony_ci */ 66238c2ecf20Sopenharmony_cistruct bnx2_sw_bd { 66248c2ecf20Sopenharmony_ci u8 *data; 66258c2ecf20Sopenharmony_ci DEFINE_DMA_UNMAP_ADDR(mapping); 66268c2ecf20Sopenharmony_ci}; 66278c2ecf20Sopenharmony_ci 66288c2ecf20Sopenharmony_ci/* Its faster to compute this from data than storing it in sw_bd 66298c2ecf20Sopenharmony_ci * (less cache misses) 66308c2ecf20Sopenharmony_ci */ 66318c2ecf20Sopenharmony_cistatic inline struct l2_fhdr *get_l2_fhdr(u8 *data) 66328c2ecf20Sopenharmony_ci{ 66338c2ecf20Sopenharmony_ci return (struct l2_fhdr *)(PTR_ALIGN(data, BNX2_RX_ALIGN) + NET_SKB_PAD); 66348c2ecf20Sopenharmony_ci} 66358c2ecf20Sopenharmony_ci 66368c2ecf20Sopenharmony_ci 66378c2ecf20Sopenharmony_cistruct bnx2_sw_pg { 66388c2ecf20Sopenharmony_ci struct page *page; 66398c2ecf20Sopenharmony_ci DEFINE_DMA_UNMAP_ADDR(mapping); 66408c2ecf20Sopenharmony_ci}; 66418c2ecf20Sopenharmony_ci 66428c2ecf20Sopenharmony_cistruct bnx2_sw_tx_bd { 66438c2ecf20Sopenharmony_ci struct sk_buff *skb; 66448c2ecf20Sopenharmony_ci DEFINE_DMA_UNMAP_ADDR(mapping); 66458c2ecf20Sopenharmony_ci unsigned short is_gso; 66468c2ecf20Sopenharmony_ci unsigned short nr_frags; 66478c2ecf20Sopenharmony_ci}; 66488c2ecf20Sopenharmony_ci 66498c2ecf20Sopenharmony_ci#define SW_RXBD_RING_SIZE (sizeof(struct bnx2_sw_bd) * BNX2_RX_DESC_CNT) 66508c2ecf20Sopenharmony_ci#define SW_RXPG_RING_SIZE (sizeof(struct bnx2_sw_pg) * BNX2_RX_DESC_CNT) 66518c2ecf20Sopenharmony_ci#define RXBD_RING_SIZE (sizeof(struct bnx2_rx_bd) * BNX2_RX_DESC_CNT) 66528c2ecf20Sopenharmony_ci#define SW_TXBD_RING_SIZE (sizeof(struct bnx2_sw_tx_bd) * BNX2_TX_DESC_CNT) 66538c2ecf20Sopenharmony_ci#define TXBD_RING_SIZE (sizeof(struct bnx2_tx_bd) * BNX2_TX_DESC_CNT) 66548c2ecf20Sopenharmony_ci 66558c2ecf20Sopenharmony_ci/* Buffered flash (Atmel: AT45DB011B) specific information */ 66568c2ecf20Sopenharmony_ci#define SEEPROM_PAGE_BITS 2 66578c2ecf20Sopenharmony_ci#define SEEPROM_PHY_PAGE_SIZE (1 << SEEPROM_PAGE_BITS) 66588c2ecf20Sopenharmony_ci#define SEEPROM_BYTE_ADDR_MASK (SEEPROM_PHY_PAGE_SIZE-1) 66598c2ecf20Sopenharmony_ci#define SEEPROM_PAGE_SIZE 4 66608c2ecf20Sopenharmony_ci#define SEEPROM_TOTAL_SIZE 65536 66618c2ecf20Sopenharmony_ci 66628c2ecf20Sopenharmony_ci#define BUFFERED_FLASH_PAGE_BITS 9 66638c2ecf20Sopenharmony_ci#define BUFFERED_FLASH_PHY_PAGE_SIZE (1 << BUFFERED_FLASH_PAGE_BITS) 66648c2ecf20Sopenharmony_ci#define BUFFERED_FLASH_BYTE_ADDR_MASK (BUFFERED_FLASH_PHY_PAGE_SIZE-1) 66658c2ecf20Sopenharmony_ci#define BUFFERED_FLASH_PAGE_SIZE 264 66668c2ecf20Sopenharmony_ci#define BUFFERED_FLASH_TOTAL_SIZE 0x21000 66678c2ecf20Sopenharmony_ci 66688c2ecf20Sopenharmony_ci#define SAIFUN_FLASH_PAGE_BITS 8 66698c2ecf20Sopenharmony_ci#define SAIFUN_FLASH_PHY_PAGE_SIZE (1 << SAIFUN_FLASH_PAGE_BITS) 66708c2ecf20Sopenharmony_ci#define SAIFUN_FLASH_BYTE_ADDR_MASK (SAIFUN_FLASH_PHY_PAGE_SIZE-1) 66718c2ecf20Sopenharmony_ci#define SAIFUN_FLASH_PAGE_SIZE 256 66728c2ecf20Sopenharmony_ci#define SAIFUN_FLASH_BASE_TOTAL_SIZE 65536 66738c2ecf20Sopenharmony_ci 66748c2ecf20Sopenharmony_ci#define ST_MICRO_FLASH_PAGE_BITS 8 66758c2ecf20Sopenharmony_ci#define ST_MICRO_FLASH_PHY_PAGE_SIZE (1 << ST_MICRO_FLASH_PAGE_BITS) 66768c2ecf20Sopenharmony_ci#define ST_MICRO_FLASH_BYTE_ADDR_MASK (ST_MICRO_FLASH_PHY_PAGE_SIZE-1) 66778c2ecf20Sopenharmony_ci#define ST_MICRO_FLASH_PAGE_SIZE 256 66788c2ecf20Sopenharmony_ci#define ST_MICRO_FLASH_BASE_TOTAL_SIZE 65536 66798c2ecf20Sopenharmony_ci 66808c2ecf20Sopenharmony_ci#define BCM5709_FLASH_PAGE_BITS 8 66818c2ecf20Sopenharmony_ci#define BCM5709_FLASH_PHY_PAGE_SIZE (1 << BCM5709_FLASH_PAGE_BITS) 66828c2ecf20Sopenharmony_ci#define BCM5709_FLASH_BYTE_ADDR_MASK (BCM5709_FLASH_PHY_PAGE_SIZE-1) 66838c2ecf20Sopenharmony_ci#define BCM5709_FLASH_PAGE_SIZE 256 66848c2ecf20Sopenharmony_ci 66858c2ecf20Sopenharmony_ci#define NVRAM_TIMEOUT_COUNT 30000 66868c2ecf20Sopenharmony_ci 66878c2ecf20Sopenharmony_ci 66888c2ecf20Sopenharmony_ci#define FLASH_STRAP_MASK (BNX2_NVM_CFG1_FLASH_MODE | \ 66898c2ecf20Sopenharmony_ci BNX2_NVM_CFG1_BUFFER_MODE | \ 66908c2ecf20Sopenharmony_ci BNX2_NVM_CFG1_PROTECT_MODE | \ 66918c2ecf20Sopenharmony_ci BNX2_NVM_CFG1_FLASH_SIZE) 66928c2ecf20Sopenharmony_ci 66938c2ecf20Sopenharmony_ci#define FLASH_BACKUP_STRAP_MASK (0xf << 26) 66948c2ecf20Sopenharmony_ci 66958c2ecf20Sopenharmony_cistruct flash_spec { 66968c2ecf20Sopenharmony_ci u32 strapping; 66978c2ecf20Sopenharmony_ci u32 config1; 66988c2ecf20Sopenharmony_ci u32 config2; 66998c2ecf20Sopenharmony_ci u32 config3; 67008c2ecf20Sopenharmony_ci u32 write1; 67018c2ecf20Sopenharmony_ci u32 flags; 67028c2ecf20Sopenharmony_ci#define BNX2_NV_BUFFERED 0x00000001 67038c2ecf20Sopenharmony_ci#define BNX2_NV_TRANSLATE 0x00000002 67048c2ecf20Sopenharmony_ci#define BNX2_NV_WREN 0x00000004 67058c2ecf20Sopenharmony_ci u32 page_bits; 67068c2ecf20Sopenharmony_ci u32 page_size; 67078c2ecf20Sopenharmony_ci u32 addr_mask; 67088c2ecf20Sopenharmony_ci u32 total_size; 67098c2ecf20Sopenharmony_ci u8 *name; 67108c2ecf20Sopenharmony_ci}; 67118c2ecf20Sopenharmony_ci 67128c2ecf20Sopenharmony_ci#define BNX2_MAX_MSIX_HW_VEC 9 67138c2ecf20Sopenharmony_ci#define BNX2_MAX_MSIX_VEC 9 67148c2ecf20Sopenharmony_ci#ifdef BCM_CNIC 67158c2ecf20Sopenharmony_ci#define BNX2_MIN_MSIX_VEC 2 67168c2ecf20Sopenharmony_ci#else 67178c2ecf20Sopenharmony_ci#define BNX2_MIN_MSIX_VEC 1 67188c2ecf20Sopenharmony_ci#endif 67198c2ecf20Sopenharmony_ci 67208c2ecf20Sopenharmony_ci 67218c2ecf20Sopenharmony_cistruct bnx2_irq { 67228c2ecf20Sopenharmony_ci irq_handler_t handler; 67238c2ecf20Sopenharmony_ci unsigned int vector; 67248c2ecf20Sopenharmony_ci u8 requested; 67258c2ecf20Sopenharmony_ci char name[IFNAMSIZ + 2]; 67268c2ecf20Sopenharmony_ci}; 67278c2ecf20Sopenharmony_ci 67288c2ecf20Sopenharmony_cistruct bnx2_tx_ring_info { 67298c2ecf20Sopenharmony_ci u32 tx_prod_bseq; 67308c2ecf20Sopenharmony_ci u16 tx_prod; 67318c2ecf20Sopenharmony_ci u32 tx_bidx_addr; 67328c2ecf20Sopenharmony_ci u32 tx_bseq_addr; 67338c2ecf20Sopenharmony_ci 67348c2ecf20Sopenharmony_ci struct bnx2_tx_bd *tx_desc_ring; 67358c2ecf20Sopenharmony_ci struct bnx2_sw_tx_bd *tx_buf_ring; 67368c2ecf20Sopenharmony_ci 67378c2ecf20Sopenharmony_ci u16 tx_cons; 67388c2ecf20Sopenharmony_ci u16 hw_tx_cons; 67398c2ecf20Sopenharmony_ci 67408c2ecf20Sopenharmony_ci dma_addr_t tx_desc_mapping; 67418c2ecf20Sopenharmony_ci}; 67428c2ecf20Sopenharmony_ci 67438c2ecf20Sopenharmony_cistruct bnx2_rx_ring_info { 67448c2ecf20Sopenharmony_ci u32 rx_prod_bseq; 67458c2ecf20Sopenharmony_ci u16 rx_prod; 67468c2ecf20Sopenharmony_ci u16 rx_cons; 67478c2ecf20Sopenharmony_ci 67488c2ecf20Sopenharmony_ci u32 rx_bidx_addr; 67498c2ecf20Sopenharmony_ci u32 rx_bseq_addr; 67508c2ecf20Sopenharmony_ci u32 rx_pg_bidx_addr; 67518c2ecf20Sopenharmony_ci 67528c2ecf20Sopenharmony_ci u16 rx_pg_prod; 67538c2ecf20Sopenharmony_ci u16 rx_pg_cons; 67548c2ecf20Sopenharmony_ci 67558c2ecf20Sopenharmony_ci struct bnx2_sw_bd *rx_buf_ring; 67568c2ecf20Sopenharmony_ci struct bnx2_rx_bd *rx_desc_ring[BNX2_MAX_RX_RINGS]; 67578c2ecf20Sopenharmony_ci struct bnx2_sw_pg *rx_pg_ring; 67588c2ecf20Sopenharmony_ci struct bnx2_rx_bd *rx_pg_desc_ring[BNX2_MAX_RX_PG_RINGS]; 67598c2ecf20Sopenharmony_ci 67608c2ecf20Sopenharmony_ci dma_addr_t rx_desc_mapping[BNX2_MAX_RX_RINGS]; 67618c2ecf20Sopenharmony_ci dma_addr_t rx_pg_desc_mapping[BNX2_MAX_RX_PG_RINGS]; 67628c2ecf20Sopenharmony_ci}; 67638c2ecf20Sopenharmony_ci 67648c2ecf20Sopenharmony_cistruct bnx2_napi { 67658c2ecf20Sopenharmony_ci struct napi_struct napi ____cacheline_aligned; 67668c2ecf20Sopenharmony_ci struct bnx2 *bp; 67678c2ecf20Sopenharmony_ci union { 67688c2ecf20Sopenharmony_ci struct status_block *msi; 67698c2ecf20Sopenharmony_ci struct status_block_msix *msix; 67708c2ecf20Sopenharmony_ci } status_blk; 67718c2ecf20Sopenharmony_ci u16 *hw_tx_cons_ptr; 67728c2ecf20Sopenharmony_ci u16 *hw_rx_cons_ptr; 67738c2ecf20Sopenharmony_ci u32 last_status_idx; 67748c2ecf20Sopenharmony_ci u32 int_num; 67758c2ecf20Sopenharmony_ci 67768c2ecf20Sopenharmony_ci#ifdef BCM_CNIC 67778c2ecf20Sopenharmony_ci u32 cnic_tag; 67788c2ecf20Sopenharmony_ci int cnic_present; 67798c2ecf20Sopenharmony_ci#endif 67808c2ecf20Sopenharmony_ci 67818c2ecf20Sopenharmony_ci struct bnx2_rx_ring_info rx_ring; 67828c2ecf20Sopenharmony_ci struct bnx2_tx_ring_info tx_ring; 67838c2ecf20Sopenharmony_ci}; 67848c2ecf20Sopenharmony_ci 67858c2ecf20Sopenharmony_cistruct bnx2 { 67868c2ecf20Sopenharmony_ci /* Fields used in the tx and intr/napi performance paths are grouped */ 67878c2ecf20Sopenharmony_ci /* together in the beginning of the structure. */ 67888c2ecf20Sopenharmony_ci void __iomem *regview; 67898c2ecf20Sopenharmony_ci 67908c2ecf20Sopenharmony_ci struct net_device *dev; 67918c2ecf20Sopenharmony_ci struct pci_dev *pdev; 67928c2ecf20Sopenharmony_ci 67938c2ecf20Sopenharmony_ci atomic_t intr_sem; 67948c2ecf20Sopenharmony_ci 67958c2ecf20Sopenharmony_ci u32 flags; 67968c2ecf20Sopenharmony_ci#define BNX2_FLAG_PCIX 0x00000001 67978c2ecf20Sopenharmony_ci#define BNX2_FLAG_PCI_32BIT 0x00000002 67988c2ecf20Sopenharmony_ci#define BNX2_FLAG_MSIX_CAP 0x00000004 67998c2ecf20Sopenharmony_ci#define BNX2_FLAG_NO_WOL 0x00000008 68008c2ecf20Sopenharmony_ci#define BNX2_FLAG_USING_MSI 0x00000020 68018c2ecf20Sopenharmony_ci#define BNX2_FLAG_ASF_ENABLE 0x00000040 68028c2ecf20Sopenharmony_ci#define BNX2_FLAG_MSI_CAP 0x00000080 68038c2ecf20Sopenharmony_ci#define BNX2_FLAG_ONE_SHOT_MSI 0x00000100 68048c2ecf20Sopenharmony_ci#define BNX2_FLAG_PCIE 0x00000200 68058c2ecf20Sopenharmony_ci#define BNX2_FLAG_USING_MSIX 0x00000400 68068c2ecf20Sopenharmony_ci#define BNX2_FLAG_USING_MSI_OR_MSIX (BNX2_FLAG_USING_MSI | \ 68078c2ecf20Sopenharmony_ci BNX2_FLAG_USING_MSIX) 68088c2ecf20Sopenharmony_ci#define BNX2_FLAG_JUMBO_BROKEN 0x00000800 68098c2ecf20Sopenharmony_ci#define BNX2_FLAG_CAN_KEEP_VLAN 0x00001000 68108c2ecf20Sopenharmony_ci#define BNX2_FLAG_BROKEN_STATS 0x00002000 68118c2ecf20Sopenharmony_ci#define BNX2_FLAG_AER_ENABLED 0x00004000 68128c2ecf20Sopenharmony_ci 68138c2ecf20Sopenharmony_ci struct bnx2_napi bnx2_napi[BNX2_MAX_MSIX_VEC]; 68148c2ecf20Sopenharmony_ci 68158c2ecf20Sopenharmony_ci u32 rx_buf_use_size; /* useable size */ 68168c2ecf20Sopenharmony_ci u32 rx_buf_size; /* with alignment */ 68178c2ecf20Sopenharmony_ci u32 rx_copy_thresh; 68188c2ecf20Sopenharmony_ci u32 rx_jumbo_thresh; 68198c2ecf20Sopenharmony_ci u32 rx_max_ring_idx; 68208c2ecf20Sopenharmony_ci u32 rx_max_pg_ring_idx; 68218c2ecf20Sopenharmony_ci 68228c2ecf20Sopenharmony_ci /* TX constants */ 68238c2ecf20Sopenharmony_ci int tx_ring_size; 68248c2ecf20Sopenharmony_ci u32 tx_wake_thresh; 68258c2ecf20Sopenharmony_ci 68268c2ecf20Sopenharmony_ci#ifdef BCM_CNIC 68278c2ecf20Sopenharmony_ci struct cnic_ops __rcu *cnic_ops; 68288c2ecf20Sopenharmony_ci void *cnic_data; 68298c2ecf20Sopenharmony_ci#endif 68308c2ecf20Sopenharmony_ci 68318c2ecf20Sopenharmony_ci /* End of fields used in the performance code paths. */ 68328c2ecf20Sopenharmony_ci 68338c2ecf20Sopenharmony_ci unsigned int current_interval; 68348c2ecf20Sopenharmony_ci#define BNX2_TIMER_INTERVAL HZ 68358c2ecf20Sopenharmony_ci#define BNX2_SERDES_AN_TIMEOUT (HZ / 3) 68368c2ecf20Sopenharmony_ci#define BNX2_SERDES_FORCED_TIMEOUT (HZ / 10) 68378c2ecf20Sopenharmony_ci 68388c2ecf20Sopenharmony_ci struct timer_list timer; 68398c2ecf20Sopenharmony_ci struct work_struct reset_task; 68408c2ecf20Sopenharmony_ci 68418c2ecf20Sopenharmony_ci /* Used to synchronize phy accesses. */ 68428c2ecf20Sopenharmony_ci spinlock_t phy_lock; 68438c2ecf20Sopenharmony_ci spinlock_t indirect_lock; 68448c2ecf20Sopenharmony_ci 68458c2ecf20Sopenharmony_ci u32 phy_flags; 68468c2ecf20Sopenharmony_ci#define BNX2_PHY_FLAG_SERDES 0x00000001 68478c2ecf20Sopenharmony_ci#define BNX2_PHY_FLAG_CRC_FIX 0x00000002 68488c2ecf20Sopenharmony_ci#define BNX2_PHY_FLAG_PARALLEL_DETECT 0x00000004 68498c2ecf20Sopenharmony_ci#define BNX2_PHY_FLAG_2_5G_CAPABLE 0x00000008 68508c2ecf20Sopenharmony_ci#define BNX2_PHY_FLAG_INT_MODE_MASK 0x00000300 68518c2ecf20Sopenharmony_ci#define BNX2_PHY_FLAG_INT_MODE_AUTO_POLLING 0x00000100 68528c2ecf20Sopenharmony_ci#define BNX2_PHY_FLAG_INT_MODE_LINK_READY 0x00000200 68538c2ecf20Sopenharmony_ci#define BNX2_PHY_FLAG_DIS_EARLY_DAC 0x00000400 68548c2ecf20Sopenharmony_ci#define BNX2_PHY_FLAG_REMOTE_PHY_CAP 0x00000800 68558c2ecf20Sopenharmony_ci#define BNX2_PHY_FLAG_FORCED_DOWN 0x00001000 68568c2ecf20Sopenharmony_ci#define BNX2_PHY_FLAG_NO_PARALLEL 0x00002000 68578c2ecf20Sopenharmony_ci#define BNX2_PHY_FLAG_MDIX 0x00004000 68588c2ecf20Sopenharmony_ci 68598c2ecf20Sopenharmony_ci u32 mii_bmcr; 68608c2ecf20Sopenharmony_ci u32 mii_bmsr; 68618c2ecf20Sopenharmony_ci u32 mii_bmsr1; 68628c2ecf20Sopenharmony_ci u32 mii_adv; 68638c2ecf20Sopenharmony_ci u32 mii_lpa; 68648c2ecf20Sopenharmony_ci u32 mii_up1; 68658c2ecf20Sopenharmony_ci 68668c2ecf20Sopenharmony_ci u32 chip_id; 68678c2ecf20Sopenharmony_ci /* chip num:16-31, rev:12-15, metal:4-11, bond_id:0-3 */ 68688c2ecf20Sopenharmony_ci#define BNX2_CHIP(bp) (((bp)->chip_id) & 0xffff0000) 68698c2ecf20Sopenharmony_ci#define BNX2_CHIP_5706 0x57060000 68708c2ecf20Sopenharmony_ci#define BNX2_CHIP_5708 0x57080000 68718c2ecf20Sopenharmony_ci#define BNX2_CHIP_5709 0x57090000 68728c2ecf20Sopenharmony_ci 68738c2ecf20Sopenharmony_ci#define BNX2_CHIP_REV(bp) (((bp)->chip_id) & 0x0000f000) 68748c2ecf20Sopenharmony_ci#define BNX2_CHIP_REV_Ax 0x00000000 68758c2ecf20Sopenharmony_ci#define BNX2_CHIP_REV_Bx 0x00001000 68768c2ecf20Sopenharmony_ci#define BNX2_CHIP_REV_Cx 0x00002000 68778c2ecf20Sopenharmony_ci 68788c2ecf20Sopenharmony_ci#define BNX2_CHIP_METAL(bp) (((bp)->chip_id) & 0x00000ff0) 68798c2ecf20Sopenharmony_ci#define BNX2_CHIP_BOND(bp) (((bp)->chip_id) & 0x0000000f) 68808c2ecf20Sopenharmony_ci 68818c2ecf20Sopenharmony_ci#define BNX2_CHIP_ID(bp) (((bp)->chip_id) & 0xfffffff0) 68828c2ecf20Sopenharmony_ci#define BNX2_CHIP_ID_5706_A0 0x57060000 68838c2ecf20Sopenharmony_ci#define BNX2_CHIP_ID_5706_A1 0x57060010 68848c2ecf20Sopenharmony_ci#define BNX2_CHIP_ID_5706_A2 0x57060020 68858c2ecf20Sopenharmony_ci#define BNX2_CHIP_ID_5708_A0 0x57080000 68868c2ecf20Sopenharmony_ci#define BNX2_CHIP_ID_5708_B0 0x57081000 68878c2ecf20Sopenharmony_ci#define BNX2_CHIP_ID_5708_B1 0x57081010 68888c2ecf20Sopenharmony_ci#define BNX2_CHIP_ID_5709_A0 0x57090000 68898c2ecf20Sopenharmony_ci#define BNX2_CHIP_ID_5709_A1 0x57090010 68908c2ecf20Sopenharmony_ci 68918c2ecf20Sopenharmony_ci/* A serdes chip will have the first bit of the bond id set. */ 68928c2ecf20Sopenharmony_ci#define BNX2_CHIP_BOND_SERDES_BIT 0x01 68938c2ecf20Sopenharmony_ci 68948c2ecf20Sopenharmony_ci u32 phy_addr; 68958c2ecf20Sopenharmony_ci u32 phy_id; 68968c2ecf20Sopenharmony_ci 68978c2ecf20Sopenharmony_ci u16 bus_speed_mhz; 68988c2ecf20Sopenharmony_ci u8 wol; 68998c2ecf20Sopenharmony_ci 69008c2ecf20Sopenharmony_ci u8 pad; 69018c2ecf20Sopenharmony_ci 69028c2ecf20Sopenharmony_ci u16 fw_wr_seq; 69038c2ecf20Sopenharmony_ci u16 fw_drv_pulse_wr_seq; 69048c2ecf20Sopenharmony_ci u32 fw_last_msg; 69058c2ecf20Sopenharmony_ci 69068c2ecf20Sopenharmony_ci int rx_max_ring; 69078c2ecf20Sopenharmony_ci int rx_ring_size; 69088c2ecf20Sopenharmony_ci 69098c2ecf20Sopenharmony_ci int rx_max_pg_ring; 69108c2ecf20Sopenharmony_ci int rx_pg_ring_size; 69118c2ecf20Sopenharmony_ci 69128c2ecf20Sopenharmony_ci u16 tx_quick_cons_trip; 69138c2ecf20Sopenharmony_ci u16 tx_quick_cons_trip_int; 69148c2ecf20Sopenharmony_ci u16 rx_quick_cons_trip; 69158c2ecf20Sopenharmony_ci u16 rx_quick_cons_trip_int; 69168c2ecf20Sopenharmony_ci u16 comp_prod_trip; 69178c2ecf20Sopenharmony_ci u16 comp_prod_trip_int; 69188c2ecf20Sopenharmony_ci u16 tx_ticks; 69198c2ecf20Sopenharmony_ci u16 tx_ticks_int; 69208c2ecf20Sopenharmony_ci u16 com_ticks; 69218c2ecf20Sopenharmony_ci u16 com_ticks_int; 69228c2ecf20Sopenharmony_ci u16 cmd_ticks; 69238c2ecf20Sopenharmony_ci u16 cmd_ticks_int; 69248c2ecf20Sopenharmony_ci u16 rx_ticks; 69258c2ecf20Sopenharmony_ci u16 rx_ticks_int; 69268c2ecf20Sopenharmony_ci 69278c2ecf20Sopenharmony_ci u32 stats_ticks; 69288c2ecf20Sopenharmony_ci 69298c2ecf20Sopenharmony_ci dma_addr_t status_blk_mapping; 69308c2ecf20Sopenharmony_ci 69318c2ecf20Sopenharmony_ci void *status_blk; 69328c2ecf20Sopenharmony_ci struct statistics_block *stats_blk; 69338c2ecf20Sopenharmony_ci struct statistics_block *temp_stats_blk; 69348c2ecf20Sopenharmony_ci dma_addr_t stats_blk_mapping; 69358c2ecf20Sopenharmony_ci 69368c2ecf20Sopenharmony_ci int ctx_pages; 69378c2ecf20Sopenharmony_ci void *ctx_blk[4]; 69388c2ecf20Sopenharmony_ci dma_addr_t ctx_blk_mapping[4]; 69398c2ecf20Sopenharmony_ci 69408c2ecf20Sopenharmony_ci u32 hc_cmd; 69418c2ecf20Sopenharmony_ci u32 rx_mode; 69428c2ecf20Sopenharmony_ci 69438c2ecf20Sopenharmony_ci u16 req_line_speed; 69448c2ecf20Sopenharmony_ci u8 req_duplex; 69458c2ecf20Sopenharmony_ci 69468c2ecf20Sopenharmony_ci u8 phy_port; 69478c2ecf20Sopenharmony_ci u8 link_up; 69488c2ecf20Sopenharmony_ci 69498c2ecf20Sopenharmony_ci u16 line_speed; 69508c2ecf20Sopenharmony_ci u8 duplex; 69518c2ecf20Sopenharmony_ci u8 flow_ctrl; /* actual flow ctrl settings */ 69528c2ecf20Sopenharmony_ci /* may be different from */ 69538c2ecf20Sopenharmony_ci /* req_flow_ctrl if autoneg */ 69548c2ecf20Sopenharmony_ci u32 advertising; 69558c2ecf20Sopenharmony_ci 69568c2ecf20Sopenharmony_ci u8 req_flow_ctrl; /* flow ctrl advertisement */ 69578c2ecf20Sopenharmony_ci /* settings or forced */ 69588c2ecf20Sopenharmony_ci /* settings */ 69598c2ecf20Sopenharmony_ci u8 autoneg; 69608c2ecf20Sopenharmony_ci#define AUTONEG_SPEED 1 69618c2ecf20Sopenharmony_ci#define AUTONEG_FLOW_CTRL 2 69628c2ecf20Sopenharmony_ci 69638c2ecf20Sopenharmony_ci u8 loopback; 69648c2ecf20Sopenharmony_ci#define MAC_LOOPBACK 1 69658c2ecf20Sopenharmony_ci#define PHY_LOOPBACK 2 69668c2ecf20Sopenharmony_ci 69678c2ecf20Sopenharmony_ci u8 serdes_an_pending; 69688c2ecf20Sopenharmony_ci 69698c2ecf20Sopenharmony_ci u8 mac_addr[8]; 69708c2ecf20Sopenharmony_ci 69718c2ecf20Sopenharmony_ci u32 shmem_base; 69728c2ecf20Sopenharmony_ci 69738c2ecf20Sopenharmony_ci char fw_version[32]; 69748c2ecf20Sopenharmony_ci 69758c2ecf20Sopenharmony_ci int pm_cap; 69768c2ecf20Sopenharmony_ci int pcix_cap; 69778c2ecf20Sopenharmony_ci 69788c2ecf20Sopenharmony_ci const struct flash_spec *flash_info; 69798c2ecf20Sopenharmony_ci u32 flash_size; 69808c2ecf20Sopenharmony_ci 69818c2ecf20Sopenharmony_ci int status_stats_size; 69828c2ecf20Sopenharmony_ci 69838c2ecf20Sopenharmony_ci struct bnx2_irq irq_tbl[BNX2_MAX_MSIX_VEC]; 69848c2ecf20Sopenharmony_ci int irq_nvecs; 69858c2ecf20Sopenharmony_ci 69868c2ecf20Sopenharmony_ci u8 func; 69878c2ecf20Sopenharmony_ci 69888c2ecf20Sopenharmony_ci u8 num_tx_rings; 69898c2ecf20Sopenharmony_ci u8 num_rx_rings; 69908c2ecf20Sopenharmony_ci 69918c2ecf20Sopenharmony_ci int num_req_tx_rings; 69928c2ecf20Sopenharmony_ci int num_req_rx_rings; 69938c2ecf20Sopenharmony_ci 69948c2ecf20Sopenharmony_ci u32 leds_save; 69958c2ecf20Sopenharmony_ci u32 idle_chk_status_idx; 69968c2ecf20Sopenharmony_ci 69978c2ecf20Sopenharmony_ci#ifdef BCM_CNIC 69988c2ecf20Sopenharmony_ci struct mutex cnic_lock; 69998c2ecf20Sopenharmony_ci struct cnic_eth_dev cnic_eth_dev; 70008c2ecf20Sopenharmony_ci struct cnic_eth_dev *(*cnic_probe)(struct net_device *); 70018c2ecf20Sopenharmony_ci#endif 70028c2ecf20Sopenharmony_ci 70038c2ecf20Sopenharmony_ci const struct firmware *mips_firmware; 70048c2ecf20Sopenharmony_ci const struct firmware *rv2p_firmware; 70058c2ecf20Sopenharmony_ci}; 70068c2ecf20Sopenharmony_ci 70078c2ecf20Sopenharmony_ci#define BNX2_RD(bp, offset) \ 70088c2ecf20Sopenharmony_ci readl(bp->regview + offset) 70098c2ecf20Sopenharmony_ci 70108c2ecf20Sopenharmony_ci#define BNX2_WR(bp, offset, val) \ 70118c2ecf20Sopenharmony_ci writel(val, bp->regview + offset) 70128c2ecf20Sopenharmony_ci 70138c2ecf20Sopenharmony_ci#define BNX2_WR16(bp, offset, val) \ 70148c2ecf20Sopenharmony_ci writew(val, bp->regview + offset) 70158c2ecf20Sopenharmony_ci 70168c2ecf20Sopenharmony_cistruct cpu_reg { 70178c2ecf20Sopenharmony_ci u32 mode; 70188c2ecf20Sopenharmony_ci u32 mode_value_halt; 70198c2ecf20Sopenharmony_ci u32 mode_value_sstep; 70208c2ecf20Sopenharmony_ci 70218c2ecf20Sopenharmony_ci u32 state; 70228c2ecf20Sopenharmony_ci u32 state_value_clear; 70238c2ecf20Sopenharmony_ci 70248c2ecf20Sopenharmony_ci u32 gpr0; 70258c2ecf20Sopenharmony_ci u32 evmask; 70268c2ecf20Sopenharmony_ci u32 pc; 70278c2ecf20Sopenharmony_ci u32 inst; 70288c2ecf20Sopenharmony_ci u32 bp; 70298c2ecf20Sopenharmony_ci 70308c2ecf20Sopenharmony_ci u32 spad_base; 70318c2ecf20Sopenharmony_ci 70328c2ecf20Sopenharmony_ci u32 mips_view_base; 70338c2ecf20Sopenharmony_ci}; 70348c2ecf20Sopenharmony_ci 70358c2ecf20Sopenharmony_cistruct bnx2_fw_file_section { 70368c2ecf20Sopenharmony_ci __be32 addr; 70378c2ecf20Sopenharmony_ci __be32 len; 70388c2ecf20Sopenharmony_ci __be32 offset; 70398c2ecf20Sopenharmony_ci}; 70408c2ecf20Sopenharmony_ci 70418c2ecf20Sopenharmony_cistruct bnx2_mips_fw_file_entry { 70428c2ecf20Sopenharmony_ci __be32 start_addr; 70438c2ecf20Sopenharmony_ci struct bnx2_fw_file_section text; 70448c2ecf20Sopenharmony_ci struct bnx2_fw_file_section data; 70458c2ecf20Sopenharmony_ci struct bnx2_fw_file_section rodata; 70468c2ecf20Sopenharmony_ci}; 70478c2ecf20Sopenharmony_ci 70488c2ecf20Sopenharmony_cistruct bnx2_rv2p_fw_file_entry { 70498c2ecf20Sopenharmony_ci struct bnx2_fw_file_section rv2p; 70508c2ecf20Sopenharmony_ci __be32 fixup[8]; 70518c2ecf20Sopenharmony_ci}; 70528c2ecf20Sopenharmony_ci 70538c2ecf20Sopenharmony_cistruct bnx2_mips_fw_file { 70548c2ecf20Sopenharmony_ci struct bnx2_mips_fw_file_entry com; 70558c2ecf20Sopenharmony_ci struct bnx2_mips_fw_file_entry cp; 70568c2ecf20Sopenharmony_ci struct bnx2_mips_fw_file_entry rxp; 70578c2ecf20Sopenharmony_ci struct bnx2_mips_fw_file_entry tpat; 70588c2ecf20Sopenharmony_ci struct bnx2_mips_fw_file_entry txp; 70598c2ecf20Sopenharmony_ci}; 70608c2ecf20Sopenharmony_ci 70618c2ecf20Sopenharmony_cistruct bnx2_rv2p_fw_file { 70628c2ecf20Sopenharmony_ci struct bnx2_rv2p_fw_file_entry proc1; 70638c2ecf20Sopenharmony_ci struct bnx2_rv2p_fw_file_entry proc2; 70648c2ecf20Sopenharmony_ci}; 70658c2ecf20Sopenharmony_ci 70668c2ecf20Sopenharmony_ci#define RV2P_P1_FIXUP_PAGE_SIZE_IDX 0 70678c2ecf20Sopenharmony_ci#define RV2P_BD_PAGE_SIZE_MSK 0xffff 70688c2ecf20Sopenharmony_ci#define RV2P_BD_PAGE_SIZE ((BNX2_PAGE_SIZE / 16) - 1) 70698c2ecf20Sopenharmony_ci 70708c2ecf20Sopenharmony_ci#define RV2P_PROC1 0 70718c2ecf20Sopenharmony_ci#define RV2P_PROC2 1 70728c2ecf20Sopenharmony_ci 70738c2ecf20Sopenharmony_ci 70748c2ecf20Sopenharmony_ci/* This value (in milliseconds) determines the frequency of the driver 70758c2ecf20Sopenharmony_ci * issuing the PULSE message code. The firmware monitors this periodic 70768c2ecf20Sopenharmony_ci * pulse to determine when to switch to an OS-absent mode. */ 70778c2ecf20Sopenharmony_ci#define BNX2_DRV_PULSE_PERIOD_MS 250 70788c2ecf20Sopenharmony_ci 70798c2ecf20Sopenharmony_ci/* This value (in milliseconds) determines how long the driver should 70808c2ecf20Sopenharmony_ci * wait for an acknowledgement from the firmware before timing out. Once 70818c2ecf20Sopenharmony_ci * the firmware has timed out, the driver will assume there is no firmware 70828c2ecf20Sopenharmony_ci * running and there won't be any firmware-driver synchronization during a 70838c2ecf20Sopenharmony_ci * driver reset. */ 70848c2ecf20Sopenharmony_ci#define BNX2_FW_ACK_TIME_OUT_MS 1000 70858c2ecf20Sopenharmony_ci 70868c2ecf20Sopenharmony_ci 70878c2ecf20Sopenharmony_ci#define BNX2_DRV_RESET_SIGNATURE 0x00000000 70888c2ecf20Sopenharmony_ci#define BNX2_DRV_RESET_SIGNATURE_MAGIC 0x4841564b /* HAVK */ 70898c2ecf20Sopenharmony_ci//#define DRV_RESET_SIGNATURE_MAGIC 0x47495352 /* RSIG */ 70908c2ecf20Sopenharmony_ci 70918c2ecf20Sopenharmony_ci#define BNX2_DRV_MB 0x00000004 70928c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_CODE 0xff000000 70938c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_CODE_RESET 0x01000000 70948c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_CODE_UNLOAD 0x02000000 70958c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_CODE_SHUTDOWN 0x03000000 70968c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_CODE_SUSPEND_WOL 0x04000000 70978c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_CODE_FW_TIMEOUT 0x05000000 70988c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_CODE_PULSE 0x06000000 70998c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_CODE_DIAG 0x07000000 71008c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_CODE_SUSPEND_NO_WOL 0x09000000 71018c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_CODE_UNLOAD_LNK_DN 0x0b000000 71028c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_CODE_KEEP_VLAN_UPDATE 0x0d000000 71038c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_CODE_CMD_SET_LINK 0x10000000 71048c2ecf20Sopenharmony_ci 71058c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_DATA 0x00ff0000 71068c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_DATA_WAIT0 0x00010000 71078c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_DATA_WAIT1 0x00020000 71088c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_DATA_WAIT2 0x00030000 71098c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_DATA_WAIT3 0x00040000 71108c2ecf20Sopenharmony_ci 71118c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_SEQ 0x0000ffff 71128c2ecf20Sopenharmony_ci 71138c2ecf20Sopenharmony_ci#define BNX2_FW_MB 0x00000008 71148c2ecf20Sopenharmony_ci#define BNX2_FW_MSG_ACK 0x0000ffff 71158c2ecf20Sopenharmony_ci#define BNX2_FW_MSG_STATUS_MASK 0x00ff0000 71168c2ecf20Sopenharmony_ci#define BNX2_FW_MSG_STATUS_OK 0x00000000 71178c2ecf20Sopenharmony_ci#define BNX2_FW_MSG_STATUS_FAILURE 0x00ff0000 71188c2ecf20Sopenharmony_ci 71198c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS 0x0000000c 71208c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_INIT_VALUE 0xffffffff 71218c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_LINK_UP 0x1 71228c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_LINK_DOWN 0x0 71238c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_SPEED_MASK 0x1e 71248c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_AN_INCOMPLETE (0<<1) 71258c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_10HALF (1<<1) 71268c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_10FULL (2<<1) 71278c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_100HALF (3<<1) 71288c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_100BASE_T4 (4<<1) 71298c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_100FULL (5<<1) 71308c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_1000HALF (6<<1) 71318c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_1000FULL (7<<1) 71328c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_2500HALF (8<<1) 71338c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_2500FULL (9<<1) 71348c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_AN_ENABLED (1<<5) 71358c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_AN_COMPLETE (1<<6) 71368c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_PARALLEL_DET (1<<7) 71378c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_RESERVED (1<<8) 71388c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_PARTNER_AD_1000FULL (1<<9) 71398c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_PARTNER_AD_1000HALF (1<<10) 71408c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_PARTNER_AD_100BT4 (1<<11) 71418c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_PARTNER_AD_100FULL (1<<12) 71428c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_PARTNER_AD_100HALF (1<<13) 71438c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_PARTNER_AD_10FULL (1<<14) 71448c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_PARTNER_AD_10HALF (1<<15) 71458c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_TX_FC_ENABLED (1<<16) 71468c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_RX_FC_ENABLED (1<<17) 71478c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_PARTNER_SYM_PAUSE_CAP (1<<18) 71488c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_PARTNER_ASYM_PAUSE_CAP (1<<19) 71498c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_SERDES_LINK (1<<20) 71508c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_PARTNER_AD_2500FULL (1<<21) 71518c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_PARTNER_AD_2500HALF (1<<22) 71528c2ecf20Sopenharmony_ci#define BNX2_LINK_STATUS_HEART_BEAT_EXPIRED (1<<31) 71538c2ecf20Sopenharmony_ci 71548c2ecf20Sopenharmony_ci#define BNX2_DRV_PULSE_MB 0x00000010 71558c2ecf20Sopenharmony_ci#define BNX2_DRV_PULSE_SEQ_MASK 0x00007fff 71568c2ecf20Sopenharmony_ci 71578c2ecf20Sopenharmony_ci/* Indicate to the firmware not to go into the 71588c2ecf20Sopenharmony_ci * OS absent when it is not getting driver pulse. 71598c2ecf20Sopenharmony_ci * This is used for debugging. */ 71608c2ecf20Sopenharmony_ci#define BNX2_DRV_MSG_DATA_PULSE_CODE_ALWAYS_ALIVE 0x00080000 71618c2ecf20Sopenharmony_ci 71628c2ecf20Sopenharmony_ci#define BNX2_DRV_MB_ARG0 0x00000014 71638c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_SPEED_10HALF (1<<0) 71648c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_SPEED_10FULL (1<<1) 71658c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_SPEED_10 \ 71668c2ecf20Sopenharmony_ci (BNX2_NETLINK_SET_LINK_SPEED_10HALF | \ 71678c2ecf20Sopenharmony_ci BNX2_NETLINK_SET_LINK_SPEED_10FULL) 71688c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_SPEED_100HALF (1<<2) 71698c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_SPEED_100FULL (1<<3) 71708c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_SPEED_100 \ 71718c2ecf20Sopenharmony_ci (BNX2_NETLINK_SET_LINK_SPEED_100HALF | \ 71728c2ecf20Sopenharmony_ci BNX2_NETLINK_SET_LINK_SPEED_100FULL) 71738c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_SPEED_1GHALF (1<<4) 71748c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_SPEED_1GFULL (1<<5) 71758c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_SPEED_2G5HALF (1<<6) 71768c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_SPEED_2G5FULL (1<<7) 71778c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_SPEED_10GHALF (1<<8) 71788c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_SPEED_10GFULL (1<<9) 71798c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_ENABLE_AUTONEG (1<<10) 71808c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_PHY_APP_REMOTE (1<<11) 71818c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_FC_SYM_PAUSE (1<<12) 71828c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_FC_ASYM_PAUSE (1<<13) 71838c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_ETH_AT_WIRESPEED (1<<14) 71848c2ecf20Sopenharmony_ci#define BNX2_NETLINK_SET_LINK_PHY_RESET (1<<15) 71858c2ecf20Sopenharmony_ci 71868c2ecf20Sopenharmony_ci#define BNX2_DEV_INFO_SIGNATURE 0x00000020 71878c2ecf20Sopenharmony_ci#define BNX2_DEV_INFO_SIGNATURE_MAGIC 0x44564900 71888c2ecf20Sopenharmony_ci#define BNX2_DEV_INFO_SIGNATURE_MAGIC_MASK 0xffffff00 71898c2ecf20Sopenharmony_ci#define BNX2_DEV_INFO_FEATURE_CFG_VALID 0x01 71908c2ecf20Sopenharmony_ci#define BNX2_DEV_INFO_SECONDARY_PORT 0x80 71918c2ecf20Sopenharmony_ci#define BNX2_DEV_INFO_DRV_ALWAYS_ALIVE 0x40 71928c2ecf20Sopenharmony_ci 71938c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_PART_NUM 0x00000024 71948c2ecf20Sopenharmony_ci 71958c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_POWER_DISSIPATED 0x00000034 71968c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_POWER_STATE_D3_MASK 0xff000000 71978c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_POWER_STATE_D2_MASK 0xff0000 71988c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_POWER_STATE_D1_MASK 0xff00 71998c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_POWER_STATE_D0_MASK 0xff 72008c2ecf20Sopenharmony_ci 72018c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG POWER_CONSUMED 0x00000038 72028c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_CONFIG 0x0000003c 72038c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_DESIGN_NIC 0 72048c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_DESIGN_LOM 0x1 72058c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_PHY_COPPER 0 72068c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_PHY_FIBER 0x2 72078c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_PHY_2_5G 0x20 72088c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_PHY_BACKPLANE 0x40 72098c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_LED_MODE_SHIFT_BITS 8 72108c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_LED_MODE_MASK 0x300 72118c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_LED_MODE_MAC 0 72128c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_LED_MODE_GPHY1 0x100 72138c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_LED_MODE_GPHY2 0x200 72148c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_GIG_LINK_ON_VAUX 0x8000 72158c2ecf20Sopenharmony_ci 72168c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG_CONFIG2 0x00000040 72178c2ecf20Sopenharmony_ci#define BNX2_SHARED_HW_CFG2_NVM_SIZE_MASK 0x00fff000 72188c2ecf20Sopenharmony_ci 72198c2ecf20Sopenharmony_ci#define BNX2_DEV_INFO_BC_REV 0x0000004c 72208c2ecf20Sopenharmony_ci 72218c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_MAC_UPPER 0x00000050 72228c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_UPPERMAC_MASK 0xffff 72238c2ecf20Sopenharmony_ci 72248c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_MAC_LOWER 0x00000054 72258c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_CONFIG 0x00000058 72268c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_CFG_TXCTL3_MASK 0x0000ffff 72278c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_CFG_DFLT_LINK_MASK 0x001f0000 72288c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_CFG_DFLT_LINK_AN 0x00000000 72298c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_CFG_DFLT_LINK_1G 0x00030000 72308c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_CFG_DFLT_LINK_2_5G 0x00040000 72318c2ecf20Sopenharmony_ci 72328c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_IMD_MAC_A_UPPER 0x00000068 72338c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_IMD_MAC_A_LOWER 0x0000006c 72348c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_IMD_MAC_B_UPPER 0x00000070 72358c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_IMD_MAC_B_LOWER 0x00000074 72368c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_ISCSI_MAC_UPPER 0x00000078 72378c2ecf20Sopenharmony_ci#define BNX2_PORT_HW_CFG_ISCSI_MAC_LOWER 0x0000007c 72388c2ecf20Sopenharmony_ci 72398c2ecf20Sopenharmony_ci#define BNX2_DEV_INFO_PER_PORT_HW_CONFIG2 0x000000b4 72408c2ecf20Sopenharmony_ci 72418c2ecf20Sopenharmony_ci#define BNX2_DEV_INFO_FORMAT_REV 0x000000c4 72428c2ecf20Sopenharmony_ci#define BNX2_DEV_INFO_FORMAT_REV_MASK 0xff000000 72438c2ecf20Sopenharmony_ci#define BNX2_DEV_INFO_FORMAT_REV_ID ('A' << 24) 72448c2ecf20Sopenharmony_ci 72458c2ecf20Sopenharmony_ci#define BNX2_SHARED_FEATURE 0x000000c8 72468c2ecf20Sopenharmony_ci#define BNX2_SHARED_FEATURE_MASK 0xffffffff 72478c2ecf20Sopenharmony_ci 72488c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE 0x000000d8 72498c2ecf20Sopenharmony_ci#define BNX2_PORT2_FEATURE 0x00000014c 72508c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_ENABLED 0x01000000 72518c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_ENABLED 0x02000000 72528c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_ASF_ENABLED 0x04000000 72538c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_IMD_ENABLED 0x08000000 72548c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_MASK 0xf 72558c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_DISABLED 0x0 72568c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_64K 0x1 72578c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_128K 0x2 72588c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_256K 0x3 72598c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_512K 0x4 72608c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_1M 0x5 72618c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_2M 0x6 72628c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_4M 0x7 72638c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_8M 0x8 72648c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_16M 0x9 72658c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_32M 0xa 72668c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_64M 0xb 72678c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_128M 0xc 72688c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_256M 0xd 72698c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_512M 0xe 72708c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_BAR1_SIZE_1G 0xf 72718c2ecf20Sopenharmony_ci 72728c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL 0xdc 72738c2ecf20Sopenharmony_ci#define BNX2_PORT2_FEATURE_WOL 0x150 72748c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_DEFAULT_SHIFT_BITS 4 72758c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_DEFAULT_MASK 0x30 72768c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_DEFAULT_DISABLE 0 72778c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_DEFAULT_MAGIC 0x10 72788c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_DEFAULT_ACPI 0x20 72798c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_DEFAULT_MAGIC_AND_ACPI 0x30 72808c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_LINK_SPEED_MASK 0xf 72818c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_LINK_SPEED_AUTONEG 0 72828c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_LINK_SPEED_10HALF 1 72838c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_LINK_SPEED_10FULL 2 72848c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_LINK_SPEED_100HALF 3 72858c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_LINK_SPEED_100FULL 4 72868c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_LINK_SPEED_1000HALF 5 72878c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_LINK_SPEED_1000FULL 6 72888c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_AUTONEG_ADVERTISE_1000 0x40 72898c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_RESERVED_PAUSE_CAP 0x400 72908c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_WOL_RESERVED_ASYM_PAUSE_CAP 0x800 72918c2ecf20Sopenharmony_ci 72928c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA 0xe0 72938c2ecf20Sopenharmony_ci#define BNX2_PORT2_FEATURE_MBA 0x154 72948c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_BOOT_AGENT_TYPE_SHIFT_BITS 0 72958c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_BOOT_AGENT_TYPE_MASK 0x3 72968c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_BOOT_AGENT_TYPE_PXE 0 72978c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_BOOT_AGENT_TYPE_RPL 1 72988c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_BOOT_AGENT_TYPE_BOOTP 2 72998c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_LINK_SPEED_SHIFT_BITS 2 73008c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_LINK_SPEED_MASK 0x3c 73018c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_LINK_SPEED_AUTONEG 0 73028c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_LINK_SPEED_10HALF 0x4 73038c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_LINK_SPEED_10FULL 0x8 73048c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_LINK_SPEED_100HALF 0xc 73058c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_LINK_SPEED_100FULL 0x10 73068c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_LINK_SPEED_1000HALF 0x14 73078c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_LINK_SPEED_1000FULL 0x18 73088c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_SETUP_PROMPT_ENABLE 0x40 73098c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_HOTKEY_CTRL_S 0 73108c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_HOTKEY_CTRL_B 0x80 73118c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_SHIFT_BITS 8 73128c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_MASK 0xff00 73138c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_DISABLED 0 73148c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_1K 0x100 73158c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_2K 0x200 73168c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_4K 0x300 73178c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_8K 0x400 73188c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_16K 0x500 73198c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_32K 0x600 73208c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_64K 0x700 73218c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_128K 0x800 73228c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_256K 0x900 73238c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_512K 0xa00 73248c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_1M 0xb00 73258c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_2M 0xc00 73268c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_4M 0xd00 73278c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_8M 0xe00 73288c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_EXP_ROM_SIZE_16M 0xf00 73298c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_MSG_TIMEOUT_SHIFT_BITS 16 73308c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_MSG_TIMEOUT_MASK 0xf0000 73318c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_BIOS_BOOTSTRAP_SHIFT_BITS 20 73328c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_BIOS_BOOTSTRAP_MASK 0x300000 73338c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_BIOS_BOOTSTRAP_AUTO 0 73348c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_BIOS_BOOTSTRAP_BBS 0x100000 73358c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_BIOS_BOOTSTRAP_INT18H 0x200000 73368c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_BIOS_BOOTSTRAP_INT19H 0x300000 73378c2ecf20Sopenharmony_ci 73388c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_IMD 0xe4 73398c2ecf20Sopenharmony_ci#define BNX2_PORT2_FEATURE_IMD 0x158 73408c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_IMD_LINK_OVERRIDE_DEFAULT 0 73418c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_IMD_LINK_OVERRIDE_ENABLE 1 73428c2ecf20Sopenharmony_ci 73438c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_VLAN 0xe8 73448c2ecf20Sopenharmony_ci#define BNX2_PORT2_FEATURE_VLAN 0x15c 73458c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_VLAN_TAG_MASK 0xffff 73468c2ecf20Sopenharmony_ci#define BNX2_PORT_FEATURE_MBA_VLAN_ENABLE 0x10000 73478c2ecf20Sopenharmony_ci 73488c2ecf20Sopenharmony_ci#define BNX2_MFW_VER_PTR 0x00000014c 73498c2ecf20Sopenharmony_ci 73508c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RESET_TYPE 0x000001c0 73518c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RESET_TYPE_SIG 0x00005254 73528c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RESET_TYPE_SIG_MASK 0x0000ffff 73538c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RESET_TYPE_NONE (BNX2_BC_STATE_RESET_TYPE_SIG | \ 73548c2ecf20Sopenharmony_ci 0x00010000) 73558c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RESET_TYPE_PCI (BNX2_BC_STATE_RESET_TYPE_SIG | \ 73568c2ecf20Sopenharmony_ci 0x00020000) 73578c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RESET_TYPE_VAUX (BNX2_BC_STATE_RESET_TYPE_SIG | \ 73588c2ecf20Sopenharmony_ci 0x00030000) 73598c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RESET_TYPE_DRV_MASK DRV_MSG_CODE 73608c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RESET_TYPE_DRV_RESET (BNX2_BC_STATE_RESET_TYPE_SIG | \ 73618c2ecf20Sopenharmony_ci DRV_MSG_CODE_RESET) 73628c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RESET_TYPE_DRV_UNLOAD (BNX2_BC_STATE_RESET_TYPE_SIG | \ 73638c2ecf20Sopenharmony_ci DRV_MSG_CODE_UNLOAD) 73648c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RESET_TYPE_DRV_SHUTDOWN (BNX2_BC_STATE_RESET_TYPE_SIG | \ 73658c2ecf20Sopenharmony_ci DRV_MSG_CODE_SHUTDOWN) 73668c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RESET_TYPE_DRV_WOL (BNX2_BC_STATE_RESET_TYPE_SIG | \ 73678c2ecf20Sopenharmony_ci DRV_MSG_CODE_WOL) 73688c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RESET_TYPE_DRV_DIAG (BNX2_BC_STATE_RESET_TYPE_SIG | \ 73698c2ecf20Sopenharmony_ci DRV_MSG_CODE_DIAG) 73708c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RESET_TYPE_VALUE(msg) (BNX2_BC_STATE_RESET_TYPE_SIG | \ 73718c2ecf20Sopenharmony_ci (msg)) 73728c2ecf20Sopenharmony_ci 73738c2ecf20Sopenharmony_ci#define BNX2_BC_RESET_TYPE 0x000001c0 73748c2ecf20Sopenharmony_ci 73758c2ecf20Sopenharmony_ci#define BNX2_BC_STATE 0x000001c4 73768c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_ERR_MASK 0x0000ff00 73778c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_SIGN 0x42530000 73788c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_SIGN_MASK 0xffff0000 73798c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_BC1_START (BNX2_BC_STATE_SIGN | 0x1) 73808c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_GET_NVM_CFG1 (BNX2_BC_STATE_SIGN | 0x2) 73818c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_PROG_BAR (BNX2_BC_STATE_SIGN | 0x3) 73828c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_INIT_VID (BNX2_BC_STATE_SIGN | 0x4) 73838c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_GET_NVM_CFG2 (BNX2_BC_STATE_SIGN | 0x5) 73848c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_APPLY_WKARND (BNX2_BC_STATE_SIGN | 0x6) 73858c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_LOAD_BC2 (BNX2_BC_STATE_SIGN | 0x7) 73868c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_GOING_BC2 (BNX2_BC_STATE_SIGN | 0x8) 73878c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_GOING_DIAG (BNX2_BC_STATE_SIGN | 0x9) 73888c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RT_FINAL_INIT (BNX2_BC_STATE_SIGN | 0x81) 73898c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RT_WKARND (BNX2_BC_STATE_SIGN | 0x82) 73908c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RT_DRV_PULSE (BNX2_BC_STATE_SIGN | 0x83) 73918c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RT_FIOEVTS (BNX2_BC_STATE_SIGN | 0x84) 73928c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RT_DRV_CMD (BNX2_BC_STATE_SIGN | 0x85) 73938c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RT_LOW_POWER (BNX2_BC_STATE_SIGN | 0x86) 73948c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RT_SET_WOL (BNX2_BC_STATE_SIGN | 0x87) 73958c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RT_OTHER_FW (BNX2_BC_STATE_SIGN | 0x88) 73968c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_RT_GOING_D3 (BNX2_BC_STATE_SIGN | 0x89) 73978c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_ERR_BAD_VERSION (BNX2_BC_STATE_SIGN | 0x0100) 73988c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_ERR_BAD_BC2_CRC (BNX2_BC_STATE_SIGN | 0x0200) 73998c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_ERR_BC1_LOOP (BNX2_BC_STATE_SIGN | 0x0300) 74008c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_ERR_UNKNOWN_CMD (BNX2_BC_STATE_SIGN | 0x0400) 74018c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_ERR_DRV_DEAD (BNX2_BC_STATE_SIGN | 0x0500) 74028c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_ERR_NO_RXP (BNX2_BC_STATE_SIGN | 0x0600) 74038c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_ERR_TOO_MANY_RBUF (BNX2_BC_STATE_SIGN | 0x0700) 74048c2ecf20Sopenharmony_ci 74058c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_CONDITION 0x000001c8 74068c2ecf20Sopenharmony_ci#define BNX2_CONDITION_MFW_RUN_UNKNOWN 0x00000000 74078c2ecf20Sopenharmony_ci#define BNX2_CONDITION_MFW_RUN_IPMI 0x00002000 74088c2ecf20Sopenharmony_ci#define BNX2_CONDITION_MFW_RUN_UMP 0x00004000 74098c2ecf20Sopenharmony_ci#define BNX2_CONDITION_MFW_RUN_NCSI 0x00006000 74108c2ecf20Sopenharmony_ci#define BNX2_CONDITION_MFW_RUN_NONE 0x0000e000 74118c2ecf20Sopenharmony_ci#define BNX2_CONDITION_MFW_RUN_MASK 0x0000e000 74128c2ecf20Sopenharmony_ci#define BNX2_CONDITION_PM_STATE_MASK 0x00030000 74138c2ecf20Sopenharmony_ci#define BNX2_CONDITION_PM_STATE_FULL 0x00030000 74148c2ecf20Sopenharmony_ci#define BNX2_CONDITION_PM_STATE_PREP 0x00020000 74158c2ecf20Sopenharmony_ci#define BNX2_CONDITION_PM_STATE_UNPREP 0x00010000 74168c2ecf20Sopenharmony_ci 74178c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_DEBUG_CMD 0x1dc 74188c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_BC_DBG_CMD_SIGNATURE 0x42440000 74198c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_BC_DBG_CMD_SIGNATURE_MASK 0xffff0000 74208c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_BC_DBG_CMD_LOOP_CNT_MASK 0xffff 74218c2ecf20Sopenharmony_ci#define BNX2_BC_STATE_BC_DBG_CMD_LOOP_INFINITE 0xffff 74228c2ecf20Sopenharmony_ci 74238c2ecf20Sopenharmony_ci#define BNX2_FW_EVT_CODE_MB 0x354 74248c2ecf20Sopenharmony_ci#define BNX2_FW_EVT_CODE_SW_TIMER_EXPIRATION_EVENT 0x00000000 74258c2ecf20Sopenharmony_ci#define BNX2_FW_EVT_CODE_LINK_EVENT 0x00000001 74268c2ecf20Sopenharmony_ci 74278c2ecf20Sopenharmony_ci#define BNX2_DRV_ACK_CAP_MB 0x364 74288c2ecf20Sopenharmony_ci#define BNX2_DRV_ACK_CAP_SIGNATURE 0x35450000 74298c2ecf20Sopenharmony_ci#define BNX2_CAPABILITY_SIGNATURE_MASK 0xFFFF0000 74308c2ecf20Sopenharmony_ci 74318c2ecf20Sopenharmony_ci#define BNX2_FW_CAP_MB 0x368 74328c2ecf20Sopenharmony_ci#define BNX2_FW_CAP_SIGNATURE 0xaa550000 74338c2ecf20Sopenharmony_ci#define BNX2_FW_ACK_DRV_SIGNATURE 0x52500000 74348c2ecf20Sopenharmony_ci#define BNX2_FW_CAP_SIGNATURE_MASK 0xffff0000 74358c2ecf20Sopenharmony_ci#define BNX2_FW_CAP_REMOTE_PHY_CAPABLE 0x00000001 74368c2ecf20Sopenharmony_ci#define BNX2_FW_CAP_REMOTE_PHY_PRESENT 0x00000002 74378c2ecf20Sopenharmony_ci#define BNX2_FW_CAP_MFW_CAN_KEEP_VLAN 0x00000008 74388c2ecf20Sopenharmony_ci#define BNX2_FW_CAP_BC_CAN_KEEP_VLAN 0x00000010 74398c2ecf20Sopenharmony_ci#define BNX2_FW_CAP_CAN_KEEP_VLAN (BNX2_FW_CAP_BC_CAN_KEEP_VLAN | \ 74408c2ecf20Sopenharmony_ci BNX2_FW_CAP_MFW_CAN_KEEP_VLAN) 74418c2ecf20Sopenharmony_ci 74428c2ecf20Sopenharmony_ci#define BNX2_RPHY_SIGNATURE 0x36c 74438c2ecf20Sopenharmony_ci#define BNX2_RPHY_LOAD_SIGNATURE 0x5a5a5a5a 74448c2ecf20Sopenharmony_ci 74458c2ecf20Sopenharmony_ci#define BNX2_RPHY_FLAGS 0x370 74468c2ecf20Sopenharmony_ci#define BNX2_RPHY_SERDES_LINK 0x374 74478c2ecf20Sopenharmony_ci#define BNX2_RPHY_COPPER_LINK 0x378 74488c2ecf20Sopenharmony_ci 74498c2ecf20Sopenharmony_ci#define BNX2_ISCSI_INITIATOR 0x3dc 74508c2ecf20Sopenharmony_ci#define BNX2_ISCSI_INITIATOR_EN 0x00080000 74518c2ecf20Sopenharmony_ci 74528c2ecf20Sopenharmony_ci#define BNX2_ISCSI_MAX_CONN 0x3e4 74538c2ecf20Sopenharmony_ci#define BNX2_ISCSI_MAX_CONN_MASK 0xffff0000 74548c2ecf20Sopenharmony_ci#define BNX2_ISCSI_MAX_CONN_SHIFT 16 74558c2ecf20Sopenharmony_ci 74568c2ecf20Sopenharmony_ci#define HOST_VIEW_SHMEM_BASE 0x167c00 74578c2ecf20Sopenharmony_ci 74588c2ecf20Sopenharmony_ci#define DP_SHMEM_LINE(bp, offset) \ 74598c2ecf20Sopenharmony_ci netdev_err(bp->dev, "DEBUG: %08x: %08x %08x %08x %08x\n", \ 74608c2ecf20Sopenharmony_ci offset, \ 74618c2ecf20Sopenharmony_ci bnx2_shmem_rd(bp, offset), \ 74628c2ecf20Sopenharmony_ci bnx2_shmem_rd(bp, offset + 4), \ 74638c2ecf20Sopenharmony_ci bnx2_shmem_rd(bp, offset + 8), \ 74648c2ecf20Sopenharmony_ci bnx2_shmem_rd(bp, offset + 12)) 74658c2ecf20Sopenharmony_ci 74668c2ecf20Sopenharmony_ci#endif 7467