diff options
Diffstat (limited to 'drivers/net/bnx2x_reg.h')
-rw-r--r-- | drivers/net/bnx2x_reg.h | 210 |
1 files changed, 130 insertions, 80 deletions
diff --git a/drivers/net/bnx2x_reg.h b/drivers/net/bnx2x_reg.h index 15c9a9946724..a67b0c358ae4 100644 --- a/drivers/net/bnx2x_reg.h +++ b/drivers/net/bnx2x_reg.h | |||
@@ -6,7 +6,7 @@ | |||
6 | * it under the terms of the GNU General Public License as published by | 6 | * it under the terms of the GNU General Public License as published by |
7 | * the Free Software Foundation. | 7 | * the Free Software Foundation. |
8 | * | 8 | * |
9 | * The registers description starts with the regsister Access type followed | 9 | * The registers description starts with the register Access type followed |
10 | * by size in bits. For example [RW 32]. The access types are: | 10 | * by size in bits. For example [RW 32]. The access types are: |
11 | * R - Read only | 11 | * R - Read only |
12 | * RC - Clear on read | 12 | * RC - Clear on read |
@@ -49,7 +49,7 @@ | |||
49 | /* [RW 10] Write client 0: Assert pause threshold. */ | 49 | /* [RW 10] Write client 0: Assert pause threshold. */ |
50 | #define BRB1_REG_PAUSE_LOW_THRESHOLD_0 0x60068 | 50 | #define BRB1_REG_PAUSE_LOW_THRESHOLD_0 0x60068 |
51 | #define BRB1_REG_PAUSE_LOW_THRESHOLD_1 0x6006c | 51 | #define BRB1_REG_PAUSE_LOW_THRESHOLD_1 0x6006c |
52 | /* [R 24] The number of full blocks occpied by port. */ | 52 | /* [R 24] The number of full blocks occupied by port. */ |
53 | #define BRB1_REG_PORT_NUM_OCC_BLOCKS_0 0x60094 | 53 | #define BRB1_REG_PORT_NUM_OCC_BLOCKS_0 0x60094 |
54 | /* [RW 1] Reset the design by software. */ | 54 | /* [RW 1] Reset the design by software. */ |
55 | #define BRB1_REG_SOFT_RESET 0x600dc | 55 | #define BRB1_REG_SOFT_RESET 0x600dc |
@@ -740,6 +740,7 @@ | |||
740 | #define HC_REG_ATTN_MSG1_ADDR_L 0x108020 | 740 | #define HC_REG_ATTN_MSG1_ADDR_L 0x108020 |
741 | #define HC_REG_ATTN_NUM_P0 0x108038 | 741 | #define HC_REG_ATTN_NUM_P0 0x108038 |
742 | #define HC_REG_ATTN_NUM_P1 0x10803c | 742 | #define HC_REG_ATTN_NUM_P1 0x10803c |
743 | #define HC_REG_COMMAND_REG 0x108180 | ||
743 | #define HC_REG_CONFIG_0 0x108000 | 744 | #define HC_REG_CONFIG_0 0x108000 |
744 | #define HC_REG_CONFIG_1 0x108004 | 745 | #define HC_REG_CONFIG_1 0x108004 |
745 | #define HC_REG_FUNC_NUM_P0 0x1080ac | 746 | #define HC_REG_FUNC_NUM_P0 0x1080ac |
@@ -1372,6 +1373,23 @@ | |||
1372 | be asserted). */ | 1373 | be asserted). */ |
1373 | #define MISC_REG_DRIVER_CONTROL_16 0xa5f0 | 1374 | #define MISC_REG_DRIVER_CONTROL_16 0xa5f0 |
1374 | #define MISC_REG_DRIVER_CONTROL_16_SIZE 2 | 1375 | #define MISC_REG_DRIVER_CONTROL_16_SIZE 2 |
1376 | /* [RW 32] The following driver registers(1...16) represent 16 drivers and | ||
1377 | 32 clients. Each client can be controlled by one driver only. One in each | ||
1378 | bit represent that this driver control the appropriate client (Ex: bit 5 | ||
1379 | is set means this driver control client number 5). addr1 = set; addr0 = | ||
1380 | clear; read from both addresses will give the same result = status. write | ||
1381 | to address 1 will set a request to control all the clients that their | ||
1382 | appropriate bit (in the write command) is set. if the client is free (the | ||
1383 | appropriate bit in all the other drivers is clear) one will be written to | ||
1384 | that driver register; if the client isn't free the bit will remain zero. | ||
1385 | if the appropriate bit is set (the driver request to gain control on a | ||
1386 | client it already controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW | ||
1387 | interrupt will be asserted). write to address 0 will set a request to | ||
1388 | free all the clients that their appropriate bit (in the write command) is | ||
1389 | set. if the appropriate bit is clear (the driver request to free a client | ||
1390 | it doesn't controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW interrupt will | ||
1391 | be asserted). */ | ||
1392 | #define MISC_REG_DRIVER_CONTROL_7 0xa3c8 | ||
1375 | /* [RW 1] e1hmf for WOL. If clr WOL signal o the PXP will be send on bit 0 | 1393 | /* [RW 1] e1hmf for WOL. If clr WOL signal o the PXP will be send on bit 0 |
1376 | only. */ | 1394 | only. */ |
1377 | #define MISC_REG_E1HMF_MODE 0xa5f8 | 1395 | #define MISC_REG_E1HMF_MODE 0xa5f8 |
@@ -1394,13 +1412,13 @@ | |||
1394 | #define MISC_REG_GPIO 0xa490 | 1412 | #define MISC_REG_GPIO 0xa490 |
1395 | /* [R 28] this field hold the last information that caused reserved | 1413 | /* [R 28] this field hold the last information that caused reserved |
1396 | attention. bits [19:0] - address; [22:20] function; [23] reserved; | 1414 | attention. bits [19:0] - address; [22:20] function; [23] reserved; |
1397 | [27:24] the master thatcaused the attention - according to the following | 1415 | [27:24] the master that caused the attention - according to the following |
1398 | encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 = | 1416 | encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 = |
1399 | dbu; 8 = dmae */ | 1417 | dbu; 8 = dmae */ |
1400 | #define MISC_REG_GRC_RSV_ATTN 0xa3c0 | 1418 | #define MISC_REG_GRC_RSV_ATTN 0xa3c0 |
1401 | /* [R 28] this field hold the last information that caused timeout | 1419 | /* [R 28] this field hold the last information that caused timeout |
1402 | attention. bits [19:0] - address; [22:20] function; [23] reserved; | 1420 | attention. bits [19:0] - address; [22:20] function; [23] reserved; |
1403 | [27:24] the master thatcaused the attention - according to the following | 1421 | [27:24] the master that caused the attention - according to the following |
1404 | encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 = | 1422 | encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 = |
1405 | dbu; 8 = dmae */ | 1423 | dbu; 8 = dmae */ |
1406 | #define MISC_REG_GRC_TIMEOUT_ATTN 0xa3c4 | 1424 | #define MISC_REG_GRC_TIMEOUT_ATTN 0xa3c4 |
@@ -1677,6 +1695,7 @@ | |||
1677 | /* [RW 8] init credit counter for port0 in LLH */ | 1695 | /* [RW 8] init credit counter for port0 in LLH */ |
1678 | #define NIG_REG_LLH0_XCM_INIT_CREDIT 0x10554 | 1696 | #define NIG_REG_LLH0_XCM_INIT_CREDIT 0x10554 |
1679 | #define NIG_REG_LLH0_XCM_MASK 0x10130 | 1697 | #define NIG_REG_LLH0_XCM_MASK 0x10130 |
1698 | #define NIG_REG_LLH1_BRB1_DRV_MASK 0x10248 | ||
1680 | /* [RW 1] send to BRB1 if no match on any of RMP rules. */ | 1699 | /* [RW 1] send to BRB1 if no match on any of RMP rules. */ |
1681 | #define NIG_REG_LLH1_BRB1_NOT_MCP 0x102dc | 1700 | #define NIG_REG_LLH1_BRB1_NOT_MCP 0x102dc |
1682 | /* [RW 2] Determine the classification participants. 0: no classification.1: | 1701 | /* [RW 2] Determine the classification participants. 0: no classification.1: |
@@ -1727,6 +1746,9 @@ | |||
1727 | /* [R 32] Rx statistics : In user packets discarded due to BRB backpressure | 1746 | /* [R 32] Rx statistics : In user packets discarded due to BRB backpressure |
1728 | for port0 */ | 1747 | for port0 */ |
1729 | #define NIG_REG_STAT0_BRB_DISCARD 0x105f0 | 1748 | #define NIG_REG_STAT0_BRB_DISCARD 0x105f0 |
1749 | /* [R 32] Rx statistics : In user packets truncated due to BRB backpressure | ||
1750 | for port0 */ | ||
1751 | #define NIG_REG_STAT0_BRB_TRUNCATE 0x105f8 | ||
1730 | /* [WB_R 36] Tx statistics : Number of packets from emac0 or bmac0 that | 1752 | /* [WB_R 36] Tx statistics : Number of packets from emac0 or bmac0 that |
1731 | between 1024 and 1522 bytes for port0 */ | 1753 | between 1024 and 1522 bytes for port0 */ |
1732 | #define NIG_REG_STAT0_EGRESS_MAC_PKT0 0x10750 | 1754 | #define NIG_REG_STAT0_EGRESS_MAC_PKT0 0x10750 |
@@ -2298,7 +2320,7 @@ | |||
2298 | /* [RW 3] page size in L2P table for QM module; -4k; -8k; -16k; -32k; -64k; | 2320 | /* [RW 3] page size in L2P table for QM module; -4k; -8k; -16k; -32k; -64k; |
2299 | -128k */ | 2321 | -128k */ |
2300 | #define PXP2_REG_RQ_QM_P_SIZE 0x120050 | 2322 | #define PXP2_REG_RQ_QM_P_SIZE 0x120050 |
2301 | /* [RW 1] 1' indicates that the RBC has finished configurating the PSWRQ */ | 2323 | /* [RW 1] 1' indicates that the RBC has finished configuring the PSWRQ */ |
2302 | #define PXP2_REG_RQ_RBC_DONE 0x1201b0 | 2324 | #define PXP2_REG_RQ_RBC_DONE 0x1201b0 |
2303 | /* [RW 3] Max burst size filed for read requests port 0; 000 - 128B; | 2325 | /* [RW 3] Max burst size filed for read requests port 0; 000 - 128B; |
2304 | 001:256B; 010: 512B; 11:1K:100:2K; 01:4K */ | 2326 | 001:256B; 010: 512B; 11:1K:100:2K; 01:4K */ |
@@ -2406,7 +2428,7 @@ | |||
2406 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the | 2428 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the |
2407 | buffer reaches this number has_payload will be asserted */ | 2429 | buffer reaches this number has_payload will be asserted */ |
2408 | #define PXP2_REG_WR_DMAE_MPS 0x1205ec | 2430 | #define PXP2_REG_WR_DMAE_MPS 0x1205ec |
2409 | /* [RW 10] if Number of entries in dmae fifo will be higer than this | 2431 | /* [RW 10] if Number of entries in dmae fifo will be higher than this |
2410 | threshold then has_payload indication will be asserted; the default value | 2432 | threshold then has_payload indication will be asserted; the default value |
2411 | should be equal to > write MBS size! */ | 2433 | should be equal to > write MBS size! */ |
2412 | #define PXP2_REG_WR_DMAE_TH 0x120368 | 2434 | #define PXP2_REG_WR_DMAE_TH 0x120368 |
@@ -2427,7 +2449,7 @@ | |||
2427 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the | 2449 | /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the |
2428 | buffer reaches this number has_payload will be asserted */ | 2450 | buffer reaches this number has_payload will be asserted */ |
2429 | #define PXP2_REG_WR_TSDM_MPS 0x1205d4 | 2451 | #define PXP2_REG_WR_TSDM_MPS 0x1205d4 |
2430 | /* [RW 10] if Number of entries in usdmdp fifo will be higer than this | 2452 | /* [RW 10] if Number of entries in usdmdp fifo will be higher than this |
2431 | threshold then has_payload indication will be asserted; the default value | 2453 | threshold then has_payload indication will be asserted; the default value |
2432 | should be equal to > write MBS size! */ | 2454 | should be equal to > write MBS size! */ |
2433 | #define PXP2_REG_WR_USDMDP_TH 0x120348 | 2455 | #define PXP2_REG_WR_USDMDP_TH 0x120348 |
@@ -3294,12 +3316,12 @@ | |||
3294 | #define XSEM_XSEM_INT_MASK_0_REG_ADDRESS_ERROR_SIZE 0 | 3316 | #define XSEM_XSEM_INT_MASK_0_REG_ADDRESS_ERROR_SIZE 0 |
3295 | #define CFC_DEBUG1_REG_WRITE_AC (0x1<<4) | 3317 | #define CFC_DEBUG1_REG_WRITE_AC (0x1<<4) |
3296 | #define CFC_DEBUG1_REG_WRITE_AC_SIZE 4 | 3318 | #define CFC_DEBUG1_REG_WRITE_AC_SIZE 4 |
3297 | /* [R 1] debug only: This bit indicates wheter indicates that external | 3319 | /* [R 1] debug only: This bit indicates whether indicates that external |
3298 | buffer was wrapped (oldest data was thrown); Relevant only when | 3320 | buffer was wrapped (oldest data was thrown); Relevant only when |
3299 | ~dbg_registers_debug_target=2 (PCI) & ~dbg_registers_full_mode=1 (wrap); */ | 3321 | ~dbg_registers_debug_target=2 (PCI) & ~dbg_registers_full_mode=1 (wrap); */ |
3300 | #define DBG_REG_WRAP_ON_EXT_BUFFER 0xc124 | 3322 | #define DBG_REG_WRAP_ON_EXT_BUFFER 0xc124 |
3301 | #define DBG_REG_WRAP_ON_EXT_BUFFER_SIZE 1 | 3323 | #define DBG_REG_WRAP_ON_EXT_BUFFER_SIZE 1 |
3302 | /* [R 1] debug only: This bit indicates wheter the internal buffer was | 3324 | /* [R 1] debug only: This bit indicates whether the internal buffer was |
3303 | wrapped (oldest data was thrown) Relevant only when | 3325 | wrapped (oldest data was thrown) Relevant only when |
3304 | ~dbg_registers_debug_target=0 (internal buffer) */ | 3326 | ~dbg_registers_debug_target=0 (internal buffer) */ |
3305 | #define DBG_REG_WRAP_ON_INT_BUFFER 0xc128 | 3327 | #define DBG_REG_WRAP_ON_INT_BUFFER 0xc128 |
@@ -4944,6 +4966,7 @@ | |||
4944 | #define EMAC_RX_MODE_PROMISCUOUS (1L<<8) | 4966 | #define EMAC_RX_MODE_PROMISCUOUS (1L<<8) |
4945 | #define EMAC_RX_MTU_SIZE_JUMBO_ENA (1L<<31) | 4967 | #define EMAC_RX_MTU_SIZE_JUMBO_ENA (1L<<31) |
4946 | #define EMAC_TX_MODE_EXT_PAUSE_EN (1L<<3) | 4968 | #define EMAC_TX_MODE_EXT_PAUSE_EN (1L<<3) |
4969 | #define EMAC_TX_MODE_FLOW_EN (1L<<4) | ||
4947 | #define MISC_REGISTERS_GPIO_0 0 | 4970 | #define MISC_REGISTERS_GPIO_0 0 |
4948 | #define MISC_REGISTERS_GPIO_1 1 | 4971 | #define MISC_REGISTERS_GPIO_1 1 |
4949 | #define MISC_REGISTERS_GPIO_2 2 | 4972 | #define MISC_REGISTERS_GPIO_2 2 |
@@ -4959,6 +4982,7 @@ | |||
4959 | #define MISC_REGISTERS_GPIO_PORT_SHIFT 4 | 4982 | #define MISC_REGISTERS_GPIO_PORT_SHIFT 4 |
4960 | #define MISC_REGISTERS_GPIO_SET_POS 8 | 4983 | #define MISC_REGISTERS_GPIO_SET_POS 8 |
4961 | #define MISC_REGISTERS_RESET_REG_1_CLEAR 0x588 | 4984 | #define MISC_REGISTERS_RESET_REG_1_CLEAR 0x588 |
4985 | #define MISC_REGISTERS_RESET_REG_1_RST_NIG (0x1<<7) | ||
4962 | #define MISC_REGISTERS_RESET_REG_1_SET 0x584 | 4986 | #define MISC_REGISTERS_RESET_REG_1_SET 0x584 |
4963 | #define MISC_REGISTERS_RESET_REG_2_CLEAR 0x598 | 4987 | #define MISC_REGISTERS_RESET_REG_2_CLEAR 0x598 |
4964 | #define MISC_REGISTERS_RESET_REG_2_RST_BMAC0 (0x1<<0) | 4988 | #define MISC_REGISTERS_RESET_REG_2_RST_BMAC0 (0x1<<0) |
@@ -4993,7 +5017,9 @@ | |||
4993 | #define HW_LOCK_MAX_RESOURCE_VALUE 31 | 5017 | #define HW_LOCK_MAX_RESOURCE_VALUE 31 |
4994 | #define HW_LOCK_RESOURCE_8072_MDIO 0 | 5018 | #define HW_LOCK_RESOURCE_8072_MDIO 0 |
4995 | #define HW_LOCK_RESOURCE_GPIO 1 | 5019 | #define HW_LOCK_RESOURCE_GPIO 1 |
5020 | #define HW_LOCK_RESOURCE_PORT0_ATT_MASK 3 | ||
4996 | #define HW_LOCK_RESOURCE_SPIO 2 | 5021 | #define HW_LOCK_RESOURCE_SPIO 2 |
5022 | #define HW_LOCK_RESOURCE_UNDI 5 | ||
4997 | #define AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR (1<<18) | 5023 | #define AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR (1<<18) |
4998 | #define AEU_INPUTS_ATTN_BITS_CCM_HW_INTERRUPT (1<<31) | 5024 | #define AEU_INPUTS_ATTN_BITS_CCM_HW_INTERRUPT (1<<31) |
4999 | #define AEU_INPUTS_ATTN_BITS_CDU_HW_INTERRUPT (1<<9) | 5025 | #define AEU_INPUTS_ATTN_BITS_CDU_HW_INTERRUPT (1<<9) |
@@ -5144,59 +5170,73 @@ | |||
5144 | #define GRCBASE_MISC_AEU GRCBASE_MISC | 5170 | #define GRCBASE_MISC_AEU GRCBASE_MISC |
5145 | 5171 | ||
5146 | 5172 | ||
5147 | /*the offset of the configuration space in the pci core register*/ | 5173 | /* offset of configuration space in the pci core register */ |
5148 | #define PCICFG_OFFSET 0x2000 | 5174 | #define PCICFG_OFFSET 0x2000 |
5149 | #define PCICFG_VENDOR_ID_OFFSET 0x00 | 5175 | #define PCICFG_VENDOR_ID_OFFSET 0x00 |
5150 | #define PCICFG_DEVICE_ID_OFFSET 0x02 | 5176 | #define PCICFG_DEVICE_ID_OFFSET 0x02 |
5151 | #define PCICFG_COMMAND_OFFSET 0x04 | 5177 | #define PCICFG_COMMAND_OFFSET 0x04 |
5178 | #define PCICFG_COMMAND_IO_SPACE (1<<0) | ||
5179 | #define PCICFG_COMMAND_MEM_SPACE (1<<1) | ||
5180 | #define PCICFG_COMMAND_BUS_MASTER (1<<2) | ||
5181 | #define PCICFG_COMMAND_SPECIAL_CYCLES (1<<3) | ||
5182 | #define PCICFG_COMMAND_MWI_CYCLES (1<<4) | ||
5183 | #define PCICFG_COMMAND_VGA_SNOOP (1<<5) | ||
5184 | #define PCICFG_COMMAND_PERR_ENA (1<<6) | ||
5185 | #define PCICFG_COMMAND_STEPPING (1<<7) | ||
5186 | #define PCICFG_COMMAND_SERR_ENA (1<<8) | ||
5187 | #define PCICFG_COMMAND_FAST_B2B (1<<9) | ||
5188 | #define PCICFG_COMMAND_INT_DISABLE (1<<10) | ||
5189 | #define PCICFG_COMMAND_RESERVED (0x1f<<11) | ||
5152 | #define PCICFG_STATUS_OFFSET 0x06 | 5190 | #define PCICFG_STATUS_OFFSET 0x06 |
5153 | #define PCICFG_REVESION_ID 0x08 | 5191 | #define PCICFG_REVESION_ID 0x08 |
5154 | #define PCICFG_CACHE_LINE_SIZE 0x0c | 5192 | #define PCICFG_CACHE_LINE_SIZE 0x0c |
5155 | #define PCICFG_LATENCY_TIMER 0x0d | 5193 | #define PCICFG_LATENCY_TIMER 0x0d |
5156 | #define PCICFG_BAR_1_LOW 0x10 | 5194 | #define PCICFG_BAR_1_LOW 0x10 |
5157 | #define PCICFG_BAR_1_HIGH 0x14 | 5195 | #define PCICFG_BAR_1_HIGH 0x14 |
5158 | #define PCICFG_BAR_2_LOW 0x18 | 5196 | #define PCICFG_BAR_2_LOW 0x18 |
5159 | #define PCICFG_BAR_2_HIGH 0x1c | 5197 | #define PCICFG_BAR_2_HIGH 0x1c |
5160 | #define PCICFG_SUBSYSTEM_VENDOR_ID_OFFSET 0x2c | 5198 | #define PCICFG_SUBSYSTEM_VENDOR_ID_OFFSET 0x2c |
5161 | #define PCICFG_SUBSYSTEM_ID_OFFSET 0x2e | 5199 | #define PCICFG_SUBSYSTEM_ID_OFFSET 0x2e |
5162 | #define PCICFG_INT_LINE 0x3c | 5200 | #define PCICFG_INT_LINE 0x3c |
5163 | #define PCICFG_INT_PIN 0x3d | 5201 | #define PCICFG_INT_PIN 0x3d |
5164 | #define PCICFG_PM_CSR_OFFSET 0x4c | 5202 | #define PCICFG_PM_CAPABILITY 0x48 |
5165 | #define PCICFG_GRC_ADDRESS 0x78 | 5203 | #define PCICFG_PM_CAPABILITY_VERSION (0x3<<16) |
5166 | #define PCICFG_GRC_DATA 0x80 | 5204 | #define PCICFG_PM_CAPABILITY_CLOCK (1<<19) |
5205 | #define PCICFG_PM_CAPABILITY_RESERVED (1<<20) | ||
5206 | #define PCICFG_PM_CAPABILITY_DSI (1<<21) | ||
5207 | #define PCICFG_PM_CAPABILITY_AUX_CURRENT (0x7<<22) | ||
5208 | #define PCICFG_PM_CAPABILITY_D1_SUPPORT (1<<25) | ||
5209 | #define PCICFG_PM_CAPABILITY_D2_SUPPORT (1<<26) | ||
5210 | #define PCICFG_PM_CAPABILITY_PME_IN_D0 (1<<27) | ||
5211 | #define PCICFG_PM_CAPABILITY_PME_IN_D1 (1<<28) | ||
5212 | #define PCICFG_PM_CAPABILITY_PME_IN_D2 (1<<29) | ||
5213 | #define PCICFG_PM_CAPABILITY_PME_IN_D3_HOT (1<<30) | ||
5214 | #define PCICFG_PM_CAPABILITY_PME_IN_D3_COLD (1<<31) | ||
5215 | #define PCICFG_PM_CSR_OFFSET 0x4c | ||
5216 | #define PCICFG_PM_CSR_STATE (0x3<<0) | ||
5217 | #define PCICFG_PM_CSR_PME_ENABLE (1<<8) | ||
5218 | #define PCICFG_PM_CSR_PME_STATUS (1<<15) | ||
5219 | #define PCICFG_GRC_ADDRESS 0x78 | ||
5220 | #define PCICFG_GRC_DATA 0x80 | ||
5167 | #define PCICFG_DEVICE_CONTROL 0xb4 | 5221 | #define PCICFG_DEVICE_CONTROL 0xb4 |
5168 | #define PCICFG_LINK_CONTROL 0xbc | 5222 | #define PCICFG_LINK_CONTROL 0xbc |
5169 | 5223 | ||
5170 | #define PCICFG_COMMAND_IO_SPACE (1<<0) | ||
5171 | #define PCICFG_COMMAND_MEM_SPACE (1<<1) | ||
5172 | #define PCICFG_COMMAND_BUS_MASTER (1<<2) | ||
5173 | #define PCICFG_COMMAND_SPECIAL_CYCLES (1<<3) | ||
5174 | #define PCICFG_COMMAND_MWI_CYCLES (1<<4) | ||
5175 | #define PCICFG_COMMAND_VGA_SNOOP (1<<5) | ||
5176 | #define PCICFG_COMMAND_PERR_ENA (1<<6) | ||
5177 | #define PCICFG_COMMAND_STEPPING (1<<7) | ||
5178 | #define PCICFG_COMMAND_SERR_ENA (1<<8) | ||
5179 | #define PCICFG_COMMAND_FAST_B2B (1<<9) | ||
5180 | #define PCICFG_COMMAND_INT_DISABLE (1<<10) | ||
5181 | #define PCICFG_COMMAND_RESERVED (0x1f<<11) | ||
5182 | |||
5183 | #define PCICFG_PM_CSR_STATE (0x3<<0) | ||
5184 | #define PCICFG_PM_CSR_PME_STATUS (1<<15) | ||
5185 | 5224 | ||
5186 | #define BAR_USTRORM_INTMEM 0x400000 | 5225 | #define BAR_USTRORM_INTMEM 0x400000 |
5187 | #define BAR_CSTRORM_INTMEM 0x410000 | 5226 | #define BAR_CSTRORM_INTMEM 0x410000 |
5188 | #define BAR_XSTRORM_INTMEM 0x420000 | 5227 | #define BAR_XSTRORM_INTMEM 0x420000 |
5189 | #define BAR_TSTRORM_INTMEM 0x430000 | 5228 | #define BAR_TSTRORM_INTMEM 0x430000 |
5190 | 5229 | ||
5230 | /* for accessing the IGU in case of status block ACK */ | ||
5191 | #define BAR_IGU_INTMEM 0x440000 | 5231 | #define BAR_IGU_INTMEM 0x440000 |
5192 | 5232 | ||
5193 | #define BAR_DOORBELL_OFFSET 0x800000 | 5233 | #define BAR_DOORBELL_OFFSET 0x800000 |
5194 | 5234 | ||
5195 | #define BAR_ME_REGISTER 0x450000 | 5235 | #define BAR_ME_REGISTER 0x450000 |
5196 | 5236 | ||
5197 | 5237 | /* config_2 offset */ | |
5198 | #define GRC_CONFIG_2_SIZE_REG 0x408 /* config_2 offset */ | 5238 | #define GRC_CONFIG_2_SIZE_REG 0x408 |
5199 | #define PCI_CONFIG_2_BAR1_SIZE (0xfL<<0) | 5239 | #define PCI_CONFIG_2_BAR1_SIZE (0xfL<<0) |
5200 | #define PCI_CONFIG_2_BAR1_SIZE_DISABLED (0L<<0) | 5240 | #define PCI_CONFIG_2_BAR1_SIZE_DISABLED (0L<<0) |
5201 | #define PCI_CONFIG_2_BAR1_SIZE_64K (1L<<0) | 5241 | #define PCI_CONFIG_2_BAR1_SIZE_64K (1L<<0) |
5202 | #define PCI_CONFIG_2_BAR1_SIZE_128K (2L<<0) | 5242 | #define PCI_CONFIG_2_BAR1_SIZE_128K (2L<<0) |
@@ -5213,11 +5253,11 @@ | |||
5213 | #define PCI_CONFIG_2_BAR1_SIZE_256M (13L<<0) | 5253 | #define PCI_CONFIG_2_BAR1_SIZE_256M (13L<<0) |
5214 | #define PCI_CONFIG_2_BAR1_SIZE_512M (14L<<0) | 5254 | #define PCI_CONFIG_2_BAR1_SIZE_512M (14L<<0) |
5215 | #define PCI_CONFIG_2_BAR1_SIZE_1G (15L<<0) | 5255 | #define PCI_CONFIG_2_BAR1_SIZE_1G (15L<<0) |
5216 | #define PCI_CONFIG_2_BAR1_64ENA (1L<<4) | 5256 | #define PCI_CONFIG_2_BAR1_64ENA (1L<<4) |
5217 | #define PCI_CONFIG_2_EXP_ROM_RETRY (1L<<5) | 5257 | #define PCI_CONFIG_2_EXP_ROM_RETRY (1L<<5) |
5218 | #define PCI_CONFIG_2_CFG_CYCLE_RETRY (1L<<6) | 5258 | #define PCI_CONFIG_2_CFG_CYCLE_RETRY (1L<<6) |
5219 | #define PCI_CONFIG_2_FIRST_CFG_DONE (1L<<7) | 5259 | #define PCI_CONFIG_2_FIRST_CFG_DONE (1L<<7) |
5220 | #define PCI_CONFIG_2_EXP_ROM_SIZE (0xffL<<8) | 5260 | #define PCI_CONFIG_2_EXP_ROM_SIZE (0xffL<<8) |
5221 | #define PCI_CONFIG_2_EXP_ROM_SIZE_DISABLED (0L<<8) | 5261 | #define PCI_CONFIG_2_EXP_ROM_SIZE_DISABLED (0L<<8) |
5222 | #define PCI_CONFIG_2_EXP_ROM_SIZE_2K (1L<<8) | 5262 | #define PCI_CONFIG_2_EXP_ROM_SIZE_2K (1L<<8) |
5223 | #define PCI_CONFIG_2_EXP_ROM_SIZE_4K (2L<<8) | 5263 | #define PCI_CONFIG_2_EXP_ROM_SIZE_4K (2L<<8) |
@@ -5234,46 +5274,44 @@ | |||
5234 | #define PCI_CONFIG_2_EXP_ROM_SIZE_8M (13L<<8) | 5274 | #define PCI_CONFIG_2_EXP_ROM_SIZE_8M (13L<<8) |
5235 | #define PCI_CONFIG_2_EXP_ROM_SIZE_16M (14L<<8) | 5275 | #define PCI_CONFIG_2_EXP_ROM_SIZE_16M (14L<<8) |
5236 | #define PCI_CONFIG_2_EXP_ROM_SIZE_32M (15L<<8) | 5276 | #define PCI_CONFIG_2_EXP_ROM_SIZE_32M (15L<<8) |
5237 | #define PCI_CONFIG_2_BAR_PREFETCH (1L<<16) | 5277 | #define PCI_CONFIG_2_BAR_PREFETCH (1L<<16) |
5238 | #define PCI_CONFIG_2_RESERVED0 (0x7fffL<<17) | 5278 | #define PCI_CONFIG_2_RESERVED0 (0x7fffL<<17) |
5239 | 5279 | ||
5240 | /* config_3 offset */ | 5280 | /* config_3 offset */ |
5241 | #define GRC_CONFIG_3_SIZE_REG (0x40c) | 5281 | #define GRC_CONFIG_3_SIZE_REG 0x40c |
5242 | #define PCI_CONFIG_3_STICKY_BYTE (0xffL<<0) | 5282 | #define PCI_CONFIG_3_STICKY_BYTE (0xffL<<0) |
5243 | #define PCI_CONFIG_3_FORCE_PME (1L<<24) | 5283 | #define PCI_CONFIG_3_FORCE_PME (1L<<24) |
5244 | #define PCI_CONFIG_3_PME_STATUS (1L<<25) | 5284 | #define PCI_CONFIG_3_PME_STATUS (1L<<25) |
5245 | #define PCI_CONFIG_3_PME_ENABLE (1L<<26) | 5285 | #define PCI_CONFIG_3_PME_ENABLE (1L<<26) |
5246 | #define PCI_CONFIG_3_PM_STATE (0x3L<<27) | 5286 | #define PCI_CONFIG_3_PM_STATE (0x3L<<27) |
5247 | #define PCI_CONFIG_3_VAUX_PRESET (1L<<30) | 5287 | #define PCI_CONFIG_3_VAUX_PRESET (1L<<30) |
5248 | #define PCI_CONFIG_3_PCI_POWER (1L<<31) | 5288 | #define PCI_CONFIG_3_PCI_POWER (1L<<31) |
5249 | |||
5250 | /* config_2 offset */ | ||
5251 | #define GRC_CONFIG_2_SIZE_REG 0x408 | ||
5252 | 5289 | ||
5253 | #define GRC_BAR2_CONFIG 0x4e0 | 5290 | #define GRC_BAR2_CONFIG 0x4e0 |
5254 | #define PCI_CONFIG_2_BAR2_SIZE (0xfL<<0) | 5291 | #define PCI_CONFIG_2_BAR2_SIZE (0xfL<<0) |
5255 | #define PCI_CONFIG_2_BAR2_SIZE_DISABLED (0L<<0) | 5292 | #define PCI_CONFIG_2_BAR2_SIZE_DISABLED (0L<<0) |
5256 | #define PCI_CONFIG_2_BAR2_SIZE_64K (1L<<0) | 5293 | #define PCI_CONFIG_2_BAR2_SIZE_64K (1L<<0) |
5257 | #define PCI_CONFIG_2_BAR2_SIZE_128K (2L<<0) | 5294 | #define PCI_CONFIG_2_BAR2_SIZE_128K (2L<<0) |
5258 | #define PCI_CONFIG_2_BAR2_SIZE_256K (3L<<0) | 5295 | #define PCI_CONFIG_2_BAR2_SIZE_256K (3L<<0) |
5259 | #define PCI_CONFIG_2_BAR2_SIZE_512K (4L<<0) | 5296 | #define PCI_CONFIG_2_BAR2_SIZE_512K (4L<<0) |
5260 | #define PCI_CONFIG_2_BAR2_SIZE_1M (5L<<0) | 5297 | #define PCI_CONFIG_2_BAR2_SIZE_1M (5L<<0) |
5261 | #define PCI_CONFIG_2_BAR2_SIZE_2M (6L<<0) | 5298 | #define PCI_CONFIG_2_BAR2_SIZE_2M (6L<<0) |
5262 | #define PCI_CONFIG_2_BAR2_SIZE_4M (7L<<0) | 5299 | #define PCI_CONFIG_2_BAR2_SIZE_4M (7L<<0) |
5263 | #define PCI_CONFIG_2_BAR2_SIZE_8M (8L<<0) | 5300 | #define PCI_CONFIG_2_BAR2_SIZE_8M (8L<<0) |
5264 | #define PCI_CONFIG_2_BAR2_SIZE_16M (9L<<0) | 5301 | #define PCI_CONFIG_2_BAR2_SIZE_16M (9L<<0) |
5265 | #define PCI_CONFIG_2_BAR2_SIZE_32M (10L<<0) | 5302 | #define PCI_CONFIG_2_BAR2_SIZE_32M (10L<<0) |
5266 | #define PCI_CONFIG_2_BAR2_SIZE_64M (11L<<0) | 5303 | #define PCI_CONFIG_2_BAR2_SIZE_64M (11L<<0) |
5267 | #define PCI_CONFIG_2_BAR2_SIZE_128M (12L<<0) | 5304 | #define PCI_CONFIG_2_BAR2_SIZE_128M (12L<<0) |
5268 | #define PCI_CONFIG_2_BAR2_SIZE_256M (13L<<0) | 5305 | #define PCI_CONFIG_2_BAR2_SIZE_256M (13L<<0) |
5269 | #define PCI_CONFIG_2_BAR2_SIZE_512M (14L<<0) | 5306 | #define PCI_CONFIG_2_BAR2_SIZE_512M (14L<<0) |
5270 | #define PCI_CONFIG_2_BAR2_SIZE_1G (15L<<0) | 5307 | #define PCI_CONFIG_2_BAR2_SIZE_1G (15L<<0) |
5271 | #define PCI_CONFIG_2_BAR2_64ENA (1L<<4) | 5308 | #define PCI_CONFIG_2_BAR2_64ENA (1L<<4) |
5309 | |||
5310 | #define PCI_PM_DATA_A 0x410 | ||
5311 | #define PCI_PM_DATA_B 0x414 | ||
5312 | #define PCI_ID_VAL1 0x434 | ||
5313 | #define PCI_ID_VAL2 0x438 | ||
5272 | 5314 | ||
5273 | #define PCI_PM_DATA_A (0x410) | ||
5274 | #define PCI_PM_DATA_B (0x414) | ||
5275 | #define PCI_ID_VAL1 (0x434) | ||
5276 | #define PCI_ID_VAL2 (0x438) | ||
5277 | 5315 | ||
5278 | #define MDIO_REG_BANK_CL73_IEEEB0 0x0 | 5316 | #define MDIO_REG_BANK_CL73_IEEEB0 0x0 |
5279 | #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL 0x0 | 5317 | #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL 0x0 |
@@ -5522,6 +5560,8 @@ Theotherbitsarereservedandshouldbezero*/ | |||
5522 | #define MDIO_PMA_REG_GEN_CTRL 0xca10 | 5560 | #define MDIO_PMA_REG_GEN_CTRL 0xca10 |
5523 | #define MDIO_PMA_REG_GEN_CTRL_ROM_RESET_INTERNAL_MP 0x0188 | 5561 | #define MDIO_PMA_REG_GEN_CTRL_ROM_RESET_INTERNAL_MP 0x0188 |
5524 | #define MDIO_PMA_REG_GEN_CTRL_ROM_MICRO_RESET 0x018a | 5562 | #define MDIO_PMA_REG_GEN_CTRL_ROM_MICRO_RESET 0x018a |
5563 | #define MDIO_PMA_REG_M8051_MSGIN_REG 0xca12 | ||
5564 | #define MDIO_PMA_REG_M8051_MSGOUT_REG 0xca13 | ||
5525 | #define MDIO_PMA_REG_ROM_VER1 0xca19 | 5565 | #define MDIO_PMA_REG_ROM_VER1 0xca19 |
5526 | #define MDIO_PMA_REG_ROM_VER2 0xca1a | 5566 | #define MDIO_PMA_REG_ROM_VER2 0xca1a |
5527 | #define MDIO_PMA_REG_EDC_FFE_MAIN 0xca1b | 5567 | #define MDIO_PMA_REG_EDC_FFE_MAIN 0xca1b |
@@ -5576,7 +5616,8 @@ Theotherbitsarereservedandshouldbezero*/ | |||
5576 | #define MDIO_AN_REG_LINK_STATUS 0x8304 | 5616 | #define MDIO_AN_REG_LINK_STATUS 0x8304 |
5577 | #define MDIO_AN_REG_CL37_CL73 0x8370 | 5617 | #define MDIO_AN_REG_CL37_CL73 0x8370 |
5578 | #define MDIO_AN_REG_CL37_AN 0xffe0 | 5618 | #define MDIO_AN_REG_CL37_AN 0xffe0 |
5579 | #define MDIO_AN_REG_CL37_FD 0xffe4 | 5619 | #define MDIO_AN_REG_CL37_FC_LD 0xffe4 |
5620 | #define MDIO_AN_REG_CL37_FC_LP 0xffe5 | ||
5580 | 5621 | ||
5581 | 5622 | ||
5582 | #define IGU_FUNC_BASE 0x0400 | 5623 | #define IGU_FUNC_BASE 0x0400 |
@@ -5600,4 +5641,13 @@ Theotherbitsarereservedandshouldbezero*/ | |||
5600 | #define IGU_INT_NOP 2 | 5641 | #define IGU_INT_NOP 2 |
5601 | #define IGU_INT_NOP2 3 | 5642 | #define IGU_INT_NOP2 3 |
5602 | 5643 | ||
5644 | #define COMMAND_REG_INT_ACK 0x0 | ||
5645 | #define COMMAND_REG_PROD_UPD 0x4 | ||
5646 | #define COMMAND_REG_ATTN_BITS_UPD 0x8 | ||
5647 | #define COMMAND_REG_ATTN_BITS_SET 0xc | ||
5648 | #define COMMAND_REG_ATTN_BITS_CLR 0x10 | ||
5649 | #define COMMAND_REG_COALESCE_NOW 0x14 | ||
5650 | #define COMMAND_REG_SIMD_MASK 0x18 | ||
5651 | #define COMMAND_REG_SIMD_NOMASK 0x1c | ||
5652 | |||
5603 | 5653 | ||