Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1 | /* bnx2x_reg.h: Broadcom Everest network driver. |
| 2 | * |
Dmitry Kravkov | 5de9240 | 2011-05-04 23:51:13 +0000 | [diff] [blame] | 3 | * Copyright (c) 2007-2011 Broadcom Corporation |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation. |
| 8 | * |
Eilon Greenstein | 3347162 | 2008-08-13 15:59:08 -0700 | [diff] [blame] | 9 | * The registers description starts with the register Access type followed |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 10 | * by size in bits. For example [RW 32]. The access types are: |
| 11 | * R - Read only |
| 12 | * RC - Clear on read |
| 13 | * RW - Read/Write |
| 14 | * ST - Statistics register (clear on read) |
| 15 | * W - Write only |
| 16 | * WB - Wide bus register - the size is over 32 bits and it should be |
| 17 | * read/write in consecutive 32 bits accesses |
| 18 | * WR - Write Clear (write 1 to clear the bit) |
| 19 | * |
| 20 | */ |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 21 | #ifndef BNX2X_REG_H |
| 22 | #define BNX2X_REG_H |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 23 | |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 24 | #define ATC_ATC_INT_STS_REG_ADDRESS_ERROR (0x1<<0) |
| 25 | #define ATC_ATC_INT_STS_REG_ATC_GPA_MULTIPLE_HITS (0x1<<2) |
| 26 | #define ATC_ATC_INT_STS_REG_ATC_IREQ_LESS_THAN_STU (0x1<<5) |
| 27 | #define ATC_ATC_INT_STS_REG_ATC_RCPL_TO_EMPTY_CNT (0x1<<3) |
| 28 | #define ATC_ATC_INT_STS_REG_ATC_TCPL_ERROR (0x1<<4) |
| 29 | #define ATC_ATC_INT_STS_REG_ATC_TCPL_TO_NOT_PEND (0x1<<1) |
| 30 | /* [RW 1] Initiate the ATC array - reset all the valid bits */ |
| 31 | #define ATC_REG_ATC_INIT_ARRAY 0x1100b8 |
| 32 | /* [R 1] ATC initalization done */ |
| 33 | #define ATC_REG_ATC_INIT_DONE 0x1100bc |
| 34 | /* [RC 6] Interrupt register #0 read clear */ |
| 35 | #define ATC_REG_ATC_INT_STS_CLR 0x1101c0 |
| 36 | /* [RW 19] Interrupt mask register #0 read/write */ |
| 37 | #define BRB1_REG_BRB1_INT_MASK 0x60128 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 38 | /* [R 19] Interrupt register #0 read */ |
| 39 | #define BRB1_REG_BRB1_INT_STS 0x6011c |
| 40 | /* [RW 4] Parity mask register #0 read/write */ |
| 41 | #define BRB1_REG_BRB1_PRTY_MASK 0x60138 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 42 | /* [R 4] Parity register #0 read */ |
| 43 | #define BRB1_REG_BRB1_PRTY_STS 0x6012c |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 44 | /* [RC 4] Parity register #0 read clear */ |
| 45 | #define BRB1_REG_BRB1_PRTY_STS_CLR 0x60130 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 46 | /* [RW 10] At address BRB1_IND_FREE_LIST_PRS_CRDT initialize free head. At |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 47 | * address BRB1_IND_FREE_LIST_PRS_CRDT+1 initialize free tail. At address |
| 48 | * BRB1_IND_FREE_LIST_PRS_CRDT+2 initialize parser initial credit. Warning - |
| 49 | * following reset the first rbc access to this reg must be write; there can |
| 50 | * be no more rbc writes after the first one; there can be any number of rbc |
| 51 | * read following the first write; rbc access not following these rules will |
| 52 | * result in hang condition. */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 53 | #define BRB1_REG_FREE_LIST_PRS_CRDT 0x60200 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 54 | /* [RW 10] The number of free blocks below which the full signal to class 0 |
| 55 | * is asserted */ |
| 56 | #define BRB1_REG_FULL_0_XOFF_THRESHOLD_0 0x601d0 |
| 57 | /* [RW 10] The number of free blocks above which the full signal to class 0 |
| 58 | * is de-asserted */ |
| 59 | #define BRB1_REG_FULL_0_XON_THRESHOLD_0 0x601d4 |
| 60 | /* [RW 10] The number of free blocks below which the full signal to class 1 |
| 61 | * is asserted */ |
| 62 | #define BRB1_REG_FULL_1_XOFF_THRESHOLD_0 0x601d8 |
| 63 | /* [RW 10] The number of free blocks above which the full signal to class 1 |
| 64 | * is de-asserted */ |
| 65 | #define BRB1_REG_FULL_1_XON_THRESHOLD_0 0x601dc |
| 66 | /* [RW 10] The number of free blocks below which the full signal to the LB |
| 67 | * port is asserted */ |
| 68 | #define BRB1_REG_FULL_LB_XOFF_THRESHOLD 0x601e0 |
| 69 | /* [RW 10] The number of free blocks above which the full signal to the LB |
| 70 | * port is de-asserted */ |
| 71 | #define BRB1_REG_FULL_LB_XON_THRESHOLD 0x601e4 |
Eilon Greenstein | 1c06328 | 2009-02-12 08:36:43 +0000 | [diff] [blame] | 72 | /* [RW 10] The number of free blocks above which the High_llfc signal to |
| 73 | interface #n is de-asserted. */ |
| 74 | #define BRB1_REG_HIGH_LLFC_HIGH_THRESHOLD_0 0x6014c |
| 75 | /* [RW 10] The number of free blocks below which the High_llfc signal to |
| 76 | interface #n is asserted. */ |
| 77 | #define BRB1_REG_HIGH_LLFC_LOW_THRESHOLD_0 0x6013c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 78 | /* [RW 23] LL RAM data. */ |
| 79 | #define BRB1_REG_LL_RAM 0x61000 |
Eilon Greenstein | 1c06328 | 2009-02-12 08:36:43 +0000 | [diff] [blame] | 80 | /* [RW 10] The number of free blocks above which the Low_llfc signal to |
| 81 | interface #n is de-asserted. */ |
| 82 | #define BRB1_REG_LOW_LLFC_HIGH_THRESHOLD_0 0x6016c |
| 83 | /* [RW 10] The number of free blocks below which the Low_llfc signal to |
| 84 | interface #n is asserted. */ |
| 85 | #define BRB1_REG_LOW_LLFC_LOW_THRESHOLD_0 0x6015c |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 86 | /* [RW 10] The number of blocks guarantied for the MAC port */ |
| 87 | #define BRB1_REG_MAC_GUARANTIED_0 0x601e8 |
| 88 | #define BRB1_REG_MAC_GUARANTIED_1 0x60240 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 89 | /* [R 24] The number of full blocks. */ |
| 90 | #define BRB1_REG_NUM_OF_FULL_BLOCKS 0x60090 |
| 91 | /* [ST 32] The number of cycles that the write_full signal towards MAC #0 |
| 92 | was asserted. */ |
| 93 | #define BRB1_REG_NUM_OF_FULL_CYCLES_0 0x600c8 |
| 94 | #define BRB1_REG_NUM_OF_FULL_CYCLES_1 0x600cc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 95 | #define BRB1_REG_NUM_OF_FULL_CYCLES_4 0x600d8 |
| 96 | /* [ST 32] The number of cycles that the pause signal towards MAC #0 was |
| 97 | asserted. */ |
| 98 | #define BRB1_REG_NUM_OF_PAUSE_CYCLES_0 0x600b8 |
| 99 | #define BRB1_REG_NUM_OF_PAUSE_CYCLES_1 0x600bc |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 100 | /* [RW 10] The number of free blocks below which the pause signal to class 0 |
| 101 | * is asserted */ |
| 102 | #define BRB1_REG_PAUSE_0_XOFF_THRESHOLD_0 0x601c0 |
| 103 | /* [RW 10] The number of free blocks above which the pause signal to class 0 |
| 104 | * is de-asserted */ |
| 105 | #define BRB1_REG_PAUSE_0_XON_THRESHOLD_0 0x601c4 |
| 106 | /* [RW 10] The number of free blocks below which the pause signal to class 1 |
| 107 | * is asserted */ |
| 108 | #define BRB1_REG_PAUSE_1_XOFF_THRESHOLD_0 0x601c8 |
| 109 | /* [RW 10] The number of free blocks above which the pause signal to class 1 |
| 110 | * is de-asserted */ |
| 111 | #define BRB1_REG_PAUSE_1_XON_THRESHOLD_0 0x601cc |
| 112 | /* [RW 10] Write client 0: De-assert pause threshold. Not Functional */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 113 | #define BRB1_REG_PAUSE_HIGH_THRESHOLD_0 0x60078 |
| 114 | #define BRB1_REG_PAUSE_HIGH_THRESHOLD_1 0x6007c |
| 115 | /* [RW 10] Write client 0: Assert pause threshold. */ |
| 116 | #define BRB1_REG_PAUSE_LOW_THRESHOLD_0 0x60068 |
| 117 | #define BRB1_REG_PAUSE_LOW_THRESHOLD_1 0x6006c |
Eilon Greenstein | 3347162 | 2008-08-13 15:59:08 -0700 | [diff] [blame] | 118 | /* [R 24] The number of full blocks occupied by port. */ |
Eilon Greenstein | 34f80b0 | 2008-06-23 20:33:01 -0700 | [diff] [blame] | 119 | #define BRB1_REG_PORT_NUM_OCC_BLOCKS_0 0x60094 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 120 | /* [RW 1] Reset the design by software. */ |
| 121 | #define BRB1_REG_SOFT_RESET 0x600dc |
| 122 | /* [R 5] Used to read the value of the XX protection CAM occupancy counter. */ |
| 123 | #define CCM_REG_CAM_OCCUP 0xd0188 |
| 124 | /* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded; |
| 125 | acknowledge output is deasserted; all other signals are treated as usual; |
| 126 | if 1 - normal activity. */ |
| 127 | #define CCM_REG_CCM_CFC_IFEN 0xd003c |
| 128 | /* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is |
| 129 | disregarded; valid is deasserted; all other signals are treated as usual; |
| 130 | if 1 - normal activity. */ |
| 131 | #define CCM_REG_CCM_CQM_IFEN 0xd000c |
| 132 | /* [RW 1] If set the Q index; received from the QM is inserted to event ID. |
| 133 | Otherwise 0 is inserted. */ |
| 134 | #define CCM_REG_CCM_CQM_USE_Q 0xd00c0 |
| 135 | /* [RW 11] Interrupt mask register #0 read/write */ |
| 136 | #define CCM_REG_CCM_INT_MASK 0xd01e4 |
| 137 | /* [R 11] Interrupt register #0 read */ |
| 138 | #define CCM_REG_CCM_INT_STS 0xd01d8 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 139 | /* [RW 27] Parity mask register #0 read/write */ |
| 140 | #define CCM_REG_CCM_PRTY_MASK 0xd01f4 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 141 | /* [R 27] Parity register #0 read */ |
| 142 | #define CCM_REG_CCM_PRTY_STS 0xd01e8 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 143 | /* [RC 27] Parity register #0 read clear */ |
| 144 | #define CCM_REG_CCM_PRTY_STS_CLR 0xd01ec |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 145 | /* [RW 3] The size of AG context region 0 in REG-pairs. Designates the MS |
| 146 | REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5). |
| 147 | Is used to determine the number of the AG context REG-pairs written back; |
| 148 | when the input message Reg1WbFlg isn't set. */ |
| 149 | #define CCM_REG_CCM_REG0_SZ 0xd00c4 |
| 150 | /* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is |
| 151 | disregarded; valid is deasserted; all other signals are treated as usual; |
| 152 | if 1 - normal activity. */ |
| 153 | #define CCM_REG_CCM_STORM0_IFEN 0xd0004 |
| 154 | /* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is |
| 155 | disregarded; valid is deasserted; all other signals are treated as usual; |
| 156 | if 1 - normal activity. */ |
| 157 | #define CCM_REG_CCM_STORM1_IFEN 0xd0008 |
| 158 | /* [RW 1] CDU AG read Interface enable. If 0 - the request input is |
| 159 | disregarded; valid output is deasserted; all other signals are treated as |
| 160 | usual; if 1 - normal activity. */ |
| 161 | #define CCM_REG_CDU_AG_RD_IFEN 0xd0030 |
| 162 | /* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input |
| 163 | are disregarded; all other signals are treated as usual; if 1 - normal |
| 164 | activity. */ |
| 165 | #define CCM_REG_CDU_AG_WR_IFEN 0xd002c |
| 166 | /* [RW 1] CDU STORM read Interface enable. If 0 - the request input is |
| 167 | disregarded; valid output is deasserted; all other signals are treated as |
| 168 | usual; if 1 - normal activity. */ |
| 169 | #define CCM_REG_CDU_SM_RD_IFEN 0xd0038 |
| 170 | /* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid |
| 171 | input is disregarded; all other signals are treated as usual; if 1 - |
| 172 | normal activity. */ |
| 173 | #define CCM_REG_CDU_SM_WR_IFEN 0xd0034 |
| 174 | /* [RW 4] CFC output initial credit. Max credit available - 15.Write writes |
| 175 | the initial credit value; read returns the current value of the credit |
| 176 | counter. Must be initialized to 1 at start-up. */ |
| 177 | #define CCM_REG_CFC_INIT_CRD 0xd0204 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 178 | /* [RW 2] Auxiliary counter flag Q number 1. */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 179 | #define CCM_REG_CNT_AUX1_Q 0xd00c8 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 180 | /* [RW 2] Auxiliary counter flag Q number 2. */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 181 | #define CCM_REG_CNT_AUX2_Q 0xd00cc |
| 182 | /* [RW 28] The CM header value for QM request (primary). */ |
| 183 | #define CCM_REG_CQM_CCM_HDR_P 0xd008c |
| 184 | /* [RW 28] The CM header value for QM request (secondary). */ |
| 185 | #define CCM_REG_CQM_CCM_HDR_S 0xd0090 |
| 186 | /* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded; |
| 187 | acknowledge output is deasserted; all other signals are treated as usual; |
| 188 | if 1 - normal activity. */ |
| 189 | #define CCM_REG_CQM_CCM_IFEN 0xd0014 |
| 190 | /* [RW 6] QM output initial credit. Max credit available - 32. Write writes |
| 191 | the initial credit value; read returns the current value of the credit |
| 192 | counter. Must be initialized to 32 at start-up. */ |
| 193 | #define CCM_REG_CQM_INIT_CRD 0xd020c |
| 194 | /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0 |
| 195 | stands for weight 8 (the most prioritised); 1 stands for weight 1(least |
| 196 | prioritised); 2 stands for weight 2; tc. */ |
| 197 | #define CCM_REG_CQM_P_WEIGHT 0xd00b8 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 198 | /* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0 |
| 199 | stands for weight 8 (the most prioritised); 1 stands for weight 1(least |
| 200 | prioritised); 2 stands for weight 2; tc. */ |
| 201 | #define CCM_REG_CQM_S_WEIGHT 0xd00bc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 202 | /* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded; |
| 203 | acknowledge output is deasserted; all other signals are treated as usual; |
| 204 | if 1 - normal activity. */ |
| 205 | #define CCM_REG_CSDM_IFEN 0xd0018 |
| 206 | /* [RC 1] Set when the message length mismatch (relative to last indication) |
| 207 | at the SDM interface is detected. */ |
| 208 | #define CCM_REG_CSDM_LENGTH_MIS 0xd0170 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 209 | /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for |
| 210 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 211 | prioritised); 2 stands for weight 2; tc. */ |
| 212 | #define CCM_REG_CSDM_WEIGHT 0xd00b4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 213 | /* [RW 28] The CM header for QM formatting in case of an error in the QM |
| 214 | inputs. */ |
| 215 | #define CCM_REG_ERR_CCM_HDR 0xd0094 |
| 216 | /* [RW 8] The Event ID in case the input message ErrorFlg is set. */ |
| 217 | #define CCM_REG_ERR_EVNT_ID 0xd0098 |
| 218 | /* [RW 8] FIC0 output initial credit. Max credit available - 255. Write |
| 219 | writes the initial credit value; read returns the current value of the |
| 220 | credit counter. Must be initialized to 64 at start-up. */ |
| 221 | #define CCM_REG_FIC0_INIT_CRD 0xd0210 |
| 222 | /* [RW 8] FIC1 output initial credit. Max credit available - 255.Write |
| 223 | writes the initial credit value; read returns the current value of the |
| 224 | credit counter. Must be initialized to 64 at start-up. */ |
| 225 | #define CCM_REG_FIC1_INIT_CRD 0xd0214 |
| 226 | /* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1 |
| 227 | - strict priority defined by ~ccm_registers_gr_ag_pr.gr_ag_pr; |
| 228 | ~ccm_registers_gr_ld0_pr.gr_ld0_pr and |
| 229 | ~ccm_registers_gr_ld1_pr.gr_ld1_pr. Groups are according to channels and |
| 230 | outputs to STORM: aggregation; load FIC0; load FIC1 and store. */ |
| 231 | #define CCM_REG_GR_ARB_TYPE 0xd015c |
| 232 | /* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the |
| 233 | highest priority is 3. It is supposed; that the Store channel priority is |
| 234 | the compliment to 4 of the rest priorities - Aggregation channel; Load |
| 235 | (FIC0) channel and Load (FIC1). */ |
| 236 | #define CCM_REG_GR_LD0_PR 0xd0164 |
| 237 | /* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the |
| 238 | highest priority is 3. It is supposed; that the Store channel priority is |
| 239 | the compliment to 4 of the rest priorities - Aggregation channel; Load |
| 240 | (FIC0) channel and Load (FIC1). */ |
| 241 | #define CCM_REG_GR_LD1_PR 0xd0168 |
| 242 | /* [RW 2] General flags index. */ |
| 243 | #define CCM_REG_INV_DONE_Q 0xd0108 |
| 244 | /* [RW 4] The number of double REG-pairs(128 bits); loaded from the STORM |
| 245 | context and sent to STORM; for a specific connection type. The double |
| 246 | REG-pairs are used in order to align to STORM context row size of 128 |
| 247 | bits. The offset of these data in the STORM context is always 0. Index |
| 248 | _(0..15) stands for the connection type (one of 16). */ |
| 249 | #define CCM_REG_N_SM_CTX_LD_0 0xd004c |
| 250 | #define CCM_REG_N_SM_CTX_LD_1 0xd0050 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 251 | #define CCM_REG_N_SM_CTX_LD_2 0xd0054 |
| 252 | #define CCM_REG_N_SM_CTX_LD_3 0xd0058 |
| 253 | #define CCM_REG_N_SM_CTX_LD_4 0xd005c |
| 254 | /* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded; |
| 255 | acknowledge output is deasserted; all other signals are treated as usual; |
| 256 | if 1 - normal activity. */ |
| 257 | #define CCM_REG_PBF_IFEN 0xd0028 |
| 258 | /* [RC 1] Set when the message length mismatch (relative to last indication) |
| 259 | at the pbf interface is detected. */ |
| 260 | #define CCM_REG_PBF_LENGTH_MIS 0xd0180 |
| 261 | /* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for |
| 262 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 263 | prioritised); 2 stands for weight 2; tc. */ |
| 264 | #define CCM_REG_PBF_WEIGHT 0xd00ac |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 265 | #define CCM_REG_PHYS_QNUM1_0 0xd0134 |
| 266 | #define CCM_REG_PHYS_QNUM1_1 0xd0138 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 267 | #define CCM_REG_PHYS_QNUM2_0 0xd013c |
| 268 | #define CCM_REG_PHYS_QNUM2_1 0xd0140 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 269 | #define CCM_REG_PHYS_QNUM3_0 0xd0144 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 270 | #define CCM_REG_PHYS_QNUM3_1 0xd0148 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 271 | #define CCM_REG_QOS_PHYS_QNUM0_0 0xd0114 |
| 272 | #define CCM_REG_QOS_PHYS_QNUM0_1 0xd0118 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 273 | #define CCM_REG_QOS_PHYS_QNUM1_0 0xd011c |
| 274 | #define CCM_REG_QOS_PHYS_QNUM1_1 0xd0120 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 275 | #define CCM_REG_QOS_PHYS_QNUM2_0 0xd0124 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 276 | #define CCM_REG_QOS_PHYS_QNUM2_1 0xd0128 |
| 277 | #define CCM_REG_QOS_PHYS_QNUM3_0 0xd012c |
| 278 | #define CCM_REG_QOS_PHYS_QNUM3_1 0xd0130 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 279 | /* [RW 1] STORM - CM Interface enable. If 0 - the valid input is |
| 280 | disregarded; acknowledge output is deasserted; all other signals are |
| 281 | treated as usual; if 1 - normal activity. */ |
| 282 | #define CCM_REG_STORM_CCM_IFEN 0xd0010 |
| 283 | /* [RC 1] Set when the message length mismatch (relative to last indication) |
| 284 | at the STORM interface is detected. */ |
| 285 | #define CCM_REG_STORM_LENGTH_MIS 0xd016c |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 286 | /* [RW 3] The weight of the STORM input in the WRR (Weighted Round robin) |
| 287 | mechanism. 0 stands for weight 8 (the most prioritised); 1 stands for |
| 288 | weight 1(least prioritised); 2 stands for weight 2 (more prioritised); |
| 289 | tc. */ |
| 290 | #define CCM_REG_STORM_WEIGHT 0xd009c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 291 | /* [RW 1] Input tsem Interface enable. If 0 - the valid input is |
| 292 | disregarded; acknowledge output is deasserted; all other signals are |
| 293 | treated as usual; if 1 - normal activity. */ |
| 294 | #define CCM_REG_TSEM_IFEN 0xd001c |
| 295 | /* [RC 1] Set when the message length mismatch (relative to last indication) |
| 296 | at the tsem interface is detected. */ |
| 297 | #define CCM_REG_TSEM_LENGTH_MIS 0xd0174 |
| 298 | /* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for |
| 299 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 300 | prioritised); 2 stands for weight 2; tc. */ |
| 301 | #define CCM_REG_TSEM_WEIGHT 0xd00a0 |
| 302 | /* [RW 1] Input usem Interface enable. If 0 - the valid input is |
| 303 | disregarded; acknowledge output is deasserted; all other signals are |
| 304 | treated as usual; if 1 - normal activity. */ |
| 305 | #define CCM_REG_USEM_IFEN 0xd0024 |
| 306 | /* [RC 1] Set when message length mismatch (relative to last indication) at |
| 307 | the usem interface is detected. */ |
| 308 | #define CCM_REG_USEM_LENGTH_MIS 0xd017c |
| 309 | /* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for |
| 310 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 311 | prioritised); 2 stands for weight 2; tc. */ |
| 312 | #define CCM_REG_USEM_WEIGHT 0xd00a8 |
| 313 | /* [RW 1] Input xsem Interface enable. If 0 - the valid input is |
| 314 | disregarded; acknowledge output is deasserted; all other signals are |
| 315 | treated as usual; if 1 - normal activity. */ |
| 316 | #define CCM_REG_XSEM_IFEN 0xd0020 |
| 317 | /* [RC 1] Set when the message length mismatch (relative to last indication) |
| 318 | at the xsem interface is detected. */ |
| 319 | #define CCM_REG_XSEM_LENGTH_MIS 0xd0178 |
| 320 | /* [RW 3] The weight of the input xsem in the WRR mechanism. 0 stands for |
| 321 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 322 | prioritised); 2 stands for weight 2; tc. */ |
| 323 | #define CCM_REG_XSEM_WEIGHT 0xd00a4 |
| 324 | /* [RW 19] Indirect access to the descriptor table of the XX protection |
| 325 | mechanism. The fields are: [5:0] - message length; [12:6] - message |
| 326 | pointer; 18:13] - next pointer. */ |
| 327 | #define CCM_REG_XX_DESCR_TABLE 0xd0300 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 328 | #define CCM_REG_XX_DESCR_TABLE_SIZE 36 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 329 | /* [R 7] Used to read the value of XX protection Free counter. */ |
| 330 | #define CCM_REG_XX_FREE 0xd0184 |
| 331 | /* [RW 6] Initial value for the credit counter; responsible for fulfilling |
| 332 | of the Input Stage XX protection buffer by the XX protection pending |
| 333 | messages. Max credit available - 127. Write writes the initial credit |
| 334 | value; read returns the current value of the credit counter. Must be |
| 335 | initialized to maximum XX protected message size - 2 at start-up. */ |
| 336 | #define CCM_REG_XX_INIT_CRD 0xd0220 |
| 337 | /* [RW 7] The maximum number of pending messages; which may be stored in XX |
| 338 | protection. At read the ~ccm_registers_xx_free.xx_free counter is read. |
| 339 | At write comprises the start value of the ~ccm_registers_xx_free.xx_free |
| 340 | counter. */ |
| 341 | #define CCM_REG_XX_MSG_NUM 0xd0224 |
| 342 | /* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */ |
| 343 | #define CCM_REG_XX_OVFL_EVNT_ID 0xd0044 |
| 344 | /* [RW 18] Indirect access to the XX table of the XX protection mechanism. |
| 345 | The fields are: [5:0] - tail pointer; 11:6] - Link List size; 17:12] - |
| 346 | header pointer. */ |
| 347 | #define CCM_REG_XX_TABLE 0xd0280 |
| 348 | #define CDU_REG_CDU_CHK_MASK0 0x101000 |
| 349 | #define CDU_REG_CDU_CHK_MASK1 0x101004 |
| 350 | #define CDU_REG_CDU_CONTROL0 0x101008 |
| 351 | #define CDU_REG_CDU_DEBUG 0x101010 |
| 352 | #define CDU_REG_CDU_GLOBAL_PARAMS 0x101020 |
| 353 | /* [RW 7] Interrupt mask register #0 read/write */ |
| 354 | #define CDU_REG_CDU_INT_MASK 0x10103c |
| 355 | /* [R 7] Interrupt register #0 read */ |
| 356 | #define CDU_REG_CDU_INT_STS 0x101030 |
| 357 | /* [RW 5] Parity mask register #0 read/write */ |
| 358 | #define CDU_REG_CDU_PRTY_MASK 0x10104c |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 359 | /* [R 5] Parity register #0 read */ |
| 360 | #define CDU_REG_CDU_PRTY_STS 0x101040 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 361 | /* [RC 5] Parity register #0 read clear */ |
| 362 | #define CDU_REG_CDU_PRTY_STS_CLR 0x101044 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 363 | /* [RC 32] logging of error data in case of a CDU load error: |
| 364 | {expected_cid[15:0]; xpected_type[2:0]; xpected_region[2:0]; ctive_error; |
| 365 | ype_error; ctual_active; ctual_compressed_context}; */ |
| 366 | #define CDU_REG_ERROR_DATA 0x101014 |
| 367 | /* [WB 216] L1TT ram access. each entry has the following format : |
| 368 | {mrege_regions[7:0]; ffset12[5:0]...offset0[5:0]; |
| 369 | ength12[5:0]...length0[5:0]; d12[3:0]...id0[3:0]} */ |
| 370 | #define CDU_REG_L1TT 0x101800 |
| 371 | /* [WB 24] MATT ram access. each entry has the following |
| 372 | format:{RegionLength[11:0]; egionOffset[11:0]} */ |
| 373 | #define CDU_REG_MATT 0x101100 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 374 | /* [RW 1] when this bit is set the CDU operates in e1hmf mode */ |
| 375 | #define CDU_REG_MF_MODE 0x101050 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 376 | /* [R 1] indication the initializing the activity counter by the hardware |
| 377 | was done. */ |
| 378 | #define CFC_REG_AC_INIT_DONE 0x104078 |
| 379 | /* [RW 13] activity counter ram access */ |
| 380 | #define CFC_REG_ACTIVITY_COUNTER 0x104400 |
| 381 | #define CFC_REG_ACTIVITY_COUNTER_SIZE 256 |
| 382 | /* [R 1] indication the initializing the cams by the hardware was done. */ |
| 383 | #define CFC_REG_CAM_INIT_DONE 0x10407c |
| 384 | /* [RW 2] Interrupt mask register #0 read/write */ |
| 385 | #define CFC_REG_CFC_INT_MASK 0x104108 |
| 386 | /* [R 2] Interrupt register #0 read */ |
| 387 | #define CFC_REG_CFC_INT_STS 0x1040fc |
| 388 | /* [RC 2] Interrupt register #0 read clear */ |
| 389 | #define CFC_REG_CFC_INT_STS_CLR 0x104100 |
| 390 | /* [RW 4] Parity mask register #0 read/write */ |
| 391 | #define CFC_REG_CFC_PRTY_MASK 0x104118 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 392 | /* [R 4] Parity register #0 read */ |
| 393 | #define CFC_REG_CFC_PRTY_STS 0x10410c |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 394 | /* [RC 4] Parity register #0 read clear */ |
| 395 | #define CFC_REG_CFC_PRTY_STS_CLR 0x104110 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 396 | /* [RW 21] CID cam access (21:1 - Data; alid - 0) */ |
| 397 | #define CFC_REG_CID_CAM 0x104800 |
| 398 | #define CFC_REG_CONTROL0 0x104028 |
| 399 | #define CFC_REG_DEBUG0 0x104050 |
| 400 | /* [RW 14] indicates per error (in #cfc_registers_cfc_error_vector.cfc_error |
| 401 | vector) whether the cfc should be disabled upon it */ |
| 402 | #define CFC_REG_DISABLE_ON_ERROR 0x104044 |
| 403 | /* [RC 14] CFC error vector. when the CFC detects an internal error it will |
| 404 | set one of these bits. the bit description can be found in CFC |
| 405 | specifications */ |
| 406 | #define CFC_REG_ERROR_VECTOR 0x10403c |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 407 | /* [WB 93] LCID info ram access */ |
| 408 | #define CFC_REG_INFO_RAM 0x105000 |
| 409 | #define CFC_REG_INFO_RAM_SIZE 1024 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 410 | #define CFC_REG_INIT_REG 0x10404c |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 411 | #define CFC_REG_INTERFACES 0x104058 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 412 | /* [RW 24] {weight_load_client7[2:0] to weight_load_client0[2:0]}. this |
| 413 | field allows changing the priorities of the weighted-round-robin arbiter |
| 414 | which selects which CFC load client should be served next */ |
| 415 | #define CFC_REG_LCREQ_WEIGHTS 0x104084 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 416 | /* [RW 16] Link List ram access; data = {prev_lcid; ext_lcid} */ |
| 417 | #define CFC_REG_LINK_LIST 0x104c00 |
| 418 | #define CFC_REG_LINK_LIST_SIZE 256 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 419 | /* [R 1] indication the initializing the link list by the hardware was done. */ |
| 420 | #define CFC_REG_LL_INIT_DONE 0x104074 |
| 421 | /* [R 9] Number of allocated LCIDs which are at empty state */ |
| 422 | #define CFC_REG_NUM_LCIDS_ALLOC 0x104020 |
| 423 | /* [R 9] Number of Arriving LCIDs in Link List Block */ |
| 424 | #define CFC_REG_NUM_LCIDS_ARRIVING 0x104004 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 425 | /* [R 9] Number of Leaving LCIDs in Link List Block */ |
| 426 | #define CFC_REG_NUM_LCIDS_LEAVING 0x104018 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 427 | #define CFC_REG_WEAK_ENABLE_PF 0x104124 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 428 | /* [RW 8] The event id for aggregated interrupt 0 */ |
| 429 | #define CSDM_REG_AGG_INT_EVENT_0 0xc2038 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 430 | #define CSDM_REG_AGG_INT_EVENT_10 0xc2060 |
| 431 | #define CSDM_REG_AGG_INT_EVENT_11 0xc2064 |
| 432 | #define CSDM_REG_AGG_INT_EVENT_12 0xc2068 |
| 433 | #define CSDM_REG_AGG_INT_EVENT_13 0xc206c |
| 434 | #define CSDM_REG_AGG_INT_EVENT_14 0xc2070 |
| 435 | #define CSDM_REG_AGG_INT_EVENT_15 0xc2074 |
| 436 | #define CSDM_REG_AGG_INT_EVENT_16 0xc2078 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 437 | #define CSDM_REG_AGG_INT_EVENT_2 0xc2040 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 438 | #define CSDM_REG_AGG_INT_EVENT_3 0xc2044 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 439 | #define CSDM_REG_AGG_INT_EVENT_4 0xc2048 |
Eilon Greenstein | ca00392 | 2009-08-12 22:53:28 -0700 | [diff] [blame] | 440 | #define CSDM_REG_AGG_INT_EVENT_5 0xc204c |
| 441 | #define CSDM_REG_AGG_INT_EVENT_6 0xc2050 |
| 442 | #define CSDM_REG_AGG_INT_EVENT_7 0xc2054 |
| 443 | #define CSDM_REG_AGG_INT_EVENT_8 0xc2058 |
| 444 | #define CSDM_REG_AGG_INT_EVENT_9 0xc205c |
| 445 | /* [RW 1] For each aggregated interrupt index whether the mode is normal (0) |
| 446 | or auto-mask-mode (1) */ |
| 447 | #define CSDM_REG_AGG_INT_MODE_10 0xc21e0 |
| 448 | #define CSDM_REG_AGG_INT_MODE_11 0xc21e4 |
| 449 | #define CSDM_REG_AGG_INT_MODE_12 0xc21e8 |
| 450 | #define CSDM_REG_AGG_INT_MODE_13 0xc21ec |
| 451 | #define CSDM_REG_AGG_INT_MODE_14 0xc21f0 |
| 452 | #define CSDM_REG_AGG_INT_MODE_15 0xc21f4 |
| 453 | #define CSDM_REG_AGG_INT_MODE_16 0xc21f8 |
| 454 | #define CSDM_REG_AGG_INT_MODE_6 0xc21d0 |
| 455 | #define CSDM_REG_AGG_INT_MODE_7 0xc21d4 |
| 456 | #define CSDM_REG_AGG_INT_MODE_8 0xc21d8 |
| 457 | #define CSDM_REG_AGG_INT_MODE_9 0xc21dc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 458 | /* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */ |
| 459 | #define CSDM_REG_CFC_RSP_START_ADDR 0xc2008 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 460 | /* [RW 16] The maximum value of the completion counter #0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 461 | #define CSDM_REG_CMP_COUNTER_MAX0 0xc201c |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 462 | /* [RW 16] The maximum value of the completion counter #1 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 463 | #define CSDM_REG_CMP_COUNTER_MAX1 0xc2020 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 464 | /* [RW 16] The maximum value of the completion counter #2 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 465 | #define CSDM_REG_CMP_COUNTER_MAX2 0xc2024 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 466 | /* [RW 16] The maximum value of the completion counter #3 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 467 | #define CSDM_REG_CMP_COUNTER_MAX3 0xc2028 |
| 468 | /* [RW 13] The start address in the internal RAM for the completion |
| 469 | counters. */ |
| 470 | #define CSDM_REG_CMP_COUNTER_START_ADDR 0xc200c |
| 471 | /* [RW 32] Interrupt mask register #0 read/write */ |
| 472 | #define CSDM_REG_CSDM_INT_MASK_0 0xc229c |
| 473 | #define CSDM_REG_CSDM_INT_MASK_1 0xc22ac |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 474 | /* [R 32] Interrupt register #0 read */ |
| 475 | #define CSDM_REG_CSDM_INT_STS_0 0xc2290 |
| 476 | #define CSDM_REG_CSDM_INT_STS_1 0xc22a0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 477 | /* [RW 11] Parity mask register #0 read/write */ |
| 478 | #define CSDM_REG_CSDM_PRTY_MASK 0xc22bc |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 479 | /* [R 11] Parity register #0 read */ |
| 480 | #define CSDM_REG_CSDM_PRTY_STS 0xc22b0 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 481 | /* [RC 11] Parity register #0 read clear */ |
| 482 | #define CSDM_REG_CSDM_PRTY_STS_CLR 0xc22b4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 483 | #define CSDM_REG_ENABLE_IN1 0xc2238 |
| 484 | #define CSDM_REG_ENABLE_IN2 0xc223c |
| 485 | #define CSDM_REG_ENABLE_OUT1 0xc2240 |
| 486 | #define CSDM_REG_ENABLE_OUT2 0xc2244 |
| 487 | /* [RW 4] The initial number of messages that can be sent to the pxp control |
| 488 | interface without receiving any ACK. */ |
| 489 | #define CSDM_REG_INIT_CREDIT_PXP_CTRL 0xc24bc |
| 490 | /* [ST 32] The number of ACK after placement messages received */ |
| 491 | #define CSDM_REG_NUM_OF_ACK_AFTER_PLACE 0xc227c |
| 492 | /* [ST 32] The number of packet end messages received from the parser */ |
| 493 | #define CSDM_REG_NUM_OF_PKT_END_MSG 0xc2274 |
| 494 | /* [ST 32] The number of requests received from the pxp async if */ |
| 495 | #define CSDM_REG_NUM_OF_PXP_ASYNC_REQ 0xc2278 |
| 496 | /* [ST 32] The number of commands received in queue 0 */ |
| 497 | #define CSDM_REG_NUM_OF_Q0_CMD 0xc2248 |
| 498 | /* [ST 32] The number of commands received in queue 10 */ |
| 499 | #define CSDM_REG_NUM_OF_Q10_CMD 0xc226c |
| 500 | /* [ST 32] The number of commands received in queue 11 */ |
| 501 | #define CSDM_REG_NUM_OF_Q11_CMD 0xc2270 |
| 502 | /* [ST 32] The number of commands received in queue 1 */ |
| 503 | #define CSDM_REG_NUM_OF_Q1_CMD 0xc224c |
| 504 | /* [ST 32] The number of commands received in queue 3 */ |
| 505 | #define CSDM_REG_NUM_OF_Q3_CMD 0xc2250 |
| 506 | /* [ST 32] The number of commands received in queue 4 */ |
| 507 | #define CSDM_REG_NUM_OF_Q4_CMD 0xc2254 |
| 508 | /* [ST 32] The number of commands received in queue 5 */ |
| 509 | #define CSDM_REG_NUM_OF_Q5_CMD 0xc2258 |
| 510 | /* [ST 32] The number of commands received in queue 6 */ |
| 511 | #define CSDM_REG_NUM_OF_Q6_CMD 0xc225c |
| 512 | /* [ST 32] The number of commands received in queue 7 */ |
| 513 | #define CSDM_REG_NUM_OF_Q7_CMD 0xc2260 |
| 514 | /* [ST 32] The number of commands received in queue 8 */ |
| 515 | #define CSDM_REG_NUM_OF_Q8_CMD 0xc2264 |
| 516 | /* [ST 32] The number of commands received in queue 9 */ |
| 517 | #define CSDM_REG_NUM_OF_Q9_CMD 0xc2268 |
| 518 | /* [RW 13] The start address in the internal RAM for queue counters */ |
| 519 | #define CSDM_REG_Q_COUNTER_START_ADDR 0xc2010 |
| 520 | /* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */ |
| 521 | #define CSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0xc2548 |
| 522 | /* [R 1] parser fifo empty in sdm_sync block */ |
| 523 | #define CSDM_REG_SYNC_PARSER_EMPTY 0xc2550 |
| 524 | /* [R 1] parser serial fifo empty in sdm_sync block */ |
| 525 | #define CSDM_REG_SYNC_SYNC_EMPTY 0xc2558 |
| 526 | /* [RW 32] Tick for timer counter. Applicable only when |
| 527 | ~csdm_registers_timer_tick_enable.timer_tick_enable =1 */ |
| 528 | #define CSDM_REG_TIMER_TICK 0xc2000 |
| 529 | /* [RW 5] The number of time_slots in the arbitration cycle */ |
| 530 | #define CSEM_REG_ARB_CYCLE_SIZE 0x200034 |
| 531 | /* [RW 3] The source that is associated with arbitration element 0. Source |
| 532 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 533 | sleeping thread with priority 1; 4- sleeping thread with priority 2 */ |
| 534 | #define CSEM_REG_ARB_ELEMENT0 0x200020 |
| 535 | /* [RW 3] The source that is associated with arbitration element 1. Source |
| 536 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 537 | sleeping thread with priority 1; 4- sleeping thread with priority 2. |
| 538 | Could not be equal to register ~csem_registers_arb_element0.arb_element0 */ |
| 539 | #define CSEM_REG_ARB_ELEMENT1 0x200024 |
| 540 | /* [RW 3] The source that is associated with arbitration element 2. Source |
| 541 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 542 | sleeping thread with priority 1; 4- sleeping thread with priority 2. |
| 543 | Could not be equal to register ~csem_registers_arb_element0.arb_element0 |
| 544 | and ~csem_registers_arb_element1.arb_element1 */ |
| 545 | #define CSEM_REG_ARB_ELEMENT2 0x200028 |
| 546 | /* [RW 3] The source that is associated with arbitration element 3. Source |
| 547 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 548 | sleeping thread with priority 1; 4- sleeping thread with priority 2.Could |
| 549 | not be equal to register ~csem_registers_arb_element0.arb_element0 and |
| 550 | ~csem_registers_arb_element1.arb_element1 and |
| 551 | ~csem_registers_arb_element2.arb_element2 */ |
| 552 | #define CSEM_REG_ARB_ELEMENT3 0x20002c |
| 553 | /* [RW 3] The source that is associated with arbitration element 4. Source |
| 554 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 555 | sleeping thread with priority 1; 4- sleeping thread with priority 2. |
| 556 | Could not be equal to register ~csem_registers_arb_element0.arb_element0 |
| 557 | and ~csem_registers_arb_element1.arb_element1 and |
| 558 | ~csem_registers_arb_element2.arb_element2 and |
| 559 | ~csem_registers_arb_element3.arb_element3 */ |
| 560 | #define CSEM_REG_ARB_ELEMENT4 0x200030 |
| 561 | /* [RW 32] Interrupt mask register #0 read/write */ |
| 562 | #define CSEM_REG_CSEM_INT_MASK_0 0x200110 |
| 563 | #define CSEM_REG_CSEM_INT_MASK_1 0x200120 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 564 | /* [R 32] Interrupt register #0 read */ |
| 565 | #define CSEM_REG_CSEM_INT_STS_0 0x200104 |
| 566 | #define CSEM_REG_CSEM_INT_STS_1 0x200114 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 567 | /* [RW 32] Parity mask register #0 read/write */ |
| 568 | #define CSEM_REG_CSEM_PRTY_MASK_0 0x200130 |
| 569 | #define CSEM_REG_CSEM_PRTY_MASK_1 0x200140 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 570 | /* [R 32] Parity register #0 read */ |
| 571 | #define CSEM_REG_CSEM_PRTY_STS_0 0x200124 |
| 572 | #define CSEM_REG_CSEM_PRTY_STS_1 0x200134 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 573 | /* [RC 32] Parity register #0 read clear */ |
| 574 | #define CSEM_REG_CSEM_PRTY_STS_CLR_0 0x200128 |
| 575 | #define CSEM_REG_CSEM_PRTY_STS_CLR_1 0x200138 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 576 | #define CSEM_REG_ENABLE_IN 0x2000a4 |
| 577 | #define CSEM_REG_ENABLE_OUT 0x2000a8 |
| 578 | /* [RW 32] This address space contains all registers and memories that are |
| 579 | placed in SEM_FAST block. The SEM_FAST registers are described in |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 580 | appendix B. In order to access the sem_fast registers the base address |
| 581 | ~fast_memory.fast_memory should be added to eachsem_fast register offset. */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 582 | #define CSEM_REG_FAST_MEMORY 0x220000 |
| 583 | /* [RW 1] Disables input messages from FIC0 May be updated during run_time |
| 584 | by the microcode */ |
| 585 | #define CSEM_REG_FIC0_DISABLE 0x200224 |
| 586 | /* [RW 1] Disables input messages from FIC1 May be updated during run_time |
| 587 | by the microcode */ |
| 588 | #define CSEM_REG_FIC1_DISABLE 0x200234 |
| 589 | /* [RW 15] Interrupt table Read and write access to it is not possible in |
| 590 | the middle of the work */ |
| 591 | #define CSEM_REG_INT_TABLE 0x200400 |
| 592 | /* [ST 24] Statistics register. The number of messages that entered through |
| 593 | FIC0 */ |
| 594 | #define CSEM_REG_MSG_NUM_FIC0 0x200000 |
| 595 | /* [ST 24] Statistics register. The number of messages that entered through |
| 596 | FIC1 */ |
| 597 | #define CSEM_REG_MSG_NUM_FIC1 0x200004 |
| 598 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 599 | FOC0 */ |
| 600 | #define CSEM_REG_MSG_NUM_FOC0 0x200008 |
| 601 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 602 | FOC1 */ |
| 603 | #define CSEM_REG_MSG_NUM_FOC1 0x20000c |
| 604 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 605 | FOC2 */ |
| 606 | #define CSEM_REG_MSG_NUM_FOC2 0x200010 |
| 607 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 608 | FOC3 */ |
| 609 | #define CSEM_REG_MSG_NUM_FOC3 0x200014 |
| 610 | /* [RW 1] Disables input messages from the passive buffer May be updated |
| 611 | during run_time by the microcode */ |
| 612 | #define CSEM_REG_PAS_DISABLE 0x20024c |
| 613 | /* [WB 128] Debug only. Passive buffer memory */ |
| 614 | #define CSEM_REG_PASSIVE_BUFFER 0x202000 |
| 615 | /* [WB 46] pram memory. B45 is parity; b[44:0] - data. */ |
| 616 | #define CSEM_REG_PRAM 0x240000 |
| 617 | /* [R 16] Valid sleeping threads indication have bit per thread */ |
| 618 | #define CSEM_REG_SLEEP_THREADS_VALID 0x20026c |
| 619 | /* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */ |
| 620 | #define CSEM_REG_SLOW_EXT_STORE_EMPTY 0x2002a0 |
| 621 | /* [RW 16] List of free threads . There is a bit per thread. */ |
| 622 | #define CSEM_REG_THREADS_LIST 0x2002e4 |
| 623 | /* [RW 3] The arbitration scheme of time_slot 0 */ |
| 624 | #define CSEM_REG_TS_0_AS 0x200038 |
| 625 | /* [RW 3] The arbitration scheme of time_slot 10 */ |
| 626 | #define CSEM_REG_TS_10_AS 0x200060 |
| 627 | /* [RW 3] The arbitration scheme of time_slot 11 */ |
| 628 | #define CSEM_REG_TS_11_AS 0x200064 |
| 629 | /* [RW 3] The arbitration scheme of time_slot 12 */ |
| 630 | #define CSEM_REG_TS_12_AS 0x200068 |
| 631 | /* [RW 3] The arbitration scheme of time_slot 13 */ |
| 632 | #define CSEM_REG_TS_13_AS 0x20006c |
| 633 | /* [RW 3] The arbitration scheme of time_slot 14 */ |
| 634 | #define CSEM_REG_TS_14_AS 0x200070 |
| 635 | /* [RW 3] The arbitration scheme of time_slot 15 */ |
| 636 | #define CSEM_REG_TS_15_AS 0x200074 |
| 637 | /* [RW 3] The arbitration scheme of time_slot 16 */ |
| 638 | #define CSEM_REG_TS_16_AS 0x200078 |
| 639 | /* [RW 3] The arbitration scheme of time_slot 17 */ |
| 640 | #define CSEM_REG_TS_17_AS 0x20007c |
| 641 | /* [RW 3] The arbitration scheme of time_slot 18 */ |
| 642 | #define CSEM_REG_TS_18_AS 0x200080 |
| 643 | /* [RW 3] The arbitration scheme of time_slot 1 */ |
| 644 | #define CSEM_REG_TS_1_AS 0x20003c |
| 645 | /* [RW 3] The arbitration scheme of time_slot 2 */ |
| 646 | #define CSEM_REG_TS_2_AS 0x200040 |
| 647 | /* [RW 3] The arbitration scheme of time_slot 3 */ |
| 648 | #define CSEM_REG_TS_3_AS 0x200044 |
| 649 | /* [RW 3] The arbitration scheme of time_slot 4 */ |
| 650 | #define CSEM_REG_TS_4_AS 0x200048 |
| 651 | /* [RW 3] The arbitration scheme of time_slot 5 */ |
| 652 | #define CSEM_REG_TS_5_AS 0x20004c |
| 653 | /* [RW 3] The arbitration scheme of time_slot 6 */ |
| 654 | #define CSEM_REG_TS_6_AS 0x200050 |
| 655 | /* [RW 3] The arbitration scheme of time_slot 7 */ |
| 656 | #define CSEM_REG_TS_7_AS 0x200054 |
| 657 | /* [RW 3] The arbitration scheme of time_slot 8 */ |
| 658 | #define CSEM_REG_TS_8_AS 0x200058 |
| 659 | /* [RW 3] The arbitration scheme of time_slot 9 */ |
| 660 | #define CSEM_REG_TS_9_AS 0x20005c |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 661 | /* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64 |
| 662 | * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */ |
| 663 | #define CSEM_REG_VFPF_ERR_NUM 0x200380 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 664 | /* [RW 1] Parity mask register #0 read/write */ |
| 665 | #define DBG_REG_DBG_PRTY_MASK 0xc0a8 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 666 | /* [R 1] Parity register #0 read */ |
| 667 | #define DBG_REG_DBG_PRTY_STS 0xc09c |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 668 | /* [RC 1] Parity register #0 read clear */ |
| 669 | #define DBG_REG_DBG_PRTY_STS_CLR 0xc0a0 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 670 | /* [RW 1] When set the DMAE will process the commands as in E1.5. 1.The |
| 671 | * function that is used is always SRC-PCI; 2.VF_Valid = 0; 3.VFID=0; |
| 672 | * 4.Completion function=0; 5.Error handling=0 */ |
| 673 | #define DMAE_REG_BACKWARD_COMP_EN 0x10207c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 674 | /* [RW 32] Commands memory. The address to command X; row Y is to calculated |
| 675 | as 14*X+Y. */ |
| 676 | #define DMAE_REG_CMD_MEM 0x102400 |
Eilon Greenstein | 34f80b0 | 2008-06-23 20:33:01 -0700 | [diff] [blame] | 677 | #define DMAE_REG_CMD_MEM_SIZE 224 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 678 | /* [RW 1] If 0 - the CRC-16c initial value is all zeroes; if 1 - the CRC-16c |
| 679 | initial value is all ones. */ |
| 680 | #define DMAE_REG_CRC16C_INIT 0x10201c |
| 681 | /* [RW 1] If 0 - the CRC-16 T10 initial value is all zeroes; if 1 - the |
| 682 | CRC-16 T10 initial value is all ones. */ |
| 683 | #define DMAE_REG_CRC16T10_INIT 0x102020 |
| 684 | /* [RW 2] Interrupt mask register #0 read/write */ |
| 685 | #define DMAE_REG_DMAE_INT_MASK 0x102054 |
| 686 | /* [RW 4] Parity mask register #0 read/write */ |
| 687 | #define DMAE_REG_DMAE_PRTY_MASK 0x102064 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 688 | /* [R 4] Parity register #0 read */ |
| 689 | #define DMAE_REG_DMAE_PRTY_STS 0x102058 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 690 | /* [RC 4] Parity register #0 read clear */ |
| 691 | #define DMAE_REG_DMAE_PRTY_STS_CLR 0x10205c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 692 | /* [RW 1] Command 0 go. */ |
| 693 | #define DMAE_REG_GO_C0 0x102080 |
| 694 | /* [RW 1] Command 1 go. */ |
| 695 | #define DMAE_REG_GO_C1 0x102084 |
| 696 | /* [RW 1] Command 10 go. */ |
| 697 | #define DMAE_REG_GO_C10 0x102088 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 698 | /* [RW 1] Command 11 go. */ |
| 699 | #define DMAE_REG_GO_C11 0x10208c |
| 700 | /* [RW 1] Command 12 go. */ |
| 701 | #define DMAE_REG_GO_C12 0x102090 |
| 702 | /* [RW 1] Command 13 go. */ |
| 703 | #define DMAE_REG_GO_C13 0x102094 |
| 704 | /* [RW 1] Command 14 go. */ |
| 705 | #define DMAE_REG_GO_C14 0x102098 |
| 706 | /* [RW 1] Command 15 go. */ |
| 707 | #define DMAE_REG_GO_C15 0x10209c |
| 708 | /* [RW 1] Command 2 go. */ |
| 709 | #define DMAE_REG_GO_C2 0x1020a0 |
| 710 | /* [RW 1] Command 3 go. */ |
| 711 | #define DMAE_REG_GO_C3 0x1020a4 |
| 712 | /* [RW 1] Command 4 go. */ |
| 713 | #define DMAE_REG_GO_C4 0x1020a8 |
| 714 | /* [RW 1] Command 5 go. */ |
| 715 | #define DMAE_REG_GO_C5 0x1020ac |
| 716 | /* [RW 1] Command 6 go. */ |
| 717 | #define DMAE_REG_GO_C6 0x1020b0 |
| 718 | /* [RW 1] Command 7 go. */ |
| 719 | #define DMAE_REG_GO_C7 0x1020b4 |
| 720 | /* [RW 1] Command 8 go. */ |
| 721 | #define DMAE_REG_GO_C8 0x1020b8 |
| 722 | /* [RW 1] Command 9 go. */ |
| 723 | #define DMAE_REG_GO_C9 0x1020bc |
| 724 | /* [RW 1] DMAE GRC Interface (Target; aster) enable. If 0 - the acknowledge |
| 725 | input is disregarded; valid is deasserted; all other signals are treated |
| 726 | as usual; if 1 - normal activity. */ |
| 727 | #define DMAE_REG_GRC_IFEN 0x102008 |
| 728 | /* [RW 1] DMAE PCI Interface (Request; ead; rite) enable. If 0 - the |
| 729 | acknowledge input is disregarded; valid is deasserted; full is asserted; |
| 730 | all other signals are treated as usual; if 1 - normal activity. */ |
| 731 | #define DMAE_REG_PCI_IFEN 0x102004 |
| 732 | /* [RW 4] DMAE- PCI Request Interface initial credit. Write writes the |
| 733 | initial value to the credit counter; related to the address. Read returns |
| 734 | the current value of the counter. */ |
| 735 | #define DMAE_REG_PXP_REQ_INIT_CRD 0x1020c0 |
| 736 | /* [RW 8] Aggregation command. */ |
| 737 | #define DORQ_REG_AGG_CMD0 0x170060 |
| 738 | /* [RW 8] Aggregation command. */ |
| 739 | #define DORQ_REG_AGG_CMD1 0x170064 |
| 740 | /* [RW 8] Aggregation command. */ |
| 741 | #define DORQ_REG_AGG_CMD2 0x170068 |
| 742 | /* [RW 8] Aggregation command. */ |
| 743 | #define DORQ_REG_AGG_CMD3 0x17006c |
| 744 | /* [RW 28] UCM Header. */ |
| 745 | #define DORQ_REG_CMHEAD_RX 0x170050 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 746 | /* [RW 32] Doorbell address for RBC doorbells (function 0). */ |
| 747 | #define DORQ_REG_DB_ADDR0 0x17008c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 748 | /* [RW 5] Interrupt mask register #0 read/write */ |
| 749 | #define DORQ_REG_DORQ_INT_MASK 0x170180 |
| 750 | /* [R 5] Interrupt register #0 read */ |
| 751 | #define DORQ_REG_DORQ_INT_STS 0x170174 |
| 752 | /* [RC 5] Interrupt register #0 read clear */ |
| 753 | #define DORQ_REG_DORQ_INT_STS_CLR 0x170178 |
| 754 | /* [RW 2] Parity mask register #0 read/write */ |
| 755 | #define DORQ_REG_DORQ_PRTY_MASK 0x170190 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 756 | /* [R 2] Parity register #0 read */ |
| 757 | #define DORQ_REG_DORQ_PRTY_STS 0x170184 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 758 | /* [RC 2] Parity register #0 read clear */ |
| 759 | #define DORQ_REG_DORQ_PRTY_STS_CLR 0x170188 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 760 | /* [RW 8] The address to write the DPM CID to STORM. */ |
| 761 | #define DORQ_REG_DPM_CID_ADDR 0x170044 |
| 762 | /* [RW 5] The DPM mode CID extraction offset. */ |
| 763 | #define DORQ_REG_DPM_CID_OFST 0x170030 |
| 764 | /* [RW 12] The threshold of the DQ FIFO to send the almost full interrupt. */ |
| 765 | #define DORQ_REG_DQ_FIFO_AFULL_TH 0x17007c |
| 766 | /* [RW 12] The threshold of the DQ FIFO to send the full interrupt. */ |
| 767 | #define DORQ_REG_DQ_FIFO_FULL_TH 0x170078 |
| 768 | /* [R 13] Current value of the DQ FIFO fill level according to following |
| 769 | pointer. The range is 0 - 256 FIFO rows; where each row stands for the |
| 770 | doorbell. */ |
| 771 | #define DORQ_REG_DQ_FILL_LVLF 0x1700a4 |
| 772 | /* [R 1] DQ FIFO full status. Is set; when FIFO filling level is more or |
| 773 | equal to full threshold; reset on full clear. */ |
| 774 | #define DORQ_REG_DQ_FULL_ST 0x1700c0 |
| 775 | /* [RW 28] The value sent to CM header in the case of CFC load error. */ |
| 776 | #define DORQ_REG_ERR_CMHEAD 0x170058 |
| 777 | #define DORQ_REG_IF_EN 0x170004 |
| 778 | #define DORQ_REG_MODE_ACT 0x170008 |
| 779 | /* [RW 5] The normal mode CID extraction offset. */ |
| 780 | #define DORQ_REG_NORM_CID_OFST 0x17002c |
| 781 | /* [RW 28] TCM Header when only TCP context is loaded. */ |
| 782 | #define DORQ_REG_NORM_CMHEAD_TX 0x17004c |
| 783 | /* [RW 3] The number of simultaneous outstanding requests to Context Fetch |
| 784 | Interface. */ |
| 785 | #define DORQ_REG_OUTST_REQ 0x17003c |
| 786 | #define DORQ_REG_REGN 0x170038 |
| 787 | /* [R 4] Current value of response A counter credit. Initial credit is |
| 788 | configured through write to ~dorq_registers_rsp_init_crd.rsp_init_crd |
| 789 | register. */ |
| 790 | #define DORQ_REG_RSPA_CRD_CNT 0x1700ac |
| 791 | /* [R 4] Current value of response B counter credit. Initial credit is |
| 792 | configured through write to ~dorq_registers_rsp_init_crd.rsp_init_crd |
| 793 | register. */ |
| 794 | #define DORQ_REG_RSPB_CRD_CNT 0x1700b0 |
| 795 | /* [RW 4] The initial credit at the Doorbell Response Interface. The write |
| 796 | writes the same initial credit to the rspa_crd_cnt and rspb_crd_cnt. The |
| 797 | read reads this written value. */ |
| 798 | #define DORQ_REG_RSP_INIT_CRD 0x170048 |
| 799 | /* [RW 4] Initial activity counter value on the load request; when the |
| 800 | shortcut is done. */ |
| 801 | #define DORQ_REG_SHRT_ACT_CNT 0x170070 |
| 802 | /* [RW 28] TCM Header when both ULP and TCP context is loaded. */ |
| 803 | #define DORQ_REG_SHRT_CMHEAD 0x170054 |
| 804 | #define HC_CONFIG_0_REG_ATTN_BIT_EN_0 (0x1<<4) |
| 805 | #define HC_CONFIG_0_REG_INT_LINE_EN_0 (0x1<<3) |
Eilon Greenstein | 8badd27 | 2009-02-12 08:36:15 +0000 | [diff] [blame] | 806 | #define HC_CONFIG_0_REG_MSI_ATTN_EN_0 (0x1<<7) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 807 | #define HC_CONFIG_0_REG_MSI_MSIX_INT_EN_0 (0x1<<2) |
| 808 | #define HC_CONFIG_0_REG_SINGLE_ISR_EN_0 (0x1<<1) |
| 809 | #define HC_REG_AGG_INT_0 0x108050 |
| 810 | #define HC_REG_AGG_INT_1 0x108054 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 811 | #define HC_REG_ATTN_BIT 0x108120 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 812 | #define HC_REG_ATTN_IDX 0x108100 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 813 | #define HC_REG_ATTN_MSG0_ADDR_L 0x108018 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 814 | #define HC_REG_ATTN_MSG1_ADDR_L 0x108020 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 815 | #define HC_REG_ATTN_NUM_P0 0x108038 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 816 | #define HC_REG_ATTN_NUM_P1 0x10803c |
Eilon Greenstein | 5c86284 | 2008-08-13 15:51:48 -0700 | [diff] [blame] | 817 | #define HC_REG_COMMAND_REG 0x108180 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 818 | #define HC_REG_CONFIG_0 0x108000 |
| 819 | #define HC_REG_CONFIG_1 0x108004 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 820 | #define HC_REG_FUNC_NUM_P0 0x1080ac |
| 821 | #define HC_REG_FUNC_NUM_P1 0x1080b0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 822 | /* [RW 3] Parity mask register #0 read/write */ |
| 823 | #define HC_REG_HC_PRTY_MASK 0x1080a0 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 824 | /* [R 3] Parity register #0 read */ |
| 825 | #define HC_REG_HC_PRTY_STS 0x108094 |
Vladislav Zolotarov | f4a6689 | 2010-10-19 05:13:09 +0000 | [diff] [blame] | 826 | /* [RC 3] Parity register #0 read clear */ |
| 827 | #define HC_REG_HC_PRTY_STS_CLR 0x108098 |
| 828 | #define HC_REG_INT_MASK 0x108108 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 829 | #define HC_REG_LEADING_EDGE_0 0x108040 |
| 830 | #define HC_REG_LEADING_EDGE_1 0x108048 |
Vladislav Zolotarov | f4a6689 | 2010-10-19 05:13:09 +0000 | [diff] [blame] | 831 | #define HC_REG_MAIN_MEMORY 0x108800 |
| 832 | #define HC_REG_MAIN_MEMORY_SIZE 152 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 833 | #define HC_REG_P0_PROD_CONS 0x108200 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 834 | #define HC_REG_P1_PROD_CONS 0x108400 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 835 | #define HC_REG_PBA_COMMAND 0x108140 |
| 836 | #define HC_REG_PCI_CONFIG_0 0x108010 |
| 837 | #define HC_REG_PCI_CONFIG_1 0x108014 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 838 | #define HC_REG_STATISTIC_COUNTERS 0x109000 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 839 | #define HC_REG_TRAILING_EDGE_0 0x108044 |
| 840 | #define HC_REG_TRAILING_EDGE_1 0x10804c |
| 841 | #define HC_REG_UC_RAM_ADDR_0 0x108028 |
| 842 | #define HC_REG_UC_RAM_ADDR_1 0x108030 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 843 | #define HC_REG_USTORM_ADDR_FOR_COALESCE 0x108068 |
| 844 | #define HC_REG_VQID_0 0x108008 |
| 845 | #define HC_REG_VQID_1 0x10800c |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 846 | #define IGU_BLOCK_CONFIGURATION_REG_BACKWARD_COMP_EN (0x1<<1) |
| 847 | #define IGU_REG_ATTENTION_ACK_BITS 0x130108 |
| 848 | /* [R 4] Debug: attn_fsm */ |
| 849 | #define IGU_REG_ATTN_FSM 0x130054 |
| 850 | #define IGU_REG_ATTN_MSG_ADDR_H 0x13011c |
| 851 | #define IGU_REG_ATTN_MSG_ADDR_L 0x130120 |
| 852 | /* [R 4] Debug: [3] - attention write done message is pending (0-no pending; |
| 853 | * 1-pending). [2:0] = PFID. Pending means attention message was sent; but |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 854 | * write done didn't receive. */ |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 855 | #define IGU_REG_ATTN_WRITE_DONE_PENDING 0x130030 |
| 856 | #define IGU_REG_BLOCK_CONFIGURATION 0x130000 |
| 857 | #define IGU_REG_COMMAND_REG_32LSB_DATA 0x130124 |
| 858 | #define IGU_REG_COMMAND_REG_CTRL 0x13012c |
| 859 | /* [WB_R 32] Cleanup bit status per SB. 1 = cleanup is set. 0 = cleanup bit |
| 860 | * is clear. The bits in this registers are set and clear via the producer |
| 861 | * command. Data valid only in addresses 0-4. all the rest are zero. */ |
| 862 | #define IGU_REG_CSTORM_TYPE_0_SB_CLEANUP 0x130200 |
| 863 | /* [R 5] Debug: ctrl_fsm */ |
| 864 | #define IGU_REG_CTRL_FSM 0x130064 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 865 | /* [R 1] data available for error memory. If this bit is clear do not red |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 866 | * from error_handling_memory. */ |
| 867 | #define IGU_REG_ERROR_HANDLING_DATA_VALID 0x130130 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 868 | /* [RW 11] Parity mask register #0 read/write */ |
| 869 | #define IGU_REG_IGU_PRTY_MASK 0x1300a8 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 870 | /* [R 11] Parity register #0 read */ |
| 871 | #define IGU_REG_IGU_PRTY_STS 0x13009c |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 872 | /* [RC 11] Parity register #0 read clear */ |
| 873 | #define IGU_REG_IGU_PRTY_STS_CLR 0x1300a0 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 874 | /* [R 4] Debug: int_handle_fsm */ |
| 875 | #define IGU_REG_INT_HANDLE_FSM 0x130050 |
| 876 | #define IGU_REG_LEADING_EDGE_LATCH 0x130134 |
| 877 | /* [RW 14] mapping CAM; relevant for E2 operating mode only. [0] - valid. |
| 878 | * [6:1] - vector number; [13:7] - FID (if VF - [13] = 0; [12:7] = VF |
| 879 | * number; if PF - [13] = 1; [12:10] = 0; [9:7] = PF number); */ |
| 880 | #define IGU_REG_MAPPING_MEMORY 0x131000 |
| 881 | #define IGU_REG_MAPPING_MEMORY_SIZE 136 |
| 882 | #define IGU_REG_PBA_STATUS_LSB 0x130138 |
| 883 | #define IGU_REG_PBA_STATUS_MSB 0x13013c |
| 884 | #define IGU_REG_PCI_PF_MSI_EN 0x130140 |
| 885 | #define IGU_REG_PCI_PF_MSIX_EN 0x130144 |
| 886 | #define IGU_REG_PCI_PF_MSIX_FUNC_MASK 0x130148 |
| 887 | /* [WB_R 32] Each bit represent the pending bits status for that SB. 0 = no |
| 888 | * pending; 1 = pending. Pendings means interrupt was asserted; and write |
| 889 | * done was not received. Data valid only in addresses 0-4. all the rest are |
| 890 | * zero. */ |
| 891 | #define IGU_REG_PENDING_BITS_STATUS 0x130300 |
| 892 | #define IGU_REG_PF_CONFIGURATION 0x130154 |
| 893 | /* [RW 20] producers only. E2 mode: address 0-135 match to the mapping |
| 894 | * memory; 136 - PF0 default prod; 137 PF1 default prod; 138 - PF2 default |
| 895 | * prod; 139 PF3 default prod; 140 - PF0 - ATTN prod; 141 - PF1 - ATTN prod; |
| 896 | * 142 - PF2 - ATTN prod; 143 - PF3 - ATTN prod; 144-147 reserved. E1.5 mode |
| 897 | * - In backward compatible mode; for non default SB; each even line in the |
| 898 | * memory holds the U producer and each odd line hold the C producer. The |
| 899 | * first 128 producer are for NDSB (PF0 - 0-31; PF1 - 32-63 and so on). The |
| 900 | * last 20 producers are for the DSB for each PF. each PF has five segments |
| 901 | * (the order inside each segment is PF0; PF1; PF2; PF3) - 128-131 U prods; |
| 902 | * 132-135 C prods; 136-139 X prods; 140-143 T prods; 144-147 ATTN prods; */ |
| 903 | #define IGU_REG_PROD_CONS_MEMORY 0x132000 |
| 904 | /* [R 3] Debug: pxp_arb_fsm */ |
| 905 | #define IGU_REG_PXP_ARB_FSM 0x130068 |
| 906 | /* [RW 6] Write one for each bit will reset the appropriate memory. When the |
| 907 | * memory reset finished the appropriate bit will be clear. Bit 0 - mapping |
| 908 | * memory; Bit 1 - SB memory; Bit 2 - SB interrupt and mask register; Bit 3 |
| 909 | * - MSIX memory; Bit 4 - PBA memory; Bit 5 - statistics; */ |
| 910 | #define IGU_REG_RESET_MEMORIES 0x130158 |
| 911 | /* [R 4] Debug: sb_ctrl_fsm */ |
| 912 | #define IGU_REG_SB_CTRL_FSM 0x13004c |
| 913 | #define IGU_REG_SB_INT_BEFORE_MASK_LSB 0x13015c |
| 914 | #define IGU_REG_SB_INT_BEFORE_MASK_MSB 0x130160 |
| 915 | #define IGU_REG_SB_MASK_LSB 0x130164 |
| 916 | #define IGU_REG_SB_MASK_MSB 0x130168 |
| 917 | /* [RW 16] Number of command that were dropped without causing an interrupt |
| 918 | * due to: read access for WO BAR address; or write access for RO BAR |
| 919 | * address or any access for reserved address or PCI function error is set |
| 920 | * and address is not MSIX; PBA or cleanup */ |
| 921 | #define IGU_REG_SILENT_DROP 0x13016c |
| 922 | /* [RW 10] Number of MSI/MSIX/ATTN messages sent for the function: 0-63 - |
| 923 | * number of MSIX messages per VF; 64-67 - number of MSI/MSIX messages per |
| 924 | * PF; 68-71 number of ATTN messages per PF */ |
| 925 | #define IGU_REG_STATISTIC_NUM_MESSAGE_SENT 0x130800 |
| 926 | /* [RW 32] Number of cycles the timer mask masking the IGU interrupt when a |
| 927 | * timer mask command arrives. Value must be bigger than 100. */ |
| 928 | #define IGU_REG_TIMER_MASKING_VALUE 0x13003c |
| 929 | #define IGU_REG_TRAILING_EDGE_LATCH 0x130104 |
| 930 | #define IGU_REG_VF_CONFIGURATION 0x130170 |
| 931 | /* [WB_R 32] Each bit represent write done pending bits status for that SB |
| 932 | * (MSI/MSIX message was sent and write done was not received yet). 0 = |
| 933 | * clear; 1 = set. Data valid only in addresses 0-4. all the rest are zero. */ |
| 934 | #define IGU_REG_WRITE_DONE_PENDING 0x130480 |
| 935 | #define MCP_A_REG_MCPR_SCRATCH 0x3a0000 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 936 | #define MCP_REG_MCPR_NVM_ACCESS_ENABLE 0x86424 |
| 937 | #define MCP_REG_MCPR_NVM_ADDR 0x8640c |
| 938 | #define MCP_REG_MCPR_NVM_CFG4 0x8642c |
| 939 | #define MCP_REG_MCPR_NVM_COMMAND 0x86400 |
| 940 | #define MCP_REG_MCPR_NVM_READ 0x86410 |
| 941 | #define MCP_REG_MCPR_NVM_SW_ARB 0x86420 |
| 942 | #define MCP_REG_MCPR_NVM_WRITE 0x86408 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 943 | #define MCP_REG_MCPR_SCRATCH 0xa0000 |
Vladislav Zolotarov | 72fd071 | 2010-04-19 01:13:12 +0000 | [diff] [blame] | 944 | #define MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK (0x1<<1) |
| 945 | #define MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK (0x1<<0) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 946 | /* [R 32] read first 32 bit after inversion of function 0. mapped as |
| 947 | follows: [0] NIG attention for function0; [1] NIG attention for |
| 948 | function1; [2] GPIO1 mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; |
| 949 | [6] GPIO1 function 1; [7] GPIO2 function 1; [8] GPIO3 function 1; [9] |
| 950 | GPIO4 function 1; [10] PCIE glue/PXP VPD event function0; [11] PCIE |
| 951 | glue/PXP VPD event function1; [12] PCIE glue/PXP Expansion ROM event0; |
| 952 | [13] PCIE glue/PXP Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] |
| 953 | MSI/X indication for mcp; [17] MSI/X indication for function 1; [18] BRB |
| 954 | Parity error; [19] BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw |
| 955 | interrupt; [22] SRC Parity error; [23] SRC Hw interrupt; [24] TSDM Parity |
| 956 | error; [25] TSDM Hw interrupt; [26] TCM Parity error; [27] TCM Hw |
| 957 | interrupt; [28] TSEMI Parity error; [29] TSEMI Hw interrupt; [30] PBF |
| 958 | Parity error; [31] PBF Hw interrupt; */ |
| 959 | #define MISC_REG_AEU_AFTER_INVERT_1_FUNC_0 0xa42c |
| 960 | #define MISC_REG_AEU_AFTER_INVERT_1_FUNC_1 0xa430 |
| 961 | /* [R 32] read first 32 bit after inversion of mcp. mapped as follows: [0] |
| 962 | NIG attention for function0; [1] NIG attention for function1; [2] GPIO1 |
| 963 | mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1; |
| 964 | [7] GPIO2 function 1; [8] GPIO3 function 1; [9] GPIO4 function 1; [10] |
| 965 | PCIE glue/PXP VPD event function0; [11] PCIE glue/PXP VPD event |
| 966 | function1; [12] PCIE glue/PXP Expansion ROM event0; [13] PCIE glue/PXP |
| 967 | Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] MSI/X indication for |
| 968 | mcp; [17] MSI/X indication for function 1; [18] BRB Parity error; [19] |
| 969 | BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC |
| 970 | Parity error; [23] SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw |
| 971 | interrupt; [26] TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI |
| 972 | Parity error; [29] TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw |
| 973 | interrupt; */ |
| 974 | #define MISC_REG_AEU_AFTER_INVERT_1_MCP 0xa434 |
| 975 | /* [R 32] read second 32 bit after inversion of function 0. mapped as |
| 976 | follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM |
| 977 | Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw |
| 978 | interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity |
| 979 | error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw |
| 980 | interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] |
| 981 | NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; |
| 982 | [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw |
| 983 | interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM |
| 984 | Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI |
| 985 | Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM |
| 986 | Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw |
| 987 | interrupt; */ |
| 988 | #define MISC_REG_AEU_AFTER_INVERT_2_FUNC_0 0xa438 |
| 989 | #define MISC_REG_AEU_AFTER_INVERT_2_FUNC_1 0xa43c |
| 990 | /* [R 32] read second 32 bit after inversion of mcp. mapped as follows: [0] |
| 991 | PBClient Parity error; [1] PBClient Hw interrupt; [2] QM Parity error; |
| 992 | [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw interrupt; |
| 993 | [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity error; [9] |
| 994 | XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw interrupt; [12] |
| 995 | DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] NIG Parity |
| 996 | error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; [17] Vaux |
| 997 | PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw interrupt; |
| 998 | [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM Parity error; |
| 999 | [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI Hw interrupt; |
| 1000 | [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM Parity error; |
| 1001 | [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw interrupt; */ |
| 1002 | #define MISC_REG_AEU_AFTER_INVERT_2_MCP 0xa440 |
| 1003 | /* [R 32] read third 32 bit after inversion of function 0. mapped as |
| 1004 | follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP Parity |
| 1005 | error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error; [5] |
| 1006 | PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw |
| 1007 | interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity |
| 1008 | error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC) |
| 1009 | Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16] |
| 1010 | pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20] |
| 1011 | MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23] |
| 1012 | SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW |
| 1013 | timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3 |
| 1014 | func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General |
| 1015 | attn1; */ |
| 1016 | #define MISC_REG_AEU_AFTER_INVERT_3_FUNC_0 0xa444 |
| 1017 | #define MISC_REG_AEU_AFTER_INVERT_3_FUNC_1 0xa448 |
| 1018 | /* [R 32] read third 32 bit after inversion of mcp. mapped as follows: [0] |
| 1019 | CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP Parity error; [3] PXP |
| 1020 | Hw interrupt; [4] PXPpciClockClient Parity error; [5] PXPpciClockClient |
| 1021 | Hw interrupt; [6] CFC Parity error; [7] CFC Hw interrupt; [8] CDU Parity |
| 1022 | error; [9] CDU Hw interrupt; [10] DMAE Parity error; [11] DMAE Hw |
| 1023 | interrupt; [12] IGU (HC) Parity error; [13] IGU (HC) Hw interrupt; [14] |
| 1024 | MISC Parity error; [15] MISC Hw interrupt; [16] pxp_misc_mps_attn; [17] |
| 1025 | Flash event; [18] SMB event; [19] MCP attn0; [20] MCP attn1; [21] SW |
| 1026 | timers attn_1 func0; [22] SW timers attn_2 func0; [23] SW timers attn_3 |
| 1027 | func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW timers attn_1 |
| 1028 | func1; [27] SW timers attn_2 func1; [28] SW timers attn_3 func1; [29] SW |
| 1029 | timers attn_4 func1; [30] General attn0; [31] General attn1; */ |
| 1030 | #define MISC_REG_AEU_AFTER_INVERT_3_MCP 0xa44c |
| 1031 | /* [R 32] read fourth 32 bit after inversion of function 0. mapped as |
| 1032 | follows: [0] General attn2; [1] General attn3; [2] General attn4; [3] |
| 1033 | General attn5; [4] General attn6; [5] General attn7; [6] General attn8; |
| 1034 | [7] General attn9; [8] General attn10; [9] General attn11; [10] General |
| 1035 | attn12; [11] General attn13; [12] General attn14; [13] General attn15; |
| 1036 | [14] General attn16; [15] General attn17; [16] General attn18; [17] |
| 1037 | General attn19; [18] General attn20; [19] General attn21; [20] Main power |
| 1038 | interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN |
| 1039 | Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC |
| 1040 | Latched timeout attention; [27] GRC Latched reserved access attention; |
| 1041 | [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP |
| 1042 | Latched ump_tx_parity; [31] MCP Latched scpad_parity; */ |
| 1043 | #define MISC_REG_AEU_AFTER_INVERT_4_FUNC_0 0xa450 |
| 1044 | #define MISC_REG_AEU_AFTER_INVERT_4_FUNC_1 0xa454 |
| 1045 | /* [R 32] read fourth 32 bit after inversion of mcp. mapped as follows: [0] |
| 1046 | General attn2; [1] General attn3; [2] General attn4; [3] General attn5; |
| 1047 | [4] General attn6; [5] General attn7; [6] General attn8; [7] General |
| 1048 | attn9; [8] General attn10; [9] General attn11; [10] General attn12; [11] |
| 1049 | General attn13; [12] General attn14; [13] General attn15; [14] General |
| 1050 | attn16; [15] General attn17; [16] General attn18; [17] General attn19; |
| 1051 | [18] General attn20; [19] General attn21; [20] Main power interrupt; [21] |
| 1052 | RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN Latched attn; [24] |
| 1053 | RBCU Latched attn; [25] RBCP Latched attn; [26] GRC Latched timeout |
| 1054 | attention; [27] GRC Latched reserved access attention; [28] MCP Latched |
| 1055 | rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP Latched |
| 1056 | ump_tx_parity; [31] MCP Latched scpad_parity; */ |
| 1057 | #define MISC_REG_AEU_AFTER_INVERT_4_MCP 0xa458 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 1058 | /* [R 32] Read fifth 32 bit after inversion of function 0. Mapped as |
| 1059 | * follows: [0] PGLUE config_space; [1] PGLUE misc_flr; [2] PGLUE B RBC |
| 1060 | * attention [3] PGLUE B RBC parity; [4] ATC attention; [5] ATC parity; [6] |
| 1061 | * CNIG attention (reserved); [7] CNIG parity (reserved); [31-8] Reserved; */ |
| 1062 | #define MISC_REG_AEU_AFTER_INVERT_5_FUNC_0 0xa700 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1063 | /* [W 14] write to this register results with the clear of the latched |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1064 | signals; one in d0 clears RBCR latch; one in d1 clears RBCT latch; one in |
| 1065 | d2 clears RBCN latch; one in d3 clears RBCU latch; one in d4 clears RBCP |
| 1066 | latch; one in d5 clears GRC Latched timeout attention; one in d6 clears |
| 1067 | GRC Latched reserved access attention; one in d7 clears Latched |
| 1068 | rom_parity; one in d8 clears Latched ump_rx_parity; one in d9 clears |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1069 | Latched ump_tx_parity; one in d10 clears Latched scpad_parity (both |
| 1070 | ports); one in d11 clears pxpv_misc_mps_attn; one in d12 clears |
| 1071 | pxp_misc_exp_rom_attn0; one in d13 clears pxp_misc_exp_rom_attn1; read |
| 1072 | from this register return zero */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1073 | #define MISC_REG_AEU_CLR_LATCH_SIGNAL 0xa45c |
| 1074 | /* [RW 32] first 32b for enabling the output for function 0 output0. mapped |
| 1075 | as follows: [0] NIG attention for function0; [1] NIG attention for |
| 1076 | function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function |
| 1077 | 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8] |
| 1078 | GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event |
| 1079 | function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP |
| 1080 | Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14] |
| 1081 | SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X |
| 1082 | indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt; |
| 1083 | [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23] |
| 1084 | SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26] |
| 1085 | TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29] |
| 1086 | TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */ |
| 1087 | #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_0 0xa06c |
| 1088 | #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_1 0xa07c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1089 | #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_2 0xa08c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1090 | #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_3 0xa09c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1091 | #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_5 0xa0bc |
| 1092 | #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_6 0xa0cc |
| 1093 | #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_7 0xa0dc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1094 | /* [RW 32] first 32b for enabling the output for function 1 output0. mapped |
| 1095 | as follows: [0] NIG attention for function0; [1] NIG attention for |
| 1096 | function1; [2] GPIO1 function 1; [3] GPIO2 function 1; [4] GPIO3 function |
| 1097 | 1; [5] GPIO4 function 1; [6] GPIO1 function 1; [7] GPIO2 function 1; [8] |
| 1098 | GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event |
| 1099 | function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP |
| 1100 | Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14] |
| 1101 | SPIO4; [15] SPIO5; [16] MSI/X indication for function 1; [17] MSI/X |
| 1102 | indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt; |
| 1103 | [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23] |
| 1104 | SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26] |
| 1105 | TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29] |
| 1106 | TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */ |
| 1107 | #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0 0xa10c |
| 1108 | #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_1 0xa11c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1109 | #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_2 0xa12c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1110 | #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_3 0xa13c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1111 | #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_5 0xa15c |
| 1112 | #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_6 0xa16c |
| 1113 | #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_7 0xa17c |
| 1114 | /* [RW 32] first 32b for enabling the output for close the gate nig. mapped |
| 1115 | as follows: [0] NIG attention for function0; [1] NIG attention for |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1116 | function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function |
| 1117 | 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8] |
| 1118 | GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event |
| 1119 | function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP |
| 1120 | Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14] |
| 1121 | SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X |
| 1122 | indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt; |
| 1123 | [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23] |
| 1124 | SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26] |
| 1125 | TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29] |
| 1126 | TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */ |
| 1127 | #define MISC_REG_AEU_ENABLE1_NIG_0 0xa0ec |
| 1128 | #define MISC_REG_AEU_ENABLE1_NIG_1 0xa18c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1129 | /* [RW 32] first 32b for enabling the output for close the gate pxp. mapped |
| 1130 | as follows: [0] NIG attention for function0; [1] NIG attention for |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1131 | function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function |
| 1132 | 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8] |
| 1133 | GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event |
| 1134 | function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP |
| 1135 | Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14] |
| 1136 | SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X |
| 1137 | indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt; |
| 1138 | [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23] |
| 1139 | SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26] |
| 1140 | TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29] |
| 1141 | TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */ |
| 1142 | #define MISC_REG_AEU_ENABLE1_PXP_0 0xa0fc |
| 1143 | #define MISC_REG_AEU_ENABLE1_PXP_1 0xa19c |
| 1144 | /* [RW 32] second 32b for enabling the output for function 0 output0. mapped |
| 1145 | as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM |
| 1146 | Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw |
| 1147 | interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity |
| 1148 | error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw |
| 1149 | interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] |
| 1150 | NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; |
| 1151 | [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw |
| 1152 | interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM |
| 1153 | Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI |
| 1154 | Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM |
| 1155 | Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw |
| 1156 | interrupt; */ |
| 1157 | #define MISC_REG_AEU_ENABLE2_FUNC_0_OUT_0 0xa070 |
| 1158 | #define MISC_REG_AEU_ENABLE2_FUNC_0_OUT_1 0xa080 |
| 1159 | /* [RW 32] second 32b for enabling the output for function 1 output0. mapped |
| 1160 | as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM |
| 1161 | Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw |
| 1162 | interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity |
| 1163 | error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw |
| 1164 | interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] |
| 1165 | NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; |
| 1166 | [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw |
| 1167 | interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM |
| 1168 | Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI |
| 1169 | Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM |
| 1170 | Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw |
| 1171 | interrupt; */ |
| 1172 | #define MISC_REG_AEU_ENABLE2_FUNC_1_OUT_0 0xa110 |
| 1173 | #define MISC_REG_AEU_ENABLE2_FUNC_1_OUT_1 0xa120 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1174 | /* [RW 32] second 32b for enabling the output for close the gate nig. mapped |
| 1175 | as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM |
| 1176 | Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw |
| 1177 | interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity |
| 1178 | error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw |
| 1179 | interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] |
| 1180 | NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; |
| 1181 | [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw |
| 1182 | interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM |
| 1183 | Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI |
| 1184 | Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM |
| 1185 | Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw |
| 1186 | interrupt; */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1187 | #define MISC_REG_AEU_ENABLE2_NIG_0 0xa0f0 |
| 1188 | #define MISC_REG_AEU_ENABLE2_NIG_1 0xa190 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1189 | /* [RW 32] second 32b for enabling the output for close the gate pxp. mapped |
| 1190 | as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM |
| 1191 | Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw |
| 1192 | interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity |
| 1193 | error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw |
| 1194 | interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] |
| 1195 | NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; |
| 1196 | [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw |
| 1197 | interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM |
| 1198 | Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI |
| 1199 | Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM |
| 1200 | Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw |
| 1201 | interrupt; */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1202 | #define MISC_REG_AEU_ENABLE2_PXP_0 0xa100 |
| 1203 | #define MISC_REG_AEU_ENABLE2_PXP_1 0xa1a0 |
| 1204 | /* [RW 32] third 32b for enabling the output for function 0 output0. mapped |
| 1205 | as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP |
| 1206 | Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error; |
| 1207 | [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw |
| 1208 | interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity |
| 1209 | error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC) |
| 1210 | Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16] |
| 1211 | pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20] |
| 1212 | MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23] |
| 1213 | SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW |
| 1214 | timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3 |
| 1215 | func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General |
| 1216 | attn1; */ |
| 1217 | #define MISC_REG_AEU_ENABLE3_FUNC_0_OUT_0 0xa074 |
| 1218 | #define MISC_REG_AEU_ENABLE3_FUNC_0_OUT_1 0xa084 |
| 1219 | /* [RW 32] third 32b for enabling the output for function 1 output0. mapped |
| 1220 | as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP |
| 1221 | Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error; |
| 1222 | [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw |
| 1223 | interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity |
| 1224 | error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC) |
| 1225 | Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16] |
| 1226 | pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20] |
| 1227 | MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23] |
| 1228 | SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW |
| 1229 | timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3 |
| 1230 | func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General |
| 1231 | attn1; */ |
| 1232 | #define MISC_REG_AEU_ENABLE3_FUNC_1_OUT_0 0xa114 |
| 1233 | #define MISC_REG_AEU_ENABLE3_FUNC_1_OUT_1 0xa124 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1234 | /* [RW 32] third 32b for enabling the output for close the gate nig. mapped |
| 1235 | as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP |
| 1236 | Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error; |
| 1237 | [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw |
| 1238 | interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity |
| 1239 | error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC) |
| 1240 | Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16] |
| 1241 | pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20] |
| 1242 | MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23] |
| 1243 | SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW |
| 1244 | timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3 |
| 1245 | func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General |
| 1246 | attn1; */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1247 | #define MISC_REG_AEU_ENABLE3_NIG_0 0xa0f4 |
| 1248 | #define MISC_REG_AEU_ENABLE3_NIG_1 0xa194 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1249 | /* [RW 32] third 32b for enabling the output for close the gate pxp. mapped |
| 1250 | as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP |
| 1251 | Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error; |
| 1252 | [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw |
| 1253 | interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity |
| 1254 | error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC) |
| 1255 | Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16] |
| 1256 | pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20] |
| 1257 | MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23] |
| 1258 | SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW |
| 1259 | timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3 |
| 1260 | func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General |
| 1261 | attn1; */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1262 | #define MISC_REG_AEU_ENABLE3_PXP_0 0xa104 |
| 1263 | #define MISC_REG_AEU_ENABLE3_PXP_1 0xa1a4 |
| 1264 | /* [RW 32] fourth 32b for enabling the output for function 0 output0.mapped |
| 1265 | as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3] |
| 1266 | General attn5; [4] General attn6; [5] General attn7; [6] General attn8; |
| 1267 | [7] General attn9; [8] General attn10; [9] General attn11; [10] General |
| 1268 | attn12; [11] General attn13; [12] General attn14; [13] General attn15; |
| 1269 | [14] General attn16; [15] General attn17; [16] General attn18; [17] |
| 1270 | General attn19; [18] General attn20; [19] General attn21; [20] Main power |
| 1271 | interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN |
| 1272 | Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC |
| 1273 | Latched timeout attention; [27] GRC Latched reserved access attention; |
| 1274 | [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP |
| 1275 | Latched ump_tx_parity; [31] MCP Latched scpad_parity; */ |
| 1276 | #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_0 0xa078 |
| 1277 | #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_2 0xa098 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1278 | #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_4 0xa0b8 |
| 1279 | #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_5 0xa0c8 |
| 1280 | #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_6 0xa0d8 |
| 1281 | #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_7 0xa0e8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1282 | /* [RW 32] fourth 32b for enabling the output for function 1 output0.mapped |
| 1283 | as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3] |
| 1284 | General attn5; [4] General attn6; [5] General attn7; [6] General attn8; |
| 1285 | [7] General attn9; [8] General attn10; [9] General attn11; [10] General |
| 1286 | attn12; [11] General attn13; [12] General attn14; [13] General attn15; |
| 1287 | [14] General attn16; [15] General attn17; [16] General attn18; [17] |
| 1288 | General attn19; [18] General attn20; [19] General attn21; [20] Main power |
| 1289 | interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN |
| 1290 | Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC |
| 1291 | Latched timeout attention; [27] GRC Latched reserved access attention; |
| 1292 | [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP |
| 1293 | Latched ump_tx_parity; [31] MCP Latched scpad_parity; */ |
| 1294 | #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_0 0xa118 |
| 1295 | #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_2 0xa138 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1296 | #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_4 0xa158 |
| 1297 | #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_5 0xa168 |
| 1298 | #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_6 0xa178 |
| 1299 | #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_7 0xa188 |
| 1300 | /* [RW 32] fourth 32b for enabling the output for close the gate nig.mapped |
| 1301 | as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3] |
| 1302 | General attn5; [4] General attn6; [5] General attn7; [6] General attn8; |
| 1303 | [7] General attn9; [8] General attn10; [9] General attn11; [10] General |
| 1304 | attn12; [11] General attn13; [12] General attn14; [13] General attn15; |
| 1305 | [14] General attn16; [15] General attn17; [16] General attn18; [17] |
| 1306 | General attn19; [18] General attn20; [19] General attn21; [20] Main power |
| 1307 | interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN |
| 1308 | Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC |
| 1309 | Latched timeout attention; [27] GRC Latched reserved access attention; |
| 1310 | [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP |
| 1311 | Latched ump_tx_parity; [31] MCP Latched scpad_parity; */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1312 | #define MISC_REG_AEU_ENABLE4_NIG_0 0xa0f8 |
| 1313 | #define MISC_REG_AEU_ENABLE4_NIG_1 0xa198 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1314 | /* [RW 32] fourth 32b for enabling the output for close the gate pxp.mapped |
| 1315 | as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3] |
| 1316 | General attn5; [4] General attn6; [5] General attn7; [6] General attn8; |
| 1317 | [7] General attn9; [8] General attn10; [9] General attn11; [10] General |
| 1318 | attn12; [11] General attn13; [12] General attn14; [13] General attn15; |
| 1319 | [14] General attn16; [15] General attn17; [16] General attn18; [17] |
| 1320 | General attn19; [18] General attn20; [19] General attn21; [20] Main power |
| 1321 | interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN |
| 1322 | Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC |
| 1323 | Latched timeout attention; [27] GRC Latched reserved access attention; |
| 1324 | [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP |
| 1325 | Latched ump_tx_parity; [31] MCP Latched scpad_parity; */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1326 | #define MISC_REG_AEU_ENABLE4_PXP_0 0xa108 |
| 1327 | #define MISC_REG_AEU_ENABLE4_PXP_1 0xa1a8 |
Dmitry Kravkov | e69f24b | 2011-09-22 02:33:31 +0000 | [diff] [blame] | 1328 | /* [RW 32] fifth 32b for enabling the output for function 0 output0. Mapped |
| 1329 | * as follows: [0] PGLUE config_space; [1] PGLUE misc_flr; [2] PGLUE B RBC |
| 1330 | * attention [3] PGLUE B RBC parity; [4] ATC attention; [5] ATC parity; [6] |
| 1331 | * mstat0 attention; [7] mstat0 parity; [8] mstat1 attention; [9] mstat1 |
| 1332 | * parity; [31-10] Reserved; */ |
| 1333 | #define MISC_REG_AEU_ENABLE5_FUNC_0_OUT_0 0xa688 |
| 1334 | /* [RW 32] Fifth 32b for enabling the output for function 1 output0. Mapped |
| 1335 | * as follows: [0] PGLUE config_space; [1] PGLUE misc_flr; [2] PGLUE B RBC |
| 1336 | * attention [3] PGLUE B RBC parity; [4] ATC attention; [5] ATC parity; [6] |
| 1337 | * mstat0 attention; [7] mstat0 parity; [8] mstat1 attention; [9] mstat1 |
| 1338 | * parity; [31-10] Reserved; */ |
| 1339 | #define MISC_REG_AEU_ENABLE5_FUNC_1_OUT_0 0xa6b0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1340 | /* [RW 1] set/clr general attention 0; this will set/clr bit 94 in the aeu |
| 1341 | 128 bit vector */ |
| 1342 | #define MISC_REG_AEU_GENERAL_ATTN_0 0xa000 |
| 1343 | #define MISC_REG_AEU_GENERAL_ATTN_1 0xa004 |
| 1344 | #define MISC_REG_AEU_GENERAL_ATTN_10 0xa028 |
| 1345 | #define MISC_REG_AEU_GENERAL_ATTN_11 0xa02c |
| 1346 | #define MISC_REG_AEU_GENERAL_ATTN_12 0xa030 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1347 | #define MISC_REG_AEU_GENERAL_ATTN_2 0xa008 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1348 | #define MISC_REG_AEU_GENERAL_ATTN_3 0xa00c |
| 1349 | #define MISC_REG_AEU_GENERAL_ATTN_4 0xa010 |
| 1350 | #define MISC_REG_AEU_GENERAL_ATTN_5 0xa014 |
| 1351 | #define MISC_REG_AEU_GENERAL_ATTN_6 0xa018 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 1352 | #define MISC_REG_AEU_GENERAL_ATTN_7 0xa01c |
| 1353 | #define MISC_REG_AEU_GENERAL_ATTN_8 0xa020 |
| 1354 | #define MISC_REG_AEU_GENERAL_ATTN_9 0xa024 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1355 | #define MISC_REG_AEU_GENERAL_MASK 0xa61c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1356 | /* [RW 32] first 32b for inverting the input for function 0; for each bit: |
| 1357 | 0= do not invert; 1= invert; mapped as follows: [0] NIG attention for |
| 1358 | function0; [1] NIG attention for function1; [2] GPIO1 mcp; [3] GPIO2 mcp; |
| 1359 | [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1; [7] GPIO2 function 1; |
| 1360 | [8] GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event |
| 1361 | function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP |
| 1362 | Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14] |
| 1363 | SPIO4; [15] SPIO5; [16] MSI/X indication for mcp; [17] MSI/X indication |
| 1364 | for function 1; [18] BRB Parity error; [19] BRB Hw interrupt; [20] PRS |
| 1365 | Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23] SRC Hw |
| 1366 | interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26] TCM |
| 1367 | Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29] TSEMI |
| 1368 | Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */ |
| 1369 | #define MISC_REG_AEU_INVERTER_1_FUNC_0 0xa22c |
| 1370 | #define MISC_REG_AEU_INVERTER_1_FUNC_1 0xa23c |
| 1371 | /* [RW 32] second 32b for inverting the input for function 0; for each bit: |
| 1372 | 0= do not invert; 1= invert. mapped as follows: [0] PBClient Parity |
| 1373 | error; [1] PBClient Hw interrupt; [2] QM Parity error; [3] QM Hw |
| 1374 | interrupt; [4] Timers Parity error; [5] Timers Hw interrupt; [6] XSDM |
| 1375 | Parity error; [7] XSDM Hw interrupt; [8] XCM Parity error; [9] XCM Hw |
| 1376 | interrupt; [10] XSEMI Parity error; [11] XSEMI Hw interrupt; [12] |
| 1377 | DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] NIG Parity |
| 1378 | error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; [17] Vaux |
| 1379 | PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw interrupt; |
| 1380 | [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM Parity error; |
| 1381 | [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI Hw interrupt; |
| 1382 | [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM Parity error; |
| 1383 | [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw interrupt; */ |
| 1384 | #define MISC_REG_AEU_INVERTER_2_FUNC_0 0xa230 |
| 1385 | #define MISC_REG_AEU_INVERTER_2_FUNC_1 0xa240 |
| 1386 | /* [RW 10] [7:0] = mask 8 attention output signals toward IGU function0; |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1387 | [9:8] = raserved. Zero = mask; one = unmask */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1388 | #define MISC_REG_AEU_MASK_ATTN_FUNC_0 0xa060 |
| 1389 | #define MISC_REG_AEU_MASK_ATTN_FUNC_1 0xa064 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1390 | /* [RW 1] If set a system kill occurred */ |
| 1391 | #define MISC_REG_AEU_SYS_KILL_OCCURRED 0xa610 |
| 1392 | /* [RW 32] Represent the status of the input vector to the AEU when a system |
| 1393 | kill occurred. The register is reset in por reset. Mapped as follows: [0] |
| 1394 | NIG attention for function0; [1] NIG attention for function1; [2] GPIO1 |
| 1395 | mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1; |
| 1396 | [7] GPIO2 function 1; [8] GPIO3 function 1; [9] GPIO4 function 1; [10] |
| 1397 | PCIE glue/PXP VPD event function0; [11] PCIE glue/PXP VPD event |
| 1398 | function1; [12] PCIE glue/PXP Expansion ROM event0; [13] PCIE glue/PXP |
| 1399 | Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] MSI/X indication for |
| 1400 | mcp; [17] MSI/X indication for function 1; [18] BRB Parity error; [19] |
| 1401 | BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC |
| 1402 | Parity error; [23] SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw |
| 1403 | interrupt; [26] TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI |
| 1404 | Parity error; [29] TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw |
| 1405 | interrupt; */ |
| 1406 | #define MISC_REG_AEU_SYS_KILL_STATUS_0 0xa600 |
| 1407 | #define MISC_REG_AEU_SYS_KILL_STATUS_1 0xa604 |
| 1408 | #define MISC_REG_AEU_SYS_KILL_STATUS_2 0xa608 |
| 1409 | #define MISC_REG_AEU_SYS_KILL_STATUS_3 0xa60c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1410 | /* [R 4] This field indicates the type of the device. '0' - 2 Ports; '1' - 1 |
| 1411 | Port. */ |
| 1412 | #define MISC_REG_BOND_ID 0xa400 |
| 1413 | /* [R 8] These bits indicate the metal revision of the chip. This value |
| 1414 | starts at 0x00 for each all-layer tape-out and increments by one for each |
| 1415 | tape-out. */ |
| 1416 | #define MISC_REG_CHIP_METAL 0xa404 |
| 1417 | /* [R 16] These bits indicate the part number for the chip. */ |
| 1418 | #define MISC_REG_CHIP_NUM 0xa408 |
| 1419 | /* [R 4] These bits indicate the base revision of the chip. This value |
| 1420 | starts at 0x0 for the A0 tape-out and increments by one for each |
| 1421 | all-layer tape-out. */ |
| 1422 | #define MISC_REG_CHIP_REV 0xa40c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1423 | /* [RW 32] The following driver registers(1...16) represent 16 drivers and |
| 1424 | 32 clients. Each client can be controlled by one driver only. One in each |
| 1425 | bit represent that this driver control the appropriate client (Ex: bit 5 |
| 1426 | is set means this driver control client number 5). addr1 = set; addr0 = |
| 1427 | clear; read from both addresses will give the same result = status. write |
| 1428 | to address 1 will set a request to control all the clients that their |
| 1429 | appropriate bit (in the write command) is set. if the client is free (the |
| 1430 | appropriate bit in all the other drivers is clear) one will be written to |
| 1431 | that driver register; if the client isn't free the bit will remain zero. |
| 1432 | if the appropriate bit is set (the driver request to gain control on a |
| 1433 | client it already controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW |
| 1434 | interrupt will be asserted). write to address 0 will set a request to |
| 1435 | free all the clients that their appropriate bit (in the write command) is |
| 1436 | set. if the appropriate bit is clear (the driver request to free a client |
| 1437 | it doesn't controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW interrupt will |
| 1438 | be asserted). */ |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 1439 | #define MISC_REG_DRIVER_CONTROL_1 0xa510 |
Yitchak Gertner | 4a37fb6 | 2008-08-13 15:50:23 -0700 | [diff] [blame] | 1440 | #define MISC_REG_DRIVER_CONTROL_7 0xa3c8 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1441 | /* [RW 1] e1hmf for WOL. If clr WOL signal o the PXP will be send on bit 0 |
| 1442 | only. */ |
| 1443 | #define MISC_REG_E1HMF_MODE 0xa5f8 |
Eilon Greenstein | ca00392 | 2009-08-12 22:53:28 -0700 | [diff] [blame] | 1444 | /* [RW 32] Debug only: spare RW register reset by core reset */ |
| 1445 | #define MISC_REG_GENERIC_CR_0 0xa460 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 1446 | #define MISC_REG_GENERIC_CR_1 0xa464 |
Vladislav Zolotarov | 72fd071 | 2010-04-19 01:13:12 +0000 | [diff] [blame] | 1447 | /* [RW 32] Debug only: spare RW register reset by por reset */ |
| 1448 | #define MISC_REG_GENERIC_POR_1 0xa474 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 1449 | /* [RW 32] GPIO. [31-28] FLOAT port 0; [27-24] FLOAT port 0; When any of |
| 1450 | these bits is written as a '1'; the corresponding SPIO bit will turn off |
| 1451 | it's drivers and become an input. This is the reset state of all GPIO |
| 1452 | pins. The read value of these bits will be a '1' if that last command |
| 1453 | (#SET; #CLR; or #FLOAT) for this bit was a #FLOAT. (reset value 0xff). |
| 1454 | [23-20] CLR port 1; 19-16] CLR port 0; When any of these bits is written |
| 1455 | as a '1'; the corresponding GPIO bit will drive low. The read value of |
| 1456 | these bits will be a '1' if that last command (#SET; #CLR; or #FLOAT) for |
| 1457 | this bit was a #CLR. (reset value 0). [15-12] SET port 1; 11-8] port 0; |
| 1458 | SET When any of these bits is written as a '1'; the corresponding GPIO |
| 1459 | bit will drive high (if it has that capability). The read value of these |
| 1460 | bits will be a '1' if that last command (#SET; #CLR; or #FLOAT) for this |
| 1461 | bit was a #SET. (reset value 0). [7-4] VALUE port 1; [3-0] VALUE port 0; |
| 1462 | RO; These bits indicate the read value of each of the eight GPIO pins. |
| 1463 | This is the result value of the pin; not the drive value. Writing these |
| 1464 | bits will have not effect. */ |
| 1465 | #define MISC_REG_GPIO 0xa490 |
Eilon Greenstein | 4acac6a | 2009-02-12 08:36:52 +0000 | [diff] [blame] | 1466 | /* [RW 8] These bits enable the GPIO_INTs to signals event to the |
| 1467 | IGU/MCP.according to the following map: [0] p0_gpio_0; [1] p0_gpio_1; [2] |
| 1468 | p0_gpio_2; [3] p0_gpio_3; [4] p1_gpio_0; [5] p1_gpio_1; [6] p1_gpio_2; |
| 1469 | [7] p1_gpio_3; */ |
| 1470 | #define MISC_REG_GPIO_EVENT_EN 0xa2bc |
| 1471 | /* [RW 32] GPIO INT. [31-28] OLD_CLR port1; [27-24] OLD_CLR port0; Writing a |
| 1472 | '1' to these bit clears the corresponding bit in the #OLD_VALUE register. |
| 1473 | This will acknowledge an interrupt on the falling edge of corresponding |
| 1474 | GPIO input (reset value 0). [23-16] OLD_SET [23-16] port1; OLD_SET port0; |
| 1475 | Writing a '1' to these bit sets the corresponding bit in the #OLD_VALUE |
| 1476 | register. This will acknowledge an interrupt on the rising edge of |
| 1477 | corresponding SPIO input (reset value 0). [15-12] OLD_VALUE [11-8] port1; |
| 1478 | OLD_VALUE port0; RO; These bits indicate the old value of the GPIO input |
| 1479 | value. When the ~INT_STATE bit is set; this bit indicates the OLD value |
| 1480 | of the pin such that if ~INT_STATE is set and this bit is '0'; then the |
| 1481 | interrupt is due to a low to high edge. If ~INT_STATE is set and this bit |
| 1482 | is '1'; then the interrupt is due to a high to low edge (reset value 0). |
| 1483 | [7-4] INT_STATE port1; [3-0] INT_STATE RO port0; These bits indicate the |
| 1484 | current GPIO interrupt state for each GPIO pin. This bit is cleared when |
| 1485 | the appropriate #OLD_SET or #OLD_CLR command bit is written. This bit is |
| 1486 | set when the GPIO input does not match the current value in #OLD_VALUE |
| 1487 | (reset value 0). */ |
| 1488 | #define MISC_REG_GPIO_INT 0xa494 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1489 | /* [R 28] this field hold the last information that caused reserved |
| 1490 | attention. bits [19:0] - address; [22:20] function; [23] reserved; |
Eilon Greenstein | 3347162 | 2008-08-13 15:59:08 -0700 | [diff] [blame] | 1491 | [27:24] the master that caused the attention - according to the following |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1492 | encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 = |
| 1493 | dbu; 8 = dmae */ |
| 1494 | #define MISC_REG_GRC_RSV_ATTN 0xa3c0 |
| 1495 | /* [R 28] this field hold the last information that caused timeout |
| 1496 | attention. bits [19:0] - address; [22:20] function; [23] reserved; |
Eilon Greenstein | 3347162 | 2008-08-13 15:59:08 -0700 | [diff] [blame] | 1497 | [27:24] the master that caused the attention - according to the following |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1498 | encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 = |
| 1499 | dbu; 8 = dmae */ |
| 1500 | #define MISC_REG_GRC_TIMEOUT_ATTN 0xa3c4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1501 | /* [RW 1] Setting this bit enables a timer in the GRC block to timeout any |
| 1502 | access that does not finish within |
| 1503 | ~misc_registers_grc_timout_val.grc_timeout_val cycles. When this bit is |
| 1504 | cleared; this timeout is disabled. If this timeout occurs; the GRC shall |
| 1505 | assert it attention output. */ |
| 1506 | #define MISC_REG_GRC_TIMEOUT_EN 0xa280 |
| 1507 | /* [RW 28] 28 LSB of LCPLL first register; reset val = 521. inside order of |
| 1508 | the bits is: [2:0] OAC reset value 001) CML output buffer bias control; |
| 1509 | 111 for +40%; 011 for +20%; 001 for 0%; 000 for -20%. [5:3] Icp_ctrl |
| 1510 | (reset value 001) Charge pump current control; 111 for 720u; 011 for |
| 1511 | 600u; 001 for 480u and 000 for 360u. [7:6] Bias_ctrl (reset value 00) |
| 1512 | Global bias control; When bit 7 is high bias current will be 10 0gh; When |
| 1513 | bit 6 is high bias will be 100w; Valid values are 00; 10; 01. [10:8] |
| 1514 | Pll_observe (reset value 010) Bits to control observability. bit 10 is |
| 1515 | for test bias; bit 9 is for test CK; bit 8 is test Vc. [12:11] Vth_ctrl |
| 1516 | (reset value 00) Comparator threshold control. 00 for 0.6V; 01 for 0.54V |
| 1517 | and 10 for 0.66V. [13] pllSeqStart (reset value 0) Enables VCO tuning |
| 1518 | sequencer: 1= sequencer disabled; 0= sequencer enabled (inverted |
| 1519 | internally). [14] reserved (reset value 0) Reset for VCO sequencer is |
| 1520 | connected to RESET input directly. [15] capRetry_en (reset value 0) |
| 1521 | enable retry on cap search failure (inverted). [16] freqMonitor_e (reset |
| 1522 | value 0) bit to continuously monitor vco freq (inverted). [17] |
| 1523 | freqDetRestart_en (reset value 0) bit to enable restart when not freq |
| 1524 | locked (inverted). [18] freqDetRetry_en (reset value 0) bit to enable |
| 1525 | retry on freq det failure(inverted). [19] pllForceFdone_en (reset value |
| 1526 | 0) bit to enable pllForceFdone & pllForceFpass into pllSeq. [20] |
| 1527 | pllForceFdone (reset value 0) bit to force freqDone. [21] pllForceFpass |
| 1528 | (reset value 0) bit to force freqPass. [22] pllForceDone_en (reset value |
| 1529 | 0) bit to enable pllForceCapDone. [23] pllForceCapDone (reset value 0) |
| 1530 | bit to force capDone. [24] pllForceCapPass_en (reset value 0) bit to |
| 1531 | enable pllForceCapPass. [25] pllForceCapPass (reset value 0) bit to force |
| 1532 | capPass. [26] capRestart (reset value 0) bit to force cap sequencer to |
| 1533 | restart. [27] capSelectM_en (reset value 0) bit to enable cap select |
| 1534 | register bits. */ |
| 1535 | #define MISC_REG_LCPLL_CTRL_1 0xa2a4 |
| 1536 | #define MISC_REG_LCPLL_CTRL_REG_2 0xa2a8 |
| 1537 | /* [RW 4] Interrupt mask register #0 read/write */ |
| 1538 | #define MISC_REG_MISC_INT_MASK 0xa388 |
| 1539 | /* [RW 1] Parity mask register #0 read/write */ |
| 1540 | #define MISC_REG_MISC_PRTY_MASK 0xa398 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 1541 | /* [R 1] Parity register #0 read */ |
| 1542 | #define MISC_REG_MISC_PRTY_STS 0xa38c |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 1543 | /* [RC 1] Parity register #0 read clear */ |
| 1544 | #define MISC_REG_MISC_PRTY_STS_CLR 0xa390 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1545 | #define MISC_REG_NIG_WOL_P0 0xa270 |
| 1546 | #define MISC_REG_NIG_WOL_P1 0xa274 |
| 1547 | /* [R 1] If set indicate that the pcie_rst_b was asserted without perst |
| 1548 | assertion */ |
| 1549 | #define MISC_REG_PCIE_HOT_RESET 0xa618 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1550 | /* [RW 32] 32 LSB of storm PLL first register; reset val = 0x 071d2911. |
| 1551 | inside order of the bits is: [0] P1 divider[0] (reset value 1); [1] P1 |
| 1552 | divider[1] (reset value 0); [2] P1 divider[2] (reset value 0); [3] P1 |
| 1553 | divider[3] (reset value 0); [4] P2 divider[0] (reset value 1); [5] P2 |
| 1554 | divider[1] (reset value 0); [6] P2 divider[2] (reset value 0); [7] P2 |
| 1555 | divider[3] (reset value 0); [8] ph_det_dis (reset value 1); [9] |
| 1556 | freq_det_dis (reset value 0); [10] Icpx[0] (reset value 0); [11] Icpx[1] |
| 1557 | (reset value 1); [12] Icpx[2] (reset value 0); [13] Icpx[3] (reset value |
| 1558 | 1); [14] Icpx[4] (reset value 0); [15] Icpx[5] (reset value 0); [16] |
| 1559 | Rx[0] (reset value 1); [17] Rx[1] (reset value 0); [18] vc_en (reset |
| 1560 | value 1); [19] vco_rng[0] (reset value 1); [20] vco_rng[1] (reset value |
| 1561 | 1); [21] Kvco_xf[0] (reset value 0); [22] Kvco_xf[1] (reset value 0); |
| 1562 | [23] Kvco_xf[2] (reset value 0); [24] Kvco_xs[0] (reset value 1); [25] |
| 1563 | Kvco_xs[1] (reset value 1); [26] Kvco_xs[2] (reset value 1); [27] |
| 1564 | testd_en (reset value 0); [28] testd_sel[0] (reset value 0); [29] |
| 1565 | testd_sel[1] (reset value 0); [30] testd_sel[2] (reset value 0); [31] |
| 1566 | testa_en (reset value 0); */ |
| 1567 | #define MISC_REG_PLL_STORM_CTRL_1 0xa294 |
| 1568 | #define MISC_REG_PLL_STORM_CTRL_2 0xa298 |
| 1569 | #define MISC_REG_PLL_STORM_CTRL_3 0xa29c |
| 1570 | #define MISC_REG_PLL_STORM_CTRL_4 0xa2a0 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 1571 | /* [R 1] Status of 4 port mode enable input pin. */ |
| 1572 | #define MISC_REG_PORT4MODE_EN 0xa750 |
| 1573 | /* [RW 2] 4 port mode enable overwrite.[0] - Overwrite control; if it is 0 - |
| 1574 | * the port4mode_en output is equal to 4 port mode input pin; if it is 1 - |
| 1575 | * the port4mode_en output is equal to bit[1] of this register; [1] - |
| 1576 | * Overwrite value. If bit[0] of this register is 1 this is the value that |
| 1577 | * receives the port4mode_en output . */ |
| 1578 | #define MISC_REG_PORT4MODE_EN_OVWR 0xa720 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1579 | /* [RW 32] reset reg#2; rite/read one = the specific block is out of reset; |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1580 | write/read zero = the specific block is in reset; addr 0-wr- the write |
| 1581 | value will be written to the register; addr 1-set - one will be written |
| 1582 | to all the bits that have the value of one in the data written (bits that |
| 1583 | have the value of zero will not be change) ; addr 2-clear - zero will be |
| 1584 | written to all the bits that have the value of one in the data written |
| 1585 | (bits that have the value of zero will not be change); addr 3-ignore; |
| 1586 | read ignore from all addr except addr 00; inside order of the bits is: |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1587 | [0] rst_bmac0; [1] rst_bmac1; [2] rst_emac0; [3] rst_emac1; [4] rst_grc; |
| 1588 | [5] rst_mcp_n_reset_reg_hard_core; [6] rst_ mcp_n_hard_core_rst_b; [7] |
| 1589 | rst_ mcp_n_reset_cmn_cpu; [8] rst_ mcp_n_reset_cmn_core; [9] rst_rbcn; |
| 1590 | [10] rst_dbg; [11] rst_misc_core; [12] rst_dbue (UART); [13] |
| 1591 | Pci_resetmdio_n; [14] rst_emac0_hard_core; [15] rst_emac1_hard_core; 16] |
| 1592 | rst_pxp_rq_rd_wr; 31:17] reserved */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1593 | #define MISC_REG_RESET_REG_2 0xa590 |
| 1594 | /* [RW 20] 20 bit GRC address where the scratch-pad of the MCP that is |
| 1595 | shared with the driver resides */ |
| 1596 | #define MISC_REG_SHARED_MEM_ADDR 0xa2b4 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 1597 | /* [RW 32] SPIO. [31-24] FLOAT When any of these bits is written as a '1'; |
| 1598 | the corresponding SPIO bit will turn off it's drivers and become an |
| 1599 | input. This is the reset state of all SPIO pins. The read value of these |
| 1600 | bits will be a '1' if that last command (#SET; #CL; or #FLOAT) for this |
| 1601 | bit was a #FLOAT. (reset value 0xff). [23-16] CLR When any of these bits |
| 1602 | is written as a '1'; the corresponding SPIO bit will drive low. The read |
| 1603 | value of these bits will be a '1' if that last command (#SET; #CLR; or |
| 1604 | #FLOAT) for this bit was a #CLR. (reset value 0). [15-8] SET When any of |
| 1605 | these bits is written as a '1'; the corresponding SPIO bit will drive |
| 1606 | high (if it has that capability). The read value of these bits will be a |
| 1607 | '1' if that last command (#SET; #CLR; or #FLOAT) for this bit was a #SET. |
| 1608 | (reset value 0). [7-0] VALUE RO; These bits indicate the read value of |
| 1609 | each of the eight SPIO pins. This is the result value of the pin; not the |
| 1610 | drive value. Writing these bits will have not effect. Each 8 bits field |
| 1611 | is divided as follows: [0] VAUX Enable; when pulsed low; enables supply |
| 1612 | from VAUX. (This is an output pin only; the FLOAT field is not applicable |
| 1613 | for this pin); [1] VAUX Disable; when pulsed low; disables supply form |
| 1614 | VAUX. (This is an output pin only; FLOAT field is not applicable for this |
| 1615 | pin); [2] SEL_VAUX_B - Control to power switching logic. Drive low to |
| 1616 | select VAUX supply. (This is an output pin only; it is not controlled by |
| 1617 | the SET and CLR fields; it is controlled by the Main Power SM; the FLOAT |
| 1618 | field is not applicable for this pin; only the VALUE fields is relevant - |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1619 | it reflects the output value); [3] port swap [4] spio_4; [5] spio_5; [6] |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 1620 | Bit 0 of UMP device ID select; read by UMP firmware; [7] Bit 1 of UMP |
| 1621 | device ID select; read by UMP firmware. */ |
| 1622 | #define MISC_REG_SPIO 0xa4fc |
| 1623 | /* [RW 8] These bits enable the SPIO_INTs to signals event to the IGU/MC. |
| 1624 | according to the following map: [3:0] reserved; [4] spio_4 [5] spio_5; |
| 1625 | [7:0] reserved */ |
| 1626 | #define MISC_REG_SPIO_EVENT_EN 0xa2b8 |
| 1627 | /* [RW 32] SPIO INT. [31-24] OLD_CLR Writing a '1' to these bit clears the |
| 1628 | corresponding bit in the #OLD_VALUE register. This will acknowledge an |
| 1629 | interrupt on the falling edge of corresponding SPIO input (reset value |
| 1630 | 0). [23-16] OLD_SET Writing a '1' to these bit sets the corresponding bit |
| 1631 | in the #OLD_VALUE register. This will acknowledge an interrupt on the |
| 1632 | rising edge of corresponding SPIO input (reset value 0). [15-8] OLD_VALUE |
| 1633 | RO; These bits indicate the old value of the SPIO input value. When the |
| 1634 | ~INT_STATE bit is set; this bit indicates the OLD value of the pin such |
| 1635 | that if ~INT_STATE is set and this bit is '0'; then the interrupt is due |
| 1636 | to a low to high edge. If ~INT_STATE is set and this bit is '1'; then the |
| 1637 | interrupt is due to a high to low edge (reset value 0). [7-0] INT_STATE |
| 1638 | RO; These bits indicate the current SPIO interrupt state for each SPIO |
| 1639 | pin. This bit is cleared when the appropriate #OLD_SET or #OLD_CLR |
| 1640 | command bit is written. This bit is set when the SPIO input does not |
| 1641 | match the current value in #OLD_VALUE (reset value 0). */ |
| 1642 | #define MISC_REG_SPIO_INT 0xa500 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 1643 | /* [RW 32] reload value for counter 4 if reload; the value will be reload if |
| 1644 | the counter reached zero and the reload bit |
| 1645 | (~misc_registers_sw_timer_cfg_4.sw_timer_cfg_4[1] ) is set */ |
| 1646 | #define MISC_REG_SW_TIMER_RELOAD_VAL_4 0xa2fc |
| 1647 | /* [RW 32] the value of the counter for sw timers1-8. there are 8 addresses |
Uwe Kleine-König | b595076 | 2010-11-01 15:38:34 -0400 | [diff] [blame] | 1648 | in this register. address 0 - timer 1; address 1 - timer 2, ... address 7 - |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 1649 | timer 8 */ |
| 1650 | #define MISC_REG_SW_TIMER_VAL 0xa5c0 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 1651 | /* [RW 1] Set by the MCP to remember if one or more of the drivers is/are |
| 1652 | loaded; 0-prepare; -unprepare */ |
| 1653 | #define MISC_REG_UNPREPARED 0xa424 |
Eilon Greenstein | 581ce43 | 2009-07-29 00:20:04 +0000 | [diff] [blame] | 1654 | #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_BRCST (0x1<<0) |
| 1655 | #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_MLCST (0x1<<1) |
| 1656 | #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_NO_VLAN (0x1<<4) |
| 1657 | #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_UNCST (0x1<<2) |
| 1658 | #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_VLAN (0x1<<3) |
Vladislav Zolotarov | bcab15c | 2010-12-13 05:44:25 +0000 | [diff] [blame] | 1659 | #define NIG_LLH0_XCM_MASK_REG_LLH0_XCM_MASK_BCN (0x1<<0) |
| 1660 | #define NIG_LLH1_XCM_MASK_REG_LLH1_XCM_MASK_BCN (0x1<<0) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1661 | #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_EMAC0_MISC_MI_INT (0x1<<0) |
| 1662 | #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_SERDES0_LINK_STATUS (0x1<<9) |
| 1663 | #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK10G (0x1<<15) |
| 1664 | #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK_STATUS (0xf<<18) |
| 1665 | /* [RW 1] Input enable for RX_BMAC0 IF */ |
| 1666 | #define NIG_REG_BMAC0_IN_EN 0x100ac |
| 1667 | /* [RW 1] output enable for TX_BMAC0 IF */ |
| 1668 | #define NIG_REG_BMAC0_OUT_EN 0x100e0 |
| 1669 | /* [RW 1] output enable for TX BMAC pause port 0 IF */ |
| 1670 | #define NIG_REG_BMAC0_PAUSE_OUT_EN 0x10110 |
| 1671 | /* [RW 1] output enable for RX_BMAC0_REGS IF */ |
| 1672 | #define NIG_REG_BMAC0_REGS_OUT_EN 0x100e8 |
| 1673 | /* [RW 1] output enable for RX BRB1 port0 IF */ |
| 1674 | #define NIG_REG_BRB0_OUT_EN 0x100f8 |
| 1675 | /* [RW 1] Input enable for TX BRB1 pause port 0 IF */ |
| 1676 | #define NIG_REG_BRB0_PAUSE_IN_EN 0x100c4 |
| 1677 | /* [RW 1] output enable for RX BRB1 port1 IF */ |
| 1678 | #define NIG_REG_BRB1_OUT_EN 0x100fc |
| 1679 | /* [RW 1] Input enable for TX BRB1 pause port 1 IF */ |
| 1680 | #define NIG_REG_BRB1_PAUSE_IN_EN 0x100c8 |
| 1681 | /* [RW 1] output enable for RX BRB1 LP IF */ |
| 1682 | #define NIG_REG_BRB_LB_OUT_EN 0x10100 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1683 | /* [WB_W 82] Debug packet to LP from RBC; Data spelling:[63:0] data; 64] |
| 1684 | error; [67:65]eop_bvalid; [68]eop; [69]sop; [70]port_id; 71]flush; |
| 1685 | 72:73]-vnic_num; 81:74]-sideband_info */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1686 | #define NIG_REG_DEBUG_PACKET_LB 0x10800 |
| 1687 | /* [RW 1] Input enable for TX Debug packet */ |
| 1688 | #define NIG_REG_EGRESS_DEBUG_IN_EN 0x100dc |
| 1689 | /* [RW 1] If 1 - egress drain mode for port0 is active. In this mode all |
| 1690 | packets from PBFare not forwarded to the MAC and just deleted from FIFO. |
| 1691 | First packet may be deleted from the middle. And last packet will be |
| 1692 | always deleted till the end. */ |
| 1693 | #define NIG_REG_EGRESS_DRAIN0_MODE 0x10060 |
| 1694 | /* [RW 1] Output enable to EMAC0 */ |
| 1695 | #define NIG_REG_EGRESS_EMAC0_OUT_EN 0x10120 |
| 1696 | /* [RW 1] MAC configuration for packets of port0. If 1 - all packet outputs |
| 1697 | to emac for port0; other way to bmac for port0 */ |
| 1698 | #define NIG_REG_EGRESS_EMAC0_PORT 0x10058 |
| 1699 | /* [RW 1] Input enable for TX PBF user packet port0 IF */ |
| 1700 | #define NIG_REG_EGRESS_PBF0_IN_EN 0x100cc |
| 1701 | /* [RW 1] Input enable for TX PBF user packet port1 IF */ |
| 1702 | #define NIG_REG_EGRESS_PBF1_IN_EN 0x100d0 |
Eilon Greenstein | 279abdf | 2009-07-21 05:47:22 +0000 | [diff] [blame] | 1703 | /* [RW 1] Input enable for TX UMP management packet port0 IF */ |
| 1704 | #define NIG_REG_EGRESS_UMP0_IN_EN 0x100d4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1705 | /* [RW 1] Input enable for RX_EMAC0 IF */ |
| 1706 | #define NIG_REG_EMAC0_IN_EN 0x100a4 |
| 1707 | /* [RW 1] output enable for TX EMAC pause port 0 IF */ |
| 1708 | #define NIG_REG_EMAC0_PAUSE_OUT_EN 0x10118 |
| 1709 | /* [R 1] status from emac0. This bit is set when MDINT from either the |
| 1710 | EXT_MDINT pin or from the Copper PHY is driven low. This condition must |
| 1711 | be cleared in the attached PHY device that is driving the MINT pin. */ |
| 1712 | #define NIG_REG_EMAC0_STATUS_MISC_MI_INT 0x10494 |
| 1713 | /* [WB 48] This address space contains BMAC0 registers. The BMAC registers |
| 1714 | are described in appendix A. In order to access the BMAC0 registers; the |
| 1715 | base address; NIG_REGISTERS_INGRESS_BMAC0_MEM; Offset: 0x10c00; should be |
| 1716 | added to each BMAC register offset */ |
| 1717 | #define NIG_REG_INGRESS_BMAC0_MEM 0x10c00 |
| 1718 | /* [WB 48] This address space contains BMAC1 registers. The BMAC registers |
| 1719 | are described in appendix A. In order to access the BMAC0 registers; the |
| 1720 | base address; NIG_REGISTERS_INGRESS_BMAC1_MEM; Offset: 0x11000; should be |
| 1721 | added to each BMAC register offset */ |
| 1722 | #define NIG_REG_INGRESS_BMAC1_MEM 0x11000 |
| 1723 | /* [R 1] FIFO empty in EOP descriptor FIFO of LP in NIG_RX_EOP */ |
| 1724 | #define NIG_REG_INGRESS_EOP_LB_EMPTY 0x104e0 |
| 1725 | /* [RW 17] Debug only. RX_EOP_DSCR_lb_FIFO in NIG_RX_EOP. Data |
| 1726 | packet_length[13:0]; mac_error[14]; trunc_error[15]; parity[16] */ |
| 1727 | #define NIG_REG_INGRESS_EOP_LB_FIFO 0x104e4 |
Eilon Greenstein | 2f90446 | 2009-08-12 08:22:16 +0000 | [diff] [blame] | 1728 | /* [RW 27] 0 - must be active for Everest A0; 1- for Everest B0 when latch |
| 1729 | logic for interrupts must be used. Enable per bit of interrupt of |
| 1730 | ~latch_status.latch_status */ |
| 1731 | #define NIG_REG_LATCH_BC_0 0x16210 |
| 1732 | /* [RW 27] Latch for each interrupt from Unicore.b[0] |
| 1733 | status_emac0_misc_mi_int; b[1] status_emac0_misc_mi_complete; |
| 1734 | b[2]status_emac0_misc_cfg_change; b[3]status_emac0_misc_link_status; |
| 1735 | b[4]status_emac0_misc_link_change; b[5]status_emac0_misc_attn; |
| 1736 | b[6]status_serdes0_mac_crs; b[7]status_serdes0_autoneg_complete; |
| 1737 | b[8]status_serdes0_fiber_rxact; b[9]status_serdes0_link_status; |
| 1738 | b[10]status_serdes0_mr_page_rx; b[11]status_serdes0_cl73_an_complete; |
| 1739 | b[12]status_serdes0_cl73_mr_page_rx; b[13]status_serdes0_rx_sigdet; |
| 1740 | b[14]status_xgxs0_remotemdioreq; b[15]status_xgxs0_link10g; |
| 1741 | b[16]status_xgxs0_autoneg_complete; b[17]status_xgxs0_fiber_rxact; |
| 1742 | b[21:18]status_xgxs0_link_status; b[22]status_xgxs0_mr_page_rx; |
| 1743 | b[23]status_xgxs0_cl73_an_complete; b[24]status_xgxs0_cl73_mr_page_rx; |
| 1744 | b[25]status_xgxs0_rx_sigdet; b[26]status_xgxs0_mac_crs */ |
| 1745 | #define NIG_REG_LATCH_STATUS_0 0x18000 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1746 | /* [RW 1] led 10g for port 0 */ |
| 1747 | #define NIG_REG_LED_10G_P0 0x10320 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1748 | /* [RW 1] led 10g for port 1 */ |
| 1749 | #define NIG_REG_LED_10G_P1 0x10324 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1750 | /* [RW 1] Port0: This bit is set to enable the use of the |
| 1751 | ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 field |
| 1752 | defined below. If this bit is cleared; then the blink rate will be about |
| 1753 | 8Hz. */ |
| 1754 | #define NIG_REG_LED_CONTROL_BLINK_RATE_ENA_P0 0x10318 |
| 1755 | /* [RW 12] Port0: Specifies the period of each blink cycle (on + off) for |
| 1756 | Traffic LED in milliseconds. Must be a non-zero value. This 12-bit field |
| 1757 | is reset to 0x080; giving a default blink period of approximately 8Hz. */ |
| 1758 | #define NIG_REG_LED_CONTROL_BLINK_RATE_P0 0x10310 |
| 1759 | /* [RW 1] Port0: If set along with the |
Eilon Greenstein | 34f80b0 | 2008-06-23 20:33:01 -0700 | [diff] [blame] | 1760 | ~nig_registers_led_control_override_traffic_p0.led_control_override_traffic_p0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1761 | bit and ~nig_registers_led_control_traffic_p0.led_control_traffic_p0 LED |
| 1762 | bit; the Traffic LED will blink with the blink rate specified in |
| 1763 | ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 and |
| 1764 | ~nig_registers_led_control_blink_rate_ena_p0.led_control_blink_rate_ena_p0 |
| 1765 | fields. */ |
| 1766 | #define NIG_REG_LED_CONTROL_BLINK_TRAFFIC_P0 0x10308 |
| 1767 | /* [RW 1] Port0: If set overrides hardware control of the Traffic LED. The |
| 1768 | Traffic LED will then be controlled via bit ~nig_registers_ |
| 1769 | led_control_traffic_p0.led_control_traffic_p0 and bit |
| 1770 | ~nig_registers_led_control_blink_traffic_p0.led_control_blink_traffic_p0 */ |
| 1771 | #define NIG_REG_LED_CONTROL_OVERRIDE_TRAFFIC_P0 0x102f8 |
| 1772 | /* [RW 1] Port0: If set along with the led_control_override_trafic_p0 bit; |
| 1773 | turns on the Traffic LED. If the led_control_blink_traffic_p0 bit is also |
| 1774 | set; the LED will blink with blink rate specified in |
| 1775 | ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 and |
| 1776 | ~nig_regsters_led_control_blink_rate_ena_p0.led_control_blink_rate_ena_p0 |
| 1777 | fields. */ |
| 1778 | #define NIG_REG_LED_CONTROL_TRAFFIC_P0 0x10300 |
| 1779 | /* [RW 4] led mode for port0: 0 MAC; 1-3 PHY1; 4 MAC2; 5-7 PHY4; 8-MAC3; |
| 1780 | 9-11PHY7; 12 MAC4; 13-15 PHY10; */ |
| 1781 | #define NIG_REG_LED_MODE_P0 0x102f0 |
Eilon Greenstein | 1c06328 | 2009-02-12 08:36:43 +0000 | [diff] [blame] | 1782 | /* [RW 3] for port0 enable for llfc ppp and pause. b0 - brb1 enable; b1- |
| 1783 | tsdm enable; b2- usdm enable */ |
| 1784 | #define NIG_REG_LLFC_EGRESS_SRC_ENABLE_0 0x16070 |
Eilon Greenstein | ca00392 | 2009-08-12 22:53:28 -0700 | [diff] [blame] | 1785 | #define NIG_REG_LLFC_EGRESS_SRC_ENABLE_1 0x16074 |
Eilon Greenstein | 1c06328 | 2009-02-12 08:36:43 +0000 | [diff] [blame] | 1786 | /* [RW 1] SAFC enable for port0. This register may get 1 only when |
| 1787 | ~ppp_enable.ppp_enable = 0 and pause_enable.pause_enable =0 for the same |
| 1788 | port */ |
| 1789 | #define NIG_REG_LLFC_ENABLE_0 0x16208 |
Vladislav Zolotarov | bcab15c | 2010-12-13 05:44:25 +0000 | [diff] [blame] | 1790 | #define NIG_REG_LLFC_ENABLE_1 0x1620c |
Eilon Greenstein | 1c06328 | 2009-02-12 08:36:43 +0000 | [diff] [blame] | 1791 | /* [RW 16] classes are high-priority for port0 */ |
| 1792 | #define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_0 0x16058 |
Vladislav Zolotarov | bcab15c | 2010-12-13 05:44:25 +0000 | [diff] [blame] | 1793 | #define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_1 0x1605c |
Eilon Greenstein | 1c06328 | 2009-02-12 08:36:43 +0000 | [diff] [blame] | 1794 | /* [RW 16] classes are low-priority for port0 */ |
| 1795 | #define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_0 0x16060 |
Vladislav Zolotarov | bcab15c | 2010-12-13 05:44:25 +0000 | [diff] [blame] | 1796 | #define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_1 0x16064 |
Eilon Greenstein | 1c06328 | 2009-02-12 08:36:43 +0000 | [diff] [blame] | 1797 | /* [RW 1] Output enable of message to LLFC BMAC IF for port0 */ |
| 1798 | #define NIG_REG_LLFC_OUT_EN_0 0x160c8 |
Vladislav Zolotarov | bcab15c | 2010-12-13 05:44:25 +0000 | [diff] [blame] | 1799 | #define NIG_REG_LLFC_OUT_EN_1 0x160cc |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1800 | #define NIG_REG_LLH0_ACPI_PAT_0_CRC 0x1015c |
| 1801 | #define NIG_REG_LLH0_ACPI_PAT_6_LEN 0x10154 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1802 | #define NIG_REG_LLH0_BRB1_DRV_MASK 0x10244 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1803 | #define NIG_REG_LLH0_BRB1_DRV_MASK_MF 0x16048 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1804 | /* [RW 1] send to BRB1 if no match on any of RMP rules. */ |
| 1805 | #define NIG_REG_LLH0_BRB1_NOT_MCP 0x1025c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1806 | /* [RW 2] Determine the classification participants. 0: no classification.1: |
| 1807 | classification upon VLAN id. 2: classification upon MAC address. 3: |
| 1808 | classification upon both VLAN id & MAC addr. */ |
| 1809 | #define NIG_REG_LLH0_CLS_TYPE 0x16080 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1810 | /* [RW 32] cm header for llh0 */ |
| 1811 | #define NIG_REG_LLH0_CM_HEADER 0x1007c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1812 | #define NIG_REG_LLH0_DEST_IP_0_1 0x101dc |
| 1813 | #define NIG_REG_LLH0_DEST_MAC_0_0 0x101c0 |
| 1814 | /* [RW 16] destination TCP address 1. The LLH will look for this address in |
| 1815 | all incoming packets. */ |
| 1816 | #define NIG_REG_LLH0_DEST_TCP_0 0x10220 |
| 1817 | /* [RW 16] destination UDP address 1 The LLH will look for this address in |
| 1818 | all incoming packets. */ |
| 1819 | #define NIG_REG_LLH0_DEST_UDP_0 0x10214 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1820 | #define NIG_REG_LLH0_ERROR_MASK 0x1008c |
| 1821 | /* [RW 8] event id for llh0 */ |
| 1822 | #define NIG_REG_LLH0_EVENT_ID 0x10084 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1823 | #define NIG_REG_LLH0_FUNC_EN 0x160fc |
Dmitry Kravkov | 0793f83f | 2010-12-01 12:39:28 -0800 | [diff] [blame] | 1824 | #define NIG_REG_LLH0_FUNC_MEM 0x16180 |
| 1825 | #define NIG_REG_LLH0_FUNC_MEM_ENABLE 0x16140 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1826 | #define NIG_REG_LLH0_FUNC_VLAN_ID 0x16100 |
| 1827 | /* [RW 1] Determine the IP version to look for in |
| 1828 | ~nig_registers_llh0_dest_ip_0.llh0_dest_ip_0. 0 - IPv6; 1-IPv4 */ |
| 1829 | #define NIG_REG_LLH0_IPV4_IPV6_0 0x10208 |
| 1830 | /* [RW 1] t bit for llh0 */ |
| 1831 | #define NIG_REG_LLH0_T_BIT 0x10074 |
| 1832 | /* [RW 12] VLAN ID 1. In case of VLAN packet the LLH will look for this ID. */ |
| 1833 | #define NIG_REG_LLH0_VLAN_ID_0 0x1022c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1834 | /* [RW 8] init credit counter for port0 in LLH */ |
| 1835 | #define NIG_REG_LLH0_XCM_INIT_CREDIT 0x10554 |
| 1836 | #define NIG_REG_LLH0_XCM_MASK 0x10130 |
Vladislav Zolotarov | da5a662 | 2008-08-13 15:50:00 -0700 | [diff] [blame] | 1837 | #define NIG_REG_LLH1_BRB1_DRV_MASK 0x10248 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1838 | /* [RW 1] send to BRB1 if no match on any of RMP rules. */ |
| 1839 | #define NIG_REG_LLH1_BRB1_NOT_MCP 0x102dc |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1840 | /* [RW 2] Determine the classification participants. 0: no classification.1: |
| 1841 | classification upon VLAN id. 2: classification upon MAC address. 3: |
| 1842 | classification upon both VLAN id & MAC addr. */ |
| 1843 | #define NIG_REG_LLH1_CLS_TYPE 0x16084 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1844 | /* [RW 32] cm header for llh1 */ |
| 1845 | #define NIG_REG_LLH1_CM_HEADER 0x10080 |
| 1846 | #define NIG_REG_LLH1_ERROR_MASK 0x10090 |
| 1847 | /* [RW 8] event id for llh1 */ |
| 1848 | #define NIG_REG_LLH1_EVENT_ID 0x10088 |
Dmitry Kravkov | 0793f83f | 2010-12-01 12:39:28 -0800 | [diff] [blame] | 1849 | #define NIG_REG_LLH1_FUNC_MEM 0x161c0 |
| 1850 | #define NIG_REG_LLH1_FUNC_MEM_ENABLE 0x16160 |
| 1851 | #define NIG_REG_LLH1_FUNC_MEM_SIZE 16 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1852 | /* [RW 8] init credit counter for port1 in LLH */ |
| 1853 | #define NIG_REG_LLH1_XCM_INIT_CREDIT 0x10564 |
| 1854 | #define NIG_REG_LLH1_XCM_MASK 0x10134 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1855 | /* [RW 1] When this bit is set; the LLH will expect all packets to be with |
| 1856 | e1hov */ |
| 1857 | #define NIG_REG_LLH_E1HOV_MODE 0x160d8 |
| 1858 | /* [RW 1] When this bit is set; the LLH will classify the packet before |
| 1859 | sending it to the BRB or calculating WoL on it. */ |
| 1860 | #define NIG_REG_LLH_MF_MODE 0x16024 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1861 | #define NIG_REG_MASK_INTERRUPT_PORT0 0x10330 |
| 1862 | #define NIG_REG_MASK_INTERRUPT_PORT1 0x10334 |
| 1863 | /* [RW 1] Output signal from NIG to EMAC0. When set enables the EMAC0 block. */ |
| 1864 | #define NIG_REG_NIG_EMAC0_EN 0x1003c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1865 | /* [RW 1] Output signal from NIG to EMAC1. When set enables the EMAC1 block. */ |
| 1866 | #define NIG_REG_NIG_EMAC1_EN 0x10040 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1867 | /* [RW 1] Output signal from NIG to TX_EMAC0. When set indicates to the |
| 1868 | EMAC0 to strip the CRC from the ingress packets. */ |
| 1869 | #define NIG_REG_NIG_INGRESS_EMAC0_NO_CRC 0x10044 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1870 | /* [R 32] Interrupt register #0 read */ |
| 1871 | #define NIG_REG_NIG_INT_STS_0 0x103b0 |
| 1872 | #define NIG_REG_NIG_INT_STS_1 0x103c0 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 1873 | /* [R 32] Legacy E1 and E1H location for parity error status register. */ |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 1874 | #define NIG_REG_NIG_PRTY_STS 0x103d0 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 1875 | /* [R 32] Parity register #0 read */ |
| 1876 | #define NIG_REG_NIG_PRTY_STS_0 0x183bc |
| 1877 | #define NIG_REG_NIG_PRTY_STS_1 0x183cc |
| 1878 | /* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic |
| 1879 | * Ethernet header. */ |
| 1880 | #define NIG_REG_P0_HDRS_AFTER_BASIC 0x18038 |
| 1881 | /* [RW 1] HW PFC enable bit. Set this bit to enable the PFC functionality in |
| 1882 | * the NIG. Other flow control modes such as PAUSE and SAFC/LLFC should be |
| 1883 | * disabled when this bit is set. */ |
| 1884 | #define NIG_REG_P0_HWPFC_ENABLE 0x18078 |
| 1885 | #define NIG_REG_P0_LLH_FUNC_MEM2 0x18480 |
| 1886 | #define NIG_REG_P0_LLH_FUNC_MEM2_ENABLE 0x18440 |
| 1887 | /* [RW 32] Eight 4-bit configurations for specifying which COS (0-15 for |
| 1888 | * future expansion) each priorty is to be mapped to. Bits 3:0 specify the |
| 1889 | * COS for priority 0. Bits 31:28 specify the COS for priority 7. The 3-bit |
| 1890 | * priority field is extracted from the outer-most VLAN in receive packet. |
| 1891 | * Only COS 0 and COS 1 are supported in E2. */ |
| 1892 | #define NIG_REG_P0_PKT_PRIORITY_TO_COS 0x18054 |
| 1893 | /* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 0. A |
| 1894 | * priority is mapped to COS 0 when the corresponding mask bit is 1. More |
| 1895 | * than one bit may be set; allowing multiple priorities to be mapped to one |
| 1896 | * COS. */ |
| 1897 | #define NIG_REG_P0_RX_COS0_PRIORITY_MASK 0x18058 |
| 1898 | /* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 1. A |
| 1899 | * priority is mapped to COS 1 when the corresponding mask bit is 1. More |
| 1900 | * than one bit may be set; allowing multiple priorities to be mapped to one |
| 1901 | * COS. */ |
| 1902 | #define NIG_REG_P0_RX_COS1_PRIORITY_MASK 0x1805c |
| 1903 | /* [RW 15] Specify which of the credit registers the client is to be mapped |
| 1904 | * to. Bits[2:0] are for client 0; bits [14:12] are for client 4. For |
| 1905 | * clients that are not subject to WFQ credit blocking - their |
| 1906 | * specifications here are not used. */ |
| 1907 | #define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP 0x180f0 |
| 1908 | /* [RW 5] Specify whether the client competes directly in the strict |
| 1909 | * priority arbiter. The bits are mapped according to client ID (client IDs |
| 1910 | * are defined in tx_arb_priority_client). Default value is set to enable |
| 1911 | * strict priorities for clients 0-2 -- management and debug traffic. */ |
| 1912 | #define NIG_REG_P0_TX_ARB_CLIENT_IS_STRICT 0x180e8 |
| 1913 | /* [RW 5] Specify whether the client is subject to WFQ credit blocking. The |
| 1914 | * bits are mapped according to client ID (client IDs are defined in |
| 1915 | * tx_arb_priority_client). Default value is 0 for not using WFQ credit |
| 1916 | * blocking. */ |
| 1917 | #define NIG_REG_P0_TX_ARB_CLIENT_IS_SUBJECT2WFQ 0x180ec |
| 1918 | /* [RW 32] Specify the upper bound that credit register 0 is allowed to |
| 1919 | * reach. */ |
| 1920 | #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_0 0x1810c |
| 1921 | #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_1 0x18110 |
| 1922 | /* [RW 32] Specify the weight (in bytes) to be added to credit register 0 |
| 1923 | * when it is time to increment. */ |
| 1924 | #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0 0x180f8 |
| 1925 | #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1 0x180fc |
| 1926 | /* [RW 12] Specify the number of strict priority arbitration slots between |
| 1927 | * two round-robin arbitration slots to avoid starvation. A value of 0 means |
| 1928 | * no strict priority cycles - the strict priority with anti-starvation |
| 1929 | * arbiter becomes a round-robin arbiter. */ |
| 1930 | #define NIG_REG_P0_TX_ARB_NUM_STRICT_ARB_SLOTS 0x180f4 |
| 1931 | /* [RW 15] Specify the client number to be assigned to each priority of the |
| 1932 | * strict priority arbiter. Priority 0 is the highest priority. Bits [2:0] |
| 1933 | * are for priority 0 client; bits [14:12] are for priority 4 client. The |
| 1934 | * clients are assigned the following IDs: 0-management; 1-debug traffic |
| 1935 | * from this port; 2-debug traffic from other port; 3-COS0 traffic; 4-COS1 |
| 1936 | * traffic. The reset value[14:0] is set to 0x4688 (15'b100_011_010_001_000) |
| 1937 | * for management at priority 0; debug traffic at priorities 1 and 2; COS0 |
| 1938 | * traffic at priority 3; and COS1 traffic at priority 4. */ |
| 1939 | #define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT 0x180e4 |
| 1940 | #define NIG_REG_P1_LLH_FUNC_MEM2 0x184c0 |
| 1941 | #define NIG_REG_P1_LLH_FUNC_MEM2_ENABLE 0x18460 |
| 1942 | /* [RW 32] Eight 4-bit configurations for specifying which COS (0-15 for |
| 1943 | * future expansion) each priorty is to be mapped to. Bits 3:0 specify the |
| 1944 | * COS for priority 0. Bits 31:28 specify the COS for priority 7. The 3-bit |
| 1945 | * priority field is extracted from the outer-most VLAN in receive packet. |
| 1946 | * Only COS 0 and COS 1 are supported in E2. */ |
| 1947 | #define NIG_REG_P1_PKT_PRIORITY_TO_COS 0x181a8 |
| 1948 | /* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 0. A |
| 1949 | * priority is mapped to COS 0 when the corresponding mask bit is 1. More |
| 1950 | * than one bit may be set; allowing multiple priorities to be mapped to one |
| 1951 | * COS. */ |
| 1952 | #define NIG_REG_P1_RX_COS0_PRIORITY_MASK 0x181ac |
| 1953 | /* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 1. A |
| 1954 | * priority is mapped to COS 1 when the corresponding mask bit is 1. More |
| 1955 | * than one bit may be set; allowing multiple priorities to be mapped to one |
| 1956 | * COS. */ |
| 1957 | #define NIG_REG_P1_RX_COS1_PRIORITY_MASK 0x181b0 |
Eilon Greenstein | 1c06328 | 2009-02-12 08:36:43 +0000 | [diff] [blame] | 1958 | /* [RW 1] Pause enable for port0. This register may get 1 only when |
| 1959 | ~safc_enable.safc_enable = 0 and ppp_enable.ppp_enable =0 for the same |
| 1960 | port */ |
| 1961 | #define NIG_REG_PAUSE_ENABLE_0 0x160c0 |
Vladislav Zolotarov | bcab15c | 2010-12-13 05:44:25 +0000 | [diff] [blame] | 1962 | #define NIG_REG_PAUSE_ENABLE_1 0x160c4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1963 | /* [RW 1] Input enable for RX PBF LP IF */ |
| 1964 | #define NIG_REG_PBF_LB_IN_EN 0x100b4 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 1965 | /* [RW 1] Value of this register will be transmitted to port swap when |
| 1966 | ~nig_registers_strap_override.strap_override =1 */ |
| 1967 | #define NIG_REG_PORT_SWAP 0x10394 |
Vladislav Zolotarov | bcab15c | 2010-12-13 05:44:25 +0000 | [diff] [blame] | 1968 | /* [RW 1] PPP enable for port0. This register may get 1 only when |
| 1969 | * ~safc_enable.safc_enable = 0 and pause_enable.pause_enable =0 for the |
| 1970 | * same port */ |
| 1971 | #define NIG_REG_PPP_ENABLE_0 0x160b0 |
| 1972 | #define NIG_REG_PPP_ENABLE_1 0x160b4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1973 | /* [RW 1] output enable for RX parser descriptor IF */ |
| 1974 | #define NIG_REG_PRS_EOP_OUT_EN 0x10104 |
| 1975 | /* [RW 1] Input enable for RX parser request IF */ |
| 1976 | #define NIG_REG_PRS_REQ_IN_EN 0x100b8 |
Eilon Greenstein | c1b7399 | 2009-02-12 08:37:07 +0000 | [diff] [blame] | 1977 | /* [RW 5] control to serdes - CL45 DEVAD */ |
| 1978 | #define NIG_REG_SERDES0_CTRL_MD_DEVAD 0x10370 |
| 1979 | /* [RW 1] control to serdes; 0 - clause 45; 1 - clause 22 */ |
| 1980 | #define NIG_REG_SERDES0_CTRL_MD_ST 0x1036c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1981 | /* [RW 5] control to serdes - CL22 PHY_ADD and CL45 PRTAD */ |
| 1982 | #define NIG_REG_SERDES0_CTRL_PHY_ADDR 0x10374 |
| 1983 | /* [R 1] status from serdes0 that inputs to interrupt logic of link status */ |
| 1984 | #define NIG_REG_SERDES0_STATUS_LINK_STATUS 0x10578 |
| 1985 | /* [R 32] Rx statistics : In user packets discarded due to BRB backpressure |
| 1986 | for port0 */ |
| 1987 | #define NIG_REG_STAT0_BRB_DISCARD 0x105f0 |
Yitchak Gertner | 66e855f | 2008-08-13 15:49:05 -0700 | [diff] [blame] | 1988 | /* [R 32] Rx statistics : In user packets truncated due to BRB backpressure |
| 1989 | for port0 */ |
| 1990 | #define NIG_REG_STAT0_BRB_TRUNCATE 0x105f8 |
Eilon Greenstein | 34f80b0 | 2008-06-23 20:33:01 -0700 | [diff] [blame] | 1991 | /* [WB_R 36] Tx statistics : Number of packets from emac0 or bmac0 that |
| 1992 | between 1024 and 1522 bytes for port0 */ |
| 1993 | #define NIG_REG_STAT0_EGRESS_MAC_PKT0 0x10750 |
| 1994 | /* [WB_R 36] Tx statistics : Number of packets from emac0 or bmac0 that |
| 1995 | between 1523 bytes and above for port0 */ |
| 1996 | #define NIG_REG_STAT0_EGRESS_MAC_PKT1 0x10760 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 1997 | /* [R 32] Rx statistics : In user packets discarded due to BRB backpressure |
| 1998 | for port1 */ |
| 1999 | #define NIG_REG_STAT1_BRB_DISCARD 0x10628 |
Eilon Greenstein | 34f80b0 | 2008-06-23 20:33:01 -0700 | [diff] [blame] | 2000 | /* [WB_R 36] Tx statistics : Number of packets from emac1 or bmac1 that |
| 2001 | between 1024 and 1522 bytes for port1 */ |
| 2002 | #define NIG_REG_STAT1_EGRESS_MAC_PKT0 0x107a0 |
| 2003 | /* [WB_R 36] Tx statistics : Number of packets from emac1 or bmac1 that |
| 2004 | between 1523 bytes and above for port1 */ |
| 2005 | #define NIG_REG_STAT1_EGRESS_MAC_PKT1 0x107b0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2006 | /* [WB_R 64] Rx statistics : User octets received for LP */ |
| 2007 | #define NIG_REG_STAT2_BRB_OCTET 0x107e0 |
| 2008 | #define NIG_REG_STATUS_INTERRUPT_PORT0 0x10328 |
| 2009 | #define NIG_REG_STATUS_INTERRUPT_PORT1 0x1032c |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 2010 | /* [RW 1] port swap mux selection. If this register equal to 0 then port |
| 2011 | swap is equal to SPIO pin that inputs from ifmux_serdes_swap. If 1 then |
| 2012 | ort swap is equal to ~nig_registers_port_swap.port_swap */ |
| 2013 | #define NIG_REG_STRAP_OVERRIDE 0x10398 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2014 | /* [RW 1] output enable for RX_XCM0 IF */ |
| 2015 | #define NIG_REG_XCM0_OUT_EN 0x100f0 |
| 2016 | /* [RW 1] output enable for RX_XCM1 IF */ |
| 2017 | #define NIG_REG_XCM1_OUT_EN 0x100f4 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2018 | /* [RW 1] control to xgxs - remote PHY in-band MDIO */ |
| 2019 | #define NIG_REG_XGXS0_CTRL_EXTREMOTEMDIOST 0x10348 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2020 | /* [RW 5] control to xgxs - CL45 DEVAD */ |
| 2021 | #define NIG_REG_XGXS0_CTRL_MD_DEVAD 0x1033c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2022 | /* [RW 1] control to xgxs; 0 - clause 45; 1 - clause 22 */ |
| 2023 | #define NIG_REG_XGXS0_CTRL_MD_ST 0x10338 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2024 | /* [RW 5] control to xgxs - CL22 PHY_ADD and CL45 PRTAD */ |
| 2025 | #define NIG_REG_XGXS0_CTRL_PHY_ADDR 0x10340 |
| 2026 | /* [R 1] status from xgxs0 that inputs to interrupt logic of link10g. */ |
| 2027 | #define NIG_REG_XGXS0_STATUS_LINK10G 0x10680 |
| 2028 | /* [R 4] status from xgxs0 that inputs to interrupt logic of link status */ |
| 2029 | #define NIG_REG_XGXS0_STATUS_LINK_STATUS 0x10684 |
| 2030 | /* [RW 2] selection for XGXS lane of port 0 in NIG_MUX block */ |
| 2031 | #define NIG_REG_XGXS_LANE_SEL_P0 0x102e8 |
| 2032 | /* [RW 1] selection for port0 for NIG_MUX block : 0 = SerDes; 1 = XGXS */ |
| 2033 | #define NIG_REG_XGXS_SERDES0_MODE_SEL 0x102e0 |
Eilon Greenstein | 2f90446 | 2009-08-12 08:22:16 +0000 | [diff] [blame] | 2034 | #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_EMAC0_MISC_MI_INT (0x1<<0) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2035 | #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_SERDES0_LINK_STATUS (0x1<<9) |
| 2036 | #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK10G (0x1<<15) |
| 2037 | #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS (0xf<<18) |
| 2038 | #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS_SIZE 18 |
Vladislav Zolotarov | bcab15c | 2010-12-13 05:44:25 +0000 | [diff] [blame] | 2039 | /* [RW 31] The upper bound of the weight of COS0 in the ETS command arbiter. */ |
| 2040 | #define PBF_REG_COS0_UPPER_BOUND 0x15c05c |
| 2041 | /* [RW 31] The weight of COS0 in the ETS command arbiter. */ |
| 2042 | #define PBF_REG_COS0_WEIGHT 0x15c054 |
| 2043 | /* [RW 31] The upper bound of the weight of COS1 in the ETS command arbiter. */ |
| 2044 | #define PBF_REG_COS1_UPPER_BOUND 0x15c060 |
| 2045 | /* [RW 31] The weight of COS1 in the ETS command arbiter. */ |
| 2046 | #define PBF_REG_COS1_WEIGHT 0x15c058 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2047 | /* [RW 1] Disable processing further tasks from port 0 (after ending the |
| 2048 | current task in process). */ |
| 2049 | #define PBF_REG_DISABLE_NEW_TASK_PROC_P0 0x14005c |
| 2050 | /* [RW 1] Disable processing further tasks from port 1 (after ending the |
| 2051 | current task in process). */ |
| 2052 | #define PBF_REG_DISABLE_NEW_TASK_PROC_P1 0x140060 |
| 2053 | /* [RW 1] Disable processing further tasks from port 4 (after ending the |
| 2054 | current task in process). */ |
| 2055 | #define PBF_REG_DISABLE_NEW_TASK_PROC_P4 0x14006c |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 2056 | #define PBF_REG_DISABLE_PF 0x1402e8 |
Vladislav Zolotarov | bcab15c | 2010-12-13 05:44:25 +0000 | [diff] [blame] | 2057 | /* [RW 1] Indicates that ETS is performed between the COSes in the command |
| 2058 | * arbiter. If reset strict priority w/ anti-starvation will be performed |
| 2059 | * w/o WFQ. */ |
| 2060 | #define PBF_REG_ETS_ENABLED 0x15c050 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 2061 | /* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic |
| 2062 | * Ethernet header. */ |
| 2063 | #define PBF_REG_HDRS_AFTER_BASIC 0x15c0a8 |
Vladislav Zolotarov | bcab15c | 2010-12-13 05:44:25 +0000 | [diff] [blame] | 2064 | /* [RW 1] Indicates which COS is conncted to the highest priority in the |
| 2065 | * command arbiter. */ |
| 2066 | #define PBF_REG_HIGH_PRIORITY_COS_NUM 0x15c04c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2067 | #define PBF_REG_IF_ENABLE_REG 0x140044 |
| 2068 | /* [RW 1] Init bit. When set the initial credits are copied to the credit |
| 2069 | registers (except the port credits). Should be set and then reset after |
| 2070 | the configuration of the block has ended. */ |
| 2071 | #define PBF_REG_INIT 0x140000 |
| 2072 | /* [RW 1] Init bit for port 0. When set the initial credit of port 0 is |
| 2073 | copied to the credit register. Should be set and then reset after the |
| 2074 | configuration of the port has ended. */ |
| 2075 | #define PBF_REG_INIT_P0 0x140004 |
| 2076 | /* [RW 1] Init bit for port 1. When set the initial credit of port 1 is |
| 2077 | copied to the credit register. Should be set and then reset after the |
| 2078 | configuration of the port has ended. */ |
| 2079 | #define PBF_REG_INIT_P1 0x140008 |
| 2080 | /* [RW 1] Init bit for port 4. When set the initial credit of port 4 is |
| 2081 | copied to the credit register. Should be set and then reset after the |
| 2082 | configuration of the port has ended. */ |
| 2083 | #define PBF_REG_INIT_P4 0x14000c |
| 2084 | /* [RW 1] Enable for mac interface 0. */ |
| 2085 | #define PBF_REG_MAC_IF0_ENABLE 0x140030 |
| 2086 | /* [RW 1] Enable for mac interface 1. */ |
| 2087 | #define PBF_REG_MAC_IF1_ENABLE 0x140034 |
| 2088 | /* [RW 1] Enable for the loopback interface. */ |
| 2089 | #define PBF_REG_MAC_LB_ENABLE 0x140040 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 2090 | /* [RW 6] Bit-map indicating which headers must appear in the packet */ |
| 2091 | #define PBF_REG_MUST_HAVE_HDRS 0x15c0c4 |
Vladislav Zolotarov | bcab15c | 2010-12-13 05:44:25 +0000 | [diff] [blame] | 2092 | /* [RW 16] The number of strict priority arbitration slots between 2 RR |
| 2093 | * arbitration slots. A value of 0 means no strict priority cycles; i.e. the |
| 2094 | * strict-priority w/ anti-starvation arbiter is a RR arbiter. */ |
| 2095 | #define PBF_REG_NUM_STRICT_ARB_SLOTS 0x15c064 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2096 | /* [RW 10] Port 0 threshold used by arbiter in 16 byte lines used when pause |
| 2097 | not suppoterd. */ |
| 2098 | #define PBF_REG_P0_ARB_THRSH 0x1400e4 |
| 2099 | /* [R 11] Current credit for port 0 in the tx port buffers in 16 byte lines. */ |
| 2100 | #define PBF_REG_P0_CREDIT 0x140200 |
| 2101 | /* [RW 11] Initial credit for port 0 in the tx port buffers in 16 byte |
| 2102 | lines. */ |
| 2103 | #define PBF_REG_P0_INIT_CRD 0x1400d0 |
| 2104 | /* [RW 1] Indication that pause is enabled for port 0. */ |
| 2105 | #define PBF_REG_P0_PAUSE_ENABLE 0x140014 |
| 2106 | /* [R 8] Number of tasks in port 0 task queue. */ |
| 2107 | #define PBF_REG_P0_TASK_CNT 0x140204 |
| 2108 | /* [R 11] Current credit for port 1 in the tx port buffers in 16 byte lines. */ |
| 2109 | #define PBF_REG_P1_CREDIT 0x140208 |
| 2110 | /* [RW 11] Initial credit for port 1 in the tx port buffers in 16 byte |
| 2111 | lines. */ |
| 2112 | #define PBF_REG_P1_INIT_CRD 0x1400d4 |
| 2113 | /* [R 8] Number of tasks in port 1 task queue. */ |
| 2114 | #define PBF_REG_P1_TASK_CNT 0x14020c |
| 2115 | /* [R 11] Current credit for port 4 in the tx port buffers in 16 byte lines. */ |
| 2116 | #define PBF_REG_P4_CREDIT 0x140210 |
| 2117 | /* [RW 11] Initial credit for port 4 in the tx port buffers in 16 byte |
| 2118 | lines. */ |
| 2119 | #define PBF_REG_P4_INIT_CRD 0x1400e0 |
| 2120 | /* [R 8] Number of tasks in port 4 task queue. */ |
| 2121 | #define PBF_REG_P4_TASK_CNT 0x140214 |
| 2122 | /* [RW 5] Interrupt mask register #0 read/write */ |
| 2123 | #define PBF_REG_PBF_INT_MASK 0x1401d4 |
| 2124 | /* [R 5] Interrupt register #0 read */ |
| 2125 | #define PBF_REG_PBF_INT_STS 0x1401c8 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 2126 | /* [RW 20] Parity mask register #0 read/write */ |
| 2127 | #define PBF_REG_PBF_PRTY_MASK 0x1401e4 |
| 2128 | /* [RC 20] Parity register #0 read clear */ |
| 2129 | #define PBF_REG_PBF_PRTY_STS_CLR 0x1401dc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2130 | #define PB_REG_CONTROL 0 |
| 2131 | /* [RW 2] Interrupt mask register #0 read/write */ |
| 2132 | #define PB_REG_PB_INT_MASK 0x28 |
| 2133 | /* [R 2] Interrupt register #0 read */ |
| 2134 | #define PB_REG_PB_INT_STS 0x1c |
| 2135 | /* [RW 4] Parity mask register #0 read/write */ |
| 2136 | #define PB_REG_PB_PRTY_MASK 0x38 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 2137 | /* [R 4] Parity register #0 read */ |
| 2138 | #define PB_REG_PB_PRTY_STS 0x2c |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 2139 | /* [RC 4] Parity register #0 read clear */ |
| 2140 | #define PB_REG_PB_PRTY_STS_CLR 0x30 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 2141 | #define PGLUE_B_PGLUE_B_INT_STS_REG_ADDRESS_ERROR (0x1<<0) |
| 2142 | #define PGLUE_B_PGLUE_B_INT_STS_REG_CSSNOOP_FIFO_OVERFLOW (0x1<<8) |
| 2143 | #define PGLUE_B_PGLUE_B_INT_STS_REG_INCORRECT_RCV_BEHAVIOR (0x1<<1) |
| 2144 | #define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_ERROR_ATTN (0x1<<6) |
| 2145 | #define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_IN_TWO_RCBS_ATTN (0x1<<7) |
| 2146 | #define PGLUE_B_PGLUE_B_INT_STS_REG_VF_GRC_SPACE_VIOLATION_ATTN (0x1<<4) |
| 2147 | #define PGLUE_B_PGLUE_B_INT_STS_REG_VF_LENGTH_VIOLATION_ATTN (0x1<<3) |
| 2148 | #define PGLUE_B_PGLUE_B_INT_STS_REG_VF_MSIX_BAR_VIOLATION_ATTN (0x1<<5) |
| 2149 | #define PGLUE_B_PGLUE_B_INT_STS_REG_WAS_ERROR_ATTN (0x1<<2) |
| 2150 | /* [R 8] Config space A attention dirty bits. Each bit indicates that the |
| 2151 | * corresponding PF generates config space A attention. Set by PXP. Reset by |
| 2152 | * MCP writing 1 to icfg_space_a_request_clr. Note: register contains bits |
| 2153 | * from both paths. */ |
| 2154 | #define PGLUE_B_REG_CFG_SPACE_A_REQUEST 0x9010 |
| 2155 | /* [R 8] Config space B attention dirty bits. Each bit indicates that the |
| 2156 | * corresponding PF generates config space B attention. Set by PXP. Reset by |
| 2157 | * MCP writing 1 to icfg_space_b_request_clr. Note: register contains bits |
| 2158 | * from both paths. */ |
| 2159 | #define PGLUE_B_REG_CFG_SPACE_B_REQUEST 0x9014 |
| 2160 | /* [RW 1] Type A PF enable inbound interrupt table for CSDM. 0 - disable; 1 |
| 2161 | * - enable. */ |
| 2162 | #define PGLUE_B_REG_CSDM_INB_INT_A_PF_ENABLE 0x9194 |
| 2163 | /* [RW 18] Type B VF inbound interrupt table for CSDM: bits[17:9]-mask; |
| 2164 | * its[8:0]-address. Bits [1:0] must be zero (DW resolution address). */ |
| 2165 | #define PGLUE_B_REG_CSDM_INB_INT_B_VF 0x916c |
| 2166 | /* [RW 1] Type B VF enable inbound interrupt table for CSDM. 0 - disable; 1 |
| 2167 | * - enable. */ |
| 2168 | #define PGLUE_B_REG_CSDM_INB_INT_B_VF_ENABLE 0x919c |
| 2169 | /* [RW 16] Start offset of CSDM zone A (queue zone) in the internal RAM */ |
| 2170 | #define PGLUE_B_REG_CSDM_START_OFFSET_A 0x9100 |
| 2171 | /* [RW 16] Start offset of CSDM zone B (legacy zone) in the internal RAM */ |
| 2172 | #define PGLUE_B_REG_CSDM_START_OFFSET_B 0x9108 |
| 2173 | /* [RW 5] VF Shift of CSDM zone B (legacy zone) in the internal RAM */ |
| 2174 | #define PGLUE_B_REG_CSDM_VF_SHIFT_B 0x9110 |
| 2175 | /* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */ |
| 2176 | #define PGLUE_B_REG_CSDM_ZONE_A_SIZE_PF 0x91ac |
| 2177 | /* [R 8] FLR request attention dirty bits for PFs 0 to 7. Each bit indicates |
| 2178 | * that the FLR register of the corresponding PF was set. Set by PXP. Reset |
| 2179 | * by MCP writing 1 to flr_request_pf_7_0_clr. Note: register contains bits |
| 2180 | * from both paths. */ |
| 2181 | #define PGLUE_B_REG_FLR_REQUEST_PF_7_0 0x9028 |
| 2182 | /* [W 8] FLR request attention dirty bits clear for PFs 0 to 7. MCP writes 1 |
| 2183 | * to a bit in this register in order to clear the corresponding bit in |
| 2184 | * flr_request_pf_7_0 register. Note: register contains bits from both |
| 2185 | * paths. */ |
| 2186 | #define PGLUE_B_REG_FLR_REQUEST_PF_7_0_CLR 0x9418 |
| 2187 | /* [R 32] FLR request attention dirty bits for VFs 96 to 127. Each bit |
| 2188 | * indicates that the FLR register of the corresponding VF was set. Set by |
| 2189 | * PXP. Reset by MCP writing 1 to flr_request_vf_127_96_clr. */ |
| 2190 | #define PGLUE_B_REG_FLR_REQUEST_VF_127_96 0x9024 |
| 2191 | /* [R 32] FLR request attention dirty bits for VFs 0 to 31. Each bit |
| 2192 | * indicates that the FLR register of the corresponding VF was set. Set by |
| 2193 | * PXP. Reset by MCP writing 1 to flr_request_vf_31_0_clr. */ |
| 2194 | #define PGLUE_B_REG_FLR_REQUEST_VF_31_0 0x9018 |
| 2195 | /* [R 32] FLR request attention dirty bits for VFs 32 to 63. Each bit |
| 2196 | * indicates that the FLR register of the corresponding VF was set. Set by |
| 2197 | * PXP. Reset by MCP writing 1 to flr_request_vf_63_32_clr. */ |
| 2198 | #define PGLUE_B_REG_FLR_REQUEST_VF_63_32 0x901c |
| 2199 | /* [R 32] FLR request attention dirty bits for VFs 64 to 95. Each bit |
| 2200 | * indicates that the FLR register of the corresponding VF was set. Set by |
| 2201 | * PXP. Reset by MCP writing 1 to flr_request_vf_95_64_clr. */ |
| 2202 | #define PGLUE_B_REG_FLR_REQUEST_VF_95_64 0x9020 |
| 2203 | /* [R 8] Each bit indicates an incorrect behavior in user RX interface. Bit |
| 2204 | * 0 - Target memory read arrived with a correctable error. Bit 1 - Target |
| 2205 | * memory read arrived with an uncorrectable error. Bit 2 - Configuration RW |
| 2206 | * arrived with a correctable error. Bit 3 - Configuration RW arrived with |
| 2207 | * an uncorrectable error. Bit 4 - Completion with Configuration Request |
| 2208 | * Retry Status. Bit 5 - Expansion ROM access received with a write request. |
| 2209 | * Bit 6 - Completion with pcie_rx_err of 0000; CMPL_STATUS of non-zero; and |
| 2210 | * pcie_rx_last not asserted. Bit 7 - Completion with pcie_rx_err of 1010; |
| 2211 | * and pcie_rx_last not asserted. */ |
| 2212 | #define PGLUE_B_REG_INCORRECT_RCV_DETAILS 0x9068 |
| 2213 | #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER 0x942c |
| 2214 | #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ 0x9430 |
| 2215 | #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_WRITE 0x9434 |
| 2216 | #define PGLUE_B_REG_INTERNAL_VFID_ENABLE 0x9438 |
| 2217 | /* [R 9] Interrupt register #0 read */ |
| 2218 | #define PGLUE_B_REG_PGLUE_B_INT_STS 0x9298 |
| 2219 | /* [RC 9] Interrupt register #0 read clear */ |
| 2220 | #define PGLUE_B_REG_PGLUE_B_INT_STS_CLR 0x929c |
| 2221 | /* [R 2] Parity register #0 read */ |
| 2222 | #define PGLUE_B_REG_PGLUE_B_PRTY_STS 0x92a8 |
| 2223 | /* [R 13] Details of first request received with error. [2:0] - PFID. [3] - |
| 2224 | * VF_VALID. [9:4] - VFID. [11:10] - Error Code - 0 - Indicates Completion |
| 2225 | * Timeout of a User Tx non-posted request. 1 - unsupported request. 2 - |
| 2226 | * completer abort. 3 - Illegal value for this field. [12] valid - indicates |
| 2227 | * if there was a completion error since the last time this register was |
| 2228 | * cleared. */ |
| 2229 | #define PGLUE_B_REG_RX_ERR_DETAILS 0x9080 |
| 2230 | /* [R 18] Details of first ATS Translation Completion request received with |
| 2231 | * error. [2:0] - PFID. [3] - VF_VALID. [9:4] - VFID. [11:10] - Error Code - |
| 2232 | * 0 - Indicates Completion Timeout of a User Tx non-posted request. 1 - |
| 2233 | * unsupported request. 2 - completer abort. 3 - Illegal value for this |
| 2234 | * field. [16:12] - ATC OTB EntryID. [17] valid - indicates if there was a |
| 2235 | * completion error since the last time this register was cleared. */ |
| 2236 | #define PGLUE_B_REG_RX_TCPL_ERR_DETAILS 0x9084 |
| 2237 | /* [W 8] Debug only - Shadow BME bits clear for PFs 0 to 7. MCP writes 1 to |
| 2238 | * a bit in this register in order to clear the corresponding bit in |
| 2239 | * shadow_bme_pf_7_0 register. MCP should never use this unless a |
| 2240 | * work-around is needed. Note: register contains bits from both paths. */ |
| 2241 | #define PGLUE_B_REG_SHADOW_BME_PF_7_0_CLR 0x9458 |
| 2242 | /* [R 8] SR IOV disabled attention dirty bits. Each bit indicates that the |
| 2243 | * VF enable register of the corresponding PF is written to 0 and was |
| 2244 | * previously 1. Set by PXP. Reset by MCP writing 1 to |
| 2245 | * sr_iov_disabled_request_clr. Note: register contains bits from both |
| 2246 | * paths. */ |
| 2247 | #define PGLUE_B_REG_SR_IOV_DISABLED_REQUEST 0x9030 |
| 2248 | /* [R 32] Indicates the status of tags 32-63. 0 - tags is used - read |
| 2249 | * completion did not return yet. 1 - tag is unused. Same functionality as |
| 2250 | * pxp2_registers_pgl_exp_rom_data2 for tags 0-31. */ |
| 2251 | #define PGLUE_B_REG_TAGS_63_32 0x9244 |
| 2252 | /* [RW 1] Type A PF enable inbound interrupt table for TSDM. 0 - disable; 1 |
| 2253 | * - enable. */ |
| 2254 | #define PGLUE_B_REG_TSDM_INB_INT_A_PF_ENABLE 0x9170 |
| 2255 | /* [RW 16] Start offset of TSDM zone A (queue zone) in the internal RAM */ |
| 2256 | #define PGLUE_B_REG_TSDM_START_OFFSET_A 0x90c4 |
| 2257 | /* [RW 16] Start offset of TSDM zone B (legacy zone) in the internal RAM */ |
| 2258 | #define PGLUE_B_REG_TSDM_START_OFFSET_B 0x90cc |
| 2259 | /* [RW 5] VF Shift of TSDM zone B (legacy zone) in the internal RAM */ |
| 2260 | #define PGLUE_B_REG_TSDM_VF_SHIFT_B 0x90d4 |
| 2261 | /* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */ |
| 2262 | #define PGLUE_B_REG_TSDM_ZONE_A_SIZE_PF 0x91a0 |
| 2263 | /* [R 32] Address [31:0] of first read request not submitted due to error */ |
| 2264 | #define PGLUE_B_REG_TX_ERR_RD_ADD_31_0 0x9098 |
| 2265 | /* [R 32] Address [63:32] of first read request not submitted due to error */ |
| 2266 | #define PGLUE_B_REG_TX_ERR_RD_ADD_63_32 0x909c |
| 2267 | /* [R 31] Details of first read request not submitted due to error. [4:0] |
| 2268 | * VQID. [5] TREQ. 1 - Indicates the request is a Translation Request. |
| 2269 | * [20:8] - Length in bytes. [23:21] - PFID. [24] - VF_VALID. [30:25] - |
| 2270 | * VFID. */ |
| 2271 | #define PGLUE_B_REG_TX_ERR_RD_DETAILS 0x90a0 |
| 2272 | /* [R 26] Details of first read request not submitted due to error. [15:0] |
| 2273 | * Request ID. [19:16] client ID. [20] - last SR. [24:21] - Error type - |
| 2274 | * [21] - Indicates was_error was set; [22] - Indicates BME was cleared; |
| 2275 | * [23] - Indicates FID_enable was cleared; [24] - Indicates VF with parent |
| 2276 | * PF FLR_request or IOV_disable_request dirty bit is set. [25] valid - |
| 2277 | * indicates if there was a request not submitted due to error since the |
| 2278 | * last time this register was cleared. */ |
| 2279 | #define PGLUE_B_REG_TX_ERR_RD_DETAILS2 0x90a4 |
| 2280 | /* [R 32] Address [31:0] of first write request not submitted due to error */ |
| 2281 | #define PGLUE_B_REG_TX_ERR_WR_ADD_31_0 0x9088 |
| 2282 | /* [R 32] Address [63:32] of first write request not submitted due to error */ |
| 2283 | #define PGLUE_B_REG_TX_ERR_WR_ADD_63_32 0x908c |
| 2284 | /* [R 31] Details of first write request not submitted due to error. [4:0] |
| 2285 | * VQID. [20:8] - Length in bytes. [23:21] - PFID. [24] - VF_VALID. [30:25] |
| 2286 | * - VFID. */ |
| 2287 | #define PGLUE_B_REG_TX_ERR_WR_DETAILS 0x9090 |
| 2288 | /* [R 26] Details of first write request not submitted due to error. [15:0] |
| 2289 | * Request ID. [19:16] client ID. [20] - last SR. [24:21] - Error type - |
| 2290 | * [21] - Indicates was_error was set; [22] - Indicates BME was cleared; |
| 2291 | * [23] - Indicates FID_enable was cleared; [24] - Indicates VF with parent |
| 2292 | * PF FLR_request or IOV_disable_request dirty bit is set. [25] valid - |
| 2293 | * indicates if there was a request not submitted due to error since the |
| 2294 | * last time this register was cleared. */ |
| 2295 | #define PGLUE_B_REG_TX_ERR_WR_DETAILS2 0x9094 |
| 2296 | /* [RW 10] Type A PF/VF inbound interrupt table for USDM: bits[9:5]-mask; |
| 2297 | * its[4:0]-address relative to start_offset_a. Bits [1:0] can have any |
| 2298 | * value (Byte resolution address). */ |
| 2299 | #define PGLUE_B_REG_USDM_INB_INT_A_0 0x9128 |
| 2300 | #define PGLUE_B_REG_USDM_INB_INT_A_1 0x912c |
| 2301 | #define PGLUE_B_REG_USDM_INB_INT_A_2 0x9130 |
| 2302 | #define PGLUE_B_REG_USDM_INB_INT_A_3 0x9134 |
| 2303 | #define PGLUE_B_REG_USDM_INB_INT_A_4 0x9138 |
| 2304 | #define PGLUE_B_REG_USDM_INB_INT_A_5 0x913c |
| 2305 | #define PGLUE_B_REG_USDM_INB_INT_A_6 0x9140 |
| 2306 | /* [RW 1] Type A PF enable inbound interrupt table for USDM. 0 - disable; 1 |
| 2307 | * - enable. */ |
| 2308 | #define PGLUE_B_REG_USDM_INB_INT_A_PF_ENABLE 0x917c |
| 2309 | /* [RW 1] Type A VF enable inbound interrupt table for USDM. 0 - disable; 1 |
| 2310 | * - enable. */ |
| 2311 | #define PGLUE_B_REG_USDM_INB_INT_A_VF_ENABLE 0x9180 |
| 2312 | /* [RW 1] Type B VF enable inbound interrupt table for USDM. 0 - disable; 1 |
| 2313 | * - enable. */ |
| 2314 | #define PGLUE_B_REG_USDM_INB_INT_B_VF_ENABLE 0x9184 |
| 2315 | /* [RW 16] Start offset of USDM zone A (queue zone) in the internal RAM */ |
| 2316 | #define PGLUE_B_REG_USDM_START_OFFSET_A 0x90d8 |
| 2317 | /* [RW 16] Start offset of USDM zone B (legacy zone) in the internal RAM */ |
| 2318 | #define PGLUE_B_REG_USDM_START_OFFSET_B 0x90e0 |
| 2319 | /* [RW 5] VF Shift of USDM zone B (legacy zone) in the internal RAM */ |
| 2320 | #define PGLUE_B_REG_USDM_VF_SHIFT_B 0x90e8 |
| 2321 | /* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */ |
| 2322 | #define PGLUE_B_REG_USDM_ZONE_A_SIZE_PF 0x91a4 |
| 2323 | /* [R 26] Details of first target VF request accessing VF GRC space that |
| 2324 | * failed permission check. [14:0] Address. [15] w_nr: 0 - Read; 1 - Write. |
| 2325 | * [21:16] VFID. [24:22] - PFID. [25] valid - indicates if there was a |
| 2326 | * request accessing VF GRC space that failed permission check since the |
| 2327 | * last time this register was cleared. Permission checks are: function |
| 2328 | * permission; R/W permission; address range permission. */ |
| 2329 | #define PGLUE_B_REG_VF_GRC_SPACE_VIOLATION_DETAILS 0x9234 |
| 2330 | /* [R 31] Details of first target VF request with length violation (too many |
| 2331 | * DWs) accessing BAR0. [12:0] Address in DWs (bits [14:2] of byte address). |
| 2332 | * [14:13] BAR. [20:15] VFID. [23:21] - PFID. [29:24] - Length in DWs. [30] |
| 2333 | * valid - indicates if there was a request with length violation since the |
| 2334 | * last time this register was cleared. Length violations: length of more |
| 2335 | * than 2DWs; length of 2DWs and address not QW aligned; window is GRC and |
| 2336 | * length is more than 1 DW. */ |
| 2337 | #define PGLUE_B_REG_VF_LENGTH_VIOLATION_DETAILS 0x9230 |
| 2338 | /* [R 8] Was_error indication dirty bits for PFs 0 to 7. Each bit indicates |
| 2339 | * that there was a completion with uncorrectable error for the |
| 2340 | * corresponding PF. Set by PXP. Reset by MCP writing 1 to |
| 2341 | * was_error_pf_7_0_clr. */ |
| 2342 | #define PGLUE_B_REG_WAS_ERROR_PF_7_0 0x907c |
| 2343 | /* [W 8] Was_error indication dirty bits clear for PFs 0 to 7. MCP writes 1 |
| 2344 | * to a bit in this register in order to clear the corresponding bit in |
| 2345 | * flr_request_pf_7_0 register. */ |
| 2346 | #define PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR 0x9470 |
| 2347 | /* [R 32] Was_error indication dirty bits for VFs 96 to 127. Each bit |
| 2348 | * indicates that there was a completion with uncorrectable error for the |
| 2349 | * corresponding VF. Set by PXP. Reset by MCP writing 1 to |
| 2350 | * was_error_vf_127_96_clr. */ |
| 2351 | #define PGLUE_B_REG_WAS_ERROR_VF_127_96 0x9078 |
| 2352 | /* [W 32] Was_error indication dirty bits clear for VFs 96 to 127. MCP |
| 2353 | * writes 1 to a bit in this register in order to clear the corresponding |
| 2354 | * bit in was_error_vf_127_96 register. */ |
| 2355 | #define PGLUE_B_REG_WAS_ERROR_VF_127_96_CLR 0x9474 |
| 2356 | /* [R 32] Was_error indication dirty bits for VFs 0 to 31. Each bit |
| 2357 | * indicates that there was a completion with uncorrectable error for the |
| 2358 | * corresponding VF. Set by PXP. Reset by MCP writing 1 to |
| 2359 | * was_error_vf_31_0_clr. */ |
| 2360 | #define PGLUE_B_REG_WAS_ERROR_VF_31_0 0x906c |
| 2361 | /* [W 32] Was_error indication dirty bits clear for VFs 0 to 31. MCP writes |
| 2362 | * 1 to a bit in this register in order to clear the corresponding bit in |
| 2363 | * was_error_vf_31_0 register. */ |
| 2364 | #define PGLUE_B_REG_WAS_ERROR_VF_31_0_CLR 0x9478 |
| 2365 | /* [R 32] Was_error indication dirty bits for VFs 32 to 63. Each bit |
| 2366 | * indicates that there was a completion with uncorrectable error for the |
| 2367 | * corresponding VF. Set by PXP. Reset by MCP writing 1 to |
| 2368 | * was_error_vf_63_32_clr. */ |
| 2369 | #define PGLUE_B_REG_WAS_ERROR_VF_63_32 0x9070 |
| 2370 | /* [W 32] Was_error indication dirty bits clear for VFs 32 to 63. MCP writes |
| 2371 | * 1 to a bit in this register in order to clear the corresponding bit in |
| 2372 | * was_error_vf_63_32 register. */ |
| 2373 | #define PGLUE_B_REG_WAS_ERROR_VF_63_32_CLR 0x947c |
| 2374 | /* [R 32] Was_error indication dirty bits for VFs 64 to 95. Each bit |
| 2375 | * indicates that there was a completion with uncorrectable error for the |
| 2376 | * corresponding VF. Set by PXP. Reset by MCP writing 1 to |
| 2377 | * was_error_vf_95_64_clr. */ |
| 2378 | #define PGLUE_B_REG_WAS_ERROR_VF_95_64 0x9074 |
| 2379 | /* [W 32] Was_error indication dirty bits clear for VFs 64 to 95. MCP writes |
| 2380 | * 1 to a bit in this register in order to clear the corresponding bit in |
| 2381 | * was_error_vf_95_64 register. */ |
| 2382 | #define PGLUE_B_REG_WAS_ERROR_VF_95_64_CLR 0x9480 |
| 2383 | /* [RW 1] Type A PF enable inbound interrupt table for XSDM. 0 - disable; 1 |
| 2384 | * - enable. */ |
| 2385 | #define PGLUE_B_REG_XSDM_INB_INT_A_PF_ENABLE 0x9188 |
| 2386 | /* [RW 16] Start offset of XSDM zone A (queue zone) in the internal RAM */ |
| 2387 | #define PGLUE_B_REG_XSDM_START_OFFSET_A 0x90ec |
| 2388 | /* [RW 16] Start offset of XSDM zone B (legacy zone) in the internal RAM */ |
| 2389 | #define PGLUE_B_REG_XSDM_START_OFFSET_B 0x90f4 |
| 2390 | /* [RW 5] VF Shift of XSDM zone B (legacy zone) in the internal RAM */ |
| 2391 | #define PGLUE_B_REG_XSDM_VF_SHIFT_B 0x90fc |
| 2392 | /* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */ |
| 2393 | #define PGLUE_B_REG_XSDM_ZONE_A_SIZE_PF 0x91a8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2394 | #define PRS_REG_A_PRSU_20 0x40134 |
| 2395 | /* [R 8] debug only: CFC load request current credit. Transaction based. */ |
| 2396 | #define PRS_REG_CFC_LD_CURRENT_CREDIT 0x40164 |
| 2397 | /* [R 8] debug only: CFC search request current credit. Transaction based. */ |
| 2398 | #define PRS_REG_CFC_SEARCH_CURRENT_CREDIT 0x40168 |
| 2399 | /* [RW 6] The initial credit for the search message to the CFC interface. |
| 2400 | Credit is transaction based. */ |
| 2401 | #define PRS_REG_CFC_SEARCH_INITIAL_CREDIT 0x4011c |
| 2402 | /* [RW 24] CID for port 0 if no match */ |
| 2403 | #define PRS_REG_CID_PORT_0 0x400fc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2404 | /* [RW 32] The CM header for flush message where 'load existed' bit in CFC |
| 2405 | load response is reset and packet type is 0. Used in packet start message |
| 2406 | to TCM. */ |
| 2407 | #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_0 0x400dc |
| 2408 | #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_1 0x400e0 |
| 2409 | #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_2 0x400e4 |
| 2410 | #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_3 0x400e8 |
| 2411 | #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_4 0x400ec |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 2412 | #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_5 0x400f0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2413 | /* [RW 32] The CM header for flush message where 'load existed' bit in CFC |
| 2414 | load response is set and packet type is 0. Used in packet start message |
| 2415 | to TCM. */ |
| 2416 | #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_0 0x400bc |
| 2417 | #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_1 0x400c0 |
| 2418 | #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_2 0x400c4 |
| 2419 | #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_3 0x400c8 |
| 2420 | #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_4 0x400cc |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 2421 | #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_5 0x400d0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2422 | /* [RW 32] The CM header for a match and packet type 1 for loopback port. |
| 2423 | Used in packet start message to TCM. */ |
| 2424 | #define PRS_REG_CM_HDR_LOOPBACK_TYPE_1 0x4009c |
| 2425 | #define PRS_REG_CM_HDR_LOOPBACK_TYPE_2 0x400a0 |
| 2426 | #define PRS_REG_CM_HDR_LOOPBACK_TYPE_3 0x400a4 |
| 2427 | #define PRS_REG_CM_HDR_LOOPBACK_TYPE_4 0x400a8 |
| 2428 | /* [RW 32] The CM header for a match and packet type 0. Used in packet start |
| 2429 | message to TCM. */ |
| 2430 | #define PRS_REG_CM_HDR_TYPE_0 0x40078 |
| 2431 | #define PRS_REG_CM_HDR_TYPE_1 0x4007c |
| 2432 | #define PRS_REG_CM_HDR_TYPE_2 0x40080 |
| 2433 | #define PRS_REG_CM_HDR_TYPE_3 0x40084 |
| 2434 | #define PRS_REG_CM_HDR_TYPE_4 0x40088 |
| 2435 | /* [RW 32] The CM header in case there was not a match on the connection */ |
| 2436 | #define PRS_REG_CM_NO_MATCH_HDR 0x400b8 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2437 | /* [RW 1] Indicates if in e1hov mode. 0=non-e1hov mode; 1=e1hov mode. */ |
| 2438 | #define PRS_REG_E1HOV_MODE 0x401c8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2439 | /* [RW 8] The 8-bit event ID for a match and packet type 1. Used in packet |
| 2440 | start message to TCM. */ |
| 2441 | #define PRS_REG_EVENT_ID_1 0x40054 |
| 2442 | #define PRS_REG_EVENT_ID_2 0x40058 |
| 2443 | #define PRS_REG_EVENT_ID_3 0x4005c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2444 | /* [RW 16] The Ethernet type value for FCoE */ |
| 2445 | #define PRS_REG_FCOE_TYPE 0x401d0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2446 | /* [RW 8] Context region for flush packet with packet type 0. Used in CFC |
| 2447 | load request message. */ |
| 2448 | #define PRS_REG_FLUSH_REGIONS_TYPE_0 0x40004 |
| 2449 | #define PRS_REG_FLUSH_REGIONS_TYPE_1 0x40008 |
| 2450 | #define PRS_REG_FLUSH_REGIONS_TYPE_2 0x4000c |
| 2451 | #define PRS_REG_FLUSH_REGIONS_TYPE_3 0x40010 |
| 2452 | #define PRS_REG_FLUSH_REGIONS_TYPE_4 0x40014 |
| 2453 | #define PRS_REG_FLUSH_REGIONS_TYPE_5 0x40018 |
| 2454 | #define PRS_REG_FLUSH_REGIONS_TYPE_6 0x4001c |
| 2455 | #define PRS_REG_FLUSH_REGIONS_TYPE_7 0x40020 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 2456 | /* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic |
| 2457 | * Ethernet header. */ |
| 2458 | #define PRS_REG_HDRS_AFTER_BASIC 0x40238 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2459 | /* [RW 4] The increment value to send in the CFC load request message */ |
| 2460 | #define PRS_REG_INC_VALUE 0x40048 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 2461 | /* [RW 6] Bit-map indicating which headers must appear in the packet */ |
| 2462 | #define PRS_REG_MUST_HAVE_HDRS 0x40254 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2463 | #define PRS_REG_NIC_MODE 0x40138 |
| 2464 | /* [RW 8] The 8-bit event ID for cases where there is no match on the |
| 2465 | connection. Used in packet start message to TCM. */ |
| 2466 | #define PRS_REG_NO_MATCH_EVENT_ID 0x40070 |
| 2467 | /* [ST 24] The number of input CFC flush packets */ |
| 2468 | #define PRS_REG_NUM_OF_CFC_FLUSH_MESSAGES 0x40128 |
| 2469 | /* [ST 32] The number of cycles the Parser halted its operation since it |
| 2470 | could not allocate the next serial number */ |
| 2471 | #define PRS_REG_NUM_OF_DEAD_CYCLES 0x40130 |
| 2472 | /* [ST 24] The number of input packets */ |
| 2473 | #define PRS_REG_NUM_OF_PACKETS 0x40124 |
| 2474 | /* [ST 24] The number of input transparent flush packets */ |
| 2475 | #define PRS_REG_NUM_OF_TRANSPARENT_FLUSH_MESSAGES 0x4012c |
| 2476 | /* [RW 8] Context region for received Ethernet packet with a match and |
| 2477 | packet type 0. Used in CFC load request message */ |
| 2478 | #define PRS_REG_PACKET_REGIONS_TYPE_0 0x40028 |
| 2479 | #define PRS_REG_PACKET_REGIONS_TYPE_1 0x4002c |
| 2480 | #define PRS_REG_PACKET_REGIONS_TYPE_2 0x40030 |
| 2481 | #define PRS_REG_PACKET_REGIONS_TYPE_3 0x40034 |
| 2482 | #define PRS_REG_PACKET_REGIONS_TYPE_4 0x40038 |
| 2483 | #define PRS_REG_PACKET_REGIONS_TYPE_5 0x4003c |
| 2484 | #define PRS_REG_PACKET_REGIONS_TYPE_6 0x40040 |
| 2485 | #define PRS_REG_PACKET_REGIONS_TYPE_7 0x40044 |
| 2486 | /* [R 2] debug only: Number of pending requests for CAC on port 0. */ |
| 2487 | #define PRS_REG_PENDING_BRB_CAC0_RQ 0x40174 |
| 2488 | /* [R 2] debug only: Number of pending requests for header parsing. */ |
| 2489 | #define PRS_REG_PENDING_BRB_PRS_RQ 0x40170 |
| 2490 | /* [R 1] Interrupt register #0 read */ |
| 2491 | #define PRS_REG_PRS_INT_STS 0x40188 |
| 2492 | /* [RW 8] Parity mask register #0 read/write */ |
| 2493 | #define PRS_REG_PRS_PRTY_MASK 0x401a4 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 2494 | /* [R 8] Parity register #0 read */ |
| 2495 | #define PRS_REG_PRS_PRTY_STS 0x40198 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 2496 | /* [RC 8] Parity register #0 read clear */ |
| 2497 | #define PRS_REG_PRS_PRTY_STS_CLR 0x4019c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2498 | /* [RW 8] Context region for pure acknowledge packets. Used in CFC load |
| 2499 | request message */ |
| 2500 | #define PRS_REG_PURE_REGIONS 0x40024 |
| 2501 | /* [R 32] debug only: Serial number status lsb 32 bits. '1' indicates this |
| 2502 | serail number was released by SDM but cannot be used because a previous |
| 2503 | serial number was not released. */ |
| 2504 | #define PRS_REG_SERIAL_NUM_STATUS_LSB 0x40154 |
| 2505 | /* [R 32] debug only: Serial number status msb 32 bits. '1' indicates this |
| 2506 | serail number was released by SDM but cannot be used because a previous |
| 2507 | serial number was not released. */ |
| 2508 | #define PRS_REG_SERIAL_NUM_STATUS_MSB 0x40158 |
| 2509 | /* [R 4] debug only: SRC current credit. Transaction based. */ |
| 2510 | #define PRS_REG_SRC_CURRENT_CREDIT 0x4016c |
| 2511 | /* [R 8] debug only: TCM current credit. Cycle based. */ |
| 2512 | #define PRS_REG_TCM_CURRENT_CREDIT 0x40160 |
| 2513 | /* [R 8] debug only: TSDM current credit. Transaction based. */ |
| 2514 | #define PRS_REG_TSDM_CURRENT_CREDIT 0x4015c |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 2515 | #define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_AFT (0x1<<19) |
| 2516 | #define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_OF (0x1<<20) |
| 2517 | #define PXP2_PXP2_INT_MASK_0_REG_PGL_PCIE_ATTN (0x1<<22) |
| 2518 | #define PXP2_PXP2_INT_MASK_0_REG_PGL_READ_BLOCKED (0x1<<23) |
| 2519 | #define PXP2_PXP2_INT_MASK_0_REG_PGL_WRITE_BLOCKED (0x1<<24) |
| 2520 | #define PXP2_PXP2_INT_STS_0_REG_WR_PGLUE_EOP_ERROR (0x1<<7) |
| 2521 | #define PXP2_PXP2_INT_STS_CLR_0_REG_WR_PGLUE_EOP_ERROR (0x1<<7) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2522 | /* [R 6] Debug only: Number of used entries in the data FIFO */ |
| 2523 | #define PXP2_REG_HST_DATA_FIFO_STATUS 0x12047c |
| 2524 | /* [R 7] Debug only: Number of used entries in the header FIFO */ |
| 2525 | #define PXP2_REG_HST_HEADER_FIFO_STATUS 0x120478 |
Eilon Greenstein | 34f80b0 | 2008-06-23 20:33:01 -0700 | [diff] [blame] | 2526 | #define PXP2_REG_PGL_ADDR_88_F0 0x120534 |
| 2527 | #define PXP2_REG_PGL_ADDR_8C_F0 0x120538 |
| 2528 | #define PXP2_REG_PGL_ADDR_90_F0 0x12053c |
| 2529 | #define PXP2_REG_PGL_ADDR_94_F0 0x120540 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2530 | #define PXP2_REG_PGL_CONTROL0 0x120490 |
| 2531 | #define PXP2_REG_PGL_CONTROL1 0x120514 |
Eilon Greenstein | ca00392 | 2009-08-12 22:53:28 -0700 | [diff] [blame] | 2532 | #define PXP2_REG_PGL_DEBUG 0x120520 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2533 | /* [RW 32] third dword data of expansion rom request. this register is |
| 2534 | special. reading from it provides a vector outstanding read requests. if |
| 2535 | a bit is zero it means that a read request on the corresponding tag did |
| 2536 | not finish yet (not all completions have arrived for it) */ |
| 2537 | #define PXP2_REG_PGL_EXP_ROM2 0x120808 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2538 | /* [RW 32] Inbound interrupt table for CSDM: bits[31:16]-mask; |
| 2539 | its[15:0]-address */ |
| 2540 | #define PXP2_REG_PGL_INT_CSDM_0 0x1204f4 |
| 2541 | #define PXP2_REG_PGL_INT_CSDM_1 0x1204f8 |
| 2542 | #define PXP2_REG_PGL_INT_CSDM_2 0x1204fc |
| 2543 | #define PXP2_REG_PGL_INT_CSDM_3 0x120500 |
| 2544 | #define PXP2_REG_PGL_INT_CSDM_4 0x120504 |
| 2545 | #define PXP2_REG_PGL_INT_CSDM_5 0x120508 |
| 2546 | #define PXP2_REG_PGL_INT_CSDM_6 0x12050c |
| 2547 | #define PXP2_REG_PGL_INT_CSDM_7 0x120510 |
| 2548 | /* [RW 32] Inbound interrupt table for TSDM: bits[31:16]-mask; |
| 2549 | its[15:0]-address */ |
| 2550 | #define PXP2_REG_PGL_INT_TSDM_0 0x120494 |
| 2551 | #define PXP2_REG_PGL_INT_TSDM_1 0x120498 |
| 2552 | #define PXP2_REG_PGL_INT_TSDM_2 0x12049c |
| 2553 | #define PXP2_REG_PGL_INT_TSDM_3 0x1204a0 |
| 2554 | #define PXP2_REG_PGL_INT_TSDM_4 0x1204a4 |
| 2555 | #define PXP2_REG_PGL_INT_TSDM_5 0x1204a8 |
| 2556 | #define PXP2_REG_PGL_INT_TSDM_6 0x1204ac |
| 2557 | #define PXP2_REG_PGL_INT_TSDM_7 0x1204b0 |
| 2558 | /* [RW 32] Inbound interrupt table for USDM: bits[31:16]-mask; |
| 2559 | its[15:0]-address */ |
| 2560 | #define PXP2_REG_PGL_INT_USDM_0 0x1204b4 |
| 2561 | #define PXP2_REG_PGL_INT_USDM_1 0x1204b8 |
| 2562 | #define PXP2_REG_PGL_INT_USDM_2 0x1204bc |
| 2563 | #define PXP2_REG_PGL_INT_USDM_3 0x1204c0 |
| 2564 | #define PXP2_REG_PGL_INT_USDM_4 0x1204c4 |
| 2565 | #define PXP2_REG_PGL_INT_USDM_5 0x1204c8 |
| 2566 | #define PXP2_REG_PGL_INT_USDM_6 0x1204cc |
| 2567 | #define PXP2_REG_PGL_INT_USDM_7 0x1204d0 |
| 2568 | /* [RW 32] Inbound interrupt table for XSDM: bits[31:16]-mask; |
| 2569 | its[15:0]-address */ |
| 2570 | #define PXP2_REG_PGL_INT_XSDM_0 0x1204d4 |
| 2571 | #define PXP2_REG_PGL_INT_XSDM_1 0x1204d8 |
| 2572 | #define PXP2_REG_PGL_INT_XSDM_2 0x1204dc |
| 2573 | #define PXP2_REG_PGL_INT_XSDM_3 0x1204e0 |
| 2574 | #define PXP2_REG_PGL_INT_XSDM_4 0x1204e4 |
| 2575 | #define PXP2_REG_PGL_INT_XSDM_5 0x1204e8 |
| 2576 | #define PXP2_REG_PGL_INT_XSDM_6 0x1204ec |
| 2577 | #define PXP2_REG_PGL_INT_XSDM_7 0x1204f0 |
Eilon Greenstein | f1ef27e | 2009-02-12 08:36:23 +0000 | [diff] [blame] | 2578 | /* [RW 3] this field allows one function to pretend being another function |
| 2579 | when accessing any BAR mapped resource within the device. the value of |
| 2580 | the field is the number of the function that will be accessed |
| 2581 | effectively. after software write to this bit it must read it in order to |
| 2582 | know that the new value is updated */ |
| 2583 | #define PXP2_REG_PGL_PRETEND_FUNC_F0 0x120674 |
| 2584 | #define PXP2_REG_PGL_PRETEND_FUNC_F1 0x120678 |
| 2585 | #define PXP2_REG_PGL_PRETEND_FUNC_F2 0x12067c |
| 2586 | #define PXP2_REG_PGL_PRETEND_FUNC_F3 0x120680 |
| 2587 | #define PXP2_REG_PGL_PRETEND_FUNC_F4 0x120684 |
| 2588 | #define PXP2_REG_PGL_PRETEND_FUNC_F5 0x120688 |
| 2589 | #define PXP2_REG_PGL_PRETEND_FUNC_F6 0x12068c |
| 2590 | #define PXP2_REG_PGL_PRETEND_FUNC_F7 0x120690 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2591 | /* [R 1] this bit indicates that a read request was blocked because of |
| 2592 | bus_master_en was deasserted */ |
| 2593 | #define PXP2_REG_PGL_READ_BLOCKED 0x120568 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2594 | #define PXP2_REG_PGL_TAGS_LIMIT 0x1205a8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2595 | /* [R 18] debug only */ |
| 2596 | #define PXP2_REG_PGL_TXW_CDTS 0x12052c |
| 2597 | /* [R 1] this bit indicates that a write request was blocked because of |
| 2598 | bus_master_en was deasserted */ |
| 2599 | #define PXP2_REG_PGL_WRITE_BLOCKED 0x120564 |
| 2600 | #define PXP2_REG_PSWRQ_BW_ADD1 0x1201c0 |
| 2601 | #define PXP2_REG_PSWRQ_BW_ADD10 0x1201e4 |
| 2602 | #define PXP2_REG_PSWRQ_BW_ADD11 0x1201e8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2603 | #define PXP2_REG_PSWRQ_BW_ADD2 0x1201c4 |
| 2604 | #define PXP2_REG_PSWRQ_BW_ADD28 0x120228 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2605 | #define PXP2_REG_PSWRQ_BW_ADD3 0x1201c8 |
| 2606 | #define PXP2_REG_PSWRQ_BW_ADD6 0x1201d4 |
| 2607 | #define PXP2_REG_PSWRQ_BW_ADD7 0x1201d8 |
| 2608 | #define PXP2_REG_PSWRQ_BW_ADD8 0x1201dc |
| 2609 | #define PXP2_REG_PSWRQ_BW_ADD9 0x1201e0 |
| 2610 | #define PXP2_REG_PSWRQ_BW_CREDIT 0x12032c |
| 2611 | #define PXP2_REG_PSWRQ_BW_L1 0x1202b0 |
| 2612 | #define PXP2_REG_PSWRQ_BW_L10 0x1202d4 |
| 2613 | #define PXP2_REG_PSWRQ_BW_L11 0x1202d8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2614 | #define PXP2_REG_PSWRQ_BW_L2 0x1202b4 |
| 2615 | #define PXP2_REG_PSWRQ_BW_L28 0x120318 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2616 | #define PXP2_REG_PSWRQ_BW_L3 0x1202b8 |
| 2617 | #define PXP2_REG_PSWRQ_BW_L6 0x1202c4 |
| 2618 | #define PXP2_REG_PSWRQ_BW_L7 0x1202c8 |
| 2619 | #define PXP2_REG_PSWRQ_BW_L8 0x1202cc |
| 2620 | #define PXP2_REG_PSWRQ_BW_L9 0x1202d0 |
| 2621 | #define PXP2_REG_PSWRQ_BW_RD 0x120324 |
| 2622 | #define PXP2_REG_PSWRQ_BW_UB1 0x120238 |
| 2623 | #define PXP2_REG_PSWRQ_BW_UB10 0x12025c |
| 2624 | #define PXP2_REG_PSWRQ_BW_UB11 0x120260 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2625 | #define PXP2_REG_PSWRQ_BW_UB2 0x12023c |
| 2626 | #define PXP2_REG_PSWRQ_BW_UB28 0x1202a0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2627 | #define PXP2_REG_PSWRQ_BW_UB3 0x120240 |
| 2628 | #define PXP2_REG_PSWRQ_BW_UB6 0x12024c |
| 2629 | #define PXP2_REG_PSWRQ_BW_UB7 0x120250 |
| 2630 | #define PXP2_REG_PSWRQ_BW_UB8 0x120254 |
| 2631 | #define PXP2_REG_PSWRQ_BW_UB9 0x120258 |
| 2632 | #define PXP2_REG_PSWRQ_BW_WR 0x120328 |
| 2633 | #define PXP2_REG_PSWRQ_CDU0_L2P 0x120000 |
| 2634 | #define PXP2_REG_PSWRQ_QM0_L2P 0x120038 |
| 2635 | #define PXP2_REG_PSWRQ_SRC0_L2P 0x120054 |
| 2636 | #define PXP2_REG_PSWRQ_TM0_L2P 0x12001c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2637 | #define PXP2_REG_PSWRQ_TSDM0_L2P 0x1200e0 |
Eilon Greenstein | 34f80b0 | 2008-06-23 20:33:01 -0700 | [diff] [blame] | 2638 | /* [RW 32] Interrupt mask register #0 read/write */ |
| 2639 | #define PXP2_REG_PXP2_INT_MASK_0 0x120578 |
| 2640 | /* [R 32] Interrupt register #0 read */ |
| 2641 | #define PXP2_REG_PXP2_INT_STS_0 0x12056c |
| 2642 | #define PXP2_REG_PXP2_INT_STS_1 0x120608 |
| 2643 | /* [RC 32] Interrupt register #0 read clear */ |
| 2644 | #define PXP2_REG_PXP2_INT_STS_CLR_0 0x120570 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2645 | /* [RW 32] Parity mask register #0 read/write */ |
| 2646 | #define PXP2_REG_PXP2_PRTY_MASK_0 0x120588 |
| 2647 | #define PXP2_REG_PXP2_PRTY_MASK_1 0x120598 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 2648 | /* [R 32] Parity register #0 read */ |
| 2649 | #define PXP2_REG_PXP2_PRTY_STS_0 0x12057c |
| 2650 | #define PXP2_REG_PXP2_PRTY_STS_1 0x12058c |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 2651 | /* [RC 32] Parity register #0 read clear */ |
| 2652 | #define PXP2_REG_PXP2_PRTY_STS_CLR_0 0x120580 |
| 2653 | #define PXP2_REG_PXP2_PRTY_STS_CLR_1 0x120590 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2654 | /* [R 1] Debug only: The 'almost full' indication from each fifo (gives |
| 2655 | indication about backpressure) */ |
| 2656 | #define PXP2_REG_RD_ALMOST_FULL_0 0x120424 |
| 2657 | /* [R 8] Debug only: The blocks counter - number of unused block ids */ |
| 2658 | #define PXP2_REG_RD_BLK_CNT 0x120418 |
| 2659 | /* [RW 8] Debug only: Total number of available blocks in Tetris Buffer. |
| 2660 | Must be bigger than 6. Normally should not be changed. */ |
| 2661 | #define PXP2_REG_RD_BLK_NUM_CFG 0x12040c |
| 2662 | /* [RW 2] CDU byte swapping mode configuration for master read requests */ |
| 2663 | #define PXP2_REG_RD_CDURD_SWAP_MODE 0x120404 |
| 2664 | /* [RW 1] When '1'; inputs to the PSWRD block are ignored */ |
| 2665 | #define PXP2_REG_RD_DISABLE_INPUTS 0x120374 |
| 2666 | /* [R 1] PSWRD internal memories initialization is done */ |
| 2667 | #define PXP2_REG_RD_INIT_DONE 0x120370 |
| 2668 | /* [RW 8] The maximum number of blocks in Tetris Buffer that can be |
| 2669 | allocated for vq10 */ |
| 2670 | #define PXP2_REG_RD_MAX_BLKS_VQ10 0x1203a0 |
| 2671 | /* [RW 8] The maximum number of blocks in Tetris Buffer that can be |
| 2672 | allocated for vq11 */ |
| 2673 | #define PXP2_REG_RD_MAX_BLKS_VQ11 0x1203a4 |
| 2674 | /* [RW 8] The maximum number of blocks in Tetris Buffer that can be |
| 2675 | allocated for vq17 */ |
| 2676 | #define PXP2_REG_RD_MAX_BLKS_VQ17 0x1203bc |
| 2677 | /* [RW 8] The maximum number of blocks in Tetris Buffer that can be |
| 2678 | allocated for vq18 */ |
| 2679 | #define PXP2_REG_RD_MAX_BLKS_VQ18 0x1203c0 |
| 2680 | /* [RW 8] The maximum number of blocks in Tetris Buffer that can be |
| 2681 | allocated for vq19 */ |
| 2682 | #define PXP2_REG_RD_MAX_BLKS_VQ19 0x1203c4 |
| 2683 | /* [RW 8] The maximum number of blocks in Tetris Buffer that can be |
| 2684 | allocated for vq22 */ |
| 2685 | #define PXP2_REG_RD_MAX_BLKS_VQ22 0x1203d0 |
| 2686 | /* [RW 8] The maximum number of blocks in Tetris Buffer that can be |
Eilon Greenstein | ca00392 | 2009-08-12 22:53:28 -0700 | [diff] [blame] | 2687 | allocated for vq25 */ |
| 2688 | #define PXP2_REG_RD_MAX_BLKS_VQ25 0x1203dc |
| 2689 | /* [RW 8] The maximum number of blocks in Tetris Buffer that can be |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2690 | allocated for vq6 */ |
| 2691 | #define PXP2_REG_RD_MAX_BLKS_VQ6 0x120390 |
| 2692 | /* [RW 8] The maximum number of blocks in Tetris Buffer that can be |
| 2693 | allocated for vq9 */ |
| 2694 | #define PXP2_REG_RD_MAX_BLKS_VQ9 0x12039c |
| 2695 | /* [RW 2] PBF byte swapping mode configuration for master read requests */ |
| 2696 | #define PXP2_REG_RD_PBF_SWAP_MODE 0x1203f4 |
| 2697 | /* [R 1] Debug only: Indication if delivery ports are idle */ |
| 2698 | #define PXP2_REG_RD_PORT_IS_IDLE_0 0x12041c |
| 2699 | #define PXP2_REG_RD_PORT_IS_IDLE_1 0x120420 |
| 2700 | /* [RW 2] QM byte swapping mode configuration for master read requests */ |
| 2701 | #define PXP2_REG_RD_QM_SWAP_MODE 0x1203f8 |
| 2702 | /* [R 7] Debug only: The SR counter - number of unused sub request ids */ |
| 2703 | #define PXP2_REG_RD_SR_CNT 0x120414 |
| 2704 | /* [RW 2] SRC byte swapping mode configuration for master read requests */ |
| 2705 | #define PXP2_REG_RD_SRC_SWAP_MODE 0x120400 |
| 2706 | /* [RW 7] Debug only: Total number of available PCI read sub-requests. Must |
| 2707 | be bigger than 1. Normally should not be changed. */ |
| 2708 | #define PXP2_REG_RD_SR_NUM_CFG 0x120408 |
| 2709 | /* [RW 1] Signals the PSWRD block to start initializing internal memories */ |
| 2710 | #define PXP2_REG_RD_START_INIT 0x12036c |
| 2711 | /* [RW 2] TM byte swapping mode configuration for master read requests */ |
| 2712 | #define PXP2_REG_RD_TM_SWAP_MODE 0x1203fc |
| 2713 | /* [RW 10] Bandwidth addition to VQ0 write requests */ |
| 2714 | #define PXP2_REG_RQ_BW_RD_ADD0 0x1201bc |
| 2715 | /* [RW 10] Bandwidth addition to VQ12 read requests */ |
| 2716 | #define PXP2_REG_RQ_BW_RD_ADD12 0x1201ec |
| 2717 | /* [RW 10] Bandwidth addition to VQ13 read requests */ |
| 2718 | #define PXP2_REG_RQ_BW_RD_ADD13 0x1201f0 |
| 2719 | /* [RW 10] Bandwidth addition to VQ14 read requests */ |
| 2720 | #define PXP2_REG_RQ_BW_RD_ADD14 0x1201f4 |
| 2721 | /* [RW 10] Bandwidth addition to VQ15 read requests */ |
| 2722 | #define PXP2_REG_RQ_BW_RD_ADD15 0x1201f8 |
| 2723 | /* [RW 10] Bandwidth addition to VQ16 read requests */ |
| 2724 | #define PXP2_REG_RQ_BW_RD_ADD16 0x1201fc |
| 2725 | /* [RW 10] Bandwidth addition to VQ17 read requests */ |
| 2726 | #define PXP2_REG_RQ_BW_RD_ADD17 0x120200 |
| 2727 | /* [RW 10] Bandwidth addition to VQ18 read requests */ |
| 2728 | #define PXP2_REG_RQ_BW_RD_ADD18 0x120204 |
| 2729 | /* [RW 10] Bandwidth addition to VQ19 read requests */ |
| 2730 | #define PXP2_REG_RQ_BW_RD_ADD19 0x120208 |
| 2731 | /* [RW 10] Bandwidth addition to VQ20 read requests */ |
| 2732 | #define PXP2_REG_RQ_BW_RD_ADD20 0x12020c |
| 2733 | /* [RW 10] Bandwidth addition to VQ22 read requests */ |
| 2734 | #define PXP2_REG_RQ_BW_RD_ADD22 0x120210 |
| 2735 | /* [RW 10] Bandwidth addition to VQ23 read requests */ |
| 2736 | #define PXP2_REG_RQ_BW_RD_ADD23 0x120214 |
| 2737 | /* [RW 10] Bandwidth addition to VQ24 read requests */ |
| 2738 | #define PXP2_REG_RQ_BW_RD_ADD24 0x120218 |
| 2739 | /* [RW 10] Bandwidth addition to VQ25 read requests */ |
| 2740 | #define PXP2_REG_RQ_BW_RD_ADD25 0x12021c |
| 2741 | /* [RW 10] Bandwidth addition to VQ26 read requests */ |
| 2742 | #define PXP2_REG_RQ_BW_RD_ADD26 0x120220 |
| 2743 | /* [RW 10] Bandwidth addition to VQ27 read requests */ |
| 2744 | #define PXP2_REG_RQ_BW_RD_ADD27 0x120224 |
| 2745 | /* [RW 10] Bandwidth addition to VQ4 read requests */ |
| 2746 | #define PXP2_REG_RQ_BW_RD_ADD4 0x1201cc |
| 2747 | /* [RW 10] Bandwidth addition to VQ5 read requests */ |
| 2748 | #define PXP2_REG_RQ_BW_RD_ADD5 0x1201d0 |
| 2749 | /* [RW 10] Bandwidth Typical L for VQ0 Read requests */ |
| 2750 | #define PXP2_REG_RQ_BW_RD_L0 0x1202ac |
| 2751 | /* [RW 10] Bandwidth Typical L for VQ12 Read requests */ |
| 2752 | #define PXP2_REG_RQ_BW_RD_L12 0x1202dc |
| 2753 | /* [RW 10] Bandwidth Typical L for VQ13 Read requests */ |
| 2754 | #define PXP2_REG_RQ_BW_RD_L13 0x1202e0 |
| 2755 | /* [RW 10] Bandwidth Typical L for VQ14 Read requests */ |
| 2756 | #define PXP2_REG_RQ_BW_RD_L14 0x1202e4 |
| 2757 | /* [RW 10] Bandwidth Typical L for VQ15 Read requests */ |
| 2758 | #define PXP2_REG_RQ_BW_RD_L15 0x1202e8 |
| 2759 | /* [RW 10] Bandwidth Typical L for VQ16 Read requests */ |
| 2760 | #define PXP2_REG_RQ_BW_RD_L16 0x1202ec |
| 2761 | /* [RW 10] Bandwidth Typical L for VQ17 Read requests */ |
| 2762 | #define PXP2_REG_RQ_BW_RD_L17 0x1202f0 |
| 2763 | /* [RW 10] Bandwidth Typical L for VQ18 Read requests */ |
| 2764 | #define PXP2_REG_RQ_BW_RD_L18 0x1202f4 |
| 2765 | /* [RW 10] Bandwidth Typical L for VQ19 Read requests */ |
| 2766 | #define PXP2_REG_RQ_BW_RD_L19 0x1202f8 |
| 2767 | /* [RW 10] Bandwidth Typical L for VQ20 Read requests */ |
| 2768 | #define PXP2_REG_RQ_BW_RD_L20 0x1202fc |
| 2769 | /* [RW 10] Bandwidth Typical L for VQ22 Read requests */ |
| 2770 | #define PXP2_REG_RQ_BW_RD_L22 0x120300 |
| 2771 | /* [RW 10] Bandwidth Typical L for VQ23 Read requests */ |
| 2772 | #define PXP2_REG_RQ_BW_RD_L23 0x120304 |
| 2773 | /* [RW 10] Bandwidth Typical L for VQ24 Read requests */ |
| 2774 | #define PXP2_REG_RQ_BW_RD_L24 0x120308 |
| 2775 | /* [RW 10] Bandwidth Typical L for VQ25 Read requests */ |
| 2776 | #define PXP2_REG_RQ_BW_RD_L25 0x12030c |
| 2777 | /* [RW 10] Bandwidth Typical L for VQ26 Read requests */ |
| 2778 | #define PXP2_REG_RQ_BW_RD_L26 0x120310 |
| 2779 | /* [RW 10] Bandwidth Typical L for VQ27 Read requests */ |
| 2780 | #define PXP2_REG_RQ_BW_RD_L27 0x120314 |
| 2781 | /* [RW 10] Bandwidth Typical L for VQ4 Read requests */ |
| 2782 | #define PXP2_REG_RQ_BW_RD_L4 0x1202bc |
| 2783 | /* [RW 10] Bandwidth Typical L for VQ5 Read- currently not used */ |
| 2784 | #define PXP2_REG_RQ_BW_RD_L5 0x1202c0 |
| 2785 | /* [RW 7] Bandwidth upper bound for VQ0 read requests */ |
| 2786 | #define PXP2_REG_RQ_BW_RD_UBOUND0 0x120234 |
| 2787 | /* [RW 7] Bandwidth upper bound for VQ12 read requests */ |
| 2788 | #define PXP2_REG_RQ_BW_RD_UBOUND12 0x120264 |
| 2789 | /* [RW 7] Bandwidth upper bound for VQ13 read requests */ |
| 2790 | #define PXP2_REG_RQ_BW_RD_UBOUND13 0x120268 |
| 2791 | /* [RW 7] Bandwidth upper bound for VQ14 read requests */ |
| 2792 | #define PXP2_REG_RQ_BW_RD_UBOUND14 0x12026c |
| 2793 | /* [RW 7] Bandwidth upper bound for VQ15 read requests */ |
| 2794 | #define PXP2_REG_RQ_BW_RD_UBOUND15 0x120270 |
| 2795 | /* [RW 7] Bandwidth upper bound for VQ16 read requests */ |
| 2796 | #define PXP2_REG_RQ_BW_RD_UBOUND16 0x120274 |
| 2797 | /* [RW 7] Bandwidth upper bound for VQ17 read requests */ |
| 2798 | #define PXP2_REG_RQ_BW_RD_UBOUND17 0x120278 |
| 2799 | /* [RW 7] Bandwidth upper bound for VQ18 read requests */ |
| 2800 | #define PXP2_REG_RQ_BW_RD_UBOUND18 0x12027c |
| 2801 | /* [RW 7] Bandwidth upper bound for VQ19 read requests */ |
| 2802 | #define PXP2_REG_RQ_BW_RD_UBOUND19 0x120280 |
| 2803 | /* [RW 7] Bandwidth upper bound for VQ20 read requests */ |
| 2804 | #define PXP2_REG_RQ_BW_RD_UBOUND20 0x120284 |
| 2805 | /* [RW 7] Bandwidth upper bound for VQ22 read requests */ |
| 2806 | #define PXP2_REG_RQ_BW_RD_UBOUND22 0x120288 |
| 2807 | /* [RW 7] Bandwidth upper bound for VQ23 read requests */ |
| 2808 | #define PXP2_REG_RQ_BW_RD_UBOUND23 0x12028c |
| 2809 | /* [RW 7] Bandwidth upper bound for VQ24 read requests */ |
| 2810 | #define PXP2_REG_RQ_BW_RD_UBOUND24 0x120290 |
| 2811 | /* [RW 7] Bandwidth upper bound for VQ25 read requests */ |
| 2812 | #define PXP2_REG_RQ_BW_RD_UBOUND25 0x120294 |
| 2813 | /* [RW 7] Bandwidth upper bound for VQ26 read requests */ |
| 2814 | #define PXP2_REG_RQ_BW_RD_UBOUND26 0x120298 |
| 2815 | /* [RW 7] Bandwidth upper bound for VQ27 read requests */ |
| 2816 | #define PXP2_REG_RQ_BW_RD_UBOUND27 0x12029c |
| 2817 | /* [RW 7] Bandwidth upper bound for VQ4 read requests */ |
| 2818 | #define PXP2_REG_RQ_BW_RD_UBOUND4 0x120244 |
| 2819 | /* [RW 7] Bandwidth upper bound for VQ5 read requests */ |
| 2820 | #define PXP2_REG_RQ_BW_RD_UBOUND5 0x120248 |
| 2821 | /* [RW 10] Bandwidth addition to VQ29 write requests */ |
| 2822 | #define PXP2_REG_RQ_BW_WR_ADD29 0x12022c |
| 2823 | /* [RW 10] Bandwidth addition to VQ30 write requests */ |
| 2824 | #define PXP2_REG_RQ_BW_WR_ADD30 0x120230 |
| 2825 | /* [RW 10] Bandwidth Typical L for VQ29 Write requests */ |
| 2826 | #define PXP2_REG_RQ_BW_WR_L29 0x12031c |
| 2827 | /* [RW 10] Bandwidth Typical L for VQ30 Write requests */ |
| 2828 | #define PXP2_REG_RQ_BW_WR_L30 0x120320 |
| 2829 | /* [RW 7] Bandwidth upper bound for VQ29 */ |
| 2830 | #define PXP2_REG_RQ_BW_WR_UBOUND29 0x1202a4 |
| 2831 | /* [RW 7] Bandwidth upper bound for VQ30 */ |
| 2832 | #define PXP2_REG_RQ_BW_WR_UBOUND30 0x1202a8 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2833 | /* [RW 18] external first_mem_addr field in L2P table for CDU module port 0 */ |
| 2834 | #define PXP2_REG_RQ_CDU0_EFIRST_MEM_ADDR 0x120008 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2835 | /* [RW 2] Endian mode for cdu */ |
| 2836 | #define PXP2_REG_RQ_CDU_ENDIAN_M 0x1201a0 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2837 | #define PXP2_REG_RQ_CDU_FIRST_ILT 0x12061c |
| 2838 | #define PXP2_REG_RQ_CDU_LAST_ILT 0x120620 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2839 | /* [RW 3] page size in L2P table for CDU module; -4k; -8k; -16k; -32k; -64k; |
| 2840 | -128k */ |
| 2841 | #define PXP2_REG_RQ_CDU_P_SIZE 0x120018 |
| 2842 | /* [R 1] 1' indicates that the requester has finished its internal |
| 2843 | configuration */ |
| 2844 | #define PXP2_REG_RQ_CFG_DONE 0x1201b4 |
| 2845 | /* [RW 2] Endian mode for debug */ |
| 2846 | #define PXP2_REG_RQ_DBG_ENDIAN_M 0x1201a4 |
| 2847 | /* [RW 1] When '1'; requests will enter input buffers but wont get out |
| 2848 | towards the glue */ |
| 2849 | #define PXP2_REG_RQ_DISABLE_INPUTS 0x120330 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 2850 | /* [RW 4] Determines alignment of write SRs when a request is split into |
| 2851 | * several SRs. 0 - 8B aligned. 1 - 64B aligned. 2 - 128B aligned. 3 - 256B |
| 2852 | * aligned. 4 - 512B aligned. */ |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2853 | #define PXP2_REG_RQ_DRAM_ALIGN 0x1205b0 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 2854 | /* [RW 4] Determines alignment of read SRs when a request is split into |
| 2855 | * several SRs. 0 - 8B aligned. 1 - 64B aligned. 2 - 128B aligned. 3 - 256B |
| 2856 | * aligned. 4 - 512B aligned. */ |
| 2857 | #define PXP2_REG_RQ_DRAM_ALIGN_RD 0x12092c |
| 2858 | /* [RW 1] when set the new alignment method (E2) will be applied; when reset |
| 2859 | * the original alignment method (E1 E1H) will be applied */ |
| 2860 | #define PXP2_REG_RQ_DRAM_ALIGN_SEL 0x120930 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2861 | /* [RW 1] If 1 ILT failiue will not result in ELT access; An interrupt will |
| 2862 | be asserted */ |
| 2863 | #define PXP2_REG_RQ_ELT_DISABLE 0x12066c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2864 | /* [RW 2] Endian mode for hc */ |
| 2865 | #define PXP2_REG_RQ_HC_ENDIAN_M 0x1201a8 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2866 | /* [RW 1] when '0' ILT logic will work as in A0; otherwise B0; for back |
| 2867 | compatibility needs; Note that different registers are used per mode */ |
| 2868 | #define PXP2_REG_RQ_ILT_MODE 0x1205b4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2869 | /* [WB 53] Onchip address table */ |
| 2870 | #define PXP2_REG_RQ_ONCHIP_AT 0x122000 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2871 | /* [WB 53] Onchip address table - B0 */ |
| 2872 | #define PXP2_REG_RQ_ONCHIP_AT_B0 0x128000 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 2873 | /* [RW 13] Pending read limiter threshold; in Dwords */ |
| 2874 | #define PXP2_REG_RQ_PDR_LIMIT 0x12033c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2875 | /* [RW 2] Endian mode for qm */ |
| 2876 | #define PXP2_REG_RQ_QM_ENDIAN_M 0x120194 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2877 | #define PXP2_REG_RQ_QM_FIRST_ILT 0x120634 |
| 2878 | #define PXP2_REG_RQ_QM_LAST_ILT 0x120638 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2879 | /* [RW 3] page size in L2P table for QM module; -4k; -8k; -16k; -32k; -64k; |
| 2880 | -128k */ |
| 2881 | #define PXP2_REG_RQ_QM_P_SIZE 0x120050 |
Eilon Greenstein | 3347162 | 2008-08-13 15:59:08 -0700 | [diff] [blame] | 2882 | /* [RW 1] 1' indicates that the RBC has finished configuring the PSWRQ */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2883 | #define PXP2_REG_RQ_RBC_DONE 0x1201b0 |
| 2884 | /* [RW 3] Max burst size filed for read requests port 0; 000 - 128B; |
| 2885 | 001:256B; 010: 512B; 11:1K:100:2K; 01:4K */ |
| 2886 | #define PXP2_REG_RQ_RD_MBS0 0x120160 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 2887 | /* [RW 3] Max burst size filed for read requests port 1; 000 - 128B; |
| 2888 | 001:256B; 010: 512B; 11:1K:100:2K; 01:4K */ |
| 2889 | #define PXP2_REG_RQ_RD_MBS1 0x120168 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2890 | /* [RW 2] Endian mode for src */ |
| 2891 | #define PXP2_REG_RQ_SRC_ENDIAN_M 0x12019c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2892 | #define PXP2_REG_RQ_SRC_FIRST_ILT 0x12063c |
| 2893 | #define PXP2_REG_RQ_SRC_LAST_ILT 0x120640 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2894 | /* [RW 3] page size in L2P table for SRC module; -4k; -8k; -16k; -32k; -64k; |
| 2895 | -128k */ |
| 2896 | #define PXP2_REG_RQ_SRC_P_SIZE 0x12006c |
| 2897 | /* [RW 2] Endian mode for tm */ |
| 2898 | #define PXP2_REG_RQ_TM_ENDIAN_M 0x120198 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2899 | #define PXP2_REG_RQ_TM_FIRST_ILT 0x120644 |
| 2900 | #define PXP2_REG_RQ_TM_LAST_ILT 0x120648 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2901 | /* [RW 3] page size in L2P table for TM module; -4k; -8k; -16k; -32k; -64k; |
| 2902 | -128k */ |
| 2903 | #define PXP2_REG_RQ_TM_P_SIZE 0x120034 |
| 2904 | /* [R 5] Number of entries in the ufifo; his fifo has l2p completions */ |
| 2905 | #define PXP2_REG_RQ_UFIFO_NUM_OF_ENTRY 0x12080c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2906 | /* [RW 18] external first_mem_addr field in L2P table for USDM module port 0 */ |
| 2907 | #define PXP2_REG_RQ_USDM0_EFIRST_MEM_ADDR 0x120094 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2908 | /* [R 8] Number of entries occupied by vq 0 in pswrq memory */ |
| 2909 | #define PXP2_REG_RQ_VQ0_ENTRY_CNT 0x120810 |
| 2910 | /* [R 8] Number of entries occupied by vq 10 in pswrq memory */ |
| 2911 | #define PXP2_REG_RQ_VQ10_ENTRY_CNT 0x120818 |
| 2912 | /* [R 8] Number of entries occupied by vq 11 in pswrq memory */ |
| 2913 | #define PXP2_REG_RQ_VQ11_ENTRY_CNT 0x120820 |
| 2914 | /* [R 8] Number of entries occupied by vq 12 in pswrq memory */ |
| 2915 | #define PXP2_REG_RQ_VQ12_ENTRY_CNT 0x120828 |
| 2916 | /* [R 8] Number of entries occupied by vq 13 in pswrq memory */ |
| 2917 | #define PXP2_REG_RQ_VQ13_ENTRY_CNT 0x120830 |
| 2918 | /* [R 8] Number of entries occupied by vq 14 in pswrq memory */ |
| 2919 | #define PXP2_REG_RQ_VQ14_ENTRY_CNT 0x120838 |
| 2920 | /* [R 8] Number of entries occupied by vq 15 in pswrq memory */ |
| 2921 | #define PXP2_REG_RQ_VQ15_ENTRY_CNT 0x120840 |
| 2922 | /* [R 8] Number of entries occupied by vq 16 in pswrq memory */ |
| 2923 | #define PXP2_REG_RQ_VQ16_ENTRY_CNT 0x120848 |
| 2924 | /* [R 8] Number of entries occupied by vq 17 in pswrq memory */ |
| 2925 | #define PXP2_REG_RQ_VQ17_ENTRY_CNT 0x120850 |
| 2926 | /* [R 8] Number of entries occupied by vq 18 in pswrq memory */ |
| 2927 | #define PXP2_REG_RQ_VQ18_ENTRY_CNT 0x120858 |
| 2928 | /* [R 8] Number of entries occupied by vq 19 in pswrq memory */ |
| 2929 | #define PXP2_REG_RQ_VQ19_ENTRY_CNT 0x120860 |
| 2930 | /* [R 8] Number of entries occupied by vq 1 in pswrq memory */ |
| 2931 | #define PXP2_REG_RQ_VQ1_ENTRY_CNT 0x120868 |
| 2932 | /* [R 8] Number of entries occupied by vq 20 in pswrq memory */ |
| 2933 | #define PXP2_REG_RQ_VQ20_ENTRY_CNT 0x120870 |
| 2934 | /* [R 8] Number of entries occupied by vq 21 in pswrq memory */ |
| 2935 | #define PXP2_REG_RQ_VQ21_ENTRY_CNT 0x120878 |
| 2936 | /* [R 8] Number of entries occupied by vq 22 in pswrq memory */ |
| 2937 | #define PXP2_REG_RQ_VQ22_ENTRY_CNT 0x120880 |
| 2938 | /* [R 8] Number of entries occupied by vq 23 in pswrq memory */ |
| 2939 | #define PXP2_REG_RQ_VQ23_ENTRY_CNT 0x120888 |
| 2940 | /* [R 8] Number of entries occupied by vq 24 in pswrq memory */ |
| 2941 | #define PXP2_REG_RQ_VQ24_ENTRY_CNT 0x120890 |
| 2942 | /* [R 8] Number of entries occupied by vq 25 in pswrq memory */ |
| 2943 | #define PXP2_REG_RQ_VQ25_ENTRY_CNT 0x120898 |
| 2944 | /* [R 8] Number of entries occupied by vq 26 in pswrq memory */ |
| 2945 | #define PXP2_REG_RQ_VQ26_ENTRY_CNT 0x1208a0 |
| 2946 | /* [R 8] Number of entries occupied by vq 27 in pswrq memory */ |
| 2947 | #define PXP2_REG_RQ_VQ27_ENTRY_CNT 0x1208a8 |
| 2948 | /* [R 8] Number of entries occupied by vq 28 in pswrq memory */ |
| 2949 | #define PXP2_REG_RQ_VQ28_ENTRY_CNT 0x1208b0 |
| 2950 | /* [R 8] Number of entries occupied by vq 29 in pswrq memory */ |
| 2951 | #define PXP2_REG_RQ_VQ29_ENTRY_CNT 0x1208b8 |
| 2952 | /* [R 8] Number of entries occupied by vq 2 in pswrq memory */ |
| 2953 | #define PXP2_REG_RQ_VQ2_ENTRY_CNT 0x1208c0 |
| 2954 | /* [R 8] Number of entries occupied by vq 30 in pswrq memory */ |
| 2955 | #define PXP2_REG_RQ_VQ30_ENTRY_CNT 0x1208c8 |
| 2956 | /* [R 8] Number of entries occupied by vq 31 in pswrq memory */ |
| 2957 | #define PXP2_REG_RQ_VQ31_ENTRY_CNT 0x1208d0 |
| 2958 | /* [R 8] Number of entries occupied by vq 3 in pswrq memory */ |
| 2959 | #define PXP2_REG_RQ_VQ3_ENTRY_CNT 0x1208d8 |
| 2960 | /* [R 8] Number of entries occupied by vq 4 in pswrq memory */ |
| 2961 | #define PXP2_REG_RQ_VQ4_ENTRY_CNT 0x1208e0 |
| 2962 | /* [R 8] Number of entries occupied by vq 5 in pswrq memory */ |
| 2963 | #define PXP2_REG_RQ_VQ5_ENTRY_CNT 0x1208e8 |
| 2964 | /* [R 8] Number of entries occupied by vq 6 in pswrq memory */ |
| 2965 | #define PXP2_REG_RQ_VQ6_ENTRY_CNT 0x1208f0 |
| 2966 | /* [R 8] Number of entries occupied by vq 7 in pswrq memory */ |
| 2967 | #define PXP2_REG_RQ_VQ7_ENTRY_CNT 0x1208f8 |
| 2968 | /* [R 8] Number of entries occupied by vq 8 in pswrq memory */ |
| 2969 | #define PXP2_REG_RQ_VQ8_ENTRY_CNT 0x120900 |
| 2970 | /* [R 8] Number of entries occupied by vq 9 in pswrq memory */ |
| 2971 | #define PXP2_REG_RQ_VQ9_ENTRY_CNT 0x120908 |
| 2972 | /* [RW 3] Max burst size filed for write requests port 0; 000 - 128B; |
| 2973 | 001:256B; 010: 512B; */ |
| 2974 | #define PXP2_REG_RQ_WR_MBS0 0x12015c |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 2975 | /* [RW 3] Max burst size filed for write requests port 1; 000 - 128B; |
| 2976 | 001:256B; 010: 512B; */ |
| 2977 | #define PXP2_REG_RQ_WR_MBS1 0x120164 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2978 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the |
| 2979 | buffer reaches this number has_payload will be asserted */ |
| 2980 | #define PXP2_REG_WR_CDU_MPS 0x1205f0 |
| 2981 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the |
| 2982 | buffer reaches this number has_payload will be asserted */ |
| 2983 | #define PXP2_REG_WR_CSDM_MPS 0x1205d0 |
| 2984 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the |
| 2985 | buffer reaches this number has_payload will be asserted */ |
| 2986 | #define PXP2_REG_WR_DBG_MPS 0x1205e8 |
| 2987 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the |
| 2988 | buffer reaches this number has_payload will be asserted */ |
| 2989 | #define PXP2_REG_WR_DMAE_MPS 0x1205ec |
Eilon Greenstein | 3347162 | 2008-08-13 15:59:08 -0700 | [diff] [blame] | 2990 | /* [RW 10] if Number of entries in dmae fifo will be higher than this |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 2991 | threshold then has_payload indication will be asserted; the default value |
| 2992 | should be equal to > write MBS size! */ |
| 2993 | #define PXP2_REG_WR_DMAE_TH 0x120368 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 2994 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the |
| 2995 | buffer reaches this number has_payload will be asserted */ |
| 2996 | #define PXP2_REG_WR_HC_MPS 0x1205c8 |
| 2997 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the |
| 2998 | buffer reaches this number has_payload will be asserted */ |
| 2999 | #define PXP2_REG_WR_QM_MPS 0x1205dc |
| 3000 | /* [RW 1] 0 - working in A0 mode; - working in B0 mode */ |
| 3001 | #define PXP2_REG_WR_REV_MODE 0x120670 |
| 3002 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the |
| 3003 | buffer reaches this number has_payload will be asserted */ |
| 3004 | #define PXP2_REG_WR_SRC_MPS 0x1205e4 |
| 3005 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the |
| 3006 | buffer reaches this number has_payload will be asserted */ |
| 3007 | #define PXP2_REG_WR_TM_MPS 0x1205e0 |
| 3008 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the |
| 3009 | buffer reaches this number has_payload will be asserted */ |
| 3010 | #define PXP2_REG_WR_TSDM_MPS 0x1205d4 |
Eilon Greenstein | 3347162 | 2008-08-13 15:59:08 -0700 | [diff] [blame] | 3011 | /* [RW 10] if Number of entries in usdmdp fifo will be higher than this |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 3012 | threshold then has_payload indication will be asserted; the default value |
| 3013 | should be equal to > write MBS size! */ |
| 3014 | #define PXP2_REG_WR_USDMDP_TH 0x120348 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3015 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the |
| 3016 | buffer reaches this number has_payload will be asserted */ |
| 3017 | #define PXP2_REG_WR_USDM_MPS 0x1205cc |
| 3018 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the |
| 3019 | buffer reaches this number has_payload will be asserted */ |
| 3020 | #define PXP2_REG_WR_XSDM_MPS 0x1205d8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3021 | /* [R 1] debug only: Indication if PSWHST arbiter is idle */ |
| 3022 | #define PXP_REG_HST_ARB_IS_IDLE 0x103004 |
| 3023 | /* [R 8] debug only: A bit mask for all PSWHST arbiter clients. '1' means |
| 3024 | this client is waiting for the arbiter. */ |
| 3025 | #define PXP_REG_HST_CLIENTS_WAITING_TO_ARB 0x103008 |
Vladislav Zolotarov | 72fd071 | 2010-04-19 01:13:12 +0000 | [diff] [blame] | 3026 | /* [RW 1] When 1; doorbells are discarded and not passed to doorbell queue |
| 3027 | block. Should be used for close the gates. */ |
| 3028 | #define PXP_REG_HST_DISCARD_DOORBELLS 0x1030a4 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3029 | /* [R 1] debug only: '1' means this PSWHST is discarding doorbells. This bit |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 3030 | should update according to 'hst_discard_doorbells' register when the state |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3031 | machine is idle */ |
| 3032 | #define PXP_REG_HST_DISCARD_DOORBELLS_STATUS 0x1030a0 |
Vladislav Zolotarov | 72fd071 | 2010-04-19 01:13:12 +0000 | [diff] [blame] | 3033 | /* [RW 1] When 1; new internal writes arriving to the block are discarded. |
| 3034 | Should be used for close the gates. */ |
| 3035 | #define PXP_REG_HST_DISCARD_INTERNAL_WRITES 0x1030a8 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3036 | /* [R 6] debug only: A bit mask for all PSWHST internal write clients. '1' |
| 3037 | means this PSWHST is discarding inputs from this client. Each bit should |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 3038 | update according to 'hst_discard_internal_writes' register when the state |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3039 | machine is idle. */ |
| 3040 | #define PXP_REG_HST_DISCARD_INTERNAL_WRITES_STATUS 0x10309c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3041 | /* [WB 160] Used for initialization of the inbound interrupts memory */ |
| 3042 | #define PXP_REG_HST_INBOUND_INT 0x103800 |
| 3043 | /* [RW 32] Interrupt mask register #0 read/write */ |
| 3044 | #define PXP_REG_PXP_INT_MASK_0 0x103074 |
| 3045 | #define PXP_REG_PXP_INT_MASK_1 0x103084 |
| 3046 | /* [R 32] Interrupt register #0 read */ |
| 3047 | #define PXP_REG_PXP_INT_STS_0 0x103068 |
| 3048 | #define PXP_REG_PXP_INT_STS_1 0x103078 |
| 3049 | /* [RC 32] Interrupt register #0 read clear */ |
| 3050 | #define PXP_REG_PXP_INT_STS_CLR_0 0x10306c |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 3051 | #define PXP_REG_PXP_INT_STS_CLR_1 0x10307c |
| 3052 | /* [RW 27] Parity mask register #0 read/write */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3053 | #define PXP_REG_PXP_PRTY_MASK 0x103094 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 3054 | /* [R 26] Parity register #0 read */ |
| 3055 | #define PXP_REG_PXP_PRTY_STS 0x103088 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 3056 | /* [RC 27] Parity register #0 read clear */ |
| 3057 | #define PXP_REG_PXP_PRTY_STS_CLR 0x10308c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3058 | /* [RW 4] The activity counter initial increment value sent in the load |
| 3059 | request */ |
| 3060 | #define QM_REG_ACTCTRINITVAL_0 0x168040 |
| 3061 | #define QM_REG_ACTCTRINITVAL_1 0x168044 |
| 3062 | #define QM_REG_ACTCTRINITVAL_2 0x168048 |
| 3063 | #define QM_REG_ACTCTRINITVAL_3 0x16804c |
| 3064 | /* [RW 32] The base logical address (in bytes) of each physical queue. The |
| 3065 | index I represents the physical queue number. The 12 lsbs are ignore and |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3066 | considered zero so practically there are only 20 bits in this register; |
| 3067 | queues 63-0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3068 | #define QM_REG_BASEADDR 0x168900 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3069 | /* [RW 32] The base logical address (in bytes) of each physical queue. The |
| 3070 | index I represents the physical queue number. The 12 lsbs are ignore and |
| 3071 | considered zero so practically there are only 20 bits in this register; |
| 3072 | queues 127-64 */ |
| 3073 | #define QM_REG_BASEADDR_EXT_A 0x16e100 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3074 | /* [RW 16] The byte credit cost for each task. This value is for both ports */ |
| 3075 | #define QM_REG_BYTECRDCOST 0x168234 |
| 3076 | /* [RW 16] The initial byte credit value for both ports. */ |
| 3077 | #define QM_REG_BYTECRDINITVAL 0x168238 |
| 3078 | /* [RW 32] A bit per physical queue. If the bit is cleared then the physical |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3079 | queue uses port 0 else it uses port 1; queues 31-0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3080 | #define QM_REG_BYTECRDPORT_LSB 0x168228 |
| 3081 | /* [RW 32] A bit per physical queue. If the bit is cleared then the physical |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3082 | queue uses port 0 else it uses port 1; queues 95-64 */ |
| 3083 | #define QM_REG_BYTECRDPORT_LSB_EXT_A 0x16e520 |
| 3084 | /* [RW 32] A bit per physical queue. If the bit is cleared then the physical |
| 3085 | queue uses port 0 else it uses port 1; queues 63-32 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3086 | #define QM_REG_BYTECRDPORT_MSB 0x168224 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3087 | /* [RW 32] A bit per physical queue. If the bit is cleared then the physical |
| 3088 | queue uses port 0 else it uses port 1; queues 127-96 */ |
| 3089 | #define QM_REG_BYTECRDPORT_MSB_EXT_A 0x16e51c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3090 | /* [RW 16] The byte credit value that if above the QM is considered almost |
| 3091 | full */ |
| 3092 | #define QM_REG_BYTECREDITAFULLTHR 0x168094 |
| 3093 | /* [RW 4] The initial credit for interface */ |
| 3094 | #define QM_REG_CMINITCRD_0 0x1680cc |
| 3095 | #define QM_REG_CMINITCRD_1 0x1680d0 |
| 3096 | #define QM_REG_CMINITCRD_2 0x1680d4 |
| 3097 | #define QM_REG_CMINITCRD_3 0x1680d8 |
| 3098 | #define QM_REG_CMINITCRD_4 0x1680dc |
| 3099 | #define QM_REG_CMINITCRD_5 0x1680e0 |
| 3100 | #define QM_REG_CMINITCRD_6 0x1680e4 |
| 3101 | #define QM_REG_CMINITCRD_7 0x1680e8 |
| 3102 | /* [RW 8] A mask bit per CM interface. If this bit is 0 then this interface |
| 3103 | is masked */ |
| 3104 | #define QM_REG_CMINTEN 0x1680ec |
| 3105 | /* [RW 12] A bit vector which indicates which one of the queues are tied to |
| 3106 | interface 0 */ |
| 3107 | #define QM_REG_CMINTVOQMASK_0 0x1681f4 |
| 3108 | #define QM_REG_CMINTVOQMASK_1 0x1681f8 |
| 3109 | #define QM_REG_CMINTVOQMASK_2 0x1681fc |
| 3110 | #define QM_REG_CMINTVOQMASK_3 0x168200 |
| 3111 | #define QM_REG_CMINTVOQMASK_4 0x168204 |
| 3112 | #define QM_REG_CMINTVOQMASK_5 0x168208 |
| 3113 | #define QM_REG_CMINTVOQMASK_6 0x16820c |
| 3114 | #define QM_REG_CMINTVOQMASK_7 0x168210 |
| 3115 | /* [RW 20] The number of connections divided by 16 which dictates the size |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3116 | of each queue which belongs to even function number. */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3117 | #define QM_REG_CONNNUM_0 0x168020 |
| 3118 | /* [R 6] Keep the fill level of the fifo from write client 4 */ |
| 3119 | #define QM_REG_CQM_WRC_FIFOLVL 0x168018 |
| 3120 | /* [RW 8] The context regions sent in the CFC load request */ |
| 3121 | #define QM_REG_CTXREG_0 0x168030 |
| 3122 | #define QM_REG_CTXREG_1 0x168034 |
| 3123 | #define QM_REG_CTXREG_2 0x168038 |
| 3124 | #define QM_REG_CTXREG_3 0x16803c |
| 3125 | /* [RW 12] The VOQ mask used to select the VOQs which needs to be full for |
| 3126 | bypass enable */ |
| 3127 | #define QM_REG_ENBYPVOQMASK 0x16823c |
| 3128 | /* [RW 32] A bit mask per each physical queue. If a bit is set then the |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3129 | physical queue uses the byte credit; queues 31-0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3130 | #define QM_REG_ENBYTECRD_LSB 0x168220 |
| 3131 | /* [RW 32] A bit mask per each physical queue. If a bit is set then the |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3132 | physical queue uses the byte credit; queues 95-64 */ |
| 3133 | #define QM_REG_ENBYTECRD_LSB_EXT_A 0x16e518 |
| 3134 | /* [RW 32] A bit mask per each physical queue. If a bit is set then the |
| 3135 | physical queue uses the byte credit; queues 63-32 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3136 | #define QM_REG_ENBYTECRD_MSB 0x16821c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3137 | /* [RW 32] A bit mask per each physical queue. If a bit is set then the |
| 3138 | physical queue uses the byte credit; queues 127-96 */ |
| 3139 | #define QM_REG_ENBYTECRD_MSB_EXT_A 0x16e514 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3140 | /* [RW 4] If cleared then the secondary interface will not be served by the |
| 3141 | RR arbiter */ |
| 3142 | #define QM_REG_ENSEC 0x1680f0 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3143 | /* [RW 32] NA */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3144 | #define QM_REG_FUNCNUMSEL_LSB 0x168230 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3145 | /* [RW 32] NA */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3146 | #define QM_REG_FUNCNUMSEL_MSB 0x16822c |
| 3147 | /* [RW 32] A mask register to mask the Almost empty signals which will not |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3148 | be use for the almost empty indication to the HW block; queues 31:0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3149 | #define QM_REG_HWAEMPTYMASK_LSB 0x168218 |
| 3150 | /* [RW 32] A mask register to mask the Almost empty signals which will not |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3151 | be use for the almost empty indication to the HW block; queues 95-64 */ |
| 3152 | #define QM_REG_HWAEMPTYMASK_LSB_EXT_A 0x16e510 |
| 3153 | /* [RW 32] A mask register to mask the Almost empty signals which will not |
| 3154 | be use for the almost empty indication to the HW block; queues 63:32 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3155 | #define QM_REG_HWAEMPTYMASK_MSB 0x168214 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3156 | /* [RW 32] A mask register to mask the Almost empty signals which will not |
| 3157 | be use for the almost empty indication to the HW block; queues 127-96 */ |
| 3158 | #define QM_REG_HWAEMPTYMASK_MSB_EXT_A 0x16e50c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3159 | /* [RW 4] The number of outstanding request to CFC */ |
| 3160 | #define QM_REG_OUTLDREQ 0x168804 |
| 3161 | /* [RC 1] A flag to indicate that overflow error occurred in one of the |
| 3162 | queues. */ |
| 3163 | #define QM_REG_OVFERROR 0x16805c |
André Goddard Rosa | af901ca | 2009-11-14 13:09:05 -0200 | [diff] [blame] | 3164 | /* [RC 7] the Q where the overflow occurs */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3165 | #define QM_REG_OVFQNUM 0x168058 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3166 | /* [R 16] Pause state for physical queues 15-0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3167 | #define QM_REG_PAUSESTATE0 0x168410 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3168 | /* [R 16] Pause state for physical queues 31-16 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3169 | #define QM_REG_PAUSESTATE1 0x168414 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3170 | /* [R 16] Pause state for physical queues 47-32 */ |
| 3171 | #define QM_REG_PAUSESTATE2 0x16e684 |
| 3172 | /* [R 16] Pause state for physical queues 63-48 */ |
| 3173 | #define QM_REG_PAUSESTATE3 0x16e688 |
| 3174 | /* [R 16] Pause state for physical queues 79-64 */ |
| 3175 | #define QM_REG_PAUSESTATE4 0x16e68c |
| 3176 | /* [R 16] Pause state for physical queues 95-80 */ |
| 3177 | #define QM_REG_PAUSESTATE5 0x16e690 |
| 3178 | /* [R 16] Pause state for physical queues 111-96 */ |
| 3179 | #define QM_REG_PAUSESTATE6 0x16e694 |
| 3180 | /* [R 16] Pause state for physical queues 127-112 */ |
| 3181 | #define QM_REG_PAUSESTATE7 0x16e698 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3182 | /* [RW 2] The PCI attributes field used in the PCI request. */ |
| 3183 | #define QM_REG_PCIREQAT 0x168054 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 3184 | #define QM_REG_PF_EN 0x16e70c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3185 | /* [R 16] The byte credit of port 0 */ |
| 3186 | #define QM_REG_PORT0BYTECRD 0x168300 |
| 3187 | /* [R 16] The byte credit of port 1 */ |
| 3188 | #define QM_REG_PORT1BYTECRD 0x168304 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3189 | /* [RW 3] pci function number of queues 15-0 */ |
| 3190 | #define QM_REG_PQ2PCIFUNC_0 0x16e6bc |
| 3191 | #define QM_REG_PQ2PCIFUNC_1 0x16e6c0 |
| 3192 | #define QM_REG_PQ2PCIFUNC_2 0x16e6c4 |
| 3193 | #define QM_REG_PQ2PCIFUNC_3 0x16e6c8 |
| 3194 | #define QM_REG_PQ2PCIFUNC_4 0x16e6cc |
| 3195 | #define QM_REG_PQ2PCIFUNC_5 0x16e6d0 |
| 3196 | #define QM_REG_PQ2PCIFUNC_6 0x16e6d4 |
| 3197 | #define QM_REG_PQ2PCIFUNC_7 0x16e6d8 |
| 3198 | /* [WB 54] Pointer Table Memory for queues 63-0; The mapping is as follow: |
| 3199 | ptrtbl[53:30] read pointer; ptrtbl[29:6] write pointer; ptrtbl[5:4] read |
| 3200 | bank0; ptrtbl[3:2] read bank 1; ptrtbl[1:0] write bank; */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3201 | #define QM_REG_PTRTBL 0x168a00 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3202 | /* [WB 54] Pointer Table Memory for queues 127-64; The mapping is as follow: |
| 3203 | ptrtbl[53:30] read pointer; ptrtbl[29:6] write pointer; ptrtbl[5:4] read |
| 3204 | bank0; ptrtbl[3:2] read bank 1; ptrtbl[1:0] write bank; */ |
| 3205 | #define QM_REG_PTRTBL_EXT_A 0x16e200 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3206 | /* [RW 2] Interrupt mask register #0 read/write */ |
| 3207 | #define QM_REG_QM_INT_MASK 0x168444 |
| 3208 | /* [R 2] Interrupt register #0 read */ |
| 3209 | #define QM_REG_QM_INT_STS 0x168438 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3210 | /* [RW 12] Parity mask register #0 read/write */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3211 | #define QM_REG_QM_PRTY_MASK 0x168454 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3212 | /* [R 12] Parity register #0 read */ |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 3213 | #define QM_REG_QM_PRTY_STS 0x168448 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 3214 | /* [RC 12] Parity register #0 read clear */ |
| 3215 | #define QM_REG_QM_PRTY_STS_CLR 0x16844c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3216 | /* [R 32] Current queues in pipeline: Queues from 32 to 63 */ |
| 3217 | #define QM_REG_QSTATUS_HIGH 0x16802c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3218 | /* [R 32] Current queues in pipeline: Queues from 96 to 127 */ |
| 3219 | #define QM_REG_QSTATUS_HIGH_EXT_A 0x16e408 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3220 | /* [R 32] Current queues in pipeline: Queues from 0 to 31 */ |
| 3221 | #define QM_REG_QSTATUS_LOW 0x168028 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3222 | /* [R 32] Current queues in pipeline: Queues from 64 to 95 */ |
| 3223 | #define QM_REG_QSTATUS_LOW_EXT_A 0x16e404 |
| 3224 | /* [R 24] The number of tasks queued for each queue; queues 63-0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3225 | #define QM_REG_QTASKCTR_0 0x168308 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3226 | /* [R 24] The number of tasks queued for each queue; queues 127-64 */ |
| 3227 | #define QM_REG_QTASKCTR_EXT_A_0 0x16e584 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3228 | /* [RW 4] Queue tied to VOQ */ |
| 3229 | #define QM_REG_QVOQIDX_0 0x1680f4 |
| 3230 | #define QM_REG_QVOQIDX_10 0x16811c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3231 | #define QM_REG_QVOQIDX_100 0x16e49c |
| 3232 | #define QM_REG_QVOQIDX_101 0x16e4a0 |
| 3233 | #define QM_REG_QVOQIDX_102 0x16e4a4 |
| 3234 | #define QM_REG_QVOQIDX_103 0x16e4a8 |
| 3235 | #define QM_REG_QVOQIDX_104 0x16e4ac |
| 3236 | #define QM_REG_QVOQIDX_105 0x16e4b0 |
| 3237 | #define QM_REG_QVOQIDX_106 0x16e4b4 |
| 3238 | #define QM_REG_QVOQIDX_107 0x16e4b8 |
| 3239 | #define QM_REG_QVOQIDX_108 0x16e4bc |
| 3240 | #define QM_REG_QVOQIDX_109 0x16e4c0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3241 | #define QM_REG_QVOQIDX_11 0x168120 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3242 | #define QM_REG_QVOQIDX_110 0x16e4c4 |
| 3243 | #define QM_REG_QVOQIDX_111 0x16e4c8 |
| 3244 | #define QM_REG_QVOQIDX_112 0x16e4cc |
| 3245 | #define QM_REG_QVOQIDX_113 0x16e4d0 |
| 3246 | #define QM_REG_QVOQIDX_114 0x16e4d4 |
| 3247 | #define QM_REG_QVOQIDX_115 0x16e4d8 |
| 3248 | #define QM_REG_QVOQIDX_116 0x16e4dc |
| 3249 | #define QM_REG_QVOQIDX_117 0x16e4e0 |
| 3250 | #define QM_REG_QVOQIDX_118 0x16e4e4 |
| 3251 | #define QM_REG_QVOQIDX_119 0x16e4e8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3252 | #define QM_REG_QVOQIDX_12 0x168124 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3253 | #define QM_REG_QVOQIDX_120 0x16e4ec |
| 3254 | #define QM_REG_QVOQIDX_121 0x16e4f0 |
| 3255 | #define QM_REG_QVOQIDX_122 0x16e4f4 |
| 3256 | #define QM_REG_QVOQIDX_123 0x16e4f8 |
| 3257 | #define QM_REG_QVOQIDX_124 0x16e4fc |
| 3258 | #define QM_REG_QVOQIDX_125 0x16e500 |
| 3259 | #define QM_REG_QVOQIDX_126 0x16e504 |
| 3260 | #define QM_REG_QVOQIDX_127 0x16e508 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3261 | #define QM_REG_QVOQIDX_13 0x168128 |
| 3262 | #define QM_REG_QVOQIDX_14 0x16812c |
| 3263 | #define QM_REG_QVOQIDX_15 0x168130 |
| 3264 | #define QM_REG_QVOQIDX_16 0x168134 |
| 3265 | #define QM_REG_QVOQIDX_17 0x168138 |
| 3266 | #define QM_REG_QVOQIDX_21 0x168148 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3267 | #define QM_REG_QVOQIDX_22 0x16814c |
| 3268 | #define QM_REG_QVOQIDX_23 0x168150 |
| 3269 | #define QM_REG_QVOQIDX_24 0x168154 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3270 | #define QM_REG_QVOQIDX_25 0x168158 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3271 | #define QM_REG_QVOQIDX_26 0x16815c |
| 3272 | #define QM_REG_QVOQIDX_27 0x168160 |
| 3273 | #define QM_REG_QVOQIDX_28 0x168164 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3274 | #define QM_REG_QVOQIDX_29 0x168168 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3275 | #define QM_REG_QVOQIDX_30 0x16816c |
| 3276 | #define QM_REG_QVOQIDX_31 0x168170 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3277 | #define QM_REG_QVOQIDX_32 0x168174 |
| 3278 | #define QM_REG_QVOQIDX_33 0x168178 |
| 3279 | #define QM_REG_QVOQIDX_34 0x16817c |
| 3280 | #define QM_REG_QVOQIDX_35 0x168180 |
| 3281 | #define QM_REG_QVOQIDX_36 0x168184 |
| 3282 | #define QM_REG_QVOQIDX_37 0x168188 |
| 3283 | #define QM_REG_QVOQIDX_38 0x16818c |
| 3284 | #define QM_REG_QVOQIDX_39 0x168190 |
| 3285 | #define QM_REG_QVOQIDX_40 0x168194 |
| 3286 | #define QM_REG_QVOQIDX_41 0x168198 |
| 3287 | #define QM_REG_QVOQIDX_42 0x16819c |
| 3288 | #define QM_REG_QVOQIDX_43 0x1681a0 |
| 3289 | #define QM_REG_QVOQIDX_44 0x1681a4 |
| 3290 | #define QM_REG_QVOQIDX_45 0x1681a8 |
| 3291 | #define QM_REG_QVOQIDX_46 0x1681ac |
| 3292 | #define QM_REG_QVOQIDX_47 0x1681b0 |
| 3293 | #define QM_REG_QVOQIDX_48 0x1681b4 |
| 3294 | #define QM_REG_QVOQIDX_49 0x1681b8 |
| 3295 | #define QM_REG_QVOQIDX_5 0x168108 |
| 3296 | #define QM_REG_QVOQIDX_50 0x1681bc |
| 3297 | #define QM_REG_QVOQIDX_51 0x1681c0 |
| 3298 | #define QM_REG_QVOQIDX_52 0x1681c4 |
| 3299 | #define QM_REG_QVOQIDX_53 0x1681c8 |
| 3300 | #define QM_REG_QVOQIDX_54 0x1681cc |
| 3301 | #define QM_REG_QVOQIDX_55 0x1681d0 |
| 3302 | #define QM_REG_QVOQIDX_56 0x1681d4 |
| 3303 | #define QM_REG_QVOQIDX_57 0x1681d8 |
| 3304 | #define QM_REG_QVOQIDX_58 0x1681dc |
| 3305 | #define QM_REG_QVOQIDX_59 0x1681e0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3306 | #define QM_REG_QVOQIDX_6 0x16810c |
| 3307 | #define QM_REG_QVOQIDX_60 0x1681e4 |
| 3308 | #define QM_REG_QVOQIDX_61 0x1681e8 |
| 3309 | #define QM_REG_QVOQIDX_62 0x1681ec |
| 3310 | #define QM_REG_QVOQIDX_63 0x1681f0 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3311 | #define QM_REG_QVOQIDX_64 0x16e40c |
| 3312 | #define QM_REG_QVOQIDX_65 0x16e410 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3313 | #define QM_REG_QVOQIDX_69 0x16e420 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3314 | #define QM_REG_QVOQIDX_7 0x168110 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3315 | #define QM_REG_QVOQIDX_70 0x16e424 |
| 3316 | #define QM_REG_QVOQIDX_71 0x16e428 |
| 3317 | #define QM_REG_QVOQIDX_72 0x16e42c |
| 3318 | #define QM_REG_QVOQIDX_73 0x16e430 |
| 3319 | #define QM_REG_QVOQIDX_74 0x16e434 |
| 3320 | #define QM_REG_QVOQIDX_75 0x16e438 |
| 3321 | #define QM_REG_QVOQIDX_76 0x16e43c |
| 3322 | #define QM_REG_QVOQIDX_77 0x16e440 |
| 3323 | #define QM_REG_QVOQIDX_78 0x16e444 |
| 3324 | #define QM_REG_QVOQIDX_79 0x16e448 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3325 | #define QM_REG_QVOQIDX_8 0x168114 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3326 | #define QM_REG_QVOQIDX_80 0x16e44c |
| 3327 | #define QM_REG_QVOQIDX_81 0x16e450 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3328 | #define QM_REG_QVOQIDX_85 0x16e460 |
| 3329 | #define QM_REG_QVOQIDX_86 0x16e464 |
| 3330 | #define QM_REG_QVOQIDX_87 0x16e468 |
| 3331 | #define QM_REG_QVOQIDX_88 0x16e46c |
| 3332 | #define QM_REG_QVOQIDX_89 0x16e470 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3333 | #define QM_REG_QVOQIDX_9 0x168118 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3334 | #define QM_REG_QVOQIDX_90 0x16e474 |
| 3335 | #define QM_REG_QVOQIDX_91 0x16e478 |
| 3336 | #define QM_REG_QVOQIDX_92 0x16e47c |
| 3337 | #define QM_REG_QVOQIDX_93 0x16e480 |
| 3338 | #define QM_REG_QVOQIDX_94 0x16e484 |
| 3339 | #define QM_REG_QVOQIDX_95 0x16e488 |
| 3340 | #define QM_REG_QVOQIDX_96 0x16e48c |
| 3341 | #define QM_REG_QVOQIDX_97 0x16e490 |
| 3342 | #define QM_REG_QVOQIDX_98 0x16e494 |
| 3343 | #define QM_REG_QVOQIDX_99 0x16e498 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3344 | /* [RW 1] Initialization bit command */ |
| 3345 | #define QM_REG_SOFT_RESET 0x168428 |
| 3346 | /* [RW 8] The credit cost per every task in the QM. A value per each VOQ */ |
| 3347 | #define QM_REG_TASKCRDCOST_0 0x16809c |
| 3348 | #define QM_REG_TASKCRDCOST_1 0x1680a0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3349 | #define QM_REG_TASKCRDCOST_2 0x1680a4 |
| 3350 | #define QM_REG_TASKCRDCOST_4 0x1680ac |
| 3351 | #define QM_REG_TASKCRDCOST_5 0x1680b0 |
| 3352 | /* [R 6] Keep the fill level of the fifo from write client 3 */ |
| 3353 | #define QM_REG_TQM_WRC_FIFOLVL 0x168010 |
| 3354 | /* [R 6] Keep the fill level of the fifo from write client 2 */ |
| 3355 | #define QM_REG_UQM_WRC_FIFOLVL 0x168008 |
| 3356 | /* [RC 32] Credit update error register */ |
| 3357 | #define QM_REG_VOQCRDERRREG 0x168408 |
| 3358 | /* [R 16] The credit value for each VOQ */ |
| 3359 | #define QM_REG_VOQCREDIT_0 0x1682d0 |
| 3360 | #define QM_REG_VOQCREDIT_1 0x1682d4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3361 | #define QM_REG_VOQCREDIT_4 0x1682e0 |
| 3362 | /* [RW 16] The credit value that if above the QM is considered almost full */ |
| 3363 | #define QM_REG_VOQCREDITAFULLTHR 0x168090 |
| 3364 | /* [RW 16] The init and maximum credit for each VoQ */ |
| 3365 | #define QM_REG_VOQINITCREDIT_0 0x168060 |
| 3366 | #define QM_REG_VOQINITCREDIT_1 0x168064 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3367 | #define QM_REG_VOQINITCREDIT_2 0x168068 |
| 3368 | #define QM_REG_VOQINITCREDIT_4 0x168070 |
| 3369 | #define QM_REG_VOQINITCREDIT_5 0x168074 |
| 3370 | /* [RW 1] The port of which VOQ belongs */ |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3371 | #define QM_REG_VOQPORT_0 0x1682a0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3372 | #define QM_REG_VOQPORT_1 0x1682a4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3373 | #define QM_REG_VOQPORT_2 0x1682a8 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3374 | /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3375 | #define QM_REG_VOQQMASK_0_LSB 0x168240 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3376 | /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */ |
| 3377 | #define QM_REG_VOQQMASK_0_LSB_EXT_A 0x16e524 |
| 3378 | /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3379 | #define QM_REG_VOQQMASK_0_MSB 0x168244 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3380 | /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */ |
| 3381 | #define QM_REG_VOQQMASK_0_MSB_EXT_A 0x16e528 |
| 3382 | /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */ |
| 3383 | #define QM_REG_VOQQMASK_10_LSB 0x168290 |
| 3384 | /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */ |
| 3385 | #define QM_REG_VOQQMASK_10_LSB_EXT_A 0x16e574 |
| 3386 | /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */ |
| 3387 | #define QM_REG_VOQQMASK_10_MSB 0x168294 |
| 3388 | /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */ |
| 3389 | #define QM_REG_VOQQMASK_10_MSB_EXT_A 0x16e578 |
| 3390 | /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */ |
| 3391 | #define QM_REG_VOQQMASK_11_LSB 0x168298 |
| 3392 | /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */ |
| 3393 | #define QM_REG_VOQQMASK_11_LSB_EXT_A 0x16e57c |
| 3394 | /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */ |
| 3395 | #define QM_REG_VOQQMASK_11_MSB 0x16829c |
| 3396 | /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */ |
| 3397 | #define QM_REG_VOQQMASK_11_MSB_EXT_A 0x16e580 |
| 3398 | /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */ |
| 3399 | #define QM_REG_VOQQMASK_1_LSB 0x168248 |
| 3400 | /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */ |
| 3401 | #define QM_REG_VOQQMASK_1_LSB_EXT_A 0x16e52c |
| 3402 | /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3403 | #define QM_REG_VOQQMASK_1_MSB 0x16824c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3404 | /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */ |
| 3405 | #define QM_REG_VOQQMASK_1_MSB_EXT_A 0x16e530 |
| 3406 | /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3407 | #define QM_REG_VOQQMASK_2_LSB 0x168250 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3408 | /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */ |
| 3409 | #define QM_REG_VOQQMASK_2_LSB_EXT_A 0x16e534 |
| 3410 | /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3411 | #define QM_REG_VOQQMASK_2_MSB 0x168254 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3412 | /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */ |
| 3413 | #define QM_REG_VOQQMASK_2_MSB_EXT_A 0x16e538 |
| 3414 | /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3415 | #define QM_REG_VOQQMASK_3_LSB 0x168258 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3416 | /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */ |
| 3417 | #define QM_REG_VOQQMASK_3_LSB_EXT_A 0x16e53c |
| 3418 | /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */ |
| 3419 | #define QM_REG_VOQQMASK_3_MSB_EXT_A 0x16e540 |
| 3420 | /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3421 | #define QM_REG_VOQQMASK_4_LSB 0x168260 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3422 | /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */ |
| 3423 | #define QM_REG_VOQQMASK_4_LSB_EXT_A 0x16e544 |
| 3424 | /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3425 | #define QM_REG_VOQQMASK_4_MSB 0x168264 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3426 | /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */ |
| 3427 | #define QM_REG_VOQQMASK_4_MSB_EXT_A 0x16e548 |
| 3428 | /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3429 | #define QM_REG_VOQQMASK_5_LSB 0x168268 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3430 | /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */ |
| 3431 | #define QM_REG_VOQQMASK_5_LSB_EXT_A 0x16e54c |
| 3432 | /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3433 | #define QM_REG_VOQQMASK_5_MSB 0x16826c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3434 | /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */ |
| 3435 | #define QM_REG_VOQQMASK_5_MSB_EXT_A 0x16e550 |
| 3436 | /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3437 | #define QM_REG_VOQQMASK_6_LSB 0x168270 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3438 | /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */ |
| 3439 | #define QM_REG_VOQQMASK_6_LSB_EXT_A 0x16e554 |
| 3440 | /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3441 | #define QM_REG_VOQQMASK_6_MSB 0x168274 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3442 | /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */ |
| 3443 | #define QM_REG_VOQQMASK_6_MSB_EXT_A 0x16e558 |
| 3444 | /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3445 | #define QM_REG_VOQQMASK_7_LSB 0x168278 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3446 | /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */ |
| 3447 | #define QM_REG_VOQQMASK_7_LSB_EXT_A 0x16e55c |
| 3448 | /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3449 | #define QM_REG_VOQQMASK_7_MSB 0x16827c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3450 | /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */ |
| 3451 | #define QM_REG_VOQQMASK_7_MSB_EXT_A 0x16e560 |
| 3452 | /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3453 | #define QM_REG_VOQQMASK_8_LSB 0x168280 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3454 | /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */ |
| 3455 | #define QM_REG_VOQQMASK_8_LSB_EXT_A 0x16e564 |
| 3456 | /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3457 | #define QM_REG_VOQQMASK_8_MSB 0x168284 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3458 | /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */ |
| 3459 | #define QM_REG_VOQQMASK_8_MSB_EXT_A 0x16e568 |
| 3460 | /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3461 | #define QM_REG_VOQQMASK_9_LSB 0x168288 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3462 | /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */ |
| 3463 | #define QM_REG_VOQQMASK_9_LSB_EXT_A 0x16e56c |
| 3464 | /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */ |
| 3465 | #define QM_REG_VOQQMASK_9_MSB_EXT_A 0x16e570 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3466 | /* [RW 32] Wrr weights */ |
| 3467 | #define QM_REG_WRRWEIGHTS_0 0x16880c |
| 3468 | #define QM_REG_WRRWEIGHTS_1 0x168810 |
| 3469 | #define QM_REG_WRRWEIGHTS_10 0x168814 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3470 | #define QM_REG_WRRWEIGHTS_11 0x168818 |
| 3471 | #define QM_REG_WRRWEIGHTS_12 0x16881c |
| 3472 | #define QM_REG_WRRWEIGHTS_13 0x168820 |
| 3473 | #define QM_REG_WRRWEIGHTS_14 0x168824 |
| 3474 | #define QM_REG_WRRWEIGHTS_15 0x168828 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3475 | #define QM_REG_WRRWEIGHTS_16 0x16e000 |
| 3476 | #define QM_REG_WRRWEIGHTS_17 0x16e004 |
| 3477 | #define QM_REG_WRRWEIGHTS_18 0x16e008 |
| 3478 | #define QM_REG_WRRWEIGHTS_19 0x16e00c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3479 | #define QM_REG_WRRWEIGHTS_2 0x16882c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3480 | #define QM_REG_WRRWEIGHTS_20 0x16e010 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3481 | #define QM_REG_WRRWEIGHTS_21 0x16e014 |
| 3482 | #define QM_REG_WRRWEIGHTS_22 0x16e018 |
| 3483 | #define QM_REG_WRRWEIGHTS_23 0x16e01c |
| 3484 | #define QM_REG_WRRWEIGHTS_24 0x16e020 |
| 3485 | #define QM_REG_WRRWEIGHTS_25 0x16e024 |
| 3486 | #define QM_REG_WRRWEIGHTS_26 0x16e028 |
| 3487 | #define QM_REG_WRRWEIGHTS_27 0x16e02c |
| 3488 | #define QM_REG_WRRWEIGHTS_28 0x16e030 |
| 3489 | #define QM_REG_WRRWEIGHTS_29 0x16e034 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3490 | #define QM_REG_WRRWEIGHTS_3 0x168830 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3491 | #define QM_REG_WRRWEIGHTS_30 0x16e038 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3492 | #define QM_REG_WRRWEIGHTS_31 0x16e03c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3493 | #define QM_REG_WRRWEIGHTS_4 0x168834 |
| 3494 | #define QM_REG_WRRWEIGHTS_5 0x168838 |
| 3495 | #define QM_REG_WRRWEIGHTS_6 0x16883c |
| 3496 | #define QM_REG_WRRWEIGHTS_7 0x168840 |
| 3497 | #define QM_REG_WRRWEIGHTS_8 0x168844 |
| 3498 | #define QM_REG_WRRWEIGHTS_9 0x168848 |
| 3499 | /* [R 6] Keep the fill level of the fifo from write client 1 */ |
| 3500 | #define QM_REG_XQM_WRC_FIFOLVL 0x168000 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 3501 | /* [W 1] reset to parity interrupt */ |
| 3502 | #define SEM_FAST_REG_PARITY_RST 0x18840 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3503 | #define SRC_REG_COUNTFREE0 0x40500 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3504 | /* [RW 1] If clr the searcher is compatible to E1 A0 - support only two |
| 3505 | ports. If set the searcher support 8 functions. */ |
| 3506 | #define SRC_REG_E1HMF_ENABLE 0x404cc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3507 | #define SRC_REG_FIRSTFREE0 0x40510 |
| 3508 | #define SRC_REG_KEYRSS0_0 0x40408 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3509 | #define SRC_REG_KEYRSS0_7 0x40424 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3510 | #define SRC_REG_KEYRSS1_9 0x40454 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3511 | #define SRC_REG_KEYSEARCH_0 0x40458 |
| 3512 | #define SRC_REG_KEYSEARCH_1 0x4045c |
| 3513 | #define SRC_REG_KEYSEARCH_2 0x40460 |
| 3514 | #define SRC_REG_KEYSEARCH_3 0x40464 |
| 3515 | #define SRC_REG_KEYSEARCH_4 0x40468 |
| 3516 | #define SRC_REG_KEYSEARCH_5 0x4046c |
| 3517 | #define SRC_REG_KEYSEARCH_6 0x40470 |
| 3518 | #define SRC_REG_KEYSEARCH_7 0x40474 |
| 3519 | #define SRC_REG_KEYSEARCH_8 0x40478 |
| 3520 | #define SRC_REG_KEYSEARCH_9 0x4047c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3521 | #define SRC_REG_LASTFREE0 0x40530 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3522 | #define SRC_REG_NUMBER_HASH_BITS0 0x40400 |
| 3523 | /* [RW 1] Reset internal state machines. */ |
| 3524 | #define SRC_REG_SOFT_RST 0x4049c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3525 | /* [R 3] Interrupt register #0 read */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3526 | #define SRC_REG_SRC_INT_STS 0x404ac |
| 3527 | /* [RW 3] Parity mask register #0 read/write */ |
| 3528 | #define SRC_REG_SRC_PRTY_MASK 0x404c8 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 3529 | /* [R 3] Parity register #0 read */ |
| 3530 | #define SRC_REG_SRC_PRTY_STS 0x404bc |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 3531 | /* [RC 3] Parity register #0 read clear */ |
| 3532 | #define SRC_REG_SRC_PRTY_STS_CLR 0x404c0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3533 | /* [R 4] Used to read the value of the XX protection CAM occupancy counter. */ |
| 3534 | #define TCM_REG_CAM_OCCUP 0x5017c |
| 3535 | /* [RW 1] CDU AG read Interface enable. If 0 - the request input is |
| 3536 | disregarded; valid output is deasserted; all other signals are treated as |
| 3537 | usual; if 1 - normal activity. */ |
| 3538 | #define TCM_REG_CDU_AG_RD_IFEN 0x50034 |
| 3539 | /* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input |
| 3540 | are disregarded; all other signals are treated as usual; if 1 - normal |
| 3541 | activity. */ |
| 3542 | #define TCM_REG_CDU_AG_WR_IFEN 0x50030 |
| 3543 | /* [RW 1] CDU STORM read Interface enable. If 0 - the request input is |
| 3544 | disregarded; valid output is deasserted; all other signals are treated as |
| 3545 | usual; if 1 - normal activity. */ |
| 3546 | #define TCM_REG_CDU_SM_RD_IFEN 0x5003c |
| 3547 | /* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid |
| 3548 | input is disregarded; all other signals are treated as usual; if 1 - |
| 3549 | normal activity. */ |
| 3550 | #define TCM_REG_CDU_SM_WR_IFEN 0x50038 |
| 3551 | /* [RW 4] CFC output initial credit. Max credit available - 15.Write writes |
| 3552 | the initial credit value; read returns the current value of the credit |
| 3553 | counter. Must be initialized to 1 at start-up. */ |
| 3554 | #define TCM_REG_CFC_INIT_CRD 0x50204 |
| 3555 | /* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for |
| 3556 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 3557 | prioritised); 2 stands for weight 2; tc. */ |
| 3558 | #define TCM_REG_CP_WEIGHT 0x500c0 |
| 3559 | /* [RW 1] Input csem Interface enable. If 0 - the valid input is |
| 3560 | disregarded; acknowledge output is deasserted; all other signals are |
| 3561 | treated as usual; if 1 - normal activity. */ |
| 3562 | #define TCM_REG_CSEM_IFEN 0x5002c |
| 3563 | /* [RC 1] Message length mismatch (relative to last indication) at the In#9 |
| 3564 | interface. */ |
| 3565 | #define TCM_REG_CSEM_LENGTH_MIS 0x50174 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3566 | /* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for |
| 3567 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 3568 | prioritised); 2 stands for weight 2; tc. */ |
| 3569 | #define TCM_REG_CSEM_WEIGHT 0x500bc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3570 | /* [RW 8] The Event ID in case of ErrorFlg is set in the input message. */ |
| 3571 | #define TCM_REG_ERR_EVNT_ID 0x500a0 |
| 3572 | /* [RW 28] The CM erroneous header for QM and Timers formatting. */ |
| 3573 | #define TCM_REG_ERR_TCM_HDR 0x5009c |
| 3574 | /* [RW 8] The Event ID for Timers expiration. */ |
| 3575 | #define TCM_REG_EXPR_EVNT_ID 0x500a4 |
| 3576 | /* [RW 8] FIC0 output initial credit. Max credit available - 255.Write |
| 3577 | writes the initial credit value; read returns the current value of the |
| 3578 | credit counter. Must be initialized to 64 at start-up. */ |
| 3579 | #define TCM_REG_FIC0_INIT_CRD 0x5020c |
| 3580 | /* [RW 8] FIC1 output initial credit. Max credit available - 255.Write |
| 3581 | writes the initial credit value; read returns the current value of the |
| 3582 | credit counter. Must be initialized to 64 at start-up. */ |
| 3583 | #define TCM_REG_FIC1_INIT_CRD 0x50210 |
| 3584 | /* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1 |
| 3585 | - strict priority defined by ~tcm_registers_gr_ag_pr.gr_ag_pr; |
| 3586 | ~tcm_registers_gr_ld0_pr.gr_ld0_pr and |
| 3587 | ~tcm_registers_gr_ld1_pr.gr_ld1_pr. */ |
| 3588 | #define TCM_REG_GR_ARB_TYPE 0x50114 |
| 3589 | /* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the |
| 3590 | highest priority is 3. It is supposed that the Store channel is the |
| 3591 | compliment of the other 3 groups. */ |
| 3592 | #define TCM_REG_GR_LD0_PR 0x5011c |
| 3593 | /* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the |
| 3594 | highest priority is 3. It is supposed that the Store channel is the |
| 3595 | compliment of the other 3 groups. */ |
| 3596 | #define TCM_REG_GR_LD1_PR 0x50120 |
| 3597 | /* [RW 4] The number of double REG-pairs; loaded from the STORM context and |
| 3598 | sent to STORM; for a specific connection type. The double REG-pairs are |
| 3599 | used to align to STORM context row size of 128 bits. The offset of these |
| 3600 | data in the STORM context is always 0. Index _i stands for the connection |
| 3601 | type (one of 16). */ |
| 3602 | #define TCM_REG_N_SM_CTX_LD_0 0x50050 |
| 3603 | #define TCM_REG_N_SM_CTX_LD_1 0x50054 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3604 | #define TCM_REG_N_SM_CTX_LD_2 0x50058 |
| 3605 | #define TCM_REG_N_SM_CTX_LD_3 0x5005c |
| 3606 | #define TCM_REG_N_SM_CTX_LD_4 0x50060 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3607 | #define TCM_REG_N_SM_CTX_LD_5 0x50064 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3608 | /* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded; |
| 3609 | acknowledge output is deasserted; all other signals are treated as usual; |
| 3610 | if 1 - normal activity. */ |
| 3611 | #define TCM_REG_PBF_IFEN 0x50024 |
| 3612 | /* [RC 1] Message length mismatch (relative to last indication) at the In#7 |
| 3613 | interface. */ |
| 3614 | #define TCM_REG_PBF_LENGTH_MIS 0x5016c |
| 3615 | /* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for |
| 3616 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 3617 | prioritised); 2 stands for weight 2; tc. */ |
| 3618 | #define TCM_REG_PBF_WEIGHT 0x500b4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3619 | #define TCM_REG_PHYS_QNUM0_0 0x500e0 |
| 3620 | #define TCM_REG_PHYS_QNUM0_1 0x500e4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3621 | #define TCM_REG_PHYS_QNUM1_0 0x500e8 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3622 | #define TCM_REG_PHYS_QNUM1_1 0x500ec |
| 3623 | #define TCM_REG_PHYS_QNUM2_0 0x500f0 |
| 3624 | #define TCM_REG_PHYS_QNUM2_1 0x500f4 |
| 3625 | #define TCM_REG_PHYS_QNUM3_0 0x500f8 |
| 3626 | #define TCM_REG_PHYS_QNUM3_1 0x500fc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3627 | /* [RW 1] Input prs Interface enable. If 0 - the valid input is disregarded; |
| 3628 | acknowledge output is deasserted; all other signals are treated as usual; |
| 3629 | if 1 - normal activity. */ |
| 3630 | #define TCM_REG_PRS_IFEN 0x50020 |
| 3631 | /* [RC 1] Message length mismatch (relative to last indication) at the In#6 |
| 3632 | interface. */ |
| 3633 | #define TCM_REG_PRS_LENGTH_MIS 0x50168 |
| 3634 | /* [RW 3] The weight of the input prs in the WRR mechanism. 0 stands for |
| 3635 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 3636 | prioritised); 2 stands for weight 2; tc. */ |
| 3637 | #define TCM_REG_PRS_WEIGHT 0x500b0 |
| 3638 | /* [RW 8] The Event ID for Timers formatting in case of stop done. */ |
| 3639 | #define TCM_REG_STOP_EVNT_ID 0x500a8 |
| 3640 | /* [RC 1] Message length mismatch (relative to last indication) at the STORM |
| 3641 | interface. */ |
| 3642 | #define TCM_REG_STORM_LENGTH_MIS 0x50160 |
| 3643 | /* [RW 1] STORM - CM Interface enable. If 0 - the valid input is |
| 3644 | disregarded; acknowledge output is deasserted; all other signals are |
| 3645 | treated as usual; if 1 - normal activity. */ |
| 3646 | #define TCM_REG_STORM_TCM_IFEN 0x50010 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3647 | /* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for |
| 3648 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 3649 | prioritised); 2 stands for weight 2; tc. */ |
| 3650 | #define TCM_REG_STORM_WEIGHT 0x500ac |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3651 | /* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded; |
| 3652 | acknowledge output is deasserted; all other signals are treated as usual; |
| 3653 | if 1 - normal activity. */ |
| 3654 | #define TCM_REG_TCM_CFC_IFEN 0x50040 |
| 3655 | /* [RW 11] Interrupt mask register #0 read/write */ |
| 3656 | #define TCM_REG_TCM_INT_MASK 0x501dc |
| 3657 | /* [R 11] Interrupt register #0 read */ |
| 3658 | #define TCM_REG_TCM_INT_STS 0x501d0 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 3659 | /* [RW 27] Parity mask register #0 read/write */ |
| 3660 | #define TCM_REG_TCM_PRTY_MASK 0x501ec |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3661 | /* [R 27] Parity register #0 read */ |
| 3662 | #define TCM_REG_TCM_PRTY_STS 0x501e0 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 3663 | /* [RC 27] Parity register #0 read clear */ |
| 3664 | #define TCM_REG_TCM_PRTY_STS_CLR 0x501e4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3665 | /* [RW 3] The size of AG context region 0 in REG-pairs. Designates the MS |
| 3666 | REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5). |
| 3667 | Is used to determine the number of the AG context REG-pairs written back; |
| 3668 | when the input message Reg1WbFlg isn't set. */ |
| 3669 | #define TCM_REG_TCM_REG0_SZ 0x500d8 |
| 3670 | /* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is |
| 3671 | disregarded; valid is deasserted; all other signals are treated as usual; |
| 3672 | if 1 - normal activity. */ |
| 3673 | #define TCM_REG_TCM_STORM0_IFEN 0x50004 |
| 3674 | /* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is |
| 3675 | disregarded; valid is deasserted; all other signals are treated as usual; |
| 3676 | if 1 - normal activity. */ |
| 3677 | #define TCM_REG_TCM_STORM1_IFEN 0x50008 |
| 3678 | /* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is |
| 3679 | disregarded; valid is deasserted; all other signals are treated as usual; |
| 3680 | if 1 - normal activity. */ |
| 3681 | #define TCM_REG_TCM_TQM_IFEN 0x5000c |
| 3682 | /* [RW 1] If set the Q index; received from the QM is inserted to event ID. */ |
| 3683 | #define TCM_REG_TCM_TQM_USE_Q 0x500d4 |
| 3684 | /* [RW 28] The CM header for Timers expiration command. */ |
| 3685 | #define TCM_REG_TM_TCM_HDR 0x50098 |
| 3686 | /* [RW 1] Timers - CM Interface enable. If 0 - the valid input is |
| 3687 | disregarded; acknowledge output is deasserted; all other signals are |
| 3688 | treated as usual; if 1 - normal activity. */ |
| 3689 | #define TCM_REG_TM_TCM_IFEN 0x5001c |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3690 | /* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for |
| 3691 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 3692 | prioritised); 2 stands for weight 2; tc. */ |
| 3693 | #define TCM_REG_TM_WEIGHT 0x500d0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3694 | /* [RW 6] QM output initial credit. Max credit available - 32.Write writes |
| 3695 | the initial credit value; read returns the current value of the credit |
| 3696 | counter. Must be initialized to 32 at start-up. */ |
| 3697 | #define TCM_REG_TQM_INIT_CRD 0x5021c |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3698 | /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0 |
| 3699 | stands for weight 8 (the most prioritised); 1 stands for weight 1(least |
| 3700 | prioritised); 2 stands for weight 2; tc. */ |
| 3701 | #define TCM_REG_TQM_P_WEIGHT 0x500c8 |
| 3702 | /* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0 |
| 3703 | stands for weight 8 (the most prioritised); 1 stands for weight 1(least |
| 3704 | prioritised); 2 stands for weight 2; tc. */ |
| 3705 | #define TCM_REG_TQM_S_WEIGHT 0x500cc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3706 | /* [RW 28] The CM header value for QM request (primary). */ |
| 3707 | #define TCM_REG_TQM_TCM_HDR_P 0x50090 |
| 3708 | /* [RW 28] The CM header value for QM request (secondary). */ |
| 3709 | #define TCM_REG_TQM_TCM_HDR_S 0x50094 |
| 3710 | /* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded; |
| 3711 | acknowledge output is deasserted; all other signals are treated as usual; |
| 3712 | if 1 - normal activity. */ |
| 3713 | #define TCM_REG_TQM_TCM_IFEN 0x50014 |
| 3714 | /* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded; |
| 3715 | acknowledge output is deasserted; all other signals are treated as usual; |
| 3716 | if 1 - normal activity. */ |
| 3717 | #define TCM_REG_TSDM_IFEN 0x50018 |
| 3718 | /* [RC 1] Message length mismatch (relative to last indication) at the SDM |
| 3719 | interface. */ |
| 3720 | #define TCM_REG_TSDM_LENGTH_MIS 0x50164 |
| 3721 | /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for |
| 3722 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 3723 | prioritised); 2 stands for weight 2; tc. */ |
| 3724 | #define TCM_REG_TSDM_WEIGHT 0x500c4 |
| 3725 | /* [RW 1] Input usem Interface enable. If 0 - the valid input is |
| 3726 | disregarded; acknowledge output is deasserted; all other signals are |
| 3727 | treated as usual; if 1 - normal activity. */ |
| 3728 | #define TCM_REG_USEM_IFEN 0x50028 |
| 3729 | /* [RC 1] Message length mismatch (relative to last indication) at the In#8 |
| 3730 | interface. */ |
| 3731 | #define TCM_REG_USEM_LENGTH_MIS 0x50170 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3732 | /* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for |
| 3733 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 3734 | prioritised); 2 stands for weight 2; tc. */ |
| 3735 | #define TCM_REG_USEM_WEIGHT 0x500b8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3736 | /* [RW 21] Indirect access to the descriptor table of the XX protection |
| 3737 | mechanism. The fields are: [5:0] - length of the message; 15:6] - message |
| 3738 | pointer; 20:16] - next pointer. */ |
| 3739 | #define TCM_REG_XX_DESCR_TABLE 0x50280 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3740 | #define TCM_REG_XX_DESCR_TABLE_SIZE 32 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3741 | /* [R 6] Use to read the value of XX protection Free counter. */ |
| 3742 | #define TCM_REG_XX_FREE 0x50178 |
| 3743 | /* [RW 6] Initial value for the credit counter; responsible for fulfilling |
| 3744 | of the Input Stage XX protection buffer by the XX protection pending |
| 3745 | messages. Max credit available - 127.Write writes the initial credit |
| 3746 | value; read returns the current value of the credit counter. Must be |
| 3747 | initialized to 19 at start-up. */ |
| 3748 | #define TCM_REG_XX_INIT_CRD 0x50220 |
| 3749 | /* [RW 6] Maximum link list size (messages locked) per connection in the XX |
| 3750 | protection. */ |
| 3751 | #define TCM_REG_XX_MAX_LL_SZ 0x50044 |
| 3752 | /* [RW 6] The maximum number of pending messages; which may be stored in XX |
| 3753 | protection. ~tcm_registers_xx_free.xx_free is read on read. */ |
| 3754 | #define TCM_REG_XX_MSG_NUM 0x50224 |
| 3755 | /* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */ |
| 3756 | #define TCM_REG_XX_OVFL_EVNT_ID 0x50048 |
| 3757 | /* [RW 16] Indirect access to the XX table of the XX protection mechanism. |
| 3758 | The fields are:[4:0] - tail pointer; [10:5] - Link List size; 15:11] - |
| 3759 | header pointer. */ |
| 3760 | #define TCM_REG_XX_TABLE 0x50240 |
Anand Gadiyar | 411c940 | 2009-07-07 15:24:23 +0530 | [diff] [blame] | 3761 | /* [RW 4] Load value for cfc ac credit cnt. */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3762 | #define TM_REG_CFC_AC_CRDCNT_VAL 0x164208 |
| 3763 | /* [RW 4] Load value for cfc cld credit cnt. */ |
| 3764 | #define TM_REG_CFC_CLD_CRDCNT_VAL 0x164210 |
| 3765 | /* [RW 8] Client0 context region. */ |
| 3766 | #define TM_REG_CL0_CONT_REGION 0x164030 |
| 3767 | /* [RW 8] Client1 context region. */ |
| 3768 | #define TM_REG_CL1_CONT_REGION 0x164034 |
| 3769 | /* [RW 8] Client2 context region. */ |
| 3770 | #define TM_REG_CL2_CONT_REGION 0x164038 |
| 3771 | /* [RW 2] Client in High priority client number. */ |
| 3772 | #define TM_REG_CLIN_PRIOR0_CLIENT 0x164024 |
| 3773 | /* [RW 4] Load value for clout0 cred cnt. */ |
| 3774 | #define TM_REG_CLOUT_CRDCNT0_VAL 0x164220 |
| 3775 | /* [RW 4] Load value for clout1 cred cnt. */ |
| 3776 | #define TM_REG_CLOUT_CRDCNT1_VAL 0x164228 |
| 3777 | /* [RW 4] Load value for clout2 cred cnt. */ |
| 3778 | #define TM_REG_CLOUT_CRDCNT2_VAL 0x164230 |
| 3779 | /* [RW 1] Enable client0 input. */ |
| 3780 | #define TM_REG_EN_CL0_INPUT 0x164008 |
| 3781 | /* [RW 1] Enable client1 input. */ |
| 3782 | #define TM_REG_EN_CL1_INPUT 0x16400c |
| 3783 | /* [RW 1] Enable client2 input. */ |
| 3784 | #define TM_REG_EN_CL2_INPUT 0x164010 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3785 | #define TM_REG_EN_LINEAR0_TIMER 0x164014 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3786 | /* [RW 1] Enable real time counter. */ |
| 3787 | #define TM_REG_EN_REAL_TIME_CNT 0x1640d8 |
| 3788 | /* [RW 1] Enable for Timers state machines. */ |
| 3789 | #define TM_REG_EN_TIMERS 0x164000 |
| 3790 | /* [RW 4] Load value for expiration credit cnt. CFC max number of |
| 3791 | outstanding load requests for timers (expiration) context loading. */ |
| 3792 | #define TM_REG_EXP_CRDCNT_VAL 0x164238 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3793 | /* [RW 32] Linear0 logic address. */ |
| 3794 | #define TM_REG_LIN0_LOGIC_ADDR 0x164240 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3795 | /* [RW 18] Linear0 Max active cid (in banks of 32 entries). */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3796 | #define TM_REG_LIN0_MAX_ACTIVE_CID 0x164048 |
| 3797 | /* [WB 64] Linear0 phy address. */ |
| 3798 | #define TM_REG_LIN0_PHY_ADDR 0x164270 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3799 | /* [RW 1] Linear0 physical address valid. */ |
| 3800 | #define TM_REG_LIN0_PHY_ADDR_VALID 0x164248 |
Eilon Greenstein | ca00392 | 2009-08-12 22:53:28 -0700 | [diff] [blame] | 3801 | #define TM_REG_LIN0_SCAN_ON 0x1640d0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3802 | /* [RW 24] Linear0 array scan timeout. */ |
| 3803 | #define TM_REG_LIN0_SCAN_TIME 0x16403c |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3804 | /* [RW 32] Linear1 logic address. */ |
| 3805 | #define TM_REG_LIN1_LOGIC_ADDR 0x164250 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3806 | /* [WB 64] Linear1 phy address. */ |
| 3807 | #define TM_REG_LIN1_PHY_ADDR 0x164280 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3808 | /* [RW 1] Linear1 physical address valid. */ |
| 3809 | #define TM_REG_LIN1_PHY_ADDR_VALID 0x164258 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3810 | /* [RW 6] Linear timer set_clear fifo threshold. */ |
| 3811 | #define TM_REG_LIN_SETCLR_FIFO_ALFULL_THR 0x164070 |
| 3812 | /* [RW 2] Load value for pci arbiter credit cnt. */ |
| 3813 | #define TM_REG_PCIARB_CRDCNT_VAL 0x164260 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3814 | /* [RW 20] The amount of hardware cycles for each timer tick. */ |
| 3815 | #define TM_REG_TIMER_TICK_SIZE 0x16401c |
| 3816 | /* [RW 8] Timers Context region. */ |
| 3817 | #define TM_REG_TM_CONTEXT_REGION 0x164044 |
| 3818 | /* [RW 1] Interrupt mask register #0 read/write */ |
| 3819 | #define TM_REG_TM_INT_MASK 0x1640fc |
| 3820 | /* [R 1] Interrupt register #0 read */ |
| 3821 | #define TM_REG_TM_INT_STS 0x1640f0 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 3822 | /* [RW 7] Parity mask register #0 read/write */ |
| 3823 | #define TM_REG_TM_PRTY_MASK 0x16410c |
| 3824 | /* [RC 7] Parity register #0 read clear */ |
| 3825 | #define TM_REG_TM_PRTY_STS_CLR 0x164104 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3826 | /* [RW 8] The event id for aggregated interrupt 0 */ |
| 3827 | #define TSDM_REG_AGG_INT_EVENT_0 0x42038 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3828 | #define TSDM_REG_AGG_INT_EVENT_1 0x4203c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3829 | #define TSDM_REG_AGG_INT_EVENT_2 0x42040 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3830 | #define TSDM_REG_AGG_INT_EVENT_3 0x42044 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3831 | #define TSDM_REG_AGG_INT_EVENT_4 0x42048 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 3832 | /* [RW 1] The T bit for aggregated interrupt 0 */ |
| 3833 | #define TSDM_REG_AGG_INT_T_0 0x420b8 |
| 3834 | #define TSDM_REG_AGG_INT_T_1 0x420bc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3835 | /* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */ |
| 3836 | #define TSDM_REG_CFC_RSP_START_ADDR 0x42008 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 3837 | /* [RW 16] The maximum value of the completion counter #0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3838 | #define TSDM_REG_CMP_COUNTER_MAX0 0x4201c |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 3839 | /* [RW 16] The maximum value of the completion counter #1 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3840 | #define TSDM_REG_CMP_COUNTER_MAX1 0x42020 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 3841 | /* [RW 16] The maximum value of the completion counter #2 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3842 | #define TSDM_REG_CMP_COUNTER_MAX2 0x42024 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 3843 | /* [RW 16] The maximum value of the completion counter #3 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3844 | #define TSDM_REG_CMP_COUNTER_MAX3 0x42028 |
| 3845 | /* [RW 13] The start address in the internal RAM for the completion |
| 3846 | counters. */ |
| 3847 | #define TSDM_REG_CMP_COUNTER_START_ADDR 0x4200c |
| 3848 | #define TSDM_REG_ENABLE_IN1 0x42238 |
| 3849 | #define TSDM_REG_ENABLE_IN2 0x4223c |
| 3850 | #define TSDM_REG_ENABLE_OUT1 0x42240 |
| 3851 | #define TSDM_REG_ENABLE_OUT2 0x42244 |
| 3852 | /* [RW 4] The initial number of messages that can be sent to the pxp control |
| 3853 | interface without receiving any ACK. */ |
| 3854 | #define TSDM_REG_INIT_CREDIT_PXP_CTRL 0x424bc |
| 3855 | /* [ST 32] The number of ACK after placement messages received */ |
| 3856 | #define TSDM_REG_NUM_OF_ACK_AFTER_PLACE 0x4227c |
| 3857 | /* [ST 32] The number of packet end messages received from the parser */ |
| 3858 | #define TSDM_REG_NUM_OF_PKT_END_MSG 0x42274 |
| 3859 | /* [ST 32] The number of requests received from the pxp async if */ |
| 3860 | #define TSDM_REG_NUM_OF_PXP_ASYNC_REQ 0x42278 |
| 3861 | /* [ST 32] The number of commands received in queue 0 */ |
| 3862 | #define TSDM_REG_NUM_OF_Q0_CMD 0x42248 |
| 3863 | /* [ST 32] The number of commands received in queue 10 */ |
| 3864 | #define TSDM_REG_NUM_OF_Q10_CMD 0x4226c |
| 3865 | /* [ST 32] The number of commands received in queue 11 */ |
| 3866 | #define TSDM_REG_NUM_OF_Q11_CMD 0x42270 |
| 3867 | /* [ST 32] The number of commands received in queue 1 */ |
| 3868 | #define TSDM_REG_NUM_OF_Q1_CMD 0x4224c |
| 3869 | /* [ST 32] The number of commands received in queue 3 */ |
| 3870 | #define TSDM_REG_NUM_OF_Q3_CMD 0x42250 |
| 3871 | /* [ST 32] The number of commands received in queue 4 */ |
| 3872 | #define TSDM_REG_NUM_OF_Q4_CMD 0x42254 |
| 3873 | /* [ST 32] The number of commands received in queue 5 */ |
| 3874 | #define TSDM_REG_NUM_OF_Q5_CMD 0x42258 |
| 3875 | /* [ST 32] The number of commands received in queue 6 */ |
| 3876 | #define TSDM_REG_NUM_OF_Q6_CMD 0x4225c |
| 3877 | /* [ST 32] The number of commands received in queue 7 */ |
| 3878 | #define TSDM_REG_NUM_OF_Q7_CMD 0x42260 |
| 3879 | /* [ST 32] The number of commands received in queue 8 */ |
| 3880 | #define TSDM_REG_NUM_OF_Q8_CMD 0x42264 |
| 3881 | /* [ST 32] The number of commands received in queue 9 */ |
| 3882 | #define TSDM_REG_NUM_OF_Q9_CMD 0x42268 |
| 3883 | /* [RW 13] The start address in the internal RAM for the packet end message */ |
| 3884 | #define TSDM_REG_PCK_END_MSG_START_ADDR 0x42014 |
| 3885 | /* [RW 13] The start address in the internal RAM for queue counters */ |
| 3886 | #define TSDM_REG_Q_COUNTER_START_ADDR 0x42010 |
| 3887 | /* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */ |
| 3888 | #define TSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0x42548 |
| 3889 | /* [R 1] parser fifo empty in sdm_sync block */ |
| 3890 | #define TSDM_REG_SYNC_PARSER_EMPTY 0x42550 |
| 3891 | /* [R 1] parser serial fifo empty in sdm_sync block */ |
| 3892 | #define TSDM_REG_SYNC_SYNC_EMPTY 0x42558 |
| 3893 | /* [RW 32] Tick for timer counter. Applicable only when |
| 3894 | ~tsdm_registers_timer_tick_enable.timer_tick_enable =1 */ |
| 3895 | #define TSDM_REG_TIMER_TICK 0x42000 |
| 3896 | /* [RW 32] Interrupt mask register #0 read/write */ |
| 3897 | #define TSDM_REG_TSDM_INT_MASK_0 0x4229c |
| 3898 | #define TSDM_REG_TSDM_INT_MASK_1 0x422ac |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3899 | /* [R 32] Interrupt register #0 read */ |
| 3900 | #define TSDM_REG_TSDM_INT_STS_0 0x42290 |
| 3901 | #define TSDM_REG_TSDM_INT_STS_1 0x422a0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3902 | /* [RW 11] Parity mask register #0 read/write */ |
| 3903 | #define TSDM_REG_TSDM_PRTY_MASK 0x422bc |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 3904 | /* [R 11] Parity register #0 read */ |
| 3905 | #define TSDM_REG_TSDM_PRTY_STS 0x422b0 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 3906 | /* [RC 11] Parity register #0 read clear */ |
| 3907 | #define TSDM_REG_TSDM_PRTY_STS_CLR 0x422b4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3908 | /* [RW 5] The number of time_slots in the arbitration cycle */ |
| 3909 | #define TSEM_REG_ARB_CYCLE_SIZE 0x180034 |
| 3910 | /* [RW 3] The source that is associated with arbitration element 0. Source |
| 3911 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 3912 | sleeping thread with priority 1; 4- sleeping thread with priority 2 */ |
| 3913 | #define TSEM_REG_ARB_ELEMENT0 0x180020 |
| 3914 | /* [RW 3] The source that is associated with arbitration element 1. Source |
| 3915 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 3916 | sleeping thread with priority 1; 4- sleeping thread with priority 2. |
| 3917 | Could not be equal to register ~tsem_registers_arb_element0.arb_element0 */ |
| 3918 | #define TSEM_REG_ARB_ELEMENT1 0x180024 |
| 3919 | /* [RW 3] The source that is associated with arbitration element 2. Source |
| 3920 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 3921 | sleeping thread with priority 1; 4- sleeping thread with priority 2. |
| 3922 | Could not be equal to register ~tsem_registers_arb_element0.arb_element0 |
| 3923 | and ~tsem_registers_arb_element1.arb_element1 */ |
| 3924 | #define TSEM_REG_ARB_ELEMENT2 0x180028 |
| 3925 | /* [RW 3] The source that is associated with arbitration element 3. Source |
| 3926 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 3927 | sleeping thread with priority 1; 4- sleeping thread with priority 2.Could |
| 3928 | not be equal to register ~tsem_registers_arb_element0.arb_element0 and |
| 3929 | ~tsem_registers_arb_element1.arb_element1 and |
| 3930 | ~tsem_registers_arb_element2.arb_element2 */ |
| 3931 | #define TSEM_REG_ARB_ELEMENT3 0x18002c |
| 3932 | /* [RW 3] The source that is associated with arbitration element 4. Source |
| 3933 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 3934 | sleeping thread with priority 1; 4- sleeping thread with priority 2. |
| 3935 | Could not be equal to register ~tsem_registers_arb_element0.arb_element0 |
| 3936 | and ~tsem_registers_arb_element1.arb_element1 and |
| 3937 | ~tsem_registers_arb_element2.arb_element2 and |
| 3938 | ~tsem_registers_arb_element3.arb_element3 */ |
| 3939 | #define TSEM_REG_ARB_ELEMENT4 0x180030 |
| 3940 | #define TSEM_REG_ENABLE_IN 0x1800a4 |
| 3941 | #define TSEM_REG_ENABLE_OUT 0x1800a8 |
| 3942 | /* [RW 32] This address space contains all registers and memories that are |
| 3943 | placed in SEM_FAST block. The SEM_FAST registers are described in |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 3944 | appendix B. In order to access the sem_fast registers the base address |
| 3945 | ~fast_memory.fast_memory should be added to eachsem_fast register offset. */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3946 | #define TSEM_REG_FAST_MEMORY 0x1a0000 |
| 3947 | /* [RW 1] Disables input messages from FIC0 May be updated during run_time |
| 3948 | by the microcode */ |
| 3949 | #define TSEM_REG_FIC0_DISABLE 0x180224 |
| 3950 | /* [RW 1] Disables input messages from FIC1 May be updated during run_time |
| 3951 | by the microcode */ |
| 3952 | #define TSEM_REG_FIC1_DISABLE 0x180234 |
| 3953 | /* [RW 15] Interrupt table Read and write access to it is not possible in |
| 3954 | the middle of the work */ |
| 3955 | #define TSEM_REG_INT_TABLE 0x180400 |
| 3956 | /* [ST 24] Statistics register. The number of messages that entered through |
| 3957 | FIC0 */ |
| 3958 | #define TSEM_REG_MSG_NUM_FIC0 0x180000 |
| 3959 | /* [ST 24] Statistics register. The number of messages that entered through |
| 3960 | FIC1 */ |
| 3961 | #define TSEM_REG_MSG_NUM_FIC1 0x180004 |
| 3962 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 3963 | FOC0 */ |
| 3964 | #define TSEM_REG_MSG_NUM_FOC0 0x180008 |
| 3965 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 3966 | FOC1 */ |
| 3967 | #define TSEM_REG_MSG_NUM_FOC1 0x18000c |
| 3968 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 3969 | FOC2 */ |
| 3970 | #define TSEM_REG_MSG_NUM_FOC2 0x180010 |
| 3971 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 3972 | FOC3 */ |
| 3973 | #define TSEM_REG_MSG_NUM_FOC3 0x180014 |
| 3974 | /* [RW 1] Disables input messages from the passive buffer May be updated |
| 3975 | during run_time by the microcode */ |
| 3976 | #define TSEM_REG_PAS_DISABLE 0x18024c |
| 3977 | /* [WB 128] Debug only. Passive buffer memory */ |
| 3978 | #define TSEM_REG_PASSIVE_BUFFER 0x181000 |
| 3979 | /* [WB 46] pram memory. B45 is parity; b[44:0] - data. */ |
| 3980 | #define TSEM_REG_PRAM 0x1c0000 |
| 3981 | /* [R 8] Valid sleeping threads indication have bit per thread */ |
| 3982 | #define TSEM_REG_SLEEP_THREADS_VALID 0x18026c |
| 3983 | /* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */ |
| 3984 | #define TSEM_REG_SLOW_EXT_STORE_EMPTY 0x1802a0 |
| 3985 | /* [RW 8] List of free threads . There is a bit per thread. */ |
| 3986 | #define TSEM_REG_THREADS_LIST 0x1802e4 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 3987 | /* [RC 32] Parity register #0 read clear */ |
| 3988 | #define TSEM_REG_TSEM_PRTY_STS_CLR_0 0x180118 |
| 3989 | #define TSEM_REG_TSEM_PRTY_STS_CLR_1 0x180128 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 3990 | /* [RW 3] The arbitration scheme of time_slot 0 */ |
| 3991 | #define TSEM_REG_TS_0_AS 0x180038 |
| 3992 | /* [RW 3] The arbitration scheme of time_slot 10 */ |
| 3993 | #define TSEM_REG_TS_10_AS 0x180060 |
| 3994 | /* [RW 3] The arbitration scheme of time_slot 11 */ |
| 3995 | #define TSEM_REG_TS_11_AS 0x180064 |
| 3996 | /* [RW 3] The arbitration scheme of time_slot 12 */ |
| 3997 | #define TSEM_REG_TS_12_AS 0x180068 |
| 3998 | /* [RW 3] The arbitration scheme of time_slot 13 */ |
| 3999 | #define TSEM_REG_TS_13_AS 0x18006c |
| 4000 | /* [RW 3] The arbitration scheme of time_slot 14 */ |
| 4001 | #define TSEM_REG_TS_14_AS 0x180070 |
| 4002 | /* [RW 3] The arbitration scheme of time_slot 15 */ |
| 4003 | #define TSEM_REG_TS_15_AS 0x180074 |
| 4004 | /* [RW 3] The arbitration scheme of time_slot 16 */ |
| 4005 | #define TSEM_REG_TS_16_AS 0x180078 |
| 4006 | /* [RW 3] The arbitration scheme of time_slot 17 */ |
| 4007 | #define TSEM_REG_TS_17_AS 0x18007c |
| 4008 | /* [RW 3] The arbitration scheme of time_slot 18 */ |
| 4009 | #define TSEM_REG_TS_18_AS 0x180080 |
| 4010 | /* [RW 3] The arbitration scheme of time_slot 1 */ |
| 4011 | #define TSEM_REG_TS_1_AS 0x18003c |
| 4012 | /* [RW 3] The arbitration scheme of time_slot 2 */ |
| 4013 | #define TSEM_REG_TS_2_AS 0x180040 |
| 4014 | /* [RW 3] The arbitration scheme of time_slot 3 */ |
| 4015 | #define TSEM_REG_TS_3_AS 0x180044 |
| 4016 | /* [RW 3] The arbitration scheme of time_slot 4 */ |
| 4017 | #define TSEM_REG_TS_4_AS 0x180048 |
| 4018 | /* [RW 3] The arbitration scheme of time_slot 5 */ |
| 4019 | #define TSEM_REG_TS_5_AS 0x18004c |
| 4020 | /* [RW 3] The arbitration scheme of time_slot 6 */ |
| 4021 | #define TSEM_REG_TS_6_AS 0x180050 |
| 4022 | /* [RW 3] The arbitration scheme of time_slot 7 */ |
| 4023 | #define TSEM_REG_TS_7_AS 0x180054 |
| 4024 | /* [RW 3] The arbitration scheme of time_slot 8 */ |
| 4025 | #define TSEM_REG_TS_8_AS 0x180058 |
| 4026 | /* [RW 3] The arbitration scheme of time_slot 9 */ |
| 4027 | #define TSEM_REG_TS_9_AS 0x18005c |
| 4028 | /* [RW 32] Interrupt mask register #0 read/write */ |
| 4029 | #define TSEM_REG_TSEM_INT_MASK_0 0x180100 |
| 4030 | #define TSEM_REG_TSEM_INT_MASK_1 0x180110 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4031 | /* [R 32] Interrupt register #0 read */ |
| 4032 | #define TSEM_REG_TSEM_INT_STS_0 0x1800f4 |
| 4033 | #define TSEM_REG_TSEM_INT_STS_1 0x180104 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4034 | /* [RW 32] Parity mask register #0 read/write */ |
| 4035 | #define TSEM_REG_TSEM_PRTY_MASK_0 0x180120 |
| 4036 | #define TSEM_REG_TSEM_PRTY_MASK_1 0x180130 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 4037 | /* [R 32] Parity register #0 read */ |
| 4038 | #define TSEM_REG_TSEM_PRTY_STS_0 0x180114 |
| 4039 | #define TSEM_REG_TSEM_PRTY_STS_1 0x180124 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 4040 | /* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64 |
| 4041 | * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */ |
| 4042 | #define TSEM_REG_VFPF_ERR_NUM 0x180380 |
| 4043 | /* [RW 32] Indirect access to AG context with 32-bits granularity. The bits |
| 4044 | * [10:8] of the address should be the offset within the accessed LCID |
| 4045 | * context; the bits [7:0] are the accessed LCID.Example: to write to REG10 |
| 4046 | * LCID100. The RBC address should be 12'ha64. */ |
| 4047 | #define UCM_REG_AG_CTX 0xe2000 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4048 | /* [R 5] Used to read the XX protection CAM occupancy counter. */ |
| 4049 | #define UCM_REG_CAM_OCCUP 0xe0170 |
| 4050 | /* [RW 1] CDU AG read Interface enable. If 0 - the request input is |
| 4051 | disregarded; valid output is deasserted; all other signals are treated as |
| 4052 | usual; if 1 - normal activity. */ |
| 4053 | #define UCM_REG_CDU_AG_RD_IFEN 0xe0038 |
| 4054 | /* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input |
| 4055 | are disregarded; all other signals are treated as usual; if 1 - normal |
| 4056 | activity. */ |
| 4057 | #define UCM_REG_CDU_AG_WR_IFEN 0xe0034 |
| 4058 | /* [RW 1] CDU STORM read Interface enable. If 0 - the request input is |
| 4059 | disregarded; valid output is deasserted; all other signals are treated as |
| 4060 | usual; if 1 - normal activity. */ |
| 4061 | #define UCM_REG_CDU_SM_RD_IFEN 0xe0040 |
| 4062 | /* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid |
| 4063 | input is disregarded; all other signals are treated as usual; if 1 - |
| 4064 | normal activity. */ |
| 4065 | #define UCM_REG_CDU_SM_WR_IFEN 0xe003c |
| 4066 | /* [RW 4] CFC output initial credit. Max credit available - 15.Write writes |
| 4067 | the initial credit value; read returns the current value of the credit |
| 4068 | counter. Must be initialized to 1 at start-up. */ |
| 4069 | #define UCM_REG_CFC_INIT_CRD 0xe0204 |
| 4070 | /* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for |
| 4071 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4072 | prioritised); 2 stands for weight 2; tc. */ |
| 4073 | #define UCM_REG_CP_WEIGHT 0xe00c4 |
| 4074 | /* [RW 1] Input csem Interface enable. If 0 - the valid input is |
| 4075 | disregarded; acknowledge output is deasserted; all other signals are |
| 4076 | treated as usual; if 1 - normal activity. */ |
| 4077 | #define UCM_REG_CSEM_IFEN 0xe0028 |
| 4078 | /* [RC 1] Set when the message length mismatch (relative to last indication) |
| 4079 | at the csem interface is detected. */ |
| 4080 | #define UCM_REG_CSEM_LENGTH_MIS 0xe0160 |
| 4081 | /* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for |
| 4082 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4083 | prioritised); 2 stands for weight 2; tc. */ |
| 4084 | #define UCM_REG_CSEM_WEIGHT 0xe00b8 |
| 4085 | /* [RW 1] Input dorq Interface enable. If 0 - the valid input is |
| 4086 | disregarded; acknowledge output is deasserted; all other signals are |
| 4087 | treated as usual; if 1 - normal activity. */ |
| 4088 | #define UCM_REG_DORQ_IFEN 0xe0030 |
| 4089 | /* [RC 1] Set when the message length mismatch (relative to last indication) |
| 4090 | at the dorq interface is detected. */ |
| 4091 | #define UCM_REG_DORQ_LENGTH_MIS 0xe0168 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 4092 | /* [RW 3] The weight of the input dorq in the WRR mechanism. 0 stands for |
| 4093 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4094 | prioritised); 2 stands for weight 2; tc. */ |
| 4095 | #define UCM_REG_DORQ_WEIGHT 0xe00c0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4096 | /* [RW 8] The Event ID in case ErrorFlg input message bit is set. */ |
| 4097 | #define UCM_REG_ERR_EVNT_ID 0xe00a4 |
| 4098 | /* [RW 28] The CM erroneous header for QM and Timers formatting. */ |
| 4099 | #define UCM_REG_ERR_UCM_HDR 0xe00a0 |
| 4100 | /* [RW 8] The Event ID for Timers expiration. */ |
| 4101 | #define UCM_REG_EXPR_EVNT_ID 0xe00a8 |
| 4102 | /* [RW 8] FIC0 output initial credit. Max credit available - 255.Write |
| 4103 | writes the initial credit value; read returns the current value of the |
| 4104 | credit counter. Must be initialized to 64 at start-up. */ |
| 4105 | #define UCM_REG_FIC0_INIT_CRD 0xe020c |
| 4106 | /* [RW 8] FIC1 output initial credit. Max credit available - 255.Write |
| 4107 | writes the initial credit value; read returns the current value of the |
| 4108 | credit counter. Must be initialized to 64 at start-up. */ |
| 4109 | #define UCM_REG_FIC1_INIT_CRD 0xe0210 |
| 4110 | /* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1 |
| 4111 | - strict priority defined by ~ucm_registers_gr_ag_pr.gr_ag_pr; |
| 4112 | ~ucm_registers_gr_ld0_pr.gr_ld0_pr and |
| 4113 | ~ucm_registers_gr_ld1_pr.gr_ld1_pr. */ |
| 4114 | #define UCM_REG_GR_ARB_TYPE 0xe0144 |
| 4115 | /* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the |
| 4116 | highest priority is 3. It is supposed that the Store channel group is |
| 4117 | compliment to the others. */ |
| 4118 | #define UCM_REG_GR_LD0_PR 0xe014c |
| 4119 | /* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the |
| 4120 | highest priority is 3. It is supposed that the Store channel group is |
| 4121 | compliment to the others. */ |
| 4122 | #define UCM_REG_GR_LD1_PR 0xe0150 |
| 4123 | /* [RW 2] The queue index for invalidate counter flag decision. */ |
| 4124 | #define UCM_REG_INV_CFLG_Q 0xe00e4 |
| 4125 | /* [RW 5] The number of double REG-pairs; loaded from the STORM context and |
| 4126 | sent to STORM; for a specific connection type. the double REG-pairs are |
| 4127 | used in order to align to STORM context row size of 128 bits. The offset |
| 4128 | of these data in the STORM context is always 0. Index _i stands for the |
| 4129 | connection type (one of 16). */ |
| 4130 | #define UCM_REG_N_SM_CTX_LD_0 0xe0054 |
| 4131 | #define UCM_REG_N_SM_CTX_LD_1 0xe0058 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4132 | #define UCM_REG_N_SM_CTX_LD_2 0xe005c |
| 4133 | #define UCM_REG_N_SM_CTX_LD_3 0xe0060 |
| 4134 | #define UCM_REG_N_SM_CTX_LD_4 0xe0064 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4135 | #define UCM_REG_N_SM_CTX_LD_5 0xe0068 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4136 | #define UCM_REG_PHYS_QNUM0_0 0xe0110 |
| 4137 | #define UCM_REG_PHYS_QNUM0_1 0xe0114 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4138 | #define UCM_REG_PHYS_QNUM1_0 0xe0118 |
| 4139 | #define UCM_REG_PHYS_QNUM1_1 0xe011c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4140 | #define UCM_REG_PHYS_QNUM2_0 0xe0120 |
| 4141 | #define UCM_REG_PHYS_QNUM2_1 0xe0124 |
| 4142 | #define UCM_REG_PHYS_QNUM3_0 0xe0128 |
| 4143 | #define UCM_REG_PHYS_QNUM3_1 0xe012c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4144 | /* [RW 8] The Event ID for Timers formatting in case of stop done. */ |
| 4145 | #define UCM_REG_STOP_EVNT_ID 0xe00ac |
| 4146 | /* [RC 1] Set when the message length mismatch (relative to last indication) |
| 4147 | at the STORM interface is detected. */ |
| 4148 | #define UCM_REG_STORM_LENGTH_MIS 0xe0154 |
| 4149 | /* [RW 1] STORM - CM Interface enable. If 0 - the valid input is |
| 4150 | disregarded; acknowledge output is deasserted; all other signals are |
| 4151 | treated as usual; if 1 - normal activity. */ |
| 4152 | #define UCM_REG_STORM_UCM_IFEN 0xe0010 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 4153 | /* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for |
| 4154 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4155 | prioritised); 2 stands for weight 2; tc. */ |
| 4156 | #define UCM_REG_STORM_WEIGHT 0xe00b0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4157 | /* [RW 4] Timers output initial credit. Max credit available - 15.Write |
| 4158 | writes the initial credit value; read returns the current value of the |
| 4159 | credit counter. Must be initialized to 4 at start-up. */ |
| 4160 | #define UCM_REG_TM_INIT_CRD 0xe021c |
| 4161 | /* [RW 28] The CM header for Timers expiration command. */ |
| 4162 | #define UCM_REG_TM_UCM_HDR 0xe009c |
| 4163 | /* [RW 1] Timers - CM Interface enable. If 0 - the valid input is |
| 4164 | disregarded; acknowledge output is deasserted; all other signals are |
| 4165 | treated as usual; if 1 - normal activity. */ |
| 4166 | #define UCM_REG_TM_UCM_IFEN 0xe001c |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 4167 | /* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for |
| 4168 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4169 | prioritised); 2 stands for weight 2; tc. */ |
| 4170 | #define UCM_REG_TM_WEIGHT 0xe00d4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4171 | /* [RW 1] Input tsem Interface enable. If 0 - the valid input is |
| 4172 | disregarded; acknowledge output is deasserted; all other signals are |
| 4173 | treated as usual; if 1 - normal activity. */ |
| 4174 | #define UCM_REG_TSEM_IFEN 0xe0024 |
| 4175 | /* [RC 1] Set when the message length mismatch (relative to last indication) |
| 4176 | at the tsem interface is detected. */ |
| 4177 | #define UCM_REG_TSEM_LENGTH_MIS 0xe015c |
| 4178 | /* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for |
| 4179 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4180 | prioritised); 2 stands for weight 2; tc. */ |
| 4181 | #define UCM_REG_TSEM_WEIGHT 0xe00b4 |
| 4182 | /* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded; |
| 4183 | acknowledge output is deasserted; all other signals are treated as usual; |
| 4184 | if 1 - normal activity. */ |
| 4185 | #define UCM_REG_UCM_CFC_IFEN 0xe0044 |
| 4186 | /* [RW 11] Interrupt mask register #0 read/write */ |
| 4187 | #define UCM_REG_UCM_INT_MASK 0xe01d4 |
| 4188 | /* [R 11] Interrupt register #0 read */ |
| 4189 | #define UCM_REG_UCM_INT_STS 0xe01c8 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4190 | /* [R 27] Parity register #0 read */ |
| 4191 | #define UCM_REG_UCM_PRTY_STS 0xe01d8 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 4192 | /* [RC 27] Parity register #0 read clear */ |
| 4193 | #define UCM_REG_UCM_PRTY_STS_CLR 0xe01dc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4194 | /* [RW 2] The size of AG context region 0 in REG-pairs. Designates the MS |
| 4195 | REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5). |
| 4196 | Is used to determine the number of the AG context REG-pairs written back; |
| 4197 | when the Reg1WbFlg isn't set. */ |
| 4198 | #define UCM_REG_UCM_REG0_SZ 0xe00dc |
| 4199 | /* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is |
| 4200 | disregarded; valid is deasserted; all other signals are treated as usual; |
| 4201 | if 1 - normal activity. */ |
| 4202 | #define UCM_REG_UCM_STORM0_IFEN 0xe0004 |
| 4203 | /* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is |
| 4204 | disregarded; valid is deasserted; all other signals are treated as usual; |
| 4205 | if 1 - normal activity. */ |
| 4206 | #define UCM_REG_UCM_STORM1_IFEN 0xe0008 |
| 4207 | /* [RW 1] CM - Timers Interface enable. If 0 - the valid input is |
| 4208 | disregarded; acknowledge output is deasserted; all other signals are |
| 4209 | treated as usual; if 1 - normal activity. */ |
| 4210 | #define UCM_REG_UCM_TM_IFEN 0xe0020 |
| 4211 | /* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is |
| 4212 | disregarded; valid is deasserted; all other signals are treated as usual; |
| 4213 | if 1 - normal activity. */ |
| 4214 | #define UCM_REG_UCM_UQM_IFEN 0xe000c |
| 4215 | /* [RW 1] If set the Q index; received from the QM is inserted to event ID. */ |
| 4216 | #define UCM_REG_UCM_UQM_USE_Q 0xe00d8 |
| 4217 | /* [RW 6] QM output initial credit. Max credit available - 32.Write writes |
| 4218 | the initial credit value; read returns the current value of the credit |
| 4219 | counter. Must be initialized to 32 at start-up. */ |
| 4220 | #define UCM_REG_UQM_INIT_CRD 0xe0220 |
| 4221 | /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0 |
| 4222 | stands for weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4223 | prioritised); 2 stands for weight 2; tc. */ |
| 4224 | #define UCM_REG_UQM_P_WEIGHT 0xe00cc |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 4225 | /* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0 |
| 4226 | stands for weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4227 | prioritised); 2 stands for weight 2; tc. */ |
| 4228 | #define UCM_REG_UQM_S_WEIGHT 0xe00d0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4229 | /* [RW 28] The CM header value for QM request (primary). */ |
| 4230 | #define UCM_REG_UQM_UCM_HDR_P 0xe0094 |
| 4231 | /* [RW 28] The CM header value for QM request (secondary). */ |
| 4232 | #define UCM_REG_UQM_UCM_HDR_S 0xe0098 |
| 4233 | /* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded; |
| 4234 | acknowledge output is deasserted; all other signals are treated as usual; |
| 4235 | if 1 - normal activity. */ |
| 4236 | #define UCM_REG_UQM_UCM_IFEN 0xe0014 |
| 4237 | /* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded; |
| 4238 | acknowledge output is deasserted; all other signals are treated as usual; |
| 4239 | if 1 - normal activity. */ |
| 4240 | #define UCM_REG_USDM_IFEN 0xe0018 |
| 4241 | /* [RC 1] Set when the message length mismatch (relative to last indication) |
| 4242 | at the SDM interface is detected. */ |
| 4243 | #define UCM_REG_USDM_LENGTH_MIS 0xe0158 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 4244 | /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for |
| 4245 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4246 | prioritised); 2 stands for weight 2; tc. */ |
| 4247 | #define UCM_REG_USDM_WEIGHT 0xe00c8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4248 | /* [RW 1] Input xsem Interface enable. If 0 - the valid input is |
| 4249 | disregarded; acknowledge output is deasserted; all other signals are |
| 4250 | treated as usual; if 1 - normal activity. */ |
| 4251 | #define UCM_REG_XSEM_IFEN 0xe002c |
| 4252 | /* [RC 1] Set when the message length mismatch (relative to last indication) |
| 4253 | at the xsem interface isdetected. */ |
| 4254 | #define UCM_REG_XSEM_LENGTH_MIS 0xe0164 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 4255 | /* [RW 3] The weight of the input xsem in the WRR mechanism. 0 stands for |
| 4256 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4257 | prioritised); 2 stands for weight 2; tc. */ |
| 4258 | #define UCM_REG_XSEM_WEIGHT 0xe00bc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4259 | /* [RW 20] Indirect access to the descriptor table of the XX protection |
| 4260 | mechanism. The fields are:[5:0] - message length; 14:6] - message |
| 4261 | pointer; 19:15] - next pointer. */ |
| 4262 | #define UCM_REG_XX_DESCR_TABLE 0xe0280 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4263 | #define UCM_REG_XX_DESCR_TABLE_SIZE 32 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4264 | /* [R 6] Use to read the XX protection Free counter. */ |
| 4265 | #define UCM_REG_XX_FREE 0xe016c |
| 4266 | /* [RW 6] Initial value for the credit counter; responsible for fulfilling |
| 4267 | of the Input Stage XX protection buffer by the XX protection pending |
| 4268 | messages. Write writes the initial credit value; read returns the current |
| 4269 | value of the credit counter. Must be initialized to 12 at start-up. */ |
| 4270 | #define UCM_REG_XX_INIT_CRD 0xe0224 |
| 4271 | /* [RW 6] The maximum number of pending messages; which may be stored in XX |
| 4272 | protection. ~ucm_registers_xx_free.xx_free read on read. */ |
| 4273 | #define UCM_REG_XX_MSG_NUM 0xe0228 |
| 4274 | /* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */ |
| 4275 | #define UCM_REG_XX_OVFL_EVNT_ID 0xe004c |
| 4276 | /* [RW 16] Indirect access to the XX table of the XX protection mechanism. |
| 4277 | The fields are: [4:0] - tail pointer; 10:5] - Link List size; 15:11] - |
| 4278 | header pointer. */ |
| 4279 | #define UCM_REG_XX_TABLE 0xe0300 |
| 4280 | /* [RW 8] The event id for aggregated interrupt 0 */ |
| 4281 | #define USDM_REG_AGG_INT_EVENT_0 0xc4038 |
| 4282 | #define USDM_REG_AGG_INT_EVENT_1 0xc403c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4283 | #define USDM_REG_AGG_INT_EVENT_2 0xc4040 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4284 | #define USDM_REG_AGG_INT_EVENT_4 0xc4048 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 4285 | #define USDM_REG_AGG_INT_EVENT_5 0xc404c |
Eilon Greenstein | ca00392 | 2009-08-12 22:53:28 -0700 | [diff] [blame] | 4286 | #define USDM_REG_AGG_INT_EVENT_6 0xc4050 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4287 | /* [RW 1] For each aggregated interrupt index whether the mode is normal (0) |
| 4288 | or auto-mask-mode (1) */ |
| 4289 | #define USDM_REG_AGG_INT_MODE_0 0xc41b8 |
| 4290 | #define USDM_REG_AGG_INT_MODE_1 0xc41bc |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 4291 | #define USDM_REG_AGG_INT_MODE_4 0xc41c8 |
| 4292 | #define USDM_REG_AGG_INT_MODE_5 0xc41cc |
Eilon Greenstein | ca00392 | 2009-08-12 22:53:28 -0700 | [diff] [blame] | 4293 | #define USDM_REG_AGG_INT_MODE_6 0xc41d0 |
| 4294 | /* [RW 1] The T bit for aggregated interrupt 5 */ |
| 4295 | #define USDM_REG_AGG_INT_T_5 0xc40cc |
| 4296 | #define USDM_REG_AGG_INT_T_6 0xc40d0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4297 | /* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */ |
| 4298 | #define USDM_REG_CFC_RSP_START_ADDR 0xc4008 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 4299 | /* [RW 16] The maximum value of the completion counter #0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4300 | #define USDM_REG_CMP_COUNTER_MAX0 0xc401c |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 4301 | /* [RW 16] The maximum value of the completion counter #1 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4302 | #define USDM_REG_CMP_COUNTER_MAX1 0xc4020 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 4303 | /* [RW 16] The maximum value of the completion counter #2 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4304 | #define USDM_REG_CMP_COUNTER_MAX2 0xc4024 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 4305 | /* [RW 16] The maximum value of the completion counter #3 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4306 | #define USDM_REG_CMP_COUNTER_MAX3 0xc4028 |
| 4307 | /* [RW 13] The start address in the internal RAM for the completion |
| 4308 | counters. */ |
| 4309 | #define USDM_REG_CMP_COUNTER_START_ADDR 0xc400c |
| 4310 | #define USDM_REG_ENABLE_IN1 0xc4238 |
| 4311 | #define USDM_REG_ENABLE_IN2 0xc423c |
| 4312 | #define USDM_REG_ENABLE_OUT1 0xc4240 |
| 4313 | #define USDM_REG_ENABLE_OUT2 0xc4244 |
| 4314 | /* [RW 4] The initial number of messages that can be sent to the pxp control |
| 4315 | interface without receiving any ACK. */ |
| 4316 | #define USDM_REG_INIT_CREDIT_PXP_CTRL 0xc44c0 |
| 4317 | /* [ST 32] The number of ACK after placement messages received */ |
| 4318 | #define USDM_REG_NUM_OF_ACK_AFTER_PLACE 0xc4280 |
| 4319 | /* [ST 32] The number of packet end messages received from the parser */ |
| 4320 | #define USDM_REG_NUM_OF_PKT_END_MSG 0xc4278 |
| 4321 | /* [ST 32] The number of requests received from the pxp async if */ |
| 4322 | #define USDM_REG_NUM_OF_PXP_ASYNC_REQ 0xc427c |
| 4323 | /* [ST 32] The number of commands received in queue 0 */ |
| 4324 | #define USDM_REG_NUM_OF_Q0_CMD 0xc4248 |
| 4325 | /* [ST 32] The number of commands received in queue 10 */ |
| 4326 | #define USDM_REG_NUM_OF_Q10_CMD 0xc4270 |
| 4327 | /* [ST 32] The number of commands received in queue 11 */ |
| 4328 | #define USDM_REG_NUM_OF_Q11_CMD 0xc4274 |
| 4329 | /* [ST 32] The number of commands received in queue 1 */ |
| 4330 | #define USDM_REG_NUM_OF_Q1_CMD 0xc424c |
| 4331 | /* [ST 32] The number of commands received in queue 2 */ |
| 4332 | #define USDM_REG_NUM_OF_Q2_CMD 0xc4250 |
| 4333 | /* [ST 32] The number of commands received in queue 3 */ |
| 4334 | #define USDM_REG_NUM_OF_Q3_CMD 0xc4254 |
| 4335 | /* [ST 32] The number of commands received in queue 4 */ |
| 4336 | #define USDM_REG_NUM_OF_Q4_CMD 0xc4258 |
| 4337 | /* [ST 32] The number of commands received in queue 5 */ |
| 4338 | #define USDM_REG_NUM_OF_Q5_CMD 0xc425c |
| 4339 | /* [ST 32] The number of commands received in queue 6 */ |
| 4340 | #define USDM_REG_NUM_OF_Q6_CMD 0xc4260 |
| 4341 | /* [ST 32] The number of commands received in queue 7 */ |
| 4342 | #define USDM_REG_NUM_OF_Q7_CMD 0xc4264 |
| 4343 | /* [ST 32] The number of commands received in queue 8 */ |
| 4344 | #define USDM_REG_NUM_OF_Q8_CMD 0xc4268 |
| 4345 | /* [ST 32] The number of commands received in queue 9 */ |
| 4346 | #define USDM_REG_NUM_OF_Q9_CMD 0xc426c |
| 4347 | /* [RW 13] The start address in the internal RAM for the packet end message */ |
| 4348 | #define USDM_REG_PCK_END_MSG_START_ADDR 0xc4014 |
| 4349 | /* [RW 13] The start address in the internal RAM for queue counters */ |
| 4350 | #define USDM_REG_Q_COUNTER_START_ADDR 0xc4010 |
| 4351 | /* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */ |
| 4352 | #define USDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0xc4550 |
| 4353 | /* [R 1] parser fifo empty in sdm_sync block */ |
| 4354 | #define USDM_REG_SYNC_PARSER_EMPTY 0xc4558 |
| 4355 | /* [R 1] parser serial fifo empty in sdm_sync block */ |
| 4356 | #define USDM_REG_SYNC_SYNC_EMPTY 0xc4560 |
| 4357 | /* [RW 32] Tick for timer counter. Applicable only when |
| 4358 | ~usdm_registers_timer_tick_enable.timer_tick_enable =1 */ |
| 4359 | #define USDM_REG_TIMER_TICK 0xc4000 |
| 4360 | /* [RW 32] Interrupt mask register #0 read/write */ |
| 4361 | #define USDM_REG_USDM_INT_MASK_0 0xc42a0 |
| 4362 | #define USDM_REG_USDM_INT_MASK_1 0xc42b0 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4363 | /* [R 32] Interrupt register #0 read */ |
| 4364 | #define USDM_REG_USDM_INT_STS_0 0xc4294 |
| 4365 | #define USDM_REG_USDM_INT_STS_1 0xc42a4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4366 | /* [RW 11] Parity mask register #0 read/write */ |
| 4367 | #define USDM_REG_USDM_PRTY_MASK 0xc42c0 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 4368 | /* [R 11] Parity register #0 read */ |
| 4369 | #define USDM_REG_USDM_PRTY_STS 0xc42b4 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 4370 | /* [RC 11] Parity register #0 read clear */ |
| 4371 | #define USDM_REG_USDM_PRTY_STS_CLR 0xc42b8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4372 | /* [RW 5] The number of time_slots in the arbitration cycle */ |
| 4373 | #define USEM_REG_ARB_CYCLE_SIZE 0x300034 |
| 4374 | /* [RW 3] The source that is associated with arbitration element 0. Source |
| 4375 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 4376 | sleeping thread with priority 1; 4- sleeping thread with priority 2 */ |
| 4377 | #define USEM_REG_ARB_ELEMENT0 0x300020 |
| 4378 | /* [RW 3] The source that is associated with arbitration element 1. Source |
| 4379 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 4380 | sleeping thread with priority 1; 4- sleeping thread with priority 2. |
| 4381 | Could not be equal to register ~usem_registers_arb_element0.arb_element0 */ |
| 4382 | #define USEM_REG_ARB_ELEMENT1 0x300024 |
| 4383 | /* [RW 3] The source that is associated with arbitration element 2. Source |
| 4384 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 4385 | sleeping thread with priority 1; 4- sleeping thread with priority 2. |
| 4386 | Could not be equal to register ~usem_registers_arb_element0.arb_element0 |
| 4387 | and ~usem_registers_arb_element1.arb_element1 */ |
| 4388 | #define USEM_REG_ARB_ELEMENT2 0x300028 |
| 4389 | /* [RW 3] The source that is associated with arbitration element 3. Source |
| 4390 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 4391 | sleeping thread with priority 1; 4- sleeping thread with priority 2.Could |
| 4392 | not be equal to register ~usem_registers_arb_element0.arb_element0 and |
| 4393 | ~usem_registers_arb_element1.arb_element1 and |
| 4394 | ~usem_registers_arb_element2.arb_element2 */ |
| 4395 | #define USEM_REG_ARB_ELEMENT3 0x30002c |
| 4396 | /* [RW 3] The source that is associated with arbitration element 4. Source |
| 4397 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 4398 | sleeping thread with priority 1; 4- sleeping thread with priority 2. |
| 4399 | Could not be equal to register ~usem_registers_arb_element0.arb_element0 |
| 4400 | and ~usem_registers_arb_element1.arb_element1 and |
| 4401 | ~usem_registers_arb_element2.arb_element2 and |
| 4402 | ~usem_registers_arb_element3.arb_element3 */ |
| 4403 | #define USEM_REG_ARB_ELEMENT4 0x300030 |
| 4404 | #define USEM_REG_ENABLE_IN 0x3000a4 |
| 4405 | #define USEM_REG_ENABLE_OUT 0x3000a8 |
| 4406 | /* [RW 32] This address space contains all registers and memories that are |
| 4407 | placed in SEM_FAST block. The SEM_FAST registers are described in |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4408 | appendix B. In order to access the sem_fast registers the base address |
| 4409 | ~fast_memory.fast_memory should be added to eachsem_fast register offset. */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4410 | #define USEM_REG_FAST_MEMORY 0x320000 |
| 4411 | /* [RW 1] Disables input messages from FIC0 May be updated during run_time |
| 4412 | by the microcode */ |
| 4413 | #define USEM_REG_FIC0_DISABLE 0x300224 |
| 4414 | /* [RW 1] Disables input messages from FIC1 May be updated during run_time |
| 4415 | by the microcode */ |
| 4416 | #define USEM_REG_FIC1_DISABLE 0x300234 |
| 4417 | /* [RW 15] Interrupt table Read and write access to it is not possible in |
| 4418 | the middle of the work */ |
| 4419 | #define USEM_REG_INT_TABLE 0x300400 |
| 4420 | /* [ST 24] Statistics register. The number of messages that entered through |
| 4421 | FIC0 */ |
| 4422 | #define USEM_REG_MSG_NUM_FIC0 0x300000 |
| 4423 | /* [ST 24] Statistics register. The number of messages that entered through |
| 4424 | FIC1 */ |
| 4425 | #define USEM_REG_MSG_NUM_FIC1 0x300004 |
| 4426 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 4427 | FOC0 */ |
| 4428 | #define USEM_REG_MSG_NUM_FOC0 0x300008 |
| 4429 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 4430 | FOC1 */ |
| 4431 | #define USEM_REG_MSG_NUM_FOC1 0x30000c |
| 4432 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 4433 | FOC2 */ |
| 4434 | #define USEM_REG_MSG_NUM_FOC2 0x300010 |
| 4435 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 4436 | FOC3 */ |
| 4437 | #define USEM_REG_MSG_NUM_FOC3 0x300014 |
| 4438 | /* [RW 1] Disables input messages from the passive buffer May be updated |
| 4439 | during run_time by the microcode */ |
| 4440 | #define USEM_REG_PAS_DISABLE 0x30024c |
| 4441 | /* [WB 128] Debug only. Passive buffer memory */ |
| 4442 | #define USEM_REG_PASSIVE_BUFFER 0x302000 |
| 4443 | /* [WB 46] pram memory. B45 is parity; b[44:0] - data. */ |
| 4444 | #define USEM_REG_PRAM 0x340000 |
| 4445 | /* [R 16] Valid sleeping threads indication have bit per thread */ |
| 4446 | #define USEM_REG_SLEEP_THREADS_VALID 0x30026c |
| 4447 | /* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */ |
| 4448 | #define USEM_REG_SLOW_EXT_STORE_EMPTY 0x3002a0 |
| 4449 | /* [RW 16] List of free threads . There is a bit per thread. */ |
| 4450 | #define USEM_REG_THREADS_LIST 0x3002e4 |
| 4451 | /* [RW 3] The arbitration scheme of time_slot 0 */ |
| 4452 | #define USEM_REG_TS_0_AS 0x300038 |
| 4453 | /* [RW 3] The arbitration scheme of time_slot 10 */ |
| 4454 | #define USEM_REG_TS_10_AS 0x300060 |
| 4455 | /* [RW 3] The arbitration scheme of time_slot 11 */ |
| 4456 | #define USEM_REG_TS_11_AS 0x300064 |
| 4457 | /* [RW 3] The arbitration scheme of time_slot 12 */ |
| 4458 | #define USEM_REG_TS_12_AS 0x300068 |
| 4459 | /* [RW 3] The arbitration scheme of time_slot 13 */ |
| 4460 | #define USEM_REG_TS_13_AS 0x30006c |
| 4461 | /* [RW 3] The arbitration scheme of time_slot 14 */ |
| 4462 | #define USEM_REG_TS_14_AS 0x300070 |
| 4463 | /* [RW 3] The arbitration scheme of time_slot 15 */ |
| 4464 | #define USEM_REG_TS_15_AS 0x300074 |
| 4465 | /* [RW 3] The arbitration scheme of time_slot 16 */ |
| 4466 | #define USEM_REG_TS_16_AS 0x300078 |
| 4467 | /* [RW 3] The arbitration scheme of time_slot 17 */ |
| 4468 | #define USEM_REG_TS_17_AS 0x30007c |
| 4469 | /* [RW 3] The arbitration scheme of time_slot 18 */ |
| 4470 | #define USEM_REG_TS_18_AS 0x300080 |
| 4471 | /* [RW 3] The arbitration scheme of time_slot 1 */ |
| 4472 | #define USEM_REG_TS_1_AS 0x30003c |
| 4473 | /* [RW 3] The arbitration scheme of time_slot 2 */ |
| 4474 | #define USEM_REG_TS_2_AS 0x300040 |
| 4475 | /* [RW 3] The arbitration scheme of time_slot 3 */ |
| 4476 | #define USEM_REG_TS_3_AS 0x300044 |
| 4477 | /* [RW 3] The arbitration scheme of time_slot 4 */ |
| 4478 | #define USEM_REG_TS_4_AS 0x300048 |
| 4479 | /* [RW 3] The arbitration scheme of time_slot 5 */ |
| 4480 | #define USEM_REG_TS_5_AS 0x30004c |
| 4481 | /* [RW 3] The arbitration scheme of time_slot 6 */ |
| 4482 | #define USEM_REG_TS_6_AS 0x300050 |
| 4483 | /* [RW 3] The arbitration scheme of time_slot 7 */ |
| 4484 | #define USEM_REG_TS_7_AS 0x300054 |
| 4485 | /* [RW 3] The arbitration scheme of time_slot 8 */ |
| 4486 | #define USEM_REG_TS_8_AS 0x300058 |
| 4487 | /* [RW 3] The arbitration scheme of time_slot 9 */ |
| 4488 | #define USEM_REG_TS_9_AS 0x30005c |
| 4489 | /* [RW 32] Interrupt mask register #0 read/write */ |
| 4490 | #define USEM_REG_USEM_INT_MASK_0 0x300110 |
| 4491 | #define USEM_REG_USEM_INT_MASK_1 0x300120 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4492 | /* [R 32] Interrupt register #0 read */ |
| 4493 | #define USEM_REG_USEM_INT_STS_0 0x300104 |
| 4494 | #define USEM_REG_USEM_INT_STS_1 0x300114 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4495 | /* [RW 32] Parity mask register #0 read/write */ |
| 4496 | #define USEM_REG_USEM_PRTY_MASK_0 0x300130 |
| 4497 | #define USEM_REG_USEM_PRTY_MASK_1 0x300140 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 4498 | /* [R 32] Parity register #0 read */ |
| 4499 | #define USEM_REG_USEM_PRTY_STS_0 0x300124 |
| 4500 | #define USEM_REG_USEM_PRTY_STS_1 0x300134 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 4501 | /* [RC 32] Parity register #0 read clear */ |
| 4502 | #define USEM_REG_USEM_PRTY_STS_CLR_0 0x300128 |
| 4503 | #define USEM_REG_USEM_PRTY_STS_CLR_1 0x300138 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 4504 | /* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64 |
| 4505 | * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */ |
| 4506 | #define USEM_REG_VFPF_ERR_NUM 0x300380 |
| 4507 | #define VFC_MEMORIES_RST_REG_CAM_RST (0x1<<0) |
| 4508 | #define VFC_MEMORIES_RST_REG_RAM_RST (0x1<<1) |
| 4509 | #define VFC_REG_MEMORIES_RST 0x1943c |
| 4510 | /* [RW 32] Indirect access to AG context with 32-bits granularity. The bits |
| 4511 | * [12:8] of the address should be the offset within the accessed LCID |
| 4512 | * context; the bits [7:0] are the accessed LCID.Example: to write to REG10 |
| 4513 | * LCID100. The RBC address should be 13'ha64. */ |
| 4514 | #define XCM_REG_AG_CTX 0x28000 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4515 | /* [RW 2] The queue index for registration on Aux1 counter flag. */ |
| 4516 | #define XCM_REG_AUX1_Q 0x20134 |
| 4517 | /* [RW 2] Per each decision rule the queue index to register to. */ |
| 4518 | #define XCM_REG_AUX_CNT_FLG_Q_19 0x201b0 |
| 4519 | /* [R 5] Used to read the XX protection CAM occupancy counter. */ |
| 4520 | #define XCM_REG_CAM_OCCUP 0x20244 |
| 4521 | /* [RW 1] CDU AG read Interface enable. If 0 - the request input is |
| 4522 | disregarded; valid output is deasserted; all other signals are treated as |
| 4523 | usual; if 1 - normal activity. */ |
| 4524 | #define XCM_REG_CDU_AG_RD_IFEN 0x20044 |
| 4525 | /* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input |
| 4526 | are disregarded; all other signals are treated as usual; if 1 - normal |
| 4527 | activity. */ |
| 4528 | #define XCM_REG_CDU_AG_WR_IFEN 0x20040 |
| 4529 | /* [RW 1] CDU STORM read Interface enable. If 0 - the request input is |
| 4530 | disregarded; valid output is deasserted; all other signals are treated as |
| 4531 | usual; if 1 - normal activity. */ |
| 4532 | #define XCM_REG_CDU_SM_RD_IFEN 0x2004c |
| 4533 | /* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid |
| 4534 | input is disregarded; all other signals are treated as usual; if 1 - |
| 4535 | normal activity. */ |
| 4536 | #define XCM_REG_CDU_SM_WR_IFEN 0x20048 |
| 4537 | /* [RW 4] CFC output initial credit. Max credit available - 15.Write writes |
| 4538 | the initial credit value; read returns the current value of the credit |
| 4539 | counter. Must be initialized to 1 at start-up. */ |
| 4540 | #define XCM_REG_CFC_INIT_CRD 0x20404 |
| 4541 | /* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for |
| 4542 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4543 | prioritised); 2 stands for weight 2; tc. */ |
| 4544 | #define XCM_REG_CP_WEIGHT 0x200dc |
| 4545 | /* [RW 1] Input csem Interface enable. If 0 - the valid input is |
| 4546 | disregarded; acknowledge output is deasserted; all other signals are |
| 4547 | treated as usual; if 1 - normal activity. */ |
| 4548 | #define XCM_REG_CSEM_IFEN 0x20028 |
| 4549 | /* [RC 1] Set at message length mismatch (relative to last indication) at |
| 4550 | the csem interface. */ |
| 4551 | #define XCM_REG_CSEM_LENGTH_MIS 0x20228 |
| 4552 | /* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for |
| 4553 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4554 | prioritised); 2 stands for weight 2; tc. */ |
| 4555 | #define XCM_REG_CSEM_WEIGHT 0x200c4 |
| 4556 | /* [RW 1] Input dorq Interface enable. If 0 - the valid input is |
| 4557 | disregarded; acknowledge output is deasserted; all other signals are |
| 4558 | treated as usual; if 1 - normal activity. */ |
| 4559 | #define XCM_REG_DORQ_IFEN 0x20030 |
| 4560 | /* [RC 1] Set at message length mismatch (relative to last indication) at |
| 4561 | the dorq interface. */ |
| 4562 | #define XCM_REG_DORQ_LENGTH_MIS 0x20230 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 4563 | /* [RW 3] The weight of the input dorq in the WRR mechanism. 0 stands for |
| 4564 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4565 | prioritised); 2 stands for weight 2; tc. */ |
| 4566 | #define XCM_REG_DORQ_WEIGHT 0x200cc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4567 | /* [RW 8] The Event ID in case the ErrorFlg input message bit is set. */ |
| 4568 | #define XCM_REG_ERR_EVNT_ID 0x200b0 |
| 4569 | /* [RW 28] The CM erroneous header for QM and Timers formatting. */ |
| 4570 | #define XCM_REG_ERR_XCM_HDR 0x200ac |
| 4571 | /* [RW 8] The Event ID for Timers expiration. */ |
| 4572 | #define XCM_REG_EXPR_EVNT_ID 0x200b4 |
| 4573 | /* [RW 8] FIC0 output initial credit. Max credit available - 255.Write |
| 4574 | writes the initial credit value; read returns the current value of the |
| 4575 | credit counter. Must be initialized to 64 at start-up. */ |
| 4576 | #define XCM_REG_FIC0_INIT_CRD 0x2040c |
| 4577 | /* [RW 8] FIC1 output initial credit. Max credit available - 255.Write |
| 4578 | writes the initial credit value; read returns the current value of the |
| 4579 | credit counter. Must be initialized to 64 at start-up. */ |
| 4580 | #define XCM_REG_FIC1_INIT_CRD 0x20410 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4581 | #define XCM_REG_GLB_DEL_ACK_MAX_CNT_0 0x20118 |
| 4582 | #define XCM_REG_GLB_DEL_ACK_MAX_CNT_1 0x2011c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4583 | #define XCM_REG_GLB_DEL_ACK_TMR_VAL_0 0x20108 |
| 4584 | #define XCM_REG_GLB_DEL_ACK_TMR_VAL_1 0x2010c |
| 4585 | /* [RW 1] Arbitratiojn between Input Arbiter groups: 0 - fair Round-Robin; 1 |
| 4586 | - strict priority defined by ~xcm_registers_gr_ag_pr.gr_ag_pr; |
| 4587 | ~xcm_registers_gr_ld0_pr.gr_ld0_pr and |
| 4588 | ~xcm_registers_gr_ld1_pr.gr_ld1_pr. */ |
| 4589 | #define XCM_REG_GR_ARB_TYPE 0x2020c |
| 4590 | /* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the |
| 4591 | highest priority is 3. It is supposed that the Channel group is the |
| 4592 | compliment of the other 3 groups. */ |
| 4593 | #define XCM_REG_GR_LD0_PR 0x20214 |
| 4594 | /* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the |
| 4595 | highest priority is 3. It is supposed that the Channel group is the |
| 4596 | compliment of the other 3 groups. */ |
| 4597 | #define XCM_REG_GR_LD1_PR 0x20218 |
| 4598 | /* [RW 1] Input nig0 Interface enable. If 0 - the valid input is |
| 4599 | disregarded; acknowledge output is deasserted; all other signals are |
| 4600 | treated as usual; if 1 - normal activity. */ |
| 4601 | #define XCM_REG_NIG0_IFEN 0x20038 |
| 4602 | /* [RC 1] Set at message length mismatch (relative to last indication) at |
| 4603 | the nig0 interface. */ |
| 4604 | #define XCM_REG_NIG0_LENGTH_MIS 0x20238 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 4605 | /* [RW 3] The weight of the input nig0 in the WRR mechanism. 0 stands for |
| 4606 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4607 | prioritised); 2 stands for weight 2; tc. */ |
| 4608 | #define XCM_REG_NIG0_WEIGHT 0x200d4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4609 | /* [RW 1] Input nig1 Interface enable. If 0 - the valid input is |
| 4610 | disregarded; acknowledge output is deasserted; all other signals are |
| 4611 | treated as usual; if 1 - normal activity. */ |
| 4612 | #define XCM_REG_NIG1_IFEN 0x2003c |
| 4613 | /* [RC 1] Set at message length mismatch (relative to last indication) at |
| 4614 | the nig1 interface. */ |
| 4615 | #define XCM_REG_NIG1_LENGTH_MIS 0x2023c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4616 | /* [RW 5] The number of double REG-pairs; loaded from the STORM context and |
| 4617 | sent to STORM; for a specific connection type. The double REG-pairs are |
| 4618 | used in order to align to STORM context row size of 128 bits. The offset |
| 4619 | of these data in the STORM context is always 0. Index _i stands for the |
| 4620 | connection type (one of 16). */ |
| 4621 | #define XCM_REG_N_SM_CTX_LD_0 0x20060 |
| 4622 | #define XCM_REG_N_SM_CTX_LD_1 0x20064 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4623 | #define XCM_REG_N_SM_CTX_LD_2 0x20068 |
| 4624 | #define XCM_REG_N_SM_CTX_LD_3 0x2006c |
| 4625 | #define XCM_REG_N_SM_CTX_LD_4 0x20070 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4626 | #define XCM_REG_N_SM_CTX_LD_5 0x20074 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4627 | /* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded; |
| 4628 | acknowledge output is deasserted; all other signals are treated as usual; |
| 4629 | if 1 - normal activity. */ |
| 4630 | #define XCM_REG_PBF_IFEN 0x20034 |
| 4631 | /* [RC 1] Set at message length mismatch (relative to last indication) at |
| 4632 | the pbf interface. */ |
| 4633 | #define XCM_REG_PBF_LENGTH_MIS 0x20234 |
| 4634 | /* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for |
| 4635 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4636 | prioritised); 2 stands for weight 2; tc. */ |
| 4637 | #define XCM_REG_PBF_WEIGHT 0x200d0 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4638 | #define XCM_REG_PHYS_QNUM3_0 0x20100 |
| 4639 | #define XCM_REG_PHYS_QNUM3_1 0x20104 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4640 | /* [RW 8] The Event ID for Timers formatting in case of stop done. */ |
| 4641 | #define XCM_REG_STOP_EVNT_ID 0x200b8 |
| 4642 | /* [RC 1] Set at message length mismatch (relative to last indication) at |
| 4643 | the STORM interface. */ |
| 4644 | #define XCM_REG_STORM_LENGTH_MIS 0x2021c |
| 4645 | /* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for |
| 4646 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4647 | prioritised); 2 stands for weight 2; tc. */ |
| 4648 | #define XCM_REG_STORM_WEIGHT 0x200bc |
| 4649 | /* [RW 1] STORM - CM Interface enable. If 0 - the valid input is |
| 4650 | disregarded; acknowledge output is deasserted; all other signals are |
| 4651 | treated as usual; if 1 - normal activity. */ |
| 4652 | #define XCM_REG_STORM_XCM_IFEN 0x20010 |
| 4653 | /* [RW 4] Timers output initial credit. Max credit available - 15.Write |
| 4654 | writes the initial credit value; read returns the current value of the |
| 4655 | credit counter. Must be initialized to 4 at start-up. */ |
| 4656 | #define XCM_REG_TM_INIT_CRD 0x2041c |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 4657 | /* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for |
| 4658 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4659 | prioritised); 2 stands for weight 2; tc. */ |
| 4660 | #define XCM_REG_TM_WEIGHT 0x200ec |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4661 | /* [RW 28] The CM header for Timers expiration command. */ |
| 4662 | #define XCM_REG_TM_XCM_HDR 0x200a8 |
| 4663 | /* [RW 1] Timers - CM Interface enable. If 0 - the valid input is |
| 4664 | disregarded; acknowledge output is deasserted; all other signals are |
| 4665 | treated as usual; if 1 - normal activity. */ |
| 4666 | #define XCM_REG_TM_XCM_IFEN 0x2001c |
| 4667 | /* [RW 1] Input tsem Interface enable. If 0 - the valid input is |
| 4668 | disregarded; acknowledge output is deasserted; all other signals are |
| 4669 | treated as usual; if 1 - normal activity. */ |
| 4670 | #define XCM_REG_TSEM_IFEN 0x20024 |
| 4671 | /* [RC 1] Set at message length mismatch (relative to last indication) at |
| 4672 | the tsem interface. */ |
| 4673 | #define XCM_REG_TSEM_LENGTH_MIS 0x20224 |
| 4674 | /* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for |
| 4675 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4676 | prioritised); 2 stands for weight 2; tc. */ |
| 4677 | #define XCM_REG_TSEM_WEIGHT 0x200c0 |
| 4678 | /* [RW 2] The queue index for registration on UNA greater NXT decision rule. */ |
| 4679 | #define XCM_REG_UNA_GT_NXT_Q 0x20120 |
| 4680 | /* [RW 1] Input usem Interface enable. If 0 - the valid input is |
| 4681 | disregarded; acknowledge output is deasserted; all other signals are |
| 4682 | treated as usual; if 1 - normal activity. */ |
| 4683 | #define XCM_REG_USEM_IFEN 0x2002c |
| 4684 | /* [RC 1] Message length mismatch (relative to last indication) at the usem |
| 4685 | interface. */ |
| 4686 | #define XCM_REG_USEM_LENGTH_MIS 0x2022c |
| 4687 | /* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for |
| 4688 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4689 | prioritised); 2 stands for weight 2; tc. */ |
| 4690 | #define XCM_REG_USEM_WEIGHT 0x200c8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4691 | #define XCM_REG_WU_DA_CNT_CMD00 0x201d4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4692 | #define XCM_REG_WU_DA_CNT_CMD01 0x201d8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4693 | #define XCM_REG_WU_DA_CNT_CMD10 0x201dc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4694 | #define XCM_REG_WU_DA_CNT_CMD11 0x201e0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4695 | #define XCM_REG_WU_DA_CNT_UPD_VAL00 0x201e4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4696 | #define XCM_REG_WU_DA_CNT_UPD_VAL01 0x201e8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4697 | #define XCM_REG_WU_DA_CNT_UPD_VAL10 0x201ec |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4698 | #define XCM_REG_WU_DA_CNT_UPD_VAL11 0x201f0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4699 | #define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00 0x201c4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4700 | #define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01 0x201c8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4701 | #define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD10 0x201cc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4702 | #define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD11 0x201d0 |
| 4703 | /* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded; |
| 4704 | acknowledge output is deasserted; all other signals are treated as usual; |
| 4705 | if 1 - normal activity. */ |
| 4706 | #define XCM_REG_XCM_CFC_IFEN 0x20050 |
| 4707 | /* [RW 14] Interrupt mask register #0 read/write */ |
| 4708 | #define XCM_REG_XCM_INT_MASK 0x202b4 |
| 4709 | /* [R 14] Interrupt register #0 read */ |
| 4710 | #define XCM_REG_XCM_INT_STS 0x202a8 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4711 | /* [R 30] Parity register #0 read */ |
| 4712 | #define XCM_REG_XCM_PRTY_STS 0x202b8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4713 | /* [RW 4] The size of AG context region 0 in REG-pairs. Designates the MS |
| 4714 | REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5). |
| 4715 | Is used to determine the number of the AG context REG-pairs written back; |
| 4716 | when the Reg1WbFlg isn't set. */ |
| 4717 | #define XCM_REG_XCM_REG0_SZ 0x200f4 |
| 4718 | /* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is |
| 4719 | disregarded; valid is deasserted; all other signals are treated as usual; |
| 4720 | if 1 - normal activity. */ |
| 4721 | #define XCM_REG_XCM_STORM0_IFEN 0x20004 |
| 4722 | /* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is |
| 4723 | disregarded; valid is deasserted; all other signals are treated as usual; |
| 4724 | if 1 - normal activity. */ |
| 4725 | #define XCM_REG_XCM_STORM1_IFEN 0x20008 |
| 4726 | /* [RW 1] CM - Timers Interface enable. If 0 - the valid input is |
| 4727 | disregarded; acknowledge output is deasserted; all other signals are |
| 4728 | treated as usual; if 1 - normal activity. */ |
| 4729 | #define XCM_REG_XCM_TM_IFEN 0x20020 |
| 4730 | /* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is |
| 4731 | disregarded; valid is deasserted; all other signals are treated as usual; |
| 4732 | if 1 - normal activity. */ |
| 4733 | #define XCM_REG_XCM_XQM_IFEN 0x2000c |
| 4734 | /* [RW 1] If set the Q index; received from the QM is inserted to event ID. */ |
| 4735 | #define XCM_REG_XCM_XQM_USE_Q 0x200f0 |
| 4736 | /* [RW 4] The value by which CFC updates the activity counter at QM bypass. */ |
| 4737 | #define XCM_REG_XQM_BYP_ACT_UPD 0x200fc |
| 4738 | /* [RW 6] QM output initial credit. Max credit available - 32.Write writes |
| 4739 | the initial credit value; read returns the current value of the credit |
| 4740 | counter. Must be initialized to 32 at start-up. */ |
| 4741 | #define XCM_REG_XQM_INIT_CRD 0x20420 |
| 4742 | /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0 |
| 4743 | stands for weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4744 | prioritised); 2 stands for weight 2; tc. */ |
| 4745 | #define XCM_REG_XQM_P_WEIGHT 0x200e4 |
Eilon Greenstein | 8d9c5f3 | 2009-02-15 23:24:08 -0800 | [diff] [blame] | 4746 | /* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0 |
| 4747 | stands for weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4748 | prioritised); 2 stands for weight 2; tc. */ |
| 4749 | #define XCM_REG_XQM_S_WEIGHT 0x200e8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4750 | /* [RW 28] The CM header value for QM request (primary). */ |
| 4751 | #define XCM_REG_XQM_XCM_HDR_P 0x200a0 |
| 4752 | /* [RW 28] The CM header value for QM request (secondary). */ |
| 4753 | #define XCM_REG_XQM_XCM_HDR_S 0x200a4 |
| 4754 | /* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded; |
| 4755 | acknowledge output is deasserted; all other signals are treated as usual; |
| 4756 | if 1 - normal activity. */ |
| 4757 | #define XCM_REG_XQM_XCM_IFEN 0x20014 |
| 4758 | /* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded; |
| 4759 | acknowledge output is deasserted; all other signals are treated as usual; |
| 4760 | if 1 - normal activity. */ |
| 4761 | #define XCM_REG_XSDM_IFEN 0x20018 |
| 4762 | /* [RC 1] Set at message length mismatch (relative to last indication) at |
| 4763 | the SDM interface. */ |
| 4764 | #define XCM_REG_XSDM_LENGTH_MIS 0x20220 |
| 4765 | /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for |
| 4766 | weight 8 (the most prioritised); 1 stands for weight 1(least |
| 4767 | prioritised); 2 stands for weight 2; tc. */ |
| 4768 | #define XCM_REG_XSDM_WEIGHT 0x200e0 |
| 4769 | /* [RW 17] Indirect access to the descriptor table of the XX protection |
| 4770 | mechanism. The fields are: [5:0] - message length; 11:6] - message |
| 4771 | pointer; 16:12] - next pointer. */ |
| 4772 | #define XCM_REG_XX_DESCR_TABLE 0x20480 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4773 | #define XCM_REG_XX_DESCR_TABLE_SIZE 32 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4774 | /* [R 6] Used to read the XX protection Free counter. */ |
| 4775 | #define XCM_REG_XX_FREE 0x20240 |
| 4776 | /* [RW 6] Initial value for the credit counter; responsible for fulfilling |
| 4777 | of the Input Stage XX protection buffer by the XX protection pending |
| 4778 | messages. Max credit available - 3.Write writes the initial credit value; |
| 4779 | read returns the current value of the credit counter. Must be initialized |
| 4780 | to 2 at start-up. */ |
| 4781 | #define XCM_REG_XX_INIT_CRD 0x20424 |
| 4782 | /* [RW 6] The maximum number of pending messages; which may be stored in XX |
| 4783 | protection. ~xcm_registers_xx_free.xx_free read on read. */ |
| 4784 | #define XCM_REG_XX_MSG_NUM 0x20428 |
| 4785 | /* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */ |
| 4786 | #define XCM_REG_XX_OVFL_EVNT_ID 0x20058 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4787 | /* [RW 16] Indirect access to the XX table of the XX protection mechanism. |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4788 | The fields are:[4:0] - tail pointer; 9:5] - Link List size; 14:10] - |
| 4789 | header pointer. */ |
| 4790 | #define XCM_REG_XX_TABLE 0x20500 |
| 4791 | /* [RW 8] The event id for aggregated interrupt 0 */ |
| 4792 | #define XSDM_REG_AGG_INT_EVENT_0 0x166038 |
| 4793 | #define XSDM_REG_AGG_INT_EVENT_1 0x16603c |
| 4794 | #define XSDM_REG_AGG_INT_EVENT_10 0x166060 |
| 4795 | #define XSDM_REG_AGG_INT_EVENT_11 0x166064 |
| 4796 | #define XSDM_REG_AGG_INT_EVENT_12 0x166068 |
| 4797 | #define XSDM_REG_AGG_INT_EVENT_13 0x16606c |
| 4798 | #define XSDM_REG_AGG_INT_EVENT_14 0x166070 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4799 | #define XSDM_REG_AGG_INT_EVENT_2 0x166040 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4800 | #define XSDM_REG_AGG_INT_EVENT_3 0x166044 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4801 | #define XSDM_REG_AGG_INT_EVENT_4 0x166048 |
| 4802 | #define XSDM_REG_AGG_INT_EVENT_5 0x16604c |
| 4803 | #define XSDM_REG_AGG_INT_EVENT_6 0x166050 |
| 4804 | #define XSDM_REG_AGG_INT_EVENT_7 0x166054 |
| 4805 | #define XSDM_REG_AGG_INT_EVENT_8 0x166058 |
| 4806 | #define XSDM_REG_AGG_INT_EVENT_9 0x16605c |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4807 | /* [RW 1] For each aggregated interrupt index whether the mode is normal (0) |
| 4808 | or auto-mask-mode (1) */ |
| 4809 | #define XSDM_REG_AGG_INT_MODE_0 0x1661b8 |
| 4810 | #define XSDM_REG_AGG_INT_MODE_1 0x1661bc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4811 | /* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */ |
| 4812 | #define XSDM_REG_CFC_RSP_START_ADDR 0x166008 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 4813 | /* [RW 16] The maximum value of the completion counter #0 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4814 | #define XSDM_REG_CMP_COUNTER_MAX0 0x16601c |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 4815 | /* [RW 16] The maximum value of the completion counter #1 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4816 | #define XSDM_REG_CMP_COUNTER_MAX1 0x166020 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 4817 | /* [RW 16] The maximum value of the completion counter #2 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4818 | #define XSDM_REG_CMP_COUNTER_MAX2 0x166024 |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 4819 | /* [RW 16] The maximum value of the completion counter #3 */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4820 | #define XSDM_REG_CMP_COUNTER_MAX3 0x166028 |
| 4821 | /* [RW 13] The start address in the internal RAM for the completion |
| 4822 | counters. */ |
| 4823 | #define XSDM_REG_CMP_COUNTER_START_ADDR 0x16600c |
| 4824 | #define XSDM_REG_ENABLE_IN1 0x166238 |
| 4825 | #define XSDM_REG_ENABLE_IN2 0x16623c |
| 4826 | #define XSDM_REG_ENABLE_OUT1 0x166240 |
| 4827 | #define XSDM_REG_ENABLE_OUT2 0x166244 |
| 4828 | /* [RW 4] The initial number of messages that can be sent to the pxp control |
| 4829 | interface without receiving any ACK. */ |
| 4830 | #define XSDM_REG_INIT_CREDIT_PXP_CTRL 0x1664bc |
| 4831 | /* [ST 32] The number of ACK after placement messages received */ |
| 4832 | #define XSDM_REG_NUM_OF_ACK_AFTER_PLACE 0x16627c |
| 4833 | /* [ST 32] The number of packet end messages received from the parser */ |
| 4834 | #define XSDM_REG_NUM_OF_PKT_END_MSG 0x166274 |
| 4835 | /* [ST 32] The number of requests received from the pxp async if */ |
| 4836 | #define XSDM_REG_NUM_OF_PXP_ASYNC_REQ 0x166278 |
| 4837 | /* [ST 32] The number of commands received in queue 0 */ |
| 4838 | #define XSDM_REG_NUM_OF_Q0_CMD 0x166248 |
| 4839 | /* [ST 32] The number of commands received in queue 10 */ |
| 4840 | #define XSDM_REG_NUM_OF_Q10_CMD 0x16626c |
| 4841 | /* [ST 32] The number of commands received in queue 11 */ |
| 4842 | #define XSDM_REG_NUM_OF_Q11_CMD 0x166270 |
| 4843 | /* [ST 32] The number of commands received in queue 1 */ |
| 4844 | #define XSDM_REG_NUM_OF_Q1_CMD 0x16624c |
| 4845 | /* [ST 32] The number of commands received in queue 3 */ |
| 4846 | #define XSDM_REG_NUM_OF_Q3_CMD 0x166250 |
| 4847 | /* [ST 32] The number of commands received in queue 4 */ |
| 4848 | #define XSDM_REG_NUM_OF_Q4_CMD 0x166254 |
| 4849 | /* [ST 32] The number of commands received in queue 5 */ |
| 4850 | #define XSDM_REG_NUM_OF_Q5_CMD 0x166258 |
| 4851 | /* [ST 32] The number of commands received in queue 6 */ |
| 4852 | #define XSDM_REG_NUM_OF_Q6_CMD 0x16625c |
| 4853 | /* [ST 32] The number of commands received in queue 7 */ |
| 4854 | #define XSDM_REG_NUM_OF_Q7_CMD 0x166260 |
| 4855 | /* [ST 32] The number of commands received in queue 8 */ |
| 4856 | #define XSDM_REG_NUM_OF_Q8_CMD 0x166264 |
| 4857 | /* [ST 32] The number of commands received in queue 9 */ |
| 4858 | #define XSDM_REG_NUM_OF_Q9_CMD 0x166268 |
| 4859 | /* [RW 13] The start address in the internal RAM for queue counters */ |
| 4860 | #define XSDM_REG_Q_COUNTER_START_ADDR 0x166010 |
| 4861 | /* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */ |
| 4862 | #define XSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0x166548 |
| 4863 | /* [R 1] parser fifo empty in sdm_sync block */ |
| 4864 | #define XSDM_REG_SYNC_PARSER_EMPTY 0x166550 |
| 4865 | /* [R 1] parser serial fifo empty in sdm_sync block */ |
| 4866 | #define XSDM_REG_SYNC_SYNC_EMPTY 0x166558 |
| 4867 | /* [RW 32] Tick for timer counter. Applicable only when |
| 4868 | ~xsdm_registers_timer_tick_enable.timer_tick_enable =1 */ |
| 4869 | #define XSDM_REG_TIMER_TICK 0x166000 |
| 4870 | /* [RW 32] Interrupt mask register #0 read/write */ |
| 4871 | #define XSDM_REG_XSDM_INT_MASK_0 0x16629c |
| 4872 | #define XSDM_REG_XSDM_INT_MASK_1 0x1662ac |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4873 | /* [R 32] Interrupt register #0 read */ |
| 4874 | #define XSDM_REG_XSDM_INT_STS_0 0x166290 |
| 4875 | #define XSDM_REG_XSDM_INT_STS_1 0x1662a0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4876 | /* [RW 11] Parity mask register #0 read/write */ |
| 4877 | #define XSDM_REG_XSDM_PRTY_MASK 0x1662bc |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 4878 | /* [R 11] Parity register #0 read */ |
| 4879 | #define XSDM_REG_XSDM_PRTY_STS 0x1662b0 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 4880 | /* [RC 11] Parity register #0 read clear */ |
| 4881 | #define XSDM_REG_XSDM_PRTY_STS_CLR 0x1662b4 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4882 | /* [RW 5] The number of time_slots in the arbitration cycle */ |
| 4883 | #define XSEM_REG_ARB_CYCLE_SIZE 0x280034 |
| 4884 | /* [RW 3] The source that is associated with arbitration element 0. Source |
| 4885 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 4886 | sleeping thread with priority 1; 4- sleeping thread with priority 2 */ |
| 4887 | #define XSEM_REG_ARB_ELEMENT0 0x280020 |
| 4888 | /* [RW 3] The source that is associated with arbitration element 1. Source |
| 4889 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 4890 | sleeping thread with priority 1; 4- sleeping thread with priority 2. |
| 4891 | Could not be equal to register ~xsem_registers_arb_element0.arb_element0 */ |
| 4892 | #define XSEM_REG_ARB_ELEMENT1 0x280024 |
| 4893 | /* [RW 3] The source that is associated with arbitration element 2. Source |
| 4894 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 4895 | sleeping thread with priority 1; 4- sleeping thread with priority 2. |
| 4896 | Could not be equal to register ~xsem_registers_arb_element0.arb_element0 |
| 4897 | and ~xsem_registers_arb_element1.arb_element1 */ |
| 4898 | #define XSEM_REG_ARB_ELEMENT2 0x280028 |
| 4899 | /* [RW 3] The source that is associated with arbitration element 3. Source |
| 4900 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 4901 | sleeping thread with priority 1; 4- sleeping thread with priority 2.Could |
| 4902 | not be equal to register ~xsem_registers_arb_element0.arb_element0 and |
| 4903 | ~xsem_registers_arb_element1.arb_element1 and |
| 4904 | ~xsem_registers_arb_element2.arb_element2 */ |
| 4905 | #define XSEM_REG_ARB_ELEMENT3 0x28002c |
| 4906 | /* [RW 3] The source that is associated with arbitration element 4. Source |
| 4907 | decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3- |
| 4908 | sleeping thread with priority 1; 4- sleeping thread with priority 2. |
| 4909 | Could not be equal to register ~xsem_registers_arb_element0.arb_element0 |
| 4910 | and ~xsem_registers_arb_element1.arb_element1 and |
| 4911 | ~xsem_registers_arb_element2.arb_element2 and |
| 4912 | ~xsem_registers_arb_element3.arb_element3 */ |
| 4913 | #define XSEM_REG_ARB_ELEMENT4 0x280030 |
| 4914 | #define XSEM_REG_ENABLE_IN 0x2800a4 |
| 4915 | #define XSEM_REG_ENABLE_OUT 0x2800a8 |
| 4916 | /* [RW 32] This address space contains all registers and memories that are |
| 4917 | placed in SEM_FAST block. The SEM_FAST registers are described in |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 4918 | appendix B. In order to access the sem_fast registers the base address |
| 4919 | ~fast_memory.fast_memory should be added to eachsem_fast register offset. */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 4920 | #define XSEM_REG_FAST_MEMORY 0x2a0000 |
| 4921 | /* [RW 1] Disables input messages from FIC0 May be updated during run_time |
| 4922 | by the microcode */ |
| 4923 | #define XSEM_REG_FIC0_DISABLE 0x280224 |
| 4924 | /* [RW 1] Disables input messages from FIC1 May be updated during run_time |
| 4925 | by the microcode */ |
| 4926 | #define XSEM_REG_FIC1_DISABLE 0x280234 |
| 4927 | /* [RW 15] Interrupt table Read and write access to it is not possible in |
| 4928 | the middle of the work */ |
| 4929 | #define XSEM_REG_INT_TABLE 0x280400 |
| 4930 | /* [ST 24] Statistics register. The number of messages that entered through |
| 4931 | FIC0 */ |
| 4932 | #define XSEM_REG_MSG_NUM_FIC0 0x280000 |
| 4933 | /* [ST 24] Statistics register. The number of messages that entered through |
| 4934 | FIC1 */ |
| 4935 | #define XSEM_REG_MSG_NUM_FIC1 0x280004 |
| 4936 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 4937 | FOC0 */ |
| 4938 | #define XSEM_REG_MSG_NUM_FOC0 0x280008 |
| 4939 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 4940 | FOC1 */ |
| 4941 | #define XSEM_REG_MSG_NUM_FOC1 0x28000c |
| 4942 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 4943 | FOC2 */ |
| 4944 | #define XSEM_REG_MSG_NUM_FOC2 0x280010 |
| 4945 | /* [ST 24] Statistics register. The number of messages that were sent to |
| 4946 | FOC3 */ |
| 4947 | #define XSEM_REG_MSG_NUM_FOC3 0x280014 |
| 4948 | /* [RW 1] Disables input messages from the passive buffer May be updated |
| 4949 | during run_time by the microcode */ |
| 4950 | #define XSEM_REG_PAS_DISABLE 0x28024c |
| 4951 | /* [WB 128] Debug only. Passive buffer memory */ |
| 4952 | #define XSEM_REG_PASSIVE_BUFFER 0x282000 |
| 4953 | /* [WB 46] pram memory. B45 is parity; b[44:0] - data. */ |
| 4954 | #define XSEM_REG_PRAM 0x2c0000 |
| 4955 | /* [R 16] Valid sleeping threads indication have bit per thread */ |
| 4956 | #define XSEM_REG_SLEEP_THREADS_VALID 0x28026c |
| 4957 | /* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */ |
| 4958 | #define XSEM_REG_SLOW_EXT_STORE_EMPTY 0x2802a0 |
| 4959 | /* [RW 16] List of free threads . There is a bit per thread. */ |
| 4960 | #define XSEM_REG_THREADS_LIST 0x2802e4 |
| 4961 | /* [RW 3] The arbitration scheme of time_slot 0 */ |
| 4962 | #define XSEM_REG_TS_0_AS 0x280038 |
| 4963 | /* [RW 3] The arbitration scheme of time_slot 10 */ |
| 4964 | #define XSEM_REG_TS_10_AS 0x280060 |
| 4965 | /* [RW 3] The arbitration scheme of time_slot 11 */ |
| 4966 | #define XSEM_REG_TS_11_AS 0x280064 |
| 4967 | /* [RW 3] The arbitration scheme of time_slot 12 */ |
| 4968 | #define XSEM_REG_TS_12_AS 0x280068 |
| 4969 | /* [RW 3] The arbitration scheme of time_slot 13 */ |
| 4970 | #define XSEM_REG_TS_13_AS 0x28006c |
| 4971 | /* [RW 3] The arbitration scheme of time_slot 14 */ |
| 4972 | #define XSEM_REG_TS_14_AS 0x280070 |
| 4973 | /* [RW 3] The arbitration scheme of time_slot 15 */ |
| 4974 | #define XSEM_REG_TS_15_AS 0x280074 |
| 4975 | /* [RW 3] The arbitration scheme of time_slot 16 */ |
| 4976 | #define XSEM_REG_TS_16_AS 0x280078 |
| 4977 | /* [RW 3] The arbitration scheme of time_slot 17 */ |
| 4978 | #define XSEM_REG_TS_17_AS 0x28007c |
| 4979 | /* [RW 3] The arbitration scheme of time_slot 18 */ |
| 4980 | #define XSEM_REG_TS_18_AS 0x280080 |
| 4981 | /* [RW 3] The arbitration scheme of time_slot 1 */ |
| 4982 | #define XSEM_REG_TS_1_AS 0x28003c |
| 4983 | /* [RW 3] The arbitration scheme of time_slot 2 */ |
| 4984 | #define XSEM_REG_TS_2_AS 0x280040 |
| 4985 | /* [RW 3] The arbitration scheme of time_slot 3 */ |
| 4986 | #define XSEM_REG_TS_3_AS 0x280044 |
| 4987 | /* [RW 3] The arbitration scheme of time_slot 4 */ |
| 4988 | #define XSEM_REG_TS_4_AS 0x280048 |
| 4989 | /* [RW 3] The arbitration scheme of time_slot 5 */ |
| 4990 | #define XSEM_REG_TS_5_AS 0x28004c |
| 4991 | /* [RW 3] The arbitration scheme of time_slot 6 */ |
| 4992 | #define XSEM_REG_TS_6_AS 0x280050 |
| 4993 | /* [RW 3] The arbitration scheme of time_slot 7 */ |
| 4994 | #define XSEM_REG_TS_7_AS 0x280054 |
| 4995 | /* [RW 3] The arbitration scheme of time_slot 8 */ |
| 4996 | #define XSEM_REG_TS_8_AS 0x280058 |
| 4997 | /* [RW 3] The arbitration scheme of time_slot 9 */ |
| 4998 | #define XSEM_REG_TS_9_AS 0x28005c |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 4999 | /* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64 |
| 5000 | * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */ |
| 5001 | #define XSEM_REG_VFPF_ERR_NUM 0x280380 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5002 | /* [RW 32] Interrupt mask register #0 read/write */ |
| 5003 | #define XSEM_REG_XSEM_INT_MASK_0 0x280110 |
| 5004 | #define XSEM_REG_XSEM_INT_MASK_1 0x280120 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5005 | /* [R 32] Interrupt register #0 read */ |
| 5006 | #define XSEM_REG_XSEM_INT_STS_0 0x280104 |
| 5007 | #define XSEM_REG_XSEM_INT_STS_1 0x280114 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5008 | /* [RW 32] Parity mask register #0 read/write */ |
| 5009 | #define XSEM_REG_XSEM_PRTY_MASK_0 0x280130 |
| 5010 | #define XSEM_REG_XSEM_PRTY_MASK_1 0x280140 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 5011 | /* [R 32] Parity register #0 read */ |
| 5012 | #define XSEM_REG_XSEM_PRTY_STS_0 0x280124 |
| 5013 | #define XSEM_REG_XSEM_PRTY_STS_1 0x280134 |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 5014 | /* [RC 32] Parity register #0 read clear */ |
| 5015 | #define XSEM_REG_XSEM_PRTY_STS_CLR_0 0x280128 |
| 5016 | #define XSEM_REG_XSEM_PRTY_STS_CLR_1 0x280138 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5017 | #define MCPR_NVM_ACCESS_ENABLE_EN (1L<<0) |
| 5018 | #define MCPR_NVM_ACCESS_ENABLE_WR_EN (1L<<1) |
| 5019 | #define MCPR_NVM_ADDR_NVM_ADDR_VALUE (0xffffffL<<0) |
| 5020 | #define MCPR_NVM_CFG4_FLASH_SIZE (0x7L<<0) |
| 5021 | #define MCPR_NVM_COMMAND_DOIT (1L<<4) |
| 5022 | #define MCPR_NVM_COMMAND_DONE (1L<<3) |
| 5023 | #define MCPR_NVM_COMMAND_FIRST (1L<<7) |
| 5024 | #define MCPR_NVM_COMMAND_LAST (1L<<8) |
| 5025 | #define MCPR_NVM_COMMAND_WR (1L<<5) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5026 | #define MCPR_NVM_SW_ARB_ARB_ARB1 (1L<<9) |
| 5027 | #define MCPR_NVM_SW_ARB_ARB_REQ_CLR1 (1L<<5) |
| 5028 | #define MCPR_NVM_SW_ARB_ARB_REQ_SET1 (1L<<1) |
| 5029 | #define BIGMAC_REGISTER_BMAC_CONTROL (0x00<<3) |
| 5030 | #define BIGMAC_REGISTER_BMAC_XGXS_CONTROL (0x01<<3) |
| 5031 | #define BIGMAC_REGISTER_CNT_MAX_SIZE (0x05<<3) |
| 5032 | #define BIGMAC_REGISTER_RX_CONTROL (0x21<<3) |
| 5033 | #define BIGMAC_REGISTER_RX_LLFC_MSG_FLDS (0x46<<3) |
| 5034 | #define BIGMAC_REGISTER_RX_MAX_SIZE (0x23<<3) |
| 5035 | #define BIGMAC_REGISTER_RX_STAT_GR64 (0x26<<3) |
| 5036 | #define BIGMAC_REGISTER_RX_STAT_GRIPJ (0x42<<3) |
| 5037 | #define BIGMAC_REGISTER_TX_CONTROL (0x07<<3) |
| 5038 | #define BIGMAC_REGISTER_TX_MAX_SIZE (0x09<<3) |
| 5039 | #define BIGMAC_REGISTER_TX_PAUSE_THRESHOLD (0x0A<<3) |
| 5040 | #define BIGMAC_REGISTER_TX_SOURCE_ADDR (0x08<<3) |
| 5041 | #define BIGMAC_REGISTER_TX_STAT_GTBYT (0x20<<3) |
| 5042 | #define BIGMAC_REGISTER_TX_STAT_GTPKT (0x0C<<3) |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 5043 | #define BIGMAC2_REGISTER_BMAC_CONTROL (0x00<<3) |
| 5044 | #define BIGMAC2_REGISTER_BMAC_XGXS_CONTROL (0x01<<3) |
| 5045 | #define BIGMAC2_REGISTER_CNT_MAX_SIZE (0x05<<3) |
| 5046 | #define BIGMAC2_REGISTER_PFC_CONTROL (0x06<<3) |
| 5047 | #define BIGMAC2_REGISTER_RX_CONTROL (0x3A<<3) |
| 5048 | #define BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS (0x62<<3) |
| 5049 | #define BIGMAC2_REGISTER_RX_MAX_SIZE (0x3C<<3) |
| 5050 | #define BIGMAC2_REGISTER_RX_STAT_GR64 (0x40<<3) |
| 5051 | #define BIGMAC2_REGISTER_RX_STAT_GRIPJ (0x5f<<3) |
| 5052 | #define BIGMAC2_REGISTER_RX_STAT_GRPP (0x51<<3) |
| 5053 | #define BIGMAC2_REGISTER_TX_CONTROL (0x1C<<3) |
| 5054 | #define BIGMAC2_REGISTER_TX_MAX_SIZE (0x1E<<3) |
| 5055 | #define BIGMAC2_REGISTER_TX_PAUSE_CONTROL (0x20<<3) |
| 5056 | #define BIGMAC2_REGISTER_TX_SOURCE_ADDR (0x1D<<3) |
| 5057 | #define BIGMAC2_REGISTER_TX_STAT_GTBYT (0x39<<3) |
| 5058 | #define BIGMAC2_REGISTER_TX_STAT_GTPOK (0x22<<3) |
| 5059 | #define BIGMAC2_REGISTER_TX_STAT_GTPP (0x24<<3) |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5060 | #define EMAC_LED_1000MB_OVERRIDE (1L<<1) |
| 5061 | #define EMAC_LED_100MB_OVERRIDE (1L<<2) |
| 5062 | #define EMAC_LED_10MB_OVERRIDE (1L<<3) |
| 5063 | #define EMAC_LED_2500MB_OVERRIDE (1L<<12) |
| 5064 | #define EMAC_LED_OVERRIDE (1L<<0) |
| 5065 | #define EMAC_LED_TRAFFIC (1L<<6) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5066 | #define EMAC_MDIO_COMM_COMMAND_ADDRESS (0L<<26) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5067 | #define EMAC_MDIO_COMM_COMMAND_READ_45 (3L<<26) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5068 | #define EMAC_MDIO_COMM_COMMAND_WRITE_45 (1L<<26) |
| 5069 | #define EMAC_MDIO_COMM_DATA (0xffffL<<0) |
| 5070 | #define EMAC_MDIO_COMM_START_BUSY (1L<<29) |
| 5071 | #define EMAC_MDIO_MODE_AUTO_POLL (1L<<4) |
| 5072 | #define EMAC_MDIO_MODE_CLAUSE_45 (1L<<31) |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 5073 | #define EMAC_MDIO_MODE_CLOCK_CNT (0x3fL<<16) |
| 5074 | #define EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT 16 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5075 | #define EMAC_MODE_25G_MODE (1L<<5) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5076 | #define EMAC_MODE_HALF_DUPLEX (1L<<1) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5077 | #define EMAC_MODE_PORT_GMII (2L<<2) |
| 5078 | #define EMAC_MODE_PORT_MII (1L<<2) |
| 5079 | #define EMAC_MODE_PORT_MII_10M (3L<<2) |
| 5080 | #define EMAC_MODE_RESET (1L<<0) |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5081 | #define EMAC_REG_EMAC_LED 0xc |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5082 | #define EMAC_REG_EMAC_MAC_MATCH 0x10 |
| 5083 | #define EMAC_REG_EMAC_MDIO_COMM 0xac |
| 5084 | #define EMAC_REG_EMAC_MDIO_MODE 0xb4 |
| 5085 | #define EMAC_REG_EMAC_MODE 0x0 |
| 5086 | #define EMAC_REG_EMAC_RX_MODE 0xc8 |
| 5087 | #define EMAC_REG_EMAC_RX_MTU_SIZE 0x9c |
| 5088 | #define EMAC_REG_EMAC_RX_STAT_AC 0x180 |
| 5089 | #define EMAC_REG_EMAC_RX_STAT_AC_28 0x1f4 |
| 5090 | #define EMAC_REG_EMAC_RX_STAT_AC_COUNT 23 |
| 5091 | #define EMAC_REG_EMAC_TX_MODE 0xbc |
| 5092 | #define EMAC_REG_EMAC_TX_STAT_AC 0x280 |
| 5093 | #define EMAC_REG_EMAC_TX_STAT_AC_COUNT 22 |
Vladislav Zolotarov | bcab15c | 2010-12-13 05:44:25 +0000 | [diff] [blame] | 5094 | #define EMAC_REG_RX_PFC_MODE 0x320 |
| 5095 | #define EMAC_REG_RX_PFC_MODE_PRIORITIES (1L<<2) |
| 5096 | #define EMAC_REG_RX_PFC_MODE_RX_EN (1L<<1) |
| 5097 | #define EMAC_REG_RX_PFC_MODE_TX_EN (1L<<0) |
| 5098 | #define EMAC_REG_RX_PFC_PARAM 0x324 |
| 5099 | #define EMAC_REG_RX_PFC_PARAM_OPCODE_BITSHIFT 0 |
| 5100 | #define EMAC_REG_RX_PFC_PARAM_PRIORITY_EN_BITSHIFT 16 |
| 5101 | #define EMAC_REG_RX_PFC_STATS_XOFF_RCVD 0x328 |
| 5102 | #define EMAC_REG_RX_PFC_STATS_XOFF_RCVD_COUNT (0xffff<<0) |
| 5103 | #define EMAC_REG_RX_PFC_STATS_XOFF_SENT 0x330 |
| 5104 | #define EMAC_REG_RX_PFC_STATS_XOFF_SENT_COUNT (0xffff<<0) |
| 5105 | #define EMAC_REG_RX_PFC_STATS_XON_RCVD 0x32c |
| 5106 | #define EMAC_REG_RX_PFC_STATS_XON_RCVD_COUNT (0xffff<<0) |
| 5107 | #define EMAC_REG_RX_PFC_STATS_XON_SENT 0x334 |
| 5108 | #define EMAC_REG_RX_PFC_STATS_XON_SENT_COUNT (0xffff<<0) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5109 | #define EMAC_RX_MODE_FLOW_EN (1L<<2) |
Vladislav Zolotarov | bcab15c | 2010-12-13 05:44:25 +0000 | [diff] [blame] | 5110 | #define EMAC_RX_MODE_KEEP_MAC_CONTROL (1L<<3) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5111 | #define EMAC_RX_MODE_KEEP_VLAN_TAG (1L<<10) |
| 5112 | #define EMAC_RX_MODE_PROMISCUOUS (1L<<8) |
Eilon Greenstein | 811a2f2 | 2009-02-12 08:37:04 +0000 | [diff] [blame] | 5113 | #define EMAC_RX_MODE_RESET (1L<<0) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5114 | #define EMAC_RX_MTU_SIZE_JUMBO_ENA (1L<<31) |
| 5115 | #define EMAC_TX_MODE_EXT_PAUSE_EN (1L<<3) |
Yaniv Rosner | 8c99e7b | 2008-08-13 15:56:17 -0700 | [diff] [blame] | 5116 | #define EMAC_TX_MODE_FLOW_EN (1L<<4) |
Eilon Greenstein | 811a2f2 | 2009-02-12 08:37:04 +0000 | [diff] [blame] | 5117 | #define EMAC_TX_MODE_RESET (1L<<0) |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5118 | #define MISC_REGISTERS_GPIO_0 0 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 5119 | #define MISC_REGISTERS_GPIO_1 1 |
| 5120 | #define MISC_REGISTERS_GPIO_2 2 |
| 5121 | #define MISC_REGISTERS_GPIO_3 3 |
| 5122 | #define MISC_REGISTERS_GPIO_CLR_POS 16 |
| 5123 | #define MISC_REGISTERS_GPIO_FLOAT (0xffL<<24) |
| 5124 | #define MISC_REGISTERS_GPIO_FLOAT_POS 24 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5125 | #define MISC_REGISTERS_GPIO_HIGH 1 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 5126 | #define MISC_REGISTERS_GPIO_INPUT_HI_Z 2 |
Eilon Greenstein | 4acac6a | 2009-02-12 08:36:52 +0000 | [diff] [blame] | 5127 | #define MISC_REGISTERS_GPIO_INT_CLR_POS 24 |
| 5128 | #define MISC_REGISTERS_GPIO_INT_OUTPUT_CLR 0 |
| 5129 | #define MISC_REGISTERS_GPIO_INT_OUTPUT_SET 1 |
| 5130 | #define MISC_REGISTERS_GPIO_INT_SET_POS 16 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5131 | #define MISC_REGISTERS_GPIO_LOW 0 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 5132 | #define MISC_REGISTERS_GPIO_OUTPUT_HIGH 1 |
| 5133 | #define MISC_REGISTERS_GPIO_OUTPUT_LOW 0 |
| 5134 | #define MISC_REGISTERS_GPIO_PORT_SHIFT 4 |
| 5135 | #define MISC_REGISTERS_GPIO_SET_POS 8 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5136 | #define MISC_REGISTERS_RESET_REG_1_CLEAR 0x588 |
Vladislav Zolotarov | 72fd071 | 2010-04-19 01:13:12 +0000 | [diff] [blame] | 5137 | #define MISC_REGISTERS_RESET_REG_1_RST_HC (0x1<<29) |
Vladislav Zolotarov | da5a662 | 2008-08-13 15:50:00 -0700 | [diff] [blame] | 5138 | #define MISC_REGISTERS_RESET_REG_1_RST_NIG (0x1<<7) |
Vladislav Zolotarov | 72fd071 | 2010-04-19 01:13:12 +0000 | [diff] [blame] | 5139 | #define MISC_REGISTERS_RESET_REG_1_RST_PXP (0x1<<26) |
| 5140 | #define MISC_REGISTERS_RESET_REG_1_RST_PXPV (0x1<<27) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5141 | #define MISC_REGISTERS_RESET_REG_1_SET 0x584 |
| 5142 | #define MISC_REGISTERS_RESET_REG_2_CLEAR 0x598 |
| 5143 | #define MISC_REGISTERS_RESET_REG_2_RST_BMAC0 (0x1<<0) |
| 5144 | #define MISC_REGISTERS_RESET_REG_2_RST_EMAC0_HARD_CORE (0x1<<14) |
Vladislav Zolotarov | 72fd071 | 2010-04-19 01:13:12 +0000 | [diff] [blame] | 5145 | #define MISC_REGISTERS_RESET_REG_2_RST_EMAC1_HARD_CORE (0x1<<15) |
| 5146 | #define MISC_REGISTERS_RESET_REG_2_RST_GRC (0x1<<4) |
| 5147 | #define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_HARD_CORE_RST_B (0x1<<6) |
| 5148 | #define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_REG_HARD_CORE (0x1<<5) |
| 5149 | #define MISC_REGISTERS_RESET_REG_2_RST_MDIO (0x1<<13) |
| 5150 | #define MISC_REGISTERS_RESET_REG_2_RST_MISC_CORE (0x1<<11) |
| 5151 | #define MISC_REGISTERS_RESET_REG_2_RST_RBCN (0x1<<9) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5152 | #define MISC_REGISTERS_RESET_REG_2_SET 0x594 |
| 5153 | #define MISC_REGISTERS_RESET_REG_3_CLEAR 0x5a8 |
| 5154 | #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_IDDQ (0x1<<1) |
| 5155 | #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN (0x1<<2) |
| 5156 | #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN_SD (0x1<<3) |
| 5157 | #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_RSTB_HW (0x1<<0) |
| 5158 | #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_IDDQ (0x1<<5) |
| 5159 | #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN (0x1<<6) |
| 5160 | #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN_SD (0x1<<7) |
| 5161 | #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_RSTB_HW (0x1<<4) |
| 5162 | #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_TXD_FIFO_RSTB (0x1<<8) |
| 5163 | #define MISC_REGISTERS_RESET_REG_3_SET 0x5a4 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 5164 | #define MISC_REGISTERS_SPIO_4 4 |
| 5165 | #define MISC_REGISTERS_SPIO_5 5 |
| 5166 | #define MISC_REGISTERS_SPIO_7 7 |
| 5167 | #define MISC_REGISTERS_SPIO_CLR_POS 16 |
| 5168 | #define MISC_REGISTERS_SPIO_FLOAT (0xffL<<24) |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 5169 | #define MISC_REGISTERS_SPIO_FLOAT_POS 24 |
| 5170 | #define MISC_REGISTERS_SPIO_INPUT_HI_Z 2 |
| 5171 | #define MISC_REGISTERS_SPIO_INT_OLD_SET_POS 16 |
| 5172 | #define MISC_REGISTERS_SPIO_OUTPUT_HIGH 1 |
| 5173 | #define MISC_REGISTERS_SPIO_OUTPUT_LOW 0 |
| 5174 | #define MISC_REGISTERS_SPIO_SET_POS 8 |
| 5175 | #define HW_LOCK_MAX_RESOURCE_VALUE 31 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 5176 | #define HW_LOCK_RESOURCE_GPIO 1 |
Eilon Greenstein | 46c6a67 | 2009-02-12 08:36:58 +0000 | [diff] [blame] | 5177 | #define HW_LOCK_RESOURCE_MDIO 0 |
Eilon Greenstein | 3fcaf2e | 2008-08-13 15:50:45 -0700 | [diff] [blame] | 5178 | #define HW_LOCK_RESOURCE_PORT0_ATT_MASK 3 |
Vladislav Zolotarov | 72fd071 | 2010-04-19 01:13:12 +0000 | [diff] [blame] | 5179 | #define HW_LOCK_RESOURCE_RESERVED_08 8 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 5180 | #define HW_LOCK_RESOURCE_SPIO 2 |
Vladislav Zolotarov | da5a662 | 2008-08-13 15:50:00 -0700 | [diff] [blame] | 5181 | #define HW_LOCK_RESOURCE_UNDI 5 |
Eilon Greenstein | 052a38e | 2009-02-12 08:37:16 +0000 | [diff] [blame] | 5182 | #define PRS_FLAG_OVERETH_IPV4 1 |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 5183 | #define AEU_INPUTS_ATTN_BITS_ATC_HW_INTERRUPT (0x1<<4) |
| 5184 | #define AEU_INPUTS_ATTN_BITS_ATC_PARITY_ERROR (0x1<<5) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5185 | #define AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR (1<<18) |
| 5186 | #define AEU_INPUTS_ATTN_BITS_CCM_HW_INTERRUPT (1<<31) |
| 5187 | #define AEU_INPUTS_ATTN_BITS_CDU_HW_INTERRUPT (1<<9) |
| 5188 | #define AEU_INPUTS_ATTN_BITS_CDU_PARITY_ERROR (1<<8) |
| 5189 | #define AEU_INPUTS_ATTN_BITS_CFC_HW_INTERRUPT (1<<7) |
| 5190 | #define AEU_INPUTS_ATTN_BITS_CFC_PARITY_ERROR (1<<6) |
| 5191 | #define AEU_INPUTS_ATTN_BITS_CSDM_HW_INTERRUPT (1<<29) |
| 5192 | #define AEU_INPUTS_ATTN_BITS_CSDM_PARITY_ERROR (1<<28) |
| 5193 | #define AEU_INPUTS_ATTN_BITS_CSEMI_HW_INTERRUPT (1<<1) |
| 5194 | #define AEU_INPUTS_ATTN_BITS_CSEMI_PARITY_ERROR (1<<0) |
| 5195 | #define AEU_INPUTS_ATTN_BITS_DEBUG_PARITY_ERROR (1<<18) |
| 5196 | #define AEU_INPUTS_ATTN_BITS_DMAE_HW_INTERRUPT (1<<11) |
| 5197 | #define AEU_INPUTS_ATTN_BITS_DOORBELLQ_HW_INTERRUPT (1<<13) |
| 5198 | #define AEU_INPUTS_ATTN_BITS_DOORBELLQ_PARITY_ERROR (1<<12) |
Eilon Greenstein | 4acac6a | 2009-02-12 08:36:52 +0000 | [diff] [blame] | 5199 | #define AEU_INPUTS_ATTN_BITS_GPIO3_FUNCTION_0 (1<<5) |
| 5200 | #define AEU_INPUTS_ATTN_BITS_GPIO3_FUNCTION_1 (1<<9) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5201 | #define AEU_INPUTS_ATTN_BITS_IGU_PARITY_ERROR (1<<12) |
Vladislav Zolotarov | 72fd071 | 2010-04-19 01:13:12 +0000 | [diff] [blame] | 5202 | #define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_ROM_PARITY (1<<28) |
| 5203 | #define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY (1<<31) |
| 5204 | #define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_RX_PARITY (1<<29) |
| 5205 | #define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_TX_PARITY (1<<30) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5206 | #define AEU_INPUTS_ATTN_BITS_MISC_HW_INTERRUPT (1<<15) |
| 5207 | #define AEU_INPUTS_ATTN_BITS_MISC_PARITY_ERROR (1<<14) |
| 5208 | #define AEU_INPUTS_ATTN_BITS_PARSER_PARITY_ERROR (1<<20) |
| 5209 | #define AEU_INPUTS_ATTN_BITS_PBCLIENT_PARITY_ERROR (1<<0) |
| 5210 | #define AEU_INPUTS_ATTN_BITS_PBF_HW_INTERRUPT (1<<31) |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 5211 | #define AEU_INPUTS_ATTN_BITS_PGLUE_HW_INTERRUPT (0x1<<2) |
| 5212 | #define AEU_INPUTS_ATTN_BITS_PGLUE_PARITY_ERROR (0x1<<3) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5213 | #define AEU_INPUTS_ATTN_BITS_PXP_HW_INTERRUPT (1<<3) |
| 5214 | #define AEU_INPUTS_ATTN_BITS_PXP_PARITY_ERROR (1<<2) |
| 5215 | #define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_HW_INTERRUPT (1<<5) |
| 5216 | #define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_PARITY_ERROR (1<<4) |
| 5217 | #define AEU_INPUTS_ATTN_BITS_QM_HW_INTERRUPT (1<<3) |
| 5218 | #define AEU_INPUTS_ATTN_BITS_QM_PARITY_ERROR (1<<2) |
| 5219 | #define AEU_INPUTS_ATTN_BITS_SEARCHER_PARITY_ERROR (1<<22) |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 5220 | #define AEU_INPUTS_ATTN_BITS_SPIO5 (1<<15) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5221 | #define AEU_INPUTS_ATTN_BITS_TCM_HW_INTERRUPT (1<<27) |
| 5222 | #define AEU_INPUTS_ATTN_BITS_TIMERS_HW_INTERRUPT (1<<5) |
| 5223 | #define AEU_INPUTS_ATTN_BITS_TSDM_HW_INTERRUPT (1<<25) |
| 5224 | #define AEU_INPUTS_ATTN_BITS_TSDM_PARITY_ERROR (1<<24) |
| 5225 | #define AEU_INPUTS_ATTN_BITS_TSEMI_HW_INTERRUPT (1<<29) |
| 5226 | #define AEU_INPUTS_ATTN_BITS_TSEMI_PARITY_ERROR (1<<28) |
| 5227 | #define AEU_INPUTS_ATTN_BITS_UCM_HW_INTERRUPT (1<<23) |
| 5228 | #define AEU_INPUTS_ATTN_BITS_UPB_HW_INTERRUPT (1<<27) |
| 5229 | #define AEU_INPUTS_ATTN_BITS_UPB_PARITY_ERROR (1<<26) |
| 5230 | #define AEU_INPUTS_ATTN_BITS_USDM_HW_INTERRUPT (1<<21) |
| 5231 | #define AEU_INPUTS_ATTN_BITS_USDM_PARITY_ERROR (1<<20) |
| 5232 | #define AEU_INPUTS_ATTN_BITS_USEMI_HW_INTERRUPT (1<<25) |
| 5233 | #define AEU_INPUTS_ATTN_BITS_USEMI_PARITY_ERROR (1<<24) |
| 5234 | #define AEU_INPUTS_ATTN_BITS_VAUX_PCI_CORE_PARITY_ERROR (1<<16) |
| 5235 | #define AEU_INPUTS_ATTN_BITS_XCM_HW_INTERRUPT (1<<9) |
| 5236 | #define AEU_INPUTS_ATTN_BITS_XSDM_HW_INTERRUPT (1<<7) |
| 5237 | #define AEU_INPUTS_ATTN_BITS_XSDM_PARITY_ERROR (1<<6) |
| 5238 | #define AEU_INPUTS_ATTN_BITS_XSEMI_HW_INTERRUPT (1<<11) |
| 5239 | #define AEU_INPUTS_ATTN_BITS_XSEMI_PARITY_ERROR (1<<10) |
| 5240 | #define RESERVED_GENERAL_ATTENTION_BIT_0 0 |
| 5241 | |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5242 | #define EVEREST_GEN_ATTN_IN_USE_MASK 0x3ffe0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5243 | #define EVEREST_LATCHED_ATTN_IN_USE_MASK 0xffe00000 |
| 5244 | |
| 5245 | #define RESERVED_GENERAL_ATTENTION_BIT_6 6 |
| 5246 | #define RESERVED_GENERAL_ATTENTION_BIT_7 7 |
| 5247 | #define RESERVED_GENERAL_ATTENTION_BIT_8 8 |
| 5248 | #define RESERVED_GENERAL_ATTENTION_BIT_9 9 |
| 5249 | #define RESERVED_GENERAL_ATTENTION_BIT_10 10 |
| 5250 | #define RESERVED_GENERAL_ATTENTION_BIT_11 11 |
| 5251 | #define RESERVED_GENERAL_ATTENTION_BIT_12 12 |
| 5252 | #define RESERVED_GENERAL_ATTENTION_BIT_13 13 |
| 5253 | #define RESERVED_GENERAL_ATTENTION_BIT_14 14 |
| 5254 | #define RESERVED_GENERAL_ATTENTION_BIT_15 15 |
| 5255 | #define RESERVED_GENERAL_ATTENTION_BIT_16 16 |
| 5256 | #define RESERVED_GENERAL_ATTENTION_BIT_17 17 |
| 5257 | #define RESERVED_GENERAL_ATTENTION_BIT_18 18 |
| 5258 | #define RESERVED_GENERAL_ATTENTION_BIT_19 19 |
| 5259 | #define RESERVED_GENERAL_ATTENTION_BIT_20 20 |
| 5260 | #define RESERVED_GENERAL_ATTENTION_BIT_21 21 |
| 5261 | |
| 5262 | /* storm asserts attention bits */ |
| 5263 | #define TSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_7 |
| 5264 | #define USTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_8 |
| 5265 | #define CSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_9 |
| 5266 | #define XSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_10 |
| 5267 | |
| 5268 | /* mcp error attention bit */ |
| 5269 | #define MCP_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_11 |
| 5270 | |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5271 | /*E1H NIG status sync attention mapped to group 4-7*/ |
| 5272 | #define LINK_SYNC_ATTENTION_BIT_FUNC_0 RESERVED_GENERAL_ATTENTION_BIT_12 |
| 5273 | #define LINK_SYNC_ATTENTION_BIT_FUNC_1 RESERVED_GENERAL_ATTENTION_BIT_13 |
| 5274 | #define LINK_SYNC_ATTENTION_BIT_FUNC_2 RESERVED_GENERAL_ATTENTION_BIT_14 |
| 5275 | #define LINK_SYNC_ATTENTION_BIT_FUNC_3 RESERVED_GENERAL_ATTENTION_BIT_15 |
| 5276 | #define LINK_SYNC_ATTENTION_BIT_FUNC_4 RESERVED_GENERAL_ATTENTION_BIT_16 |
| 5277 | #define LINK_SYNC_ATTENTION_BIT_FUNC_5 RESERVED_GENERAL_ATTENTION_BIT_17 |
| 5278 | #define LINK_SYNC_ATTENTION_BIT_FUNC_6 RESERVED_GENERAL_ATTENTION_BIT_18 |
| 5279 | #define LINK_SYNC_ATTENTION_BIT_FUNC_7 RESERVED_GENERAL_ATTENTION_BIT_19 |
| 5280 | |
| 5281 | |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5282 | #define LATCHED_ATTN_RBCR 23 |
| 5283 | #define LATCHED_ATTN_RBCT 24 |
| 5284 | #define LATCHED_ATTN_RBCN 25 |
| 5285 | #define LATCHED_ATTN_RBCU 26 |
| 5286 | #define LATCHED_ATTN_RBCP 27 |
| 5287 | #define LATCHED_ATTN_TIMEOUT_GRC 28 |
| 5288 | #define LATCHED_ATTN_RSVD_GRC 29 |
| 5289 | #define LATCHED_ATTN_ROM_PARITY_MCP 30 |
| 5290 | #define LATCHED_ATTN_UM_RX_PARITY_MCP 31 |
| 5291 | #define LATCHED_ATTN_UM_TX_PARITY_MCP 32 |
| 5292 | #define LATCHED_ATTN_SCPAD_PARITY_MCP 33 |
| 5293 | |
| 5294 | #define GENERAL_ATTEN_WORD(atten_name) ((94 + atten_name) / 32) |
Eilon Greenstein | ab6ad5a | 2009-08-12 08:24:29 +0000 | [diff] [blame] | 5295 | #define GENERAL_ATTEN_OFFSET(atten_name)\ |
| 5296 | (1UL << ((94 + atten_name) % 32)) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5297 | /* |
| 5298 | * This file defines GRC base address for every block. |
| 5299 | * This file is included by chipsim, asm microcode and cpp microcode. |
| 5300 | * These values are used in Design.xml on regBase attribute |
| 5301 | * Use the base with the generated offsets of specific registers. |
| 5302 | */ |
| 5303 | |
| 5304 | #define GRCBASE_PXPCS 0x000000 |
| 5305 | #define GRCBASE_PCICONFIG 0x002000 |
| 5306 | #define GRCBASE_PCIREG 0x002400 |
| 5307 | #define GRCBASE_EMAC0 0x008000 |
| 5308 | #define GRCBASE_EMAC1 0x008400 |
| 5309 | #define GRCBASE_DBU 0x008800 |
| 5310 | #define GRCBASE_MISC 0x00A000 |
| 5311 | #define GRCBASE_DBG 0x00C000 |
| 5312 | #define GRCBASE_NIG 0x010000 |
| 5313 | #define GRCBASE_XCM 0x020000 |
| 5314 | #define GRCBASE_PRS 0x040000 |
| 5315 | #define GRCBASE_SRCH 0x040400 |
| 5316 | #define GRCBASE_TSDM 0x042000 |
| 5317 | #define GRCBASE_TCM 0x050000 |
| 5318 | #define GRCBASE_BRB1 0x060000 |
| 5319 | #define GRCBASE_MCP 0x080000 |
| 5320 | #define GRCBASE_UPB 0x0C1000 |
| 5321 | #define GRCBASE_CSDM 0x0C2000 |
| 5322 | #define GRCBASE_USDM 0x0C4000 |
| 5323 | #define GRCBASE_CCM 0x0D0000 |
| 5324 | #define GRCBASE_UCM 0x0E0000 |
| 5325 | #define GRCBASE_CDU 0x101000 |
| 5326 | #define GRCBASE_DMAE 0x102000 |
| 5327 | #define GRCBASE_PXP 0x103000 |
| 5328 | #define GRCBASE_CFC 0x104000 |
| 5329 | #define GRCBASE_HC 0x108000 |
| 5330 | #define GRCBASE_PXP2 0x120000 |
| 5331 | #define GRCBASE_PBF 0x140000 |
| 5332 | #define GRCBASE_XPB 0x161000 |
| 5333 | #define GRCBASE_TIMERS 0x164000 |
| 5334 | #define GRCBASE_XSDM 0x166000 |
| 5335 | #define GRCBASE_QM 0x168000 |
| 5336 | #define GRCBASE_DQ 0x170000 |
| 5337 | #define GRCBASE_TSEM 0x180000 |
| 5338 | #define GRCBASE_CSEM 0x200000 |
| 5339 | #define GRCBASE_XSEM 0x280000 |
| 5340 | #define GRCBASE_USEM 0x300000 |
| 5341 | #define GRCBASE_MISC_AEU GRCBASE_MISC |
| 5342 | |
| 5343 | |
Eilon Greenstein | 5c86284 | 2008-08-13 15:51:48 -0700 | [diff] [blame] | 5344 | /* offset of configuration space in the pci core register */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5345 | #define PCICFG_OFFSET 0x2000 |
| 5346 | #define PCICFG_VENDOR_ID_OFFSET 0x00 |
| 5347 | #define PCICFG_DEVICE_ID_OFFSET 0x02 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5348 | #define PCICFG_COMMAND_OFFSET 0x04 |
Eilon Greenstein | 5c86284 | 2008-08-13 15:51:48 -0700 | [diff] [blame] | 5349 | #define PCICFG_COMMAND_IO_SPACE (1<<0) |
| 5350 | #define PCICFG_COMMAND_MEM_SPACE (1<<1) |
| 5351 | #define PCICFG_COMMAND_BUS_MASTER (1<<2) |
| 5352 | #define PCICFG_COMMAND_SPECIAL_CYCLES (1<<3) |
| 5353 | #define PCICFG_COMMAND_MWI_CYCLES (1<<4) |
| 5354 | #define PCICFG_COMMAND_VGA_SNOOP (1<<5) |
| 5355 | #define PCICFG_COMMAND_PERR_ENA (1<<6) |
| 5356 | #define PCICFG_COMMAND_STEPPING (1<<7) |
| 5357 | #define PCICFG_COMMAND_SERR_ENA (1<<8) |
| 5358 | #define PCICFG_COMMAND_FAST_B2B (1<<9) |
| 5359 | #define PCICFG_COMMAND_INT_DISABLE (1<<10) |
| 5360 | #define PCICFG_COMMAND_RESERVED (0x1f<<11) |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5361 | #define PCICFG_STATUS_OFFSET 0x06 |
Eilon Greenstein | 0d1a8d2 | 2009-03-02 07:59:20 +0000 | [diff] [blame] | 5362 | #define PCICFG_REVESION_ID_OFFSET 0x08 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5363 | #define PCICFG_CACHE_LINE_SIZE 0x0c |
| 5364 | #define PCICFG_LATENCY_TIMER 0x0d |
Eilon Greenstein | 5c86284 | 2008-08-13 15:51:48 -0700 | [diff] [blame] | 5365 | #define PCICFG_BAR_1_LOW 0x10 |
| 5366 | #define PCICFG_BAR_1_HIGH 0x14 |
| 5367 | #define PCICFG_BAR_2_LOW 0x18 |
| 5368 | #define PCICFG_BAR_2_HIGH 0x1c |
| 5369 | #define PCICFG_SUBSYSTEM_VENDOR_ID_OFFSET 0x2c |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5370 | #define PCICFG_SUBSYSTEM_ID_OFFSET 0x2e |
Eilon Greenstein | 5c86284 | 2008-08-13 15:51:48 -0700 | [diff] [blame] | 5371 | #define PCICFG_INT_LINE 0x3c |
| 5372 | #define PCICFG_INT_PIN 0x3d |
| 5373 | #define PCICFG_PM_CAPABILITY 0x48 |
| 5374 | #define PCICFG_PM_CAPABILITY_VERSION (0x3<<16) |
| 5375 | #define PCICFG_PM_CAPABILITY_CLOCK (1<<19) |
| 5376 | #define PCICFG_PM_CAPABILITY_RESERVED (1<<20) |
| 5377 | #define PCICFG_PM_CAPABILITY_DSI (1<<21) |
| 5378 | #define PCICFG_PM_CAPABILITY_AUX_CURRENT (0x7<<22) |
| 5379 | #define PCICFG_PM_CAPABILITY_D1_SUPPORT (1<<25) |
| 5380 | #define PCICFG_PM_CAPABILITY_D2_SUPPORT (1<<26) |
| 5381 | #define PCICFG_PM_CAPABILITY_PME_IN_D0 (1<<27) |
| 5382 | #define PCICFG_PM_CAPABILITY_PME_IN_D1 (1<<28) |
| 5383 | #define PCICFG_PM_CAPABILITY_PME_IN_D2 (1<<29) |
| 5384 | #define PCICFG_PM_CAPABILITY_PME_IN_D3_HOT (1<<30) |
| 5385 | #define PCICFG_PM_CAPABILITY_PME_IN_D3_COLD (1<<31) |
| 5386 | #define PCICFG_PM_CSR_OFFSET 0x4c |
| 5387 | #define PCICFG_PM_CSR_STATE (0x3<<0) |
| 5388 | #define PCICFG_PM_CSR_PME_ENABLE (1<<8) |
| 5389 | #define PCICFG_PM_CSR_PME_STATUS (1<<15) |
Eilon Greenstein | 0d1a8d2 | 2009-03-02 07:59:20 +0000 | [diff] [blame] | 5390 | #define PCICFG_MSI_CAP_ID_OFFSET 0x58 |
Eilon Greenstein | 8badd27 | 2009-02-12 08:36:15 +0000 | [diff] [blame] | 5391 | #define PCICFG_MSI_CONTROL_ENABLE (0x1<<16) |
| 5392 | #define PCICFG_MSI_CONTROL_MCAP (0x7<<17) |
| 5393 | #define PCICFG_MSI_CONTROL_MENA (0x7<<20) |
| 5394 | #define PCICFG_MSI_CONTROL_64_BIT_ADDR_CAP (0x1<<23) |
| 5395 | #define PCICFG_MSI_CONTROL_MSI_PVMASK_CAPABLE (0x1<<24) |
Eilon Greenstein | 5c86284 | 2008-08-13 15:51:48 -0700 | [diff] [blame] | 5396 | #define PCICFG_GRC_ADDRESS 0x78 |
| 5397 | #define PCICFG_GRC_DATA 0x80 |
Eilon Greenstein | 0d1a8d2 | 2009-03-02 07:59:20 +0000 | [diff] [blame] | 5398 | #define PCICFG_MSIX_CAP_ID_OFFSET 0xa0 |
Eilon Greenstein | 8badd27 | 2009-02-12 08:36:15 +0000 | [diff] [blame] | 5399 | #define PCICFG_MSIX_CONTROL_TABLE_SIZE (0x7ff<<16) |
| 5400 | #define PCICFG_MSIX_CONTROL_RESERVED (0x7<<27) |
| 5401 | #define PCICFG_MSIX_CONTROL_FUNC_MASK (0x1<<30) |
| 5402 | #define PCICFG_MSIX_CONTROL_MSIX_ENABLE (0x1<<31) |
| 5403 | |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5404 | #define PCICFG_DEVICE_CONTROL 0xb4 |
Eilon Greenstein | 8badd27 | 2009-02-12 08:36:15 +0000 | [diff] [blame] | 5405 | #define PCICFG_DEVICE_STATUS 0xb6 |
| 5406 | #define PCICFG_DEVICE_STATUS_CORR_ERR_DET (1<<0) |
| 5407 | #define PCICFG_DEVICE_STATUS_NON_FATAL_ERR_DET (1<<1) |
| 5408 | #define PCICFG_DEVICE_STATUS_FATAL_ERR_DET (1<<2) |
| 5409 | #define PCICFG_DEVICE_STATUS_UNSUP_REQ_DET (1<<3) |
| 5410 | #define PCICFG_DEVICE_STATUS_AUX_PWR_DET (1<<4) |
| 5411 | #define PCICFG_DEVICE_STATUS_NO_PEND (1<<5) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5412 | #define PCICFG_LINK_CONTROL 0xbc |
| 5413 | |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5414 | |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5415 | #define BAR_USTRORM_INTMEM 0x400000 |
| 5416 | #define BAR_CSTRORM_INTMEM 0x410000 |
| 5417 | #define BAR_XSTRORM_INTMEM 0x420000 |
| 5418 | #define BAR_TSTRORM_INTMEM 0x430000 |
| 5419 | |
Eilon Greenstein | 5c86284 | 2008-08-13 15:51:48 -0700 | [diff] [blame] | 5420 | /* for accessing the IGU in case of status block ACK */ |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5421 | #define BAR_IGU_INTMEM 0x440000 |
| 5422 | |
| 5423 | #define BAR_DOORBELL_OFFSET 0x800000 |
| 5424 | |
| 5425 | #define BAR_ME_REGISTER 0x450000 |
| 5426 | |
Eilon Greenstein | 5c86284 | 2008-08-13 15:51:48 -0700 | [diff] [blame] | 5427 | /* config_2 offset */ |
| 5428 | #define GRC_CONFIG_2_SIZE_REG 0x408 |
| 5429 | #define PCI_CONFIG_2_BAR1_SIZE (0xfL<<0) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5430 | #define PCI_CONFIG_2_BAR1_SIZE_DISABLED (0L<<0) |
| 5431 | #define PCI_CONFIG_2_BAR1_SIZE_64K (1L<<0) |
| 5432 | #define PCI_CONFIG_2_BAR1_SIZE_128K (2L<<0) |
| 5433 | #define PCI_CONFIG_2_BAR1_SIZE_256K (3L<<0) |
| 5434 | #define PCI_CONFIG_2_BAR1_SIZE_512K (4L<<0) |
| 5435 | #define PCI_CONFIG_2_BAR1_SIZE_1M (5L<<0) |
| 5436 | #define PCI_CONFIG_2_BAR1_SIZE_2M (6L<<0) |
| 5437 | #define PCI_CONFIG_2_BAR1_SIZE_4M (7L<<0) |
| 5438 | #define PCI_CONFIG_2_BAR1_SIZE_8M (8L<<0) |
| 5439 | #define PCI_CONFIG_2_BAR1_SIZE_16M (9L<<0) |
| 5440 | #define PCI_CONFIG_2_BAR1_SIZE_32M (10L<<0) |
| 5441 | #define PCI_CONFIG_2_BAR1_SIZE_64M (11L<<0) |
| 5442 | #define PCI_CONFIG_2_BAR1_SIZE_128M (12L<<0) |
| 5443 | #define PCI_CONFIG_2_BAR1_SIZE_256M (13L<<0) |
| 5444 | #define PCI_CONFIG_2_BAR1_SIZE_512M (14L<<0) |
| 5445 | #define PCI_CONFIG_2_BAR1_SIZE_1G (15L<<0) |
Eilon Greenstein | 5c86284 | 2008-08-13 15:51:48 -0700 | [diff] [blame] | 5446 | #define PCI_CONFIG_2_BAR1_64ENA (1L<<4) |
| 5447 | #define PCI_CONFIG_2_EXP_ROM_RETRY (1L<<5) |
| 5448 | #define PCI_CONFIG_2_CFG_CYCLE_RETRY (1L<<6) |
| 5449 | #define PCI_CONFIG_2_FIRST_CFG_DONE (1L<<7) |
| 5450 | #define PCI_CONFIG_2_EXP_ROM_SIZE (0xffL<<8) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5451 | #define PCI_CONFIG_2_EXP_ROM_SIZE_DISABLED (0L<<8) |
| 5452 | #define PCI_CONFIG_2_EXP_ROM_SIZE_2K (1L<<8) |
| 5453 | #define PCI_CONFIG_2_EXP_ROM_SIZE_4K (2L<<8) |
| 5454 | #define PCI_CONFIG_2_EXP_ROM_SIZE_8K (3L<<8) |
| 5455 | #define PCI_CONFIG_2_EXP_ROM_SIZE_16K (4L<<8) |
| 5456 | #define PCI_CONFIG_2_EXP_ROM_SIZE_32K (5L<<8) |
| 5457 | #define PCI_CONFIG_2_EXP_ROM_SIZE_64K (6L<<8) |
| 5458 | #define PCI_CONFIG_2_EXP_ROM_SIZE_128K (7L<<8) |
| 5459 | #define PCI_CONFIG_2_EXP_ROM_SIZE_256K (8L<<8) |
| 5460 | #define PCI_CONFIG_2_EXP_ROM_SIZE_512K (9L<<8) |
| 5461 | #define PCI_CONFIG_2_EXP_ROM_SIZE_1M (10L<<8) |
| 5462 | #define PCI_CONFIG_2_EXP_ROM_SIZE_2M (11L<<8) |
| 5463 | #define PCI_CONFIG_2_EXP_ROM_SIZE_4M (12L<<8) |
| 5464 | #define PCI_CONFIG_2_EXP_ROM_SIZE_8M (13L<<8) |
| 5465 | #define PCI_CONFIG_2_EXP_ROM_SIZE_16M (14L<<8) |
| 5466 | #define PCI_CONFIG_2_EXP_ROM_SIZE_32M (15L<<8) |
Eilon Greenstein | 5c86284 | 2008-08-13 15:51:48 -0700 | [diff] [blame] | 5467 | #define PCI_CONFIG_2_BAR_PREFETCH (1L<<16) |
| 5468 | #define PCI_CONFIG_2_RESERVED0 (0x7fffL<<17) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5469 | |
| 5470 | /* config_3 offset */ |
Eilon Greenstein | 5c86284 | 2008-08-13 15:51:48 -0700 | [diff] [blame] | 5471 | #define GRC_CONFIG_3_SIZE_REG 0x40c |
| 5472 | #define PCI_CONFIG_3_STICKY_BYTE (0xffL<<0) |
| 5473 | #define PCI_CONFIG_3_FORCE_PME (1L<<24) |
| 5474 | #define PCI_CONFIG_3_PME_STATUS (1L<<25) |
| 5475 | #define PCI_CONFIG_3_PME_ENABLE (1L<<26) |
| 5476 | #define PCI_CONFIG_3_PM_STATE (0x3L<<27) |
| 5477 | #define PCI_CONFIG_3_VAUX_PRESET (1L<<30) |
| 5478 | #define PCI_CONFIG_3_PCI_POWER (1L<<31) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5479 | |
| 5480 | #define GRC_BAR2_CONFIG 0x4e0 |
Eilon Greenstein | 5c86284 | 2008-08-13 15:51:48 -0700 | [diff] [blame] | 5481 | #define PCI_CONFIG_2_BAR2_SIZE (0xfL<<0) |
| 5482 | #define PCI_CONFIG_2_BAR2_SIZE_DISABLED (0L<<0) |
| 5483 | #define PCI_CONFIG_2_BAR2_SIZE_64K (1L<<0) |
| 5484 | #define PCI_CONFIG_2_BAR2_SIZE_128K (2L<<0) |
| 5485 | #define PCI_CONFIG_2_BAR2_SIZE_256K (3L<<0) |
| 5486 | #define PCI_CONFIG_2_BAR2_SIZE_512K (4L<<0) |
| 5487 | #define PCI_CONFIG_2_BAR2_SIZE_1M (5L<<0) |
| 5488 | #define PCI_CONFIG_2_BAR2_SIZE_2M (6L<<0) |
| 5489 | #define PCI_CONFIG_2_BAR2_SIZE_4M (7L<<0) |
| 5490 | #define PCI_CONFIG_2_BAR2_SIZE_8M (8L<<0) |
| 5491 | #define PCI_CONFIG_2_BAR2_SIZE_16M (9L<<0) |
| 5492 | #define PCI_CONFIG_2_BAR2_SIZE_32M (10L<<0) |
| 5493 | #define PCI_CONFIG_2_BAR2_SIZE_64M (11L<<0) |
| 5494 | #define PCI_CONFIG_2_BAR2_SIZE_128M (12L<<0) |
| 5495 | #define PCI_CONFIG_2_BAR2_SIZE_256M (13L<<0) |
| 5496 | #define PCI_CONFIG_2_BAR2_SIZE_512M (14L<<0) |
| 5497 | #define PCI_CONFIG_2_BAR2_SIZE_1G (15L<<0) |
| 5498 | #define PCI_CONFIG_2_BAR2_64ENA (1L<<4) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5499 | |
Eilon Greenstein | 5c86284 | 2008-08-13 15:51:48 -0700 | [diff] [blame] | 5500 | #define PCI_PM_DATA_A 0x410 |
| 5501 | #define PCI_PM_DATA_B 0x414 |
| 5502 | #define PCI_ID_VAL1 0x434 |
| 5503 | #define PCI_ID_VAL2 0x438 |
| 5504 | |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 5505 | #define PXPCS_TL_CONTROL_5 0x814 |
| 5506 | #define PXPCS_TL_CONTROL_5_UNKNOWNTYPE_ERR_ATTN (1 << 29) /*WC*/ |
| 5507 | #define PXPCS_TL_CONTROL_5_BOUNDARY4K_ERR_ATTN (1 << 28) /*WC*/ |
| 5508 | #define PXPCS_TL_CONTROL_5_MRRS_ERR_ATTN (1 << 27) /*WC*/ |
| 5509 | #define PXPCS_TL_CONTROL_5_MPS_ERR_ATTN (1 << 26) /*WC*/ |
| 5510 | #define PXPCS_TL_CONTROL_5_TTX_BRIDGE_FORWARD_ERR (1 << 25) /*WC*/ |
| 5511 | #define PXPCS_TL_CONTROL_5_TTX_TXINTF_OVERFLOW (1 << 24) /*WC*/ |
| 5512 | #define PXPCS_TL_CONTROL_5_PHY_ERR_ATTN (1 << 23) /*RO*/ |
| 5513 | #define PXPCS_TL_CONTROL_5_DL_ERR_ATTN (1 << 22) /*RO*/ |
| 5514 | #define PXPCS_TL_CONTROL_5_TTX_ERR_NP_TAG_IN_USE (1 << 21) /*WC*/ |
| 5515 | #define PXPCS_TL_CONTROL_5_TRX_ERR_UNEXP_RTAG (1 << 20) /*WC*/ |
| 5516 | #define PXPCS_TL_CONTROL_5_PRI_SIG_TARGET_ABORT1 (1 << 19) /*WC*/ |
| 5517 | #define PXPCS_TL_CONTROL_5_ERR_UNSPPORT1 (1 << 18) /*WC*/ |
| 5518 | #define PXPCS_TL_CONTROL_5_ERR_ECRC1 (1 << 17) /*WC*/ |
| 5519 | #define PXPCS_TL_CONTROL_5_ERR_MALF_TLP1 (1 << 16) /*WC*/ |
| 5520 | #define PXPCS_TL_CONTROL_5_ERR_RX_OFLOW1 (1 << 15) /*WC*/ |
| 5521 | #define PXPCS_TL_CONTROL_5_ERR_UNEXP_CPL1 (1 << 14) /*WC*/ |
| 5522 | #define PXPCS_TL_CONTROL_5_ERR_MASTER_ABRT1 (1 << 13) /*WC*/ |
| 5523 | #define PXPCS_TL_CONTROL_5_ERR_CPL_TIMEOUT1 (1 << 12) /*WC*/ |
| 5524 | #define PXPCS_TL_CONTROL_5_ERR_FC_PRTL1 (1 << 11) /*WC*/ |
| 5525 | #define PXPCS_TL_CONTROL_5_ERR_PSND_TLP1 (1 << 10) /*WC*/ |
| 5526 | #define PXPCS_TL_CONTROL_5_PRI_SIG_TARGET_ABORT (1 << 9) /*WC*/ |
| 5527 | #define PXPCS_TL_CONTROL_5_ERR_UNSPPORT (1 << 8) /*WC*/ |
| 5528 | #define PXPCS_TL_CONTROL_5_ERR_ECRC (1 << 7) /*WC*/ |
| 5529 | #define PXPCS_TL_CONTROL_5_ERR_MALF_TLP (1 << 6) /*WC*/ |
| 5530 | #define PXPCS_TL_CONTROL_5_ERR_RX_OFLOW (1 << 5) /*WC*/ |
| 5531 | #define PXPCS_TL_CONTROL_5_ERR_UNEXP_CPL (1 << 4) /*WC*/ |
| 5532 | #define PXPCS_TL_CONTROL_5_ERR_MASTER_ABRT (1 << 3) /*WC*/ |
| 5533 | #define PXPCS_TL_CONTROL_5_ERR_CPL_TIMEOUT (1 << 2) /*WC*/ |
| 5534 | #define PXPCS_TL_CONTROL_5_ERR_FC_PRTL (1 << 1) /*WC*/ |
| 5535 | #define PXPCS_TL_CONTROL_5_ERR_PSND_TLP (1 << 0) /*WC*/ |
| 5536 | |
| 5537 | |
| 5538 | #define PXPCS_TL_FUNC345_STAT 0x854 |
| 5539 | #define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT4 (1 << 29) /* WC */ |
| 5540 | #define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT4\ |
| 5541 | (1 << 28) /* Unsupported Request Error Status in function4, if \ |
| 5542 | set, generate pcie_err_attn output when this error is seen. WC */ |
| 5543 | #define PXPCS_TL_FUNC345_STAT_ERR_ECRC4\ |
| 5544 | (1 << 27) /* ECRC Error TLP Status Status in function 4, if set, \ |
| 5545 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5546 | #define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP4\ |
| 5547 | (1 << 26) /* Malformed TLP Status Status in function 4, if set, \ |
| 5548 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5549 | #define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW4\ |
| 5550 | (1 << 25) /* Receiver Overflow Status Status in function 4, if \ |
| 5551 | set, generate pcie_err_attn output when this error is seen.. WC \ |
| 5552 | */ |
| 5553 | #define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL4\ |
| 5554 | (1 << 24) /* Unexpected Completion Status Status in function 4, \ |
| 5555 | if set, generate pcie_err_attn output when this error is seen. WC \ |
| 5556 | */ |
| 5557 | #define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT4\ |
| 5558 | (1 << 23) /* Receive UR Statusin function 4. If set, generate \ |
| 5559 | pcie_err_attn output when this error is seen. WC */ |
| 5560 | #define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT4\ |
| 5561 | (1 << 22) /* Completer Timeout Status Status in function 4, if \ |
| 5562 | set, generate pcie_err_attn output when this error is seen. WC */ |
| 5563 | #define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL4\ |
| 5564 | (1 << 21) /* Flow Control Protocol Error Status Status in \ |
| 5565 | function 4, if set, generate pcie_err_attn output when this error \ |
| 5566 | is seen. WC */ |
| 5567 | #define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP4\ |
| 5568 | (1 << 20) /* Poisoned Error Status Status in function 4, if set, \ |
| 5569 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5570 | #define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT3 (1 << 19) /* WC */ |
| 5571 | #define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT3\ |
| 5572 | (1 << 18) /* Unsupported Request Error Status in function3, if \ |
| 5573 | set, generate pcie_err_attn output when this error is seen. WC */ |
| 5574 | #define PXPCS_TL_FUNC345_STAT_ERR_ECRC3\ |
| 5575 | (1 << 17) /* ECRC Error TLP Status Status in function 3, if set, \ |
| 5576 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5577 | #define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP3\ |
| 5578 | (1 << 16) /* Malformed TLP Status Status in function 3, if set, \ |
| 5579 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5580 | #define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW3\ |
| 5581 | (1 << 15) /* Receiver Overflow Status Status in function 3, if \ |
| 5582 | set, generate pcie_err_attn output when this error is seen.. WC \ |
| 5583 | */ |
| 5584 | #define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL3\ |
| 5585 | (1 << 14) /* Unexpected Completion Status Status in function 3, \ |
| 5586 | if set, generate pcie_err_attn output when this error is seen. WC \ |
| 5587 | */ |
| 5588 | #define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT3\ |
| 5589 | (1 << 13) /* Receive UR Statusin function 3. If set, generate \ |
| 5590 | pcie_err_attn output when this error is seen. WC */ |
| 5591 | #define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT3\ |
| 5592 | (1 << 12) /* Completer Timeout Status Status in function 3, if \ |
| 5593 | set, generate pcie_err_attn output when this error is seen. WC */ |
| 5594 | #define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL3\ |
| 5595 | (1 << 11) /* Flow Control Protocol Error Status Status in \ |
| 5596 | function 3, if set, generate pcie_err_attn output when this error \ |
| 5597 | is seen. WC */ |
| 5598 | #define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP3\ |
| 5599 | (1 << 10) /* Poisoned Error Status Status in function 3, if set, \ |
| 5600 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5601 | #define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT2 (1 << 9) /* WC */ |
| 5602 | #define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT2\ |
| 5603 | (1 << 8) /* Unsupported Request Error Status for Function 2, if \ |
| 5604 | set, generate pcie_err_attn output when this error is seen. WC */ |
| 5605 | #define PXPCS_TL_FUNC345_STAT_ERR_ECRC2\ |
| 5606 | (1 << 7) /* ECRC Error TLP Status Status for Function 2, if set, \ |
| 5607 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5608 | #define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP2\ |
| 5609 | (1 << 6) /* Malformed TLP Status Status for Function 2, if set, \ |
| 5610 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5611 | #define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW2\ |
| 5612 | (1 << 5) /* Receiver Overflow Status Status for Function 2, if \ |
| 5613 | set, generate pcie_err_attn output when this error is seen.. WC \ |
| 5614 | */ |
| 5615 | #define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL2\ |
| 5616 | (1 << 4) /* Unexpected Completion Status Status for Function 2, \ |
| 5617 | if set, generate pcie_err_attn output when this error is seen. WC \ |
| 5618 | */ |
| 5619 | #define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT2\ |
| 5620 | (1 << 3) /* Receive UR Statusfor Function 2. If set, generate \ |
| 5621 | pcie_err_attn output when this error is seen. WC */ |
| 5622 | #define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT2\ |
| 5623 | (1 << 2) /* Completer Timeout Status Status for Function 2, if \ |
| 5624 | set, generate pcie_err_attn output when this error is seen. WC */ |
| 5625 | #define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL2\ |
| 5626 | (1 << 1) /* Flow Control Protocol Error Status Status for \ |
| 5627 | Function 2, if set, generate pcie_err_attn output when this error \ |
| 5628 | is seen. WC */ |
| 5629 | #define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP2\ |
| 5630 | (1 << 0) /* Poisoned Error Status Status for Function 2, if set, \ |
| 5631 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5632 | |
| 5633 | |
| 5634 | #define PXPCS_TL_FUNC678_STAT 0x85C |
| 5635 | #define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT7 (1 << 29) /* WC */ |
| 5636 | #define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT7\ |
| 5637 | (1 << 28) /* Unsupported Request Error Status in function7, if \ |
| 5638 | set, generate pcie_err_attn output when this error is seen. WC */ |
| 5639 | #define PXPCS_TL_FUNC678_STAT_ERR_ECRC7\ |
| 5640 | (1 << 27) /* ECRC Error TLP Status Status in function 7, if set, \ |
| 5641 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5642 | #define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP7\ |
| 5643 | (1 << 26) /* Malformed TLP Status Status in function 7, if set, \ |
| 5644 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5645 | #define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW7\ |
| 5646 | (1 << 25) /* Receiver Overflow Status Status in function 7, if \ |
| 5647 | set, generate pcie_err_attn output when this error is seen.. WC \ |
| 5648 | */ |
| 5649 | #define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL7\ |
| 5650 | (1 << 24) /* Unexpected Completion Status Status in function 7, \ |
| 5651 | if set, generate pcie_err_attn output when this error is seen. WC \ |
| 5652 | */ |
| 5653 | #define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT7\ |
| 5654 | (1 << 23) /* Receive UR Statusin function 7. If set, generate \ |
| 5655 | pcie_err_attn output when this error is seen. WC */ |
| 5656 | #define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT7\ |
| 5657 | (1 << 22) /* Completer Timeout Status Status in function 7, if \ |
| 5658 | set, generate pcie_err_attn output when this error is seen. WC */ |
| 5659 | #define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL7\ |
| 5660 | (1 << 21) /* Flow Control Protocol Error Status Status in \ |
| 5661 | function 7, if set, generate pcie_err_attn output when this error \ |
| 5662 | is seen. WC */ |
| 5663 | #define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP7\ |
| 5664 | (1 << 20) /* Poisoned Error Status Status in function 7, if set, \ |
| 5665 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5666 | #define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT6 (1 << 19) /* WC */ |
| 5667 | #define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT6\ |
| 5668 | (1 << 18) /* Unsupported Request Error Status in function6, if \ |
| 5669 | set, generate pcie_err_attn output when this error is seen. WC */ |
| 5670 | #define PXPCS_TL_FUNC678_STAT_ERR_ECRC6\ |
| 5671 | (1 << 17) /* ECRC Error TLP Status Status in function 6, if set, \ |
| 5672 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5673 | #define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP6\ |
| 5674 | (1 << 16) /* Malformed TLP Status Status in function 6, if set, \ |
| 5675 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5676 | #define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW6\ |
| 5677 | (1 << 15) /* Receiver Overflow Status Status in function 6, if \ |
| 5678 | set, generate pcie_err_attn output when this error is seen.. WC \ |
| 5679 | */ |
| 5680 | #define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL6\ |
| 5681 | (1 << 14) /* Unexpected Completion Status Status in function 6, \ |
| 5682 | if set, generate pcie_err_attn output when this error is seen. WC \ |
| 5683 | */ |
| 5684 | #define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT6\ |
| 5685 | (1 << 13) /* Receive UR Statusin function 6. If set, generate \ |
| 5686 | pcie_err_attn output when this error is seen. WC */ |
| 5687 | #define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT6\ |
| 5688 | (1 << 12) /* Completer Timeout Status Status in function 6, if \ |
| 5689 | set, generate pcie_err_attn output when this error is seen. WC */ |
| 5690 | #define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL6\ |
| 5691 | (1 << 11) /* Flow Control Protocol Error Status Status in \ |
| 5692 | function 6, if set, generate pcie_err_attn output when this error \ |
| 5693 | is seen. WC */ |
| 5694 | #define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP6\ |
| 5695 | (1 << 10) /* Poisoned Error Status Status in function 6, if set, \ |
| 5696 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5697 | #define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT5 (1 << 9) /* WC */ |
| 5698 | #define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT5\ |
| 5699 | (1 << 8) /* Unsupported Request Error Status for Function 5, if \ |
| 5700 | set, generate pcie_err_attn output when this error is seen. WC */ |
| 5701 | #define PXPCS_TL_FUNC678_STAT_ERR_ECRC5\ |
| 5702 | (1 << 7) /* ECRC Error TLP Status Status for Function 5, if set, \ |
| 5703 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5704 | #define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP5\ |
| 5705 | (1 << 6) /* Malformed TLP Status Status for Function 5, if set, \ |
| 5706 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5707 | #define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW5\ |
| 5708 | (1 << 5) /* Receiver Overflow Status Status for Function 5, if \ |
| 5709 | set, generate pcie_err_attn output when this error is seen.. WC \ |
| 5710 | */ |
| 5711 | #define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL5\ |
| 5712 | (1 << 4) /* Unexpected Completion Status Status for Function 5, \ |
| 5713 | if set, generate pcie_err_attn output when this error is seen. WC \ |
| 5714 | */ |
| 5715 | #define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT5\ |
| 5716 | (1 << 3) /* Receive UR Statusfor Function 5. If set, generate \ |
| 5717 | pcie_err_attn output when this error is seen. WC */ |
| 5718 | #define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT5\ |
| 5719 | (1 << 2) /* Completer Timeout Status Status for Function 5, if \ |
| 5720 | set, generate pcie_err_attn output when this error is seen. WC */ |
| 5721 | #define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL5\ |
| 5722 | (1 << 1) /* Flow Control Protocol Error Status Status for \ |
| 5723 | Function 5, if set, generate pcie_err_attn output when this error \ |
| 5724 | is seen. WC */ |
| 5725 | #define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP5\ |
| 5726 | (1 << 0) /* Poisoned Error Status Status for Function 5, if set, \ |
| 5727 | generate pcie_err_attn output when this error is seen.. WC */ |
| 5728 | |
| 5729 | |
| 5730 | #define BAR_USTRORM_INTMEM 0x400000 |
| 5731 | #define BAR_CSTRORM_INTMEM 0x410000 |
| 5732 | #define BAR_XSTRORM_INTMEM 0x420000 |
| 5733 | #define BAR_TSTRORM_INTMEM 0x430000 |
| 5734 | |
| 5735 | /* for accessing the IGU in case of status block ACK */ |
| 5736 | #define BAR_IGU_INTMEM 0x440000 |
| 5737 | |
| 5738 | #define BAR_DOORBELL_OFFSET 0x800000 |
| 5739 | |
| 5740 | #define BAR_ME_REGISTER 0x450000 |
| 5741 | #define ME_REG_PF_NUM_SHIFT 0 |
| 5742 | #define ME_REG_PF_NUM\ |
| 5743 | (7L<<ME_REG_PF_NUM_SHIFT) /* Relative PF Num */ |
| 5744 | #define ME_REG_VF_VALID (1<<8) |
| 5745 | #define ME_REG_VF_NUM_SHIFT 9 |
| 5746 | #define ME_REG_VF_NUM_MASK (0x3f<<ME_REG_VF_NUM_SHIFT) |
| 5747 | #define ME_REG_VF_ERR (0x1<<3) |
| 5748 | #define ME_REG_ABS_PF_NUM_SHIFT 16 |
| 5749 | #define ME_REG_ABS_PF_NUM\ |
| 5750 | (7L<<ME_REG_ABS_PF_NUM_SHIFT) /* Absolute PF Num */ |
| 5751 | |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5752 | |
Yaniv Rosner | 7846e47 | 2009-11-05 19:18:07 +0200 | [diff] [blame] | 5753 | #define MDIO_REG_BANK_CL73_IEEEB0 0x0 |
| 5754 | #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL 0x0 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5755 | #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_RESTART_AN 0x0200 |
| 5756 | #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN 0x1000 |
| 5757 | #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_MAIN_RST 0x8000 |
| 5758 | |
Yaniv Rosner | 7846e47 | 2009-11-05 19:18:07 +0200 | [diff] [blame] | 5759 | #define MDIO_REG_BANK_CL73_IEEEB1 0x10 |
| 5760 | #define MDIO_CL73_IEEEB1_AN_ADV1 0x00 |
| 5761 | #define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE 0x0400 |
| 5762 | #define MDIO_CL73_IEEEB1_AN_ADV1_ASYMMETRIC 0x0800 |
| 5763 | #define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE_BOTH 0x0C00 |
| 5764 | #define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE_MASK 0x0C00 |
| 5765 | #define MDIO_CL73_IEEEB1_AN_ADV2 0x01 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5766 | #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M 0x0000 |
| 5767 | #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M_KX 0x0020 |
| 5768 | #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_10G_KX4 0x0040 |
| 5769 | #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_10G_KR 0x0080 |
Yaniv Rosner | 7846e47 | 2009-11-05 19:18:07 +0200 | [diff] [blame] | 5770 | #define MDIO_CL73_IEEEB1_AN_LP_ADV1 0x03 |
| 5771 | #define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE 0x0400 |
| 5772 | #define MDIO_CL73_IEEEB1_AN_LP_ADV1_ASYMMETRIC 0x0800 |
| 5773 | #define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE_BOTH 0x0C00 |
| 5774 | #define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE_MASK 0x0C00 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5775 | |
| 5776 | #define MDIO_REG_BANK_RX0 0x80b0 |
Eilon Greenstein | 239d686 | 2009-08-12 08:23:04 +0000 | [diff] [blame] | 5777 | #define MDIO_RX0_RX_STATUS 0x10 |
| 5778 | #define MDIO_RX0_RX_STATUS_SIGDET 0x8000 |
| 5779 | #define MDIO_RX0_RX_STATUS_RX_SEQ_DONE 0x1000 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5780 | #define MDIO_RX0_RX_EQ_BOOST 0x1c |
| 5781 | #define MDIO_RX0_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7 |
| 5782 | #define MDIO_RX0_RX_EQ_BOOST_OFFSET_CTRL 0x10 |
| 5783 | |
| 5784 | #define MDIO_REG_BANK_RX1 0x80c0 |
| 5785 | #define MDIO_RX1_RX_EQ_BOOST 0x1c |
| 5786 | #define MDIO_RX1_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7 |
| 5787 | #define MDIO_RX1_RX_EQ_BOOST_OFFSET_CTRL 0x10 |
| 5788 | |
| 5789 | #define MDIO_REG_BANK_RX2 0x80d0 |
| 5790 | #define MDIO_RX2_RX_EQ_BOOST 0x1c |
| 5791 | #define MDIO_RX2_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7 |
| 5792 | #define MDIO_RX2_RX_EQ_BOOST_OFFSET_CTRL 0x10 |
| 5793 | |
| 5794 | #define MDIO_REG_BANK_RX3 0x80e0 |
| 5795 | #define MDIO_RX3_RX_EQ_BOOST 0x1c |
| 5796 | #define MDIO_RX3_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7 |
| 5797 | #define MDIO_RX3_RX_EQ_BOOST_OFFSET_CTRL 0x10 |
| 5798 | |
| 5799 | #define MDIO_REG_BANK_RX_ALL 0x80f0 |
| 5800 | #define MDIO_RX_ALL_RX_EQ_BOOST 0x1c |
| 5801 | #define MDIO_RX_ALL_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5802 | #define MDIO_RX_ALL_RX_EQ_BOOST_OFFSET_CTRL 0x10 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5803 | |
| 5804 | #define MDIO_REG_BANK_TX0 0x8060 |
| 5805 | #define MDIO_TX0_TX_DRIVER 0x17 |
| 5806 | #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK 0xf000 |
| 5807 | #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT 12 |
| 5808 | #define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 0x0f00 |
| 5809 | #define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT 8 |
| 5810 | #define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK 0x00f0 |
| 5811 | #define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT 4 |
| 5812 | #define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK 0x000e |
| 5813 | #define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT 1 |
| 5814 | #define MDIO_TX0_TX_DRIVER_ICBUF1T 1 |
| 5815 | |
Eilon Greenstein | c2c8b03 | 2009-02-12 08:37:14 +0000 | [diff] [blame] | 5816 | #define MDIO_REG_BANK_TX1 0x8070 |
| 5817 | #define MDIO_TX1_TX_DRIVER 0x17 |
| 5818 | #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK 0xf000 |
| 5819 | #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT 12 |
| 5820 | #define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 0x0f00 |
| 5821 | #define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT 8 |
| 5822 | #define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK 0x00f0 |
| 5823 | #define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT 4 |
| 5824 | #define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK 0x000e |
| 5825 | #define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT 1 |
| 5826 | #define MDIO_TX0_TX_DRIVER_ICBUF1T 1 |
| 5827 | |
| 5828 | #define MDIO_REG_BANK_TX2 0x8080 |
| 5829 | #define MDIO_TX2_TX_DRIVER 0x17 |
| 5830 | #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK 0xf000 |
| 5831 | #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT 12 |
| 5832 | #define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 0x0f00 |
| 5833 | #define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT 8 |
| 5834 | #define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK 0x00f0 |
| 5835 | #define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT 4 |
| 5836 | #define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK 0x000e |
| 5837 | #define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT 1 |
| 5838 | #define MDIO_TX0_TX_DRIVER_ICBUF1T 1 |
| 5839 | |
| 5840 | #define MDIO_REG_BANK_TX3 0x8090 |
| 5841 | #define MDIO_TX3_TX_DRIVER 0x17 |
| 5842 | #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK 0xf000 |
| 5843 | #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT 12 |
| 5844 | #define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 0x0f00 |
| 5845 | #define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT 8 |
| 5846 | #define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK 0x00f0 |
| 5847 | #define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT 4 |
| 5848 | #define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK 0x000e |
| 5849 | #define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT 1 |
| 5850 | #define MDIO_TX0_TX_DRIVER_ICBUF1T 1 |
| 5851 | |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5852 | #define MDIO_REG_BANK_XGXS_BLOCK0 0x8000 |
| 5853 | #define MDIO_BLOCK0_XGXS_CONTROL 0x10 |
| 5854 | |
| 5855 | #define MDIO_REG_BANK_XGXS_BLOCK1 0x8010 |
| 5856 | #define MDIO_BLOCK1_LANE_CTRL0 0x15 |
| 5857 | #define MDIO_BLOCK1_LANE_CTRL1 0x16 |
| 5858 | #define MDIO_BLOCK1_LANE_CTRL2 0x17 |
| 5859 | #define MDIO_BLOCK1_LANE_PRBS 0x19 |
| 5860 | |
| 5861 | #define MDIO_REG_BANK_XGXS_BLOCK2 0x8100 |
| 5862 | #define MDIO_XGXS_BLOCK2_RX_LN_SWAP 0x10 |
| 5863 | #define MDIO_XGXS_BLOCK2_RX_LN_SWAP_ENABLE 0x8000 |
| 5864 | #define MDIO_XGXS_BLOCK2_RX_LN_SWAP_FORCE_ENABLE 0x4000 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5865 | #define MDIO_XGXS_BLOCK2_TX_LN_SWAP 0x11 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5866 | #define MDIO_XGXS_BLOCK2_TX_LN_SWAP_ENABLE 0x8000 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5867 | #define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G 0x14 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 5868 | #define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_CX4_XGXS 0x0001 |
| 5869 | #define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_HIGIG_XGXS 0x0010 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5870 | #define MDIO_XGXS_BLOCK2_TEST_MODE_LANE 0x15 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5871 | |
| 5872 | #define MDIO_REG_BANK_GP_STATUS 0x8120 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5873 | #define MDIO_GP_STATUS_TOP_AN_STATUS1 0x1B |
| 5874 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_AUTONEG_COMPLETE 0x0001 |
| 5875 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_CL37_AUTONEG_COMPLETE 0x0002 |
| 5876 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_LINK_STATUS 0x0004 |
| 5877 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_DUPLEX_STATUS 0x0008 |
| 5878 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_MR_LP_NP_AN_ABLE 0x0010 |
| 5879 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_LP_NP_BAM_ABLE 0x0020 |
| 5880 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_PAUSE_RSOLUTION_TXSIDE 0x0040 |
| 5881 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_PAUSE_RSOLUTION_RXSIDE 0x0080 |
| 5882 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_MASK 0x3f00 |
| 5883 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10M 0x0000 |
| 5884 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_100M 0x0100 |
| 5885 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_1G 0x0200 |
| 5886 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_2_5G 0x0300 |
| 5887 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_5G 0x0400 |
| 5888 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_6G 0x0500 |
| 5889 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_HIG 0x0600 |
| 5890 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_CX4 0x0700 |
| 5891 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_12G_HIG 0x0800 |
| 5892 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_12_5G 0x0900 |
| 5893 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_13G 0x0A00 |
| 5894 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_15G 0x0B00 |
| 5895 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_16G 0x0C00 |
| 5896 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_1G_KX 0x0D00 |
| 5897 | #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_KX4 0x0E00 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5898 | |
| 5899 | |
| 5900 | #define MDIO_REG_BANK_10G_PARALLEL_DETECT 0x8130 |
Yaniv Rosner | 15ddd2d | 2009-11-05 19:18:12 +0200 | [diff] [blame] | 5901 | #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_STATUS 0x10 |
| 5902 | #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_STATUS_PD_LINK 0x8000 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5903 | #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL 0x11 |
| 5904 | #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL_PARDET10G_EN 0x1 |
| 5905 | #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK 0x13 |
| 5906 | #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK_CNT (0xb71<<1) |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5907 | |
| 5908 | #define MDIO_REG_BANK_SERDES_DIGITAL 0x8300 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5909 | #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1 0x10 |
| 5910 | #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE 0x0001 |
| 5911 | #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_TBI_IF 0x0002 |
| 5912 | #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_SIGNAL_DETECT_EN 0x0004 |
| 5913 | #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT 0x0008 |
| 5914 | #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET 0x0010 |
| 5915 | #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE 0x0020 |
| 5916 | #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2 0x11 |
| 5917 | #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_PRL_DT_EN 0x0001 |
| 5918 | #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_AN_FST_TMR 0x0040 |
| 5919 | #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1 0x14 |
Yaniv Rosner | a22f078 | 2010-09-07 11:41:20 +0000 | [diff] [blame] | 5920 | #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SGMII 0x0001 |
| 5921 | #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_LINK 0x0002 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5922 | #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_DUPLEX 0x0004 |
| 5923 | #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_MASK 0x0018 |
| 5924 | #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_SHIFT 3 |
| 5925 | #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_2_5G 0x0018 |
| 5926 | #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_1G 0x0010 |
| 5927 | #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_100M 0x0008 |
| 5928 | #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_10M 0x0000 |
Yaniv Rosner | 15ddd2d | 2009-11-05 19:18:12 +0200 | [diff] [blame] | 5929 | #define MDIO_SERDES_DIGITAL_A_1000X_STATUS2 0x15 |
| 5930 | #define MDIO_SERDES_DIGITAL_A_1000X_STATUS2_AN_DISABLED 0x0002 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5931 | #define MDIO_SERDES_DIGITAL_MISC1 0x18 |
| 5932 | #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_MASK 0xE000 |
| 5933 | #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_25M 0x0000 |
| 5934 | #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_100M 0x2000 |
| 5935 | #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_125M 0x4000 |
| 5936 | #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_156_25M 0x6000 |
| 5937 | #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_187_5M 0x8000 |
| 5938 | #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_SEL 0x0010 |
| 5939 | #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_MASK 0x000f |
| 5940 | #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_2_5G 0x0000 |
| 5941 | #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_5G 0x0001 |
| 5942 | #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_6G 0x0002 |
| 5943 | #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_HIG 0x0003 |
| 5944 | #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_CX4 0x0004 |
| 5945 | #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_12G 0x0005 |
| 5946 | #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_12_5G 0x0006 |
| 5947 | #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_13G 0x0007 |
| 5948 | #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_15G 0x0008 |
| 5949 | #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_16G 0x0009 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5950 | |
| 5951 | #define MDIO_REG_BANK_OVER_1G 0x8320 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5952 | #define MDIO_OVER_1G_DIGCTL_3_4 0x14 |
| 5953 | #define MDIO_OVER_1G_DIGCTL_3_4_MP_ID_MASK 0xffe0 |
| 5954 | #define MDIO_OVER_1G_DIGCTL_3_4_MP_ID_SHIFT 5 |
| 5955 | #define MDIO_OVER_1G_UP1 0x19 |
| 5956 | #define MDIO_OVER_1G_UP1_2_5G 0x0001 |
| 5957 | #define MDIO_OVER_1G_UP1_5G 0x0002 |
| 5958 | #define MDIO_OVER_1G_UP1_6G 0x0004 |
| 5959 | #define MDIO_OVER_1G_UP1_10G 0x0010 |
| 5960 | #define MDIO_OVER_1G_UP1_10GH 0x0008 |
| 5961 | #define MDIO_OVER_1G_UP1_12G 0x0020 |
| 5962 | #define MDIO_OVER_1G_UP1_12_5G 0x0040 |
| 5963 | #define MDIO_OVER_1G_UP1_13G 0x0080 |
| 5964 | #define MDIO_OVER_1G_UP1_15G 0x0100 |
| 5965 | #define MDIO_OVER_1G_UP1_16G 0x0200 |
| 5966 | #define MDIO_OVER_1G_UP2 0x1A |
| 5967 | #define MDIO_OVER_1G_UP2_IPREDRIVER_MASK 0x0007 |
| 5968 | #define MDIO_OVER_1G_UP2_IDRIVER_MASK 0x0038 |
| 5969 | #define MDIO_OVER_1G_UP2_PREEMPHASIS_MASK 0x03C0 |
| 5970 | #define MDIO_OVER_1G_UP3 0x1B |
| 5971 | #define MDIO_OVER_1G_UP3_HIGIG2 0x0001 |
| 5972 | #define MDIO_OVER_1G_LP_UP1 0x1C |
| 5973 | #define MDIO_OVER_1G_LP_UP2 0x1D |
| 5974 | #define MDIO_OVER_1G_LP_UP2_MR_ADV_OVER_1G_MASK 0x03ff |
| 5975 | #define MDIO_OVER_1G_LP_UP2_PREEMPHASIS_MASK 0x0780 |
| 5976 | #define MDIO_OVER_1G_LP_UP2_PREEMPHASIS_SHIFT 7 |
| 5977 | #define MDIO_OVER_1G_LP_UP3 0x1E |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5978 | |
Eilon Greenstein | 239d686 | 2009-08-12 08:23:04 +0000 | [diff] [blame] | 5979 | #define MDIO_REG_BANK_REMOTE_PHY 0x8330 |
| 5980 | #define MDIO_REMOTE_PHY_MISC_RX_STATUS 0x10 |
| 5981 | #define MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_OVER1G_MSG 0x0010 |
| 5982 | #define MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_BRCM_OUI_MSG 0x0600 |
| 5983 | |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5984 | #define MDIO_REG_BANK_BAM_NEXT_PAGE 0x8350 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5985 | #define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL 0x10 |
| 5986 | #define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL_BAM_MODE 0x0001 |
| 5987 | #define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL_TETON_AN 0x0002 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 5988 | |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5989 | #define MDIO_REG_BANK_CL73_USERB0 0x8370 |
Eilon Greenstein | 239d686 | 2009-08-12 08:23:04 +0000 | [diff] [blame] | 5990 | #define MDIO_CL73_USERB0_CL73_UCTRL 0x10 |
| 5991 | #define MDIO_CL73_USERB0_CL73_UCTRL_USTAT1_MUXSEL 0x0002 |
| 5992 | #define MDIO_CL73_USERB0_CL73_USTAT1 0x11 |
| 5993 | #define MDIO_CL73_USERB0_CL73_USTAT1_LINK_STATUS_CHECK 0x0100 |
| 5994 | #define MDIO_CL73_USERB0_CL73_USTAT1_AN_GOOD_CHECK_BAM37 0x0400 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 5995 | #define MDIO_CL73_USERB0_CL73_BAM_CTRL1 0x12 |
| 5996 | #define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_EN 0x8000 |
| 5997 | #define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_STATION_MNGR_EN 0x4000 |
| 5998 | #define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_NP_AFTER_BP_EN 0x2000 |
| 5999 | #define MDIO_CL73_USERB0_CL73_BAM_CTRL3 0x14 |
| 6000 | #define MDIO_CL73_USERB0_CL73_BAM_CTRL3_USE_CL73_HCD_MR 0x0001 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 6001 | |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 6002 | #define MDIO_REG_BANK_AER_BLOCK 0xFFD0 |
| 6003 | #define MDIO_AER_BLOCK_AER_REG 0x1E |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 6004 | |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 6005 | #define MDIO_REG_BANK_COMBO_IEEE0 0xFFE0 |
| 6006 | #define MDIO_COMBO_IEEE0_MII_CONTROL 0x10 |
| 6007 | #define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK 0x2040 |
| 6008 | #define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_10 0x0000 |
| 6009 | #define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100 0x2000 |
| 6010 | #define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000 0x0040 |
| 6011 | #define MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX 0x0100 |
| 6012 | #define MDIO_COMBO_IEEO_MII_CONTROL_RESTART_AN 0x0200 |
| 6013 | #define MDIO_COMBO_IEEO_MII_CONTROL_AN_EN 0x1000 |
| 6014 | #define MDIO_COMBO_IEEO_MII_CONTROL_LOOPBACK 0x4000 |
| 6015 | #define MDIO_COMBO_IEEO_MII_CONTROL_RESET 0x8000 |
| 6016 | #define MDIO_COMBO_IEEE0_MII_STATUS 0x11 |
| 6017 | #define MDIO_COMBO_IEEE0_MII_STATUS_LINK_PASS 0x0004 |
| 6018 | #define MDIO_COMBO_IEEE0_MII_STATUS_AUTONEG_COMPLETE 0x0020 |
| 6019 | #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV 0x14 |
| 6020 | #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_FULL_DUPLEX 0x0020 |
| 6021 | #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_HALF_DUPLEX 0x0040 |
| 6022 | #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK 0x0180 |
| 6023 | #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_NONE 0x0000 |
| 6024 | #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_SYMMETRIC 0x0080 |
| 6025 | #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_ASYMMETRIC 0x0100 |
| 6026 | #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH 0x0180 |
| 6027 | #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_NEXT_PAGE 0x8000 |
| 6028 | #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1 0x15 |
| 6029 | #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_NEXT_PAGE 0x8000 |
| 6030 | #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_ACK 0x4000 |
| 6031 | #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_MASK 0x0180 |
| 6032 | #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_NONE 0x0000 |
| 6033 | #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_BOTH 0x0180 |
| 6034 | #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_HALF_DUP_CAP 0x0040 |
| 6035 | #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_FULL_DUP_CAP 0x0020 |
| 6036 | /*WhenthelinkpartnerisinSGMIImode(bit0=1),then |
| 6037 | bit15=link,bit12=duplex,bits11:10=speed,bit14=acknowledge. |
| 6038 | Theotherbitsarereservedandshouldbezero*/ |
| 6039 | #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_SGMII_MODE 0x0001 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 6040 | |
| 6041 | |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 6042 | #define MDIO_PMA_DEVAD 0x1 |
| 6043 | /*ieee*/ |
| 6044 | #define MDIO_PMA_REG_CTRL 0x0 |
| 6045 | #define MDIO_PMA_REG_STATUS 0x1 |
| 6046 | #define MDIO_PMA_REG_10G_CTRL2 0x7 |
| 6047 | #define MDIO_PMA_REG_RX_SD 0xa |
| 6048 | /*bcm*/ |
| 6049 | #define MDIO_PMA_REG_BCM_CTRL 0x0096 |
| 6050 | #define MDIO_PMA_REG_FEC_CTRL 0x00ab |
| 6051 | #define MDIO_PMA_REG_RX_ALARM_CTRL 0x9000 |
| 6052 | #define MDIO_PMA_REG_LASI_CTRL 0x9002 |
| 6053 | #define MDIO_PMA_REG_RX_ALARM 0x9003 |
| 6054 | #define MDIO_PMA_REG_TX_ALARM 0x9004 |
| 6055 | #define MDIO_PMA_REG_LASI_STATUS 0x9005 |
| 6056 | #define MDIO_PMA_REG_PHY_IDENTIFIER 0xc800 |
| 6057 | #define MDIO_PMA_REG_DIGITAL_CTRL 0xc808 |
| 6058 | #define MDIO_PMA_REG_DIGITAL_STATUS 0xc809 |
| 6059 | #define MDIO_PMA_REG_TX_POWER_DOWN 0xca02 |
| 6060 | #define MDIO_PMA_REG_CMU_PLL_BYPASS 0xca09 |
| 6061 | #define MDIO_PMA_REG_MISC_CTRL 0xca0a |
| 6062 | #define MDIO_PMA_REG_GEN_CTRL 0xca10 |
| 6063 | #define MDIO_PMA_REG_GEN_CTRL_ROM_RESET_INTERNAL_MP 0x0188 |
| 6064 | #define MDIO_PMA_REG_GEN_CTRL_ROM_MICRO_RESET 0x018a |
Yaniv Rosner | 57963ed | 2008-08-13 15:55:28 -0700 | [diff] [blame] | 6065 | #define MDIO_PMA_REG_M8051_MSGIN_REG 0xca12 |
| 6066 | #define MDIO_PMA_REG_M8051_MSGOUT_REG 0xca13 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 6067 | #define MDIO_PMA_REG_ROM_VER1 0xca19 |
| 6068 | #define MDIO_PMA_REG_ROM_VER2 0xca1a |
| 6069 | #define MDIO_PMA_REG_EDC_FFE_MAIN 0xca1b |
| 6070 | #define MDIO_PMA_REG_PLL_BANDWIDTH 0xca1d |
Eilon Greenstein | 4d295db | 2009-07-21 05:47:47 +0000 | [diff] [blame] | 6071 | #define MDIO_PMA_REG_PLL_CTRL 0xca1e |
Eilon Greenstein | 589abe3 | 2009-02-12 08:36:55 +0000 | [diff] [blame] | 6072 | #define MDIO_PMA_REG_MISC_CTRL0 0xca23 |
| 6073 | #define MDIO_PMA_REG_LRM_MODE 0xca3f |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 6074 | #define MDIO_PMA_REG_CDR_BANDWIDTH 0xca46 |
| 6075 | #define MDIO_PMA_REG_MISC_CTRL1 0xca85 |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 6076 | |
Eilon Greenstein | 4d295db | 2009-07-21 05:47:47 +0000 | [diff] [blame] | 6077 | #define MDIO_PMA_REG_SFP_TWO_WIRE_CTRL 0x8000 |
| 6078 | #define MDIO_PMA_REG_SFP_TWO_WIRE_CTRL_STATUS_MASK 0x000c |
| 6079 | #define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_IDLE 0x0000 |
| 6080 | #define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_COMPLETE 0x0004 |
| 6081 | #define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_IN_PROGRESS 0x0008 |
| 6082 | #define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_FAILED 0x000c |
| 6083 | #define MDIO_PMA_REG_SFP_TWO_WIRE_BYTE_CNT 0x8002 |
| 6084 | #define MDIO_PMA_REG_SFP_TWO_WIRE_MEM_ADDR 0x8003 |
Eilon Greenstein | 589abe3 | 2009-02-12 08:36:55 +0000 | [diff] [blame] | 6085 | #define MDIO_PMA_REG_8726_TWO_WIRE_DATA_BUF 0xc820 |
| 6086 | #define MDIO_PMA_REG_8726_TWO_WIRE_DATA_MASK 0xff |
| 6087 | #define MDIO_PMA_REG_8726_TX_CTRL1 0xca01 |
| 6088 | #define MDIO_PMA_REG_8726_TX_CTRL2 0xca05 |
| 6089 | |
Eilon Greenstein | 4d295db | 2009-07-21 05:47:47 +0000 | [diff] [blame] | 6090 | #define MDIO_PMA_REG_8727_TWO_WIRE_SLAVE_ADDR 0x8005 |
| 6091 | #define MDIO_PMA_REG_8727_TWO_WIRE_DATA_BUF 0x8007 |
| 6092 | #define MDIO_PMA_REG_8727_TWO_WIRE_DATA_MASK 0xff |
Eilon Greenstein | 4d295db | 2009-07-21 05:47:47 +0000 | [diff] [blame] | 6093 | #define MDIO_PMA_REG_8727_TX_CTRL1 0xca02 |
| 6094 | #define MDIO_PMA_REG_8727_TX_CTRL2 0xca05 |
| 6095 | #define MDIO_PMA_REG_8727_PCS_OPT_CTRL 0xc808 |
| 6096 | #define MDIO_PMA_REG_8727_GPIO_CTRL 0xc80e |
Yaniv Rosner | e10bc84 | 2010-09-07 11:40:50 +0000 | [diff] [blame] | 6097 | #define MDIO_PMA_REG_8727_PCS_GP 0xc842 |
Yaniv Rosner | a8db5b4 | 2011-01-31 04:22:28 +0000 | [diff] [blame] | 6098 | #define MDIO_PMA_REG_8727_OPT_CFG_REG 0xc8e4 |
Yaniv Rosner | e10bc84 | 2010-09-07 11:40:50 +0000 | [diff] [blame] | 6099 | |
| 6100 | #define MDIO_AN_REG_8727_MISC_CTRL 0x8309 |
Eilon Greenstein | 589abe3 | 2009-02-12 08:36:55 +0000 | [diff] [blame] | 6101 | |
Eilon Greenstein | 052a38e | 2009-02-12 08:37:16 +0000 | [diff] [blame] | 6102 | #define MDIO_PMA_REG_8073_CHIP_REV 0xc801 |
| 6103 | #define MDIO_PMA_REG_8073_SPEED_LINK_STATUS 0xc820 |
| 6104 | #define MDIO_PMA_REG_8073_XAUI_WA 0xc841 |
Yaniv Rosner | e10bc84 | 2010-09-07 11:40:50 +0000 | [diff] [blame] | 6105 | #define MDIO_PMA_REG_8073_OPT_DIGITAL_CTRL 0xcd08 |
Eilon Greenstein | 052a38e | 2009-02-12 08:37:16 +0000 | [diff] [blame] | 6106 | |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 6107 | #define MDIO_PMA_REG_7101_RESET 0xc000 |
| 6108 | #define MDIO_PMA_REG_7107_LED_CNTL 0xc007 |
Yaniv Rosner | e10bc84 | 2010-09-07 11:40:50 +0000 | [diff] [blame] | 6109 | #define MDIO_PMA_REG_7107_LINK_LED_CNTL 0xc009 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 6110 | #define MDIO_PMA_REG_7101_VER1 0xc026 |
| 6111 | #define MDIO_PMA_REG_7101_VER2 0xc027 |
Eliezer Tamir | f141064 | 2008-02-28 11:51:50 -0800 | [diff] [blame] | 6112 | |
Yaniv Rosner | 7f02c4a | 2010-09-07 11:41:23 +0000 | [diff] [blame] | 6113 | #define MDIO_PMA_REG_8481_PMD_SIGNAL 0xa811 |
| 6114 | #define MDIO_PMA_REG_8481_LED1_MASK 0xa82c |
| 6115 | #define MDIO_PMA_REG_8481_LED2_MASK 0xa82f |
| 6116 | #define MDIO_PMA_REG_8481_LED3_MASK 0xa832 |
| 6117 | #define MDIO_PMA_REG_8481_LED3_BLINK 0xa834 |
| 6118 | #define MDIO_PMA_REG_8481_LED5_MASK 0xa838 |
| 6119 | #define MDIO_PMA_REG_8481_SIGNAL_MASK 0xa835 |
| 6120 | #define MDIO_PMA_REG_8481_LINK_SIGNAL 0xa83b |
| 6121 | #define MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_MASK 0x800 |
| 6122 | #define MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_SHIFT 11 |
Eilon Greenstein | 2f90446 | 2009-08-12 08:22:16 +0000 | [diff] [blame] | 6123 | |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 6124 | |
| 6125 | #define MDIO_WIS_DEVAD 0x2 |
| 6126 | /*bcm*/ |
| 6127 | #define MDIO_WIS_REG_LASI_CNTL 0x9002 |
| 6128 | #define MDIO_WIS_REG_LASI_STATUS 0x9005 |
| 6129 | |
| 6130 | #define MDIO_PCS_DEVAD 0x3 |
| 6131 | #define MDIO_PCS_REG_STATUS 0x0020 |
| 6132 | #define MDIO_PCS_REG_LASI_STATUS 0x9005 |
| 6133 | #define MDIO_PCS_REG_7101_DSP_ACCESS 0xD000 |
| 6134 | #define MDIO_PCS_REG_7101_SPI_MUX 0xD008 |
| 6135 | #define MDIO_PCS_REG_7101_SPI_CTRL_ADDR 0xE12A |
| 6136 | #define MDIO_PCS_REG_7101_SPI_RESET_BIT (5) |
| 6137 | #define MDIO_PCS_REG_7101_SPI_FIFO_ADDR 0xE02A |
| 6138 | #define MDIO_PCS_REG_7101_SPI_FIFO_ADDR_WRITE_ENABLE_CMD (6) |
| 6139 | #define MDIO_PCS_REG_7101_SPI_FIFO_ADDR_BULK_ERASE_CMD (0xC7) |
| 6140 | #define MDIO_PCS_REG_7101_SPI_FIFO_ADDR_PAGE_PROGRAM_CMD (2) |
| 6141 | #define MDIO_PCS_REG_7101_SPI_BYTES_TO_TRANSFER_ADDR 0xE028 |
| 6142 | |
| 6143 | |
| 6144 | #define MDIO_XS_DEVAD 0x4 |
| 6145 | #define MDIO_XS_PLL_SEQUENCER 0x8000 |
| 6146 | #define MDIO_XS_SFX7101_XGXS_TEST1 0xc00a |
| 6147 | |
Eilon Greenstein | 589abe3 | 2009-02-12 08:36:55 +0000 | [diff] [blame] | 6148 | #define MDIO_XS_8706_REG_BANK_RX0 0x80bc |
| 6149 | #define MDIO_XS_8706_REG_BANK_RX1 0x80cc |
| 6150 | #define MDIO_XS_8706_REG_BANK_RX2 0x80dc |
| 6151 | #define MDIO_XS_8706_REG_BANK_RX3 0x80ec |
| 6152 | #define MDIO_XS_8706_REG_BANK_RXA 0x80fc |
| 6153 | |
Yaniv Rosner | a22f078 | 2010-09-07 11:41:20 +0000 | [diff] [blame] | 6154 | #define MDIO_XS_REG_8073_RX_CTRL_PCIE 0x80FA |
| 6155 | |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 6156 | #define MDIO_AN_DEVAD 0x7 |
| 6157 | /*ieee*/ |
| 6158 | #define MDIO_AN_REG_CTRL 0x0000 |
| 6159 | #define MDIO_AN_REG_STATUS 0x0001 |
| 6160 | #define MDIO_AN_REG_STATUS_AN_COMPLETE 0x0020 |
| 6161 | #define MDIO_AN_REG_ADV_PAUSE 0x0010 |
| 6162 | #define MDIO_AN_REG_ADV_PAUSE_PAUSE 0x0400 |
| 6163 | #define MDIO_AN_REG_ADV_PAUSE_ASYMMETRIC 0x0800 |
| 6164 | #define MDIO_AN_REG_ADV_PAUSE_BOTH 0x0C00 |
| 6165 | #define MDIO_AN_REG_ADV_PAUSE_MASK 0x0C00 |
| 6166 | #define MDIO_AN_REG_ADV 0x0011 |
| 6167 | #define MDIO_AN_REG_ADV2 0x0012 |
| 6168 | #define MDIO_AN_REG_LP_AUTO_NEG 0x0013 |
| 6169 | #define MDIO_AN_REG_MASTER_STATUS 0x0021 |
| 6170 | /*bcm*/ |
| 6171 | #define MDIO_AN_REG_LINK_STATUS 0x8304 |
| 6172 | #define MDIO_AN_REG_CL37_CL73 0x8370 |
| 6173 | #define MDIO_AN_REG_CL37_AN 0xffe0 |
Yaniv Rosner | 8c99e7b | 2008-08-13 15:56:17 -0700 | [diff] [blame] | 6174 | #define MDIO_AN_REG_CL37_FC_LD 0xffe4 |
| 6175 | #define MDIO_AN_REG_CL37_FC_LP 0xffe5 |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 6176 | |
Eilon Greenstein | 052a38e | 2009-02-12 08:37:16 +0000 | [diff] [blame] | 6177 | #define MDIO_AN_REG_8073_2_5G 0x8329 |
Yaniv Rosner | e10bc84 | 2010-09-07 11:40:50 +0000 | [diff] [blame] | 6178 | #define MDIO_AN_REG_8073_BAM 0x8350 |
Eilon Greenstein | 052a38e | 2009-02-12 08:37:16 +0000 | [diff] [blame] | 6179 | |
Yaniv Rosner | ac4d944 | 2010-09-01 09:51:25 +0000 | [diff] [blame] | 6180 | #define MDIO_AN_REG_8481_10GBASE_T_AN_CTRL 0x0020 |
Eilon Greenstein | 2f90446 | 2009-08-12 08:22:16 +0000 | [diff] [blame] | 6181 | #define MDIO_AN_REG_8481_LEGACY_MII_CTRL 0xffe0 |
Yaniv Rosner | e10bc84 | 2010-09-07 11:40:50 +0000 | [diff] [blame] | 6182 | #define MDIO_AN_REG_8481_LEGACY_MII_STATUS 0xffe1 |
Eilon Greenstein | 2f90446 | 2009-08-12 08:22:16 +0000 | [diff] [blame] | 6183 | #define MDIO_AN_REG_8481_LEGACY_AN_ADV 0xffe4 |
Yaniv Rosner | e10bc84 | 2010-09-07 11:40:50 +0000 | [diff] [blame] | 6184 | #define MDIO_AN_REG_8481_LEGACY_AN_EXPANSION 0xffe6 |
Eilon Greenstein | 2f90446 | 2009-08-12 08:22:16 +0000 | [diff] [blame] | 6185 | #define MDIO_AN_REG_8481_1000T_CTRL 0xffe9 |
| 6186 | #define MDIO_AN_REG_8481_EXPANSION_REG_RD_RW 0xfff5 |
| 6187 | #define MDIO_AN_REG_8481_EXPANSION_REG_ACCESS 0xfff7 |
Yaniv Rosner | ac4d944 | 2010-09-01 09:51:25 +0000 | [diff] [blame] | 6188 | #define MDIO_AN_REG_8481_AUX_CTRL 0xfff8 |
Eilon Greenstein | 2f90446 | 2009-08-12 08:22:16 +0000 | [diff] [blame] | 6189 | #define MDIO_AN_REG_8481_LEGACY_SHADOW 0xfffc |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 6190 | |
Yaniv Rosner | a22f078 | 2010-09-07 11:41:20 +0000 | [diff] [blame] | 6191 | /* BCM84823 only */ |
| 6192 | #define MDIO_CTL_DEVAD 0x1e |
| 6193 | #define MDIO_CTL_REG_84823_MEDIA 0x401a |
| 6194 | #define MDIO_CTL_REG_84823_MEDIA_MAC_MASK 0x0018 |
| 6195 | /* These pins configure the BCM84823 interface to MAC after reset. */ |
| 6196 | #define MDIO_CTL_REG_84823_CTRL_MAC_XFI 0x0008 |
| 6197 | #define MDIO_CTL_REG_84823_MEDIA_MAC_XAUI_M 0x0010 |
| 6198 | /* These pins configure the BCM84823 interface to Line after reset. */ |
| 6199 | #define MDIO_CTL_REG_84823_MEDIA_LINE_MASK 0x0060 |
| 6200 | #define MDIO_CTL_REG_84823_MEDIA_LINE_XAUI_L 0x0020 |
| 6201 | #define MDIO_CTL_REG_84823_MEDIA_LINE_XFI 0x0040 |
| 6202 | /* When this pin is active high during reset, 10GBASE-T core is power |
| 6203 | * down, When it is active low the 10GBASE-T is power up |
| 6204 | */ |
| 6205 | #define MDIO_CTL_REG_84823_MEDIA_COPPER_CORE_DOWN 0x0080 |
| 6206 | #define MDIO_CTL_REG_84823_MEDIA_PRIORITY_MASK 0x0100 |
| 6207 | #define MDIO_CTL_REG_84823_MEDIA_PRIORITY_COPPER 0x0000 |
| 6208 | #define MDIO_CTL_REG_84823_MEDIA_PRIORITY_FIBER 0x0100 |
| 6209 | #define MDIO_CTL_REG_84823_MEDIA_FIBER_1G 0x1000 |
Yaniv Rosner | f25b3c8 | 2011-01-18 04:33:47 +0000 | [diff] [blame] | 6210 | #define MDIO_CTL_REG_84823_USER_CTRL_REG 0x4005 |
| 6211 | #define MDIO_CTL_REG_84823_USER_CTRL_CMS 0x0080 |
Yaniv Rosner | a22f078 | 2010-09-07 11:41:20 +0000 | [diff] [blame] | 6212 | |
Yaniv Rosner | f25b3c8 | 2011-01-18 04:33:47 +0000 | [diff] [blame] | 6213 | #define MDIO_PMA_REG_84823_CTL_LED_CTL_1 0xa8e3 |
| 6214 | #define MDIO_PMA_REG_84823_LED3_STRETCH_EN 0x0080 |
Yaniv Rosner | a22f078 | 2010-09-07 11:41:20 +0000 | [diff] [blame] | 6215 | |
Yaniv Rosner | c18487e | 2008-06-23 20:27:52 -0700 | [diff] [blame] | 6216 | #define IGU_FUNC_BASE 0x0400 |
| 6217 | |
| 6218 | #define IGU_ADDR_MSIX 0x0000 |
| 6219 | #define IGU_ADDR_INT_ACK 0x0200 |
| 6220 | #define IGU_ADDR_PROD_UPD 0x0201 |
| 6221 | #define IGU_ADDR_ATTN_BITS_UPD 0x0202 |
| 6222 | #define IGU_ADDR_ATTN_BITS_SET 0x0203 |
| 6223 | #define IGU_ADDR_ATTN_BITS_CLR 0x0204 |
| 6224 | #define IGU_ADDR_COALESCE_NOW 0x0205 |
| 6225 | #define IGU_ADDR_SIMD_MASK 0x0206 |
| 6226 | #define IGU_ADDR_SIMD_NOMASK 0x0207 |
| 6227 | #define IGU_ADDR_MSI_CTL 0x0210 |
| 6228 | #define IGU_ADDR_MSI_ADDR_LO 0x0211 |
| 6229 | #define IGU_ADDR_MSI_ADDR_HI 0x0212 |
| 6230 | #define IGU_ADDR_MSI_DATA 0x0213 |
| 6231 | |
| 6232 | #define IGU_INT_ENABLE 0 |
| 6233 | #define IGU_INT_DISABLE 1 |
| 6234 | #define IGU_INT_NOP 2 |
| 6235 | #define IGU_INT_NOP2 3 |
| 6236 | |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 6237 | #define IGU_USE_REGISTER_ustorm_type_0_sb_cleanup 0 |
| 6238 | #define IGU_USE_REGISTER_ustorm_type_1_sb_cleanup 1 |
| 6239 | #define IGU_USE_REGISTER_cstorm_type_0_sb_cleanup 2 |
| 6240 | #define IGU_USE_REGISTER_cstorm_type_1_sb_cleanup 3 |
| 6241 | |
Eilon Greenstein | 5c86284 | 2008-08-13 15:51:48 -0700 | [diff] [blame] | 6242 | #define COMMAND_REG_INT_ACK 0x0 |
| 6243 | #define COMMAND_REG_PROD_UPD 0x4 |
| 6244 | #define COMMAND_REG_ATTN_BITS_UPD 0x8 |
| 6245 | #define COMMAND_REG_ATTN_BITS_SET 0xc |
| 6246 | #define COMMAND_REG_ATTN_BITS_CLR 0x10 |
| 6247 | #define COMMAND_REG_COALESCE_NOW 0x14 |
| 6248 | #define COMMAND_REG_SIMD_MASK 0x18 |
| 6249 | #define COMMAND_REG_SIMD_NOMASK 0x1c |
| 6250 | |
Eliezer Tamir | a2fbb9e | 2007-11-15 20:09:02 +0200 | [diff] [blame] | 6251 | |
Eilon Greenstein | 573f203 | 2009-08-12 08:24:14 +0000 | [diff] [blame] | 6252 | #define IGU_MEM_BASE 0x0000 |
| 6253 | |
| 6254 | #define IGU_MEM_MSIX_BASE 0x0000 |
| 6255 | #define IGU_MEM_MSIX_UPPER 0x007f |
| 6256 | #define IGU_MEM_MSIX_RESERVED_UPPER 0x01ff |
| 6257 | |
| 6258 | #define IGU_MEM_PBA_MSIX_BASE 0x0200 |
| 6259 | #define IGU_MEM_PBA_MSIX_UPPER 0x0200 |
| 6260 | |
| 6261 | #define IGU_CMD_BACKWARD_COMP_PROD_UPD 0x0201 |
| 6262 | #define IGU_MEM_PBA_MSIX_RESERVED_UPPER 0x03ff |
| 6263 | |
| 6264 | #define IGU_CMD_INT_ACK_BASE 0x0400 |
| 6265 | #define IGU_CMD_INT_ACK_UPPER\ |
| 6266 | (IGU_CMD_INT_ACK_BASE + MAX_SB_PER_PORT * NUM_OF_PORTS_PER_PATH - 1) |
| 6267 | #define IGU_CMD_INT_ACK_RESERVED_UPPER 0x04ff |
| 6268 | |
| 6269 | #define IGU_CMD_E2_PROD_UPD_BASE 0x0500 |
| 6270 | #define IGU_CMD_E2_PROD_UPD_UPPER\ |
| 6271 | (IGU_CMD_E2_PROD_UPD_BASE + MAX_SB_PER_PORT * NUM_OF_PORTS_PER_PATH - 1) |
| 6272 | #define IGU_CMD_E2_PROD_UPD_RESERVED_UPPER 0x059f |
| 6273 | |
| 6274 | #define IGU_CMD_ATTN_BIT_UPD_UPPER 0x05a0 |
| 6275 | #define IGU_CMD_ATTN_BIT_SET_UPPER 0x05a1 |
| 6276 | #define IGU_CMD_ATTN_BIT_CLR_UPPER 0x05a2 |
| 6277 | |
| 6278 | #define IGU_REG_SISR_MDPC_WMASK_UPPER 0x05a3 |
| 6279 | #define IGU_REG_SISR_MDPC_WMASK_LSB_UPPER 0x05a4 |
| 6280 | #define IGU_REG_SISR_MDPC_WMASK_MSB_UPPER 0x05a5 |
| 6281 | #define IGU_REG_SISR_MDPC_WOMASK_UPPER 0x05a6 |
| 6282 | |
| 6283 | #define IGU_REG_RESERVED_UPPER 0x05ff |
Dmitry Kravkov | f2e0899 | 2010-10-06 03:28:26 +0000 | [diff] [blame] | 6284 | /* Fields of IGU PF CONFIGRATION REGISTER */ |
| 6285 | #define IGU_PF_CONF_FUNC_EN (0x1<<0) /* function enable */ |
| 6286 | #define IGU_PF_CONF_MSI_MSIX_EN (0x1<<1) /* MSI/MSIX enable */ |
| 6287 | #define IGU_PF_CONF_INT_LINE_EN (0x1<<2) /* INT enable */ |
| 6288 | #define IGU_PF_CONF_ATTN_BIT_EN (0x1<<3) /* attention enable */ |
| 6289 | #define IGU_PF_CONF_SINGLE_ISR_EN (0x1<<4) /* single ISR mode enable */ |
| 6290 | #define IGU_PF_CONF_SIMD_MODE (0x1<<5) /* simd all ones mode */ |
| 6291 | |
| 6292 | /* Fields of IGU VF CONFIGRATION REGISTER */ |
| 6293 | #define IGU_VF_CONF_FUNC_EN (0x1<<0) /* function enable */ |
| 6294 | #define IGU_VF_CONF_MSI_MSIX_EN (0x1<<1) /* MSI/MSIX enable */ |
| 6295 | #define IGU_VF_CONF_PARENT_MASK (0x3<<2) /* Parent PF */ |
| 6296 | #define IGU_VF_CONF_PARENT_SHIFT 2 /* Parent PF */ |
| 6297 | #define IGU_VF_CONF_SINGLE_ISR_EN (0x1<<4) /* single ISR mode enable */ |
| 6298 | |
| 6299 | |
| 6300 | #define IGU_BC_DSB_NUM_SEGS 5 |
| 6301 | #define IGU_BC_NDSB_NUM_SEGS 2 |
| 6302 | #define IGU_NORM_DSB_NUM_SEGS 2 |
| 6303 | #define IGU_NORM_NDSB_NUM_SEGS 1 |
| 6304 | #define IGU_BC_BASE_DSB_PROD 128 |
| 6305 | #define IGU_NORM_BASE_DSB_PROD 136 |
| 6306 | |
| 6307 | #define IGU_CTRL_CMD_TYPE_WR\ |
| 6308 | 1 |
| 6309 | #define IGU_CTRL_CMD_TYPE_RD\ |
| 6310 | 0 |
| 6311 | |
| 6312 | #define IGU_SEG_ACCESS_NORM 0 |
| 6313 | #define IGU_SEG_ACCESS_DEF 1 |
| 6314 | #define IGU_SEG_ACCESS_ATTN 2 |
| 6315 | |
| 6316 | /* FID (if VF - [6] = 0; [5:0] = VF number; if PF - [6] = 1; \ |
| 6317 | [5:2] = 0; [1:0] = PF number) */ |
| 6318 | #define IGU_FID_ENCODE_IS_PF (0x1<<6) |
| 6319 | #define IGU_FID_ENCODE_IS_PF_SHIFT 6 |
| 6320 | #define IGU_FID_VF_NUM_MASK (0x3f) |
| 6321 | #define IGU_FID_PF_NUM_MASK (0x7) |
| 6322 | |
| 6323 | #define IGU_REG_MAPPING_MEMORY_VALID (1<<0) |
| 6324 | #define IGU_REG_MAPPING_MEMORY_VECTOR_MASK (0x3F<<1) |
| 6325 | #define IGU_REG_MAPPING_MEMORY_VECTOR_SHIFT 1 |
| 6326 | #define IGU_REG_MAPPING_MEMORY_FID_MASK (0x7F<<7) |
| 6327 | #define IGU_REG_MAPPING_MEMORY_FID_SHIFT 7 |
Eilon Greenstein | 573f203 | 2009-08-12 08:24:14 +0000 | [diff] [blame] | 6328 | |
| 6329 | |
| 6330 | #define CDU_REGION_NUMBER_XCM_AG 2 |
| 6331 | #define CDU_REGION_NUMBER_UCM_AG 4 |
| 6332 | |
| 6333 | |
| 6334 | /** |
| 6335 | * String-to-compress [31:8] = CID (all 24 bits) |
| 6336 | * String-to-compress [7:4] = Region |
| 6337 | * String-to-compress [3:0] = Type |
| 6338 | */ |
| 6339 | #define CDU_VALID_DATA(_cid, _region, _type)\ |
| 6340 | (((_cid) << 8) | (((_region)&0xf)<<4) | (((_type)&0xf))) |
| 6341 | #define CDU_CRC8(_cid, _region, _type)\ |
| 6342 | (calc_crc8(CDU_VALID_DATA(_cid, _region, _type), 0xff)) |
| 6343 | #define CDU_RSRVD_VALUE_TYPE_A(_cid, _region, _type)\ |
| 6344 | (0x80 | ((CDU_CRC8(_cid, _region, _type)) & 0x7f)) |
| 6345 | #define CDU_RSRVD_VALUE_TYPE_B(_crc, _type)\ |
| 6346 | (0x80 | ((_type)&0xf << 3) | ((CDU_CRC8(_cid, _region, _type)) & 0x7)) |
| 6347 | #define CDU_RSRVD_INVALIDATE_CONTEXT_VALUE(_val) ((_val) & ~0x80) |
| 6348 | |
| 6349 | /****************************************************************************** |
| 6350 | * Description: |
| 6351 | * Calculates crc 8 on a word value: polynomial 0-1-2-8 |
| 6352 | * Code was translated from Verilog. |
| 6353 | * Return: |
| 6354 | *****************************************************************************/ |
| 6355 | static inline u8 calc_crc8(u32 data, u8 crc) |
| 6356 | { |
| 6357 | u8 D[32]; |
| 6358 | u8 NewCRC[8]; |
| 6359 | u8 C[8]; |
| 6360 | u8 crc_res; |
| 6361 | u8 i; |
| 6362 | |
| 6363 | /* split the data into 31 bits */ |
| 6364 | for (i = 0; i < 32; i++) { |
| 6365 | D[i] = (u8)(data & 1); |
| 6366 | data = data >> 1; |
| 6367 | } |
| 6368 | |
| 6369 | /* split the crc into 8 bits */ |
| 6370 | for (i = 0; i < 8; i++) { |
| 6371 | C[i] = crc & 1; |
| 6372 | crc = crc >> 1; |
| 6373 | } |
| 6374 | |
| 6375 | NewCRC[0] = D[31] ^ D[30] ^ D[28] ^ D[23] ^ D[21] ^ D[19] ^ D[18] ^ |
| 6376 | D[16] ^ D[14] ^ D[12] ^ D[8] ^ D[7] ^ D[6] ^ D[0] ^ C[4] ^ |
| 6377 | C[6] ^ C[7]; |
| 6378 | NewCRC[1] = D[30] ^ D[29] ^ D[28] ^ D[24] ^ D[23] ^ D[22] ^ D[21] ^ |
| 6379 | D[20] ^ D[18] ^ D[17] ^ D[16] ^ D[15] ^ D[14] ^ D[13] ^ |
| 6380 | D[12] ^ D[9] ^ D[6] ^ D[1] ^ D[0] ^ C[0] ^ C[4] ^ C[5] ^ |
| 6381 | C[6]; |
| 6382 | NewCRC[2] = D[29] ^ D[28] ^ D[25] ^ D[24] ^ D[22] ^ D[17] ^ D[15] ^ |
| 6383 | D[13] ^ D[12] ^ D[10] ^ D[8] ^ D[6] ^ D[2] ^ D[1] ^ D[0] ^ |
| 6384 | C[0] ^ C[1] ^ C[4] ^ C[5]; |
| 6385 | NewCRC[3] = D[30] ^ D[29] ^ D[26] ^ D[25] ^ D[23] ^ D[18] ^ D[16] ^ |
| 6386 | D[14] ^ D[13] ^ D[11] ^ D[9] ^ D[7] ^ D[3] ^ D[2] ^ D[1] ^ |
| 6387 | C[1] ^ C[2] ^ C[5] ^ C[6]; |
| 6388 | NewCRC[4] = D[31] ^ D[30] ^ D[27] ^ D[26] ^ D[24] ^ D[19] ^ D[17] ^ |
| 6389 | D[15] ^ D[14] ^ D[12] ^ D[10] ^ D[8] ^ D[4] ^ D[3] ^ D[2] ^ |
| 6390 | C[0] ^ C[2] ^ C[3] ^ C[6] ^ C[7]; |
| 6391 | NewCRC[5] = D[31] ^ D[28] ^ D[27] ^ D[25] ^ D[20] ^ D[18] ^ D[16] ^ |
| 6392 | D[15] ^ D[13] ^ D[11] ^ D[9] ^ D[5] ^ D[4] ^ D[3] ^ C[1] ^ |
| 6393 | C[3] ^ C[4] ^ C[7]; |
| 6394 | NewCRC[6] = D[29] ^ D[28] ^ D[26] ^ D[21] ^ D[19] ^ D[17] ^ D[16] ^ |
| 6395 | D[14] ^ D[12] ^ D[10] ^ D[6] ^ D[5] ^ D[4] ^ C[2] ^ C[4] ^ |
| 6396 | C[5]; |
| 6397 | NewCRC[7] = D[30] ^ D[29] ^ D[27] ^ D[22] ^ D[20] ^ D[18] ^ D[17] ^ |
| 6398 | D[15] ^ D[13] ^ D[11] ^ D[7] ^ D[6] ^ D[5] ^ C[3] ^ C[5] ^ |
| 6399 | C[6]; |
| 6400 | |
| 6401 | crc_res = 0; |
| 6402 | for (i = 0; i < 8; i++) |
| 6403 | crc_res |= (NewCRC[i] << i); |
| 6404 | |
| 6405 | return crc_res; |
| 6406 | } |
| 6407 | |
| 6408 | |
Vladislav Zolotarov | 4a33bc0 | 2011-01-09 02:20:04 +0000 | [diff] [blame] | 6409 | #endif /* BNX2X_REG_H */ |