1 #ifndef _BIGMAC_ADDRESSES_H 2 #define _BIGMAC_ADDRESSES_H 3 4 #define BIGMAC_REGISTER_BMAC_CONTROL (0x00<<3) //0x000 5 #define BIGMAC_REGISTER_BMAC_XGXS_CONTROL (0x01<<3) //0x008 6 #define BIGMAC_REGISTER_BMAC_XGXS_STATUS (0x02<<3) //0x010 7 #define BIGMAC_REGISTER_TX_MUX_CONTROL (0x03<<3) //0x018 8 #define BIGMAC_REGISTER_RX_MUX_CONTROL (0x04<<3) //0x020 9 #define BIGMAC_REGISTER_CNT_MAX_SIZE (0x05<<3) //0x028 10 #define BIGMAC_REGISTER_TX_CONTROL (0x07<<3) //0x038 11 #define BIGMAC_REGISTER_TX_SOURCE_ADDR (0x08<<3) //0x040 12 #define BIGMAC_REGISTER_TX_MAX_SIZE (0x09<<3) //0x048 13 #define BIGMAC_REGISTER_TX_PAUSE_THRESHOLD (0x0A<<3) //0x050 14 #define BIGMAC_REGISTER_TX_STAT_GTPKT (0x0C<<3) //0x060 15 #define BIGMAC_REGISTER_TX_STAT_GTXPF (0x0D<<3) //0x068 16 #define BIGMAC_REGISTER_TX_STAT_GTFCS (0x0E<<3) //0x070 17 #define BIGMAC_REGISTER_TX_STAT_GTMCA (0x0F<<3) //0x078 18 #define BIGMAC_REGISTER_TX_STAT_GTGCA (0x10<<3) //0x080 19 #define BIGMAC_REGISTER_TX_STAT_GTFRG (0x11<<3) //0x088 20 #define BIGMAC_REGISTER_TX_STAT_GTOVR (0x12<<3) //0x090 21 #define BIGMAC_REGISTER_TX_STAT_GT64 (0x13<<3) //0x098 22 #define BIGMAC_REGISTER_TX_STAT_GT127 (0x14<<3) //0x0A0 23 #define BIGMAC_REGISTER_TX_STAT_GT255 (0x15<<3) //0x0A8 24 #define BIGMAC_REGISTER_TX_STAT_GT511 (0x16<<3) //0x0B0 25 #define BIGMAC_REGISTER_TX_STAT_GT1023 (0x17<<3) //0x0B8 26 #define BIGMAC_REGISTER_TX_STAT_GT1518 (0x18<<3) //0x0C0 27 #define BIGMAC_REGISTER_TX_STAT_GT2047 (0x19<<3) //0x0C8 28 #define BIGMAC_REGISTER_TX_STAT_GT4095 (0x1A<<3) //0x0D0 29 #define BIGMAC_REGISTER_TX_STAT_GT9216 (0x1B<<3) //0x0D8 30 #define BIGMAC_REGISTER_TX_STAT_GT16383 (0x1C<<3) //0x0E0 31 #define BIGMAC_REGISTER_TX_STAT_GTMAX (0x1D<<3) //0x0E8 32 #define BIGMAC_REGISTER_TX_STAT_GTUFL (0x1E<<3) //0x0F0 33 #define BIGMAC_REGISTER_TX_STAT_GTERR (0x1F<<3) //0x0F8 34 #define BIGMAC_REGISTER_TX_STAT_GTBYT (0x20<<3) //0x100 35 #define BIGMAC_REGISTER_RX_CONTROL (0x21<<3) //0x108 36 #define BIGMAC_REGISTER_RX_SOURCE_ADDR (0x22<<3) //0x110 37 #define BIGMAC_REGISTER_RX_MAX_SIZE (0x23<<3) //0x118 38 #define BIGMAC_REGISTER_RX_LSS_CONTROL (0x24<<3) //0x120 39 #define BIGMAC_REGISTER_RX_STAT_GR64 (0x26<<3) //0x130 40 #define BIGMAC_REGISTER_RX_STAT_GR127 (0x27<<3) //0x138 41 #define BIGMAC_REGISTER_RX_STAT_GR255 (0x28<<3) //0x140 42 #define BIGMAC_REGISTER_RX_STAT_GR511 (0x29<<3) //0x148 43 #define BIGMAC_REGISTER_RX_STAT_GR1023 (0x2A<<3) //0x150 44 #define BIGMAC_REGISTER_RX_STAT_GR1518 (0x2B<<3) //0x158 45 #define BIGMAC_REGISTER_RX_STAT_GR2047 (0x2C<<3) //0x160 46 #define BIGMAC_REGISTER_RX_STAT_GR4095 (0x2D<<3) //0x168 47 #define BIGMAC_REGISTER_RX_STAT_GR9216 (0x2E<<3) //0x170 48 #define BIGMAC_REGISTER_RX_STAT_GR16383 (0x2F<<3) //0x178 49 #define BIGMAC_REGISTER_RX_STAT_GRMAX (0x30<<3) //0x180 50 #define BIGMAC_REGISTER_RX_STAT_GRPKT (0x31<<3) //0x188 51 #define BIGMAC_REGISTER_RX_STAT_GRFCS (0x32<<3) //0x190 52 #define BIGMAC_REGISTER_RX_STAT_GRMCA (0x33<<3) //0x198 53 #define BIGMAC_REGISTER_RX_STAT_GRBCA (0x34<<3) //0x1A0 54 #define BIGMAC_REGISTER_RX_STAT_GRXCF (0x35<<3) //0x1A8 55 #define BIGMAC_REGISTER_RX_STAT_GRXPF (0x36<<3) //0x1B0 56 #define BIGMAC_REGISTER_RX_STAT_GRXUO (0x37<<3) //0x1B8 57 #define BIGMAC_REGISTER_RX_STAT_GRJBR (0x38<<3) //0x1C0 58 #define BIGMAC_REGISTER_RX_STAT_GROVR (0x39<<3) //0x1C8 59 #define BIGMAC_REGISTER_RX_STAT_GRFLR (0x3A<<3) //0x1D0 60 #define BIGMAC_REGISTER_RX_STAT_GRMEG (0x3B<<3) //0x1D8 61 #define BIGMAC_REGISTER_RX_STAT_GRMEB (0x3C<<3) //0x1E0 62 #define BIGMAC_REGISTER_RX_STAT_GRBYT (0x3D<<3) //0x1E8 63 #define BIGMAC_REGISTER_RX_STAT_GRUND (0x3E<<3) //0x1F0 64 #define BIGMAC_REGISTER_RX_STAT_GRFRG (0x3F<<3) //0x1F8 65 #define BIGMAC_REGISTER_RX_STAT_GRERB (0x40<<3) //0x200 66 #define BIGMAC_REGISTER_RX_STAT_GRFRE (0x41<<3) //0x208 67 #define BIGMAC_REGISTER_RX_STAT_GRIPJ (0x42<<3) //0x210 68 #define BIGMAC_REGISTER_RX_LSS_STATUS (0x43<<3) //0x218 69 #define BIGMAC_REGISTER_TX_LLFC_CTRLS (0x44<<3) //0x220 70 #define BIGMAC_REGISTER_TX_LLFC_MSG_FLDS (0x45<<3) //0x228 71 #define BIGMAC_REGISTER_RX_LLFC_MSG_FLDS (0x46<<3) //0x230 72 73 // Everest2 Bigmac 74 #define BIGMAC2_REGISTER_BMAC_CONTROL (0x00<<3) //0x000 75 #define BIGMAC2_REGISTER_BMAC_XGXS_CONTROL (0x01<<3) //0x008 76 #define BIGMAC2_REGISTER_BMAC_XGXS_STATUS (0x02<<3) //0x010 77 #define BIGMAC2_REGISTER_TX_MUX_CONTROL (0x03<<3) //0x018 78 #define BIGMAC2_REGISTER_RX_MUX_CONTROL (0x04<<3) //0x020 79 #define BIGMAC2_REGISTER_CNT_MAX_SIZE (0x05<<3) //0x028 80 #define BIGMAC2_REGISTER_PFC_CONTROL (0x06<<3) //0x030 81 #define BIGMAC2_REGISTER_PFC_DA (0x07<<3) //0x038 82 #define BIGMAC2_REGISTER_PFC_FIELD (0x08<<3) //0x040 83 #define BIGMAC2_REGISTER_PFC_COS0_XOFF_CNT (0x09<<3) //0x048 84 #define BIGMAC2_REGISTER_PFC_COS1_XOFF_CNT (0x0A<<3) //0x050 85 #define BIGMAC2_REGISTER_PFC_COS2_XOFF_CNT (0x0B<<3) //0x058 86 #define BIGMAC2_REGISTER_PFC_COS3_XOFF_CNT (0x0C<<3) //0x060 87 #define BIGMAC2_REGISTER_PFC_COS4_XOFF_CNT (0x0D<<3) //0x068 88 #define BIGMAC2_REGISTER_PFC_COS5_XOFF_CNT (0x0E<<3) //0x070 89 #define BIGMAC2_REGISTER_PFC_COS6_XOFF_CNT (0x0F<<3) //0x078 90 #define BIGMAC2_REGISTER_PFC_COS7_XOFF_CNT (0x10<<3) //0x080 91 #define BIGMAC2_REGISTER_PFC_COS8_XOFF_CNT (0x11<<3) //0x088 92 #define BIGMAC2_REGISTER_PFC_COS9_XOFF_CNT (0x12<<3) //0x090 93 #define BIGMAC2_REGISTER_PFC_COS10_XOFF_CNT (0x13<<3) //0x098 94 #define BIGMAC2_REGISTER_PFC_COS11_XOFF_CNT (0x14<<3) //0x0A0 95 #define BIGMAC2_REGISTER_PFC_COS12_XOFF_CNT (0x15<<3) //0x0A8 96 #define BIGMAC2_REGISTER_PFC_COS13_XOFF_CNT (0x16<<3) //0x0B0 97 #define BIGMAC2_REGISTER_PFC_COS14_XOFF_CNT (0x17<<3) //0x0B8 98 #define BIGMAC2_REGISTER_PFC_COS15_XOFF_CNT (0x18<<3) //0x0C0 99 #define BIGMAC2_REGISTER_HCFC_CTRL (0x19<<3) //0x0C8 100 #define BIGMAC2_REGISTER_HCFC_STATUS (0x1A<<3) //0x0D0 101 #define BIGMAC2_REGISTER_CORE_SPARE0 (0x1B<<3) //0x0D8 102 #define BIGMAC2_REGISTER_TX_CONTROL (0x1C<<3) //0x0E0 103 #define BIGMAC2_REGISTER_TX_SOURCE_ADDR (0x1D<<3) //0x0E8 104 #define BIGMAC2_REGISTER_TX_MAX_SIZE (0x1E<<3) //0x0F0 105 #define BIGMAC2_REGISTER_TX_PAUSE_THRESHOLD (0x1F<<3) //0x0F8 106 #define BIGMAC2_REGISTER_TX_PAUSE_CONTROL (0x20<<3) //0x100 107 #define BIGMAC2_REGISTER_TX_SPARE0 (0x21<<3) //0x108 108 #define BIGMAC2_REGISTER_TX_STAT_GTPOK (0x22<<3) //0x110 109 #define BIGMAC2_REGISTER_TX_STAT_GTPF (0x23<<3) //0x118 110 #define BIGMAC2_REGISTER_TX_STAT_GTPP (0x24<<3) //0x120 111 #define BIGMAC2_REGISTER_TX_STAT_GTFCS (0x25<<3) //0x130 112 #define BIGMAC2_REGISTER_TX_STAT_GTUCA (0x26<<3) //0x138 113 #define BIGMAC2_REGISTER_TX_STAT_GTMCA (0x27<<3) //0x140 114 #define BIGMAC2_REGISTER_TX_STAT_GTBCA (0x28<<3) //0x148 115 #define BIGMAC2_REGISTER_TX_STAT_GTOVR (0x29<<3) //0x150 116 #define BIGMAC2_REGISTER_TX_STAT_GTFRG (0x2A<<3) //0x158 117 #define BIGMAC2_REGISTER_TX_STAT_GTPKT (0x2B<<3) //0x160 118 #define BIGMAC2_REGISTER_TX_STAT_GT64 (0x2C<<3) //0x168 119 #define BIGMAC2_REGISTER_TX_STAT_GT127 (0x2D<<3) //0x168 120 #define BIGMAC2_REGISTER_TX_STAT_GT255 (0x2E<<3) //0x170 121 #define BIGMAC2_REGISTER_TX_STAT_GT511 (0x2F<<3) //0x178 122 #define BIGMAC2_REGISTER_TX_STAT_GT1023 (0x30<<3) //0x180 123 #define BIGMAC2_REGISTER_TX_STAT_GT1518 (0x31<<3) //0x188 124 #define BIGMAC2_REGISTER_TX_STAT_GT2047 (0x32<<3) //0x190 125 #define BIGMAC2_REGISTER_TX_STAT_GT4095 (0x33<<3) //0x198 126 #define BIGMAC2_REGISTER_TX_STAT_GT9216 (0x34<<3) //0x1A0 127 #define BIGMAC2_REGISTER_TX_STAT_GT16383 (0x35<<3) //0x1A8 128 #define BIGMAC2_REGISTER_TX_STAT_GTMAX (0x36<<3) //0x1B0 129 #define BIGMAC2_REGISTER_TX_STAT_GTUFL (0x37<<3) //0x1B8 130 #define BIGMAC2_REGISTER_TX_STAT_GTERR (0x38<<3) //0x1C0 131 #define BIGMAC2_REGISTER_TX_STAT_GTBYT (0x39<<3) //0x1C8 132 #define BIGMAC2_REGISTER_RX_CONTROL (0x3A<<3) //0x1D0 133 #define BIGMAC2_REGISTER_RX_SOURCE_ADDR (0x3B<<3) //0x1D8 134 #define BIGMAC2_REGISTER_RX_MAX_SIZE (0x3C<<3) //0x1E0 135 #define BIGMAC2_REGISTER_RX_LSS_CONTROL (0x3D<<3) //0x1E8 136 #define BIGMAC2_REGISTER_RX_LSS_STAT (0x3E<<3) //0x1F0 137 #define BIGMAC2_REGISTER_RX_SPARE0 (0x3F<<3) //0x1F8 138 #define BIGMAC2_REGISTER_RX_STAT_GR64 (0x40<<3) //0x200 139 #define BIGMAC2_REGISTER_RX_STAT_GR127 (0x41<<3) //0x208 140 #define BIGMAC2_REGISTER_RX_STAT_GR255 (0x42<<3) //0x210 141 #define BIGMAC2_REGISTER_RX_STAT_GR511 (0x43<<3) //0x218 142 #define BIGMAC2_REGISTER_RX_STAT_GR1023 (0x44<<3) //0x220 143 #define BIGMAC2_REGISTER_RX_STAT_GR1518 (0x45<<3) //0x228 144 #define BIGMAC2_REGISTER_RX_STAT_GR2047 (0x46<<3) //0x230 145 #define BIGMAC2_REGISTER_RX_STAT_GR4095 (0x47<<3) //0x238 146 #define BIGMAC2_REGISTER_RX_STAT_GR9216 (0x48<<3) //0x240 147 #define BIGMAC2_REGISTER_RX_STAT_GR16383 (0x49<<3) //0x248 148 #define BIGMAC2_REGISTER_RX_STAT_GRMAX (0x4a<<3) //0x250 149 #define BIGMAC2_REGISTER_RX_STAT_GRPKT (0x4b<<3) //0x258 150 #define BIGMAC2_REGISTER_RX_STAT_GRFCS (0x4c<<3) //0x260 151 #define BIGMAC2_REGISTER_RX_STAT_GRUCA (0x4d<<3) //0x268 152 #define BIGMAC2_REGISTER_RX_STAT_GRMCA (0x4e<<3) //0x270 153 #define BIGMAC2_REGISTER_RX_STAT_GRBCA (0x4f<<3) //0x278 154 #define BIGMAC2_REGISTER_RX_STAT_GRPF (0x50<<3) //0x280 155 #define BIGMAC2_REGISTER_RX_STAT_GRPP (0x51<<3) //0x288 156 #define BIGMAC2_REGISTER_RX_STAT_GRUO (0x52<<3) //0x290 157 #define BIGMAC2_REGISTER_RX_STAT_GRJBR (0x53<<3) //0x298 158 #define BIGMAC2_REGISTER_RX_STAT_GROVR (0x54<<3) //0x2A0 159 #define BIGMAC2_REGISTER_RX_STAT_GRCF (0x55<<3) //0x2A8 160 #define BIGMAC2_REGISTER_RX_STAT_GRFLR (0x56<<3) //0x2B0 161 #define BIGMAC2_REGISTER_RX_STAT_GRPOK (0x57<<3) //0x2B8 162 #define BIGMAC2_REGISTER_RX_STAT_GRMEG (0x58<<3) //0x2C0 163 #define BIGMAC2_REGISTER_RX_STAT_GRMEB (0x59<<3) //0x2C8 164 #define BIGMAC2_REGISTER_RX_STAT_GRBYT (0x5a<<3) //0x2D0 165 #define BIGMAC2_REGISTER_RX_STAT_GRUND (0x5b<<3) //0x2D8 166 #define BIGMAC2_REGISTER_RX_STAT_GRFRG (0x5c<<3) //0x2E0 167 #define BIGMAC2_REGISTER_RX_STAT_GRERRBYT (0x5d<<3) //0x2E8 168 #define BIGMAC2_REGISTER_RX_STAT_GRFRERR (0x5e<<3) //0x2F0 169 #define BIGMAC2_REGISTER_RX_STAT_GRIPJ (0x5f<<3) //0x2F8 170 #define BIGMAC2_REGISTER_TX_LLFC_CTRL (0x60<<3) //0x300 171 #define BIGMAC2_REGISTER_TX_LLFC_MSG_FLDS (0x61<<3) //0x308 172 #define BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS (0x62<<3) //0x310 173 #define BIGMAC2_REGISTER_RX_LLFC_MSG_CNT (0x63<<3) //0x318 174 #define BIGMAC2_REGISTER_TX_TIME_STAMP_FIFO_READ (0x64<<3) //0x320 175 #define BIGMAC2_REGISTER_TX_TIME_STAMP_FIFO_STATUS (0x65<<3) //0x328 176 177 #endif //_BIGMAC_ADDRESSES_H 178 179