aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_reg.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bnx2x_reg.h')
-rw-r--r--drivers/net/bnx2x_reg.h162
1 files changed, 92 insertions, 70 deletions
diff --git a/drivers/net/bnx2x_reg.h b/drivers/net/bnx2x_reg.h
index f72ffd29e379..a85ff2073681 100644
--- a/drivers/net/bnx2x_reg.h
+++ b/drivers/net/bnx2x_reg.h
@@ -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
@@ -5168,59 +5169,73 @@
5168#define GRCBASE_MISC_AEU GRCBASE_MISC 5169#define GRCBASE_MISC_AEU GRCBASE_MISC
5169 5170
5170 5171
5171/*the offset of the configuration space in the pci core register*/ 5172/* offset of configuration space in the pci core register */
5172#define PCICFG_OFFSET 0x2000 5173#define PCICFG_OFFSET 0x2000
5173#define PCICFG_VENDOR_ID_OFFSET 0x00 5174#define PCICFG_VENDOR_ID_OFFSET 0x00
5174#define PCICFG_DEVICE_ID_OFFSET 0x02 5175#define PCICFG_DEVICE_ID_OFFSET 0x02
5175#define PCICFG_COMMAND_OFFSET 0x04 5176#define PCICFG_COMMAND_OFFSET 0x04
5177#define PCICFG_COMMAND_IO_SPACE (1<<0)
5178#define PCICFG_COMMAND_MEM_SPACE (1<<1)
5179#define PCICFG_COMMAND_BUS_MASTER (1<<2)
5180#define PCICFG_COMMAND_SPECIAL_CYCLES (1<<3)
5181#define PCICFG_COMMAND_MWI_CYCLES (1<<4)
5182#define PCICFG_COMMAND_VGA_SNOOP (1<<5)
5183#define PCICFG_COMMAND_PERR_ENA (1<<6)
5184#define PCICFG_COMMAND_STEPPING (1<<7)
5185#define PCICFG_COMMAND_SERR_ENA (1<<8)
5186#define PCICFG_COMMAND_FAST_B2B (1<<9)
5187#define PCICFG_COMMAND_INT_DISABLE (1<<10)
5188#define PCICFG_COMMAND_RESERVED (0x1f<<11)
5176#define PCICFG_STATUS_OFFSET 0x06 5189#define PCICFG_STATUS_OFFSET 0x06
5177#define PCICFG_REVESION_ID 0x08 5190#define PCICFG_REVESION_ID 0x08
5178#define PCICFG_CACHE_LINE_SIZE 0x0c 5191#define PCICFG_CACHE_LINE_SIZE 0x0c
5179#define PCICFG_LATENCY_TIMER 0x0d 5192#define PCICFG_LATENCY_TIMER 0x0d
5180#define PCICFG_BAR_1_LOW 0x10 5193#define PCICFG_BAR_1_LOW 0x10
5181#define PCICFG_BAR_1_HIGH 0x14 5194#define PCICFG_BAR_1_HIGH 0x14
5182#define PCICFG_BAR_2_LOW 0x18 5195#define PCICFG_BAR_2_LOW 0x18
5183#define PCICFG_BAR_2_HIGH 0x1c 5196#define PCICFG_BAR_2_HIGH 0x1c
5184#define PCICFG_SUBSYSTEM_VENDOR_ID_OFFSET 0x2c 5197#define PCICFG_SUBSYSTEM_VENDOR_ID_OFFSET 0x2c
5185#define PCICFG_SUBSYSTEM_ID_OFFSET 0x2e 5198#define PCICFG_SUBSYSTEM_ID_OFFSET 0x2e
5186#define PCICFG_INT_LINE 0x3c 5199#define PCICFG_INT_LINE 0x3c
5187#define PCICFG_INT_PIN 0x3d 5200#define PCICFG_INT_PIN 0x3d
5188#define PCICFG_PM_CSR_OFFSET 0x4c 5201#define PCICFG_PM_CAPABILITY 0x48
5189#define PCICFG_GRC_ADDRESS 0x78 5202#define PCICFG_PM_CAPABILITY_VERSION (0x3<<16)
5190#define PCICFG_GRC_DATA 0x80 5203#define PCICFG_PM_CAPABILITY_CLOCK (1<<19)
5204#define PCICFG_PM_CAPABILITY_RESERVED (1<<20)
5205#define PCICFG_PM_CAPABILITY_DSI (1<<21)
5206#define PCICFG_PM_CAPABILITY_AUX_CURRENT (0x7<<22)
5207#define PCICFG_PM_CAPABILITY_D1_SUPPORT (1<<25)
5208#define PCICFG_PM_CAPABILITY_D2_SUPPORT (1<<26)
5209#define PCICFG_PM_CAPABILITY_PME_IN_D0 (1<<27)
5210#define PCICFG_PM_CAPABILITY_PME_IN_D1 (1<<28)
5211#define PCICFG_PM_CAPABILITY_PME_IN_D2 (1<<29)
5212#define PCICFG_PM_CAPABILITY_PME_IN_D3_HOT (1<<30)
5213#define PCICFG_PM_CAPABILITY_PME_IN_D3_COLD (1<<31)
5214#define PCICFG_PM_CSR_OFFSET 0x4c
5215#define PCICFG_PM_CSR_STATE (0x3<<0)
5216#define PCICFG_PM_CSR_PME_ENABLE (1<<8)
5217#define PCICFG_PM_CSR_PME_STATUS (1<<15)
5218#define PCICFG_GRC_ADDRESS 0x78
5219#define PCICFG_GRC_DATA 0x80
5191#define PCICFG_DEVICE_CONTROL 0xb4 5220#define PCICFG_DEVICE_CONTROL 0xb4
5192#define PCICFG_LINK_CONTROL 0xbc 5221#define PCICFG_LINK_CONTROL 0xbc
5193 5222
5194#define PCICFG_COMMAND_IO_SPACE (1<<0)
5195#define PCICFG_COMMAND_MEM_SPACE (1<<1)
5196#define PCICFG_COMMAND_BUS_MASTER (1<<2)
5197#define PCICFG_COMMAND_SPECIAL_CYCLES (1<<3)
5198#define PCICFG_COMMAND_MWI_CYCLES (1<<4)
5199#define PCICFG_COMMAND_VGA_SNOOP (1<<5)
5200#define PCICFG_COMMAND_PERR_ENA (1<<6)
5201#define PCICFG_COMMAND_STEPPING (1<<7)
5202#define PCICFG_COMMAND_SERR_ENA (1<<8)
5203#define PCICFG_COMMAND_FAST_B2B (1<<9)
5204#define PCICFG_COMMAND_INT_DISABLE (1<<10)
5205#define PCICFG_COMMAND_RESERVED (0x1f<<11)
5206
5207#define PCICFG_PM_CSR_STATE (0x3<<0)
5208#define PCICFG_PM_CSR_PME_STATUS (1<<15)
5209 5223
5210#define BAR_USTRORM_INTMEM 0x400000 5224#define BAR_USTRORM_INTMEM 0x400000
5211#define BAR_CSTRORM_INTMEM 0x410000 5225#define BAR_CSTRORM_INTMEM 0x410000
5212#define BAR_XSTRORM_INTMEM 0x420000 5226#define BAR_XSTRORM_INTMEM 0x420000
5213#define BAR_TSTRORM_INTMEM 0x430000 5227#define BAR_TSTRORM_INTMEM 0x430000
5214 5228
5229/* for accessing the IGU in case of status block ACK */
5215#define BAR_IGU_INTMEM 0x440000 5230#define BAR_IGU_INTMEM 0x440000
5216 5231
5217#define BAR_DOORBELL_OFFSET 0x800000 5232#define BAR_DOORBELL_OFFSET 0x800000
5218 5233
5219#define BAR_ME_REGISTER 0x450000 5234#define BAR_ME_REGISTER 0x450000
5220 5235
5221 5236/* config_2 offset */
5222#define GRC_CONFIG_2_SIZE_REG 0x408 /* config_2 offset */ 5237#define GRC_CONFIG_2_SIZE_REG 0x408
5223#define PCI_CONFIG_2_BAR1_SIZE (0xfL<<0) 5238#define PCI_CONFIG_2_BAR1_SIZE (0xfL<<0)
5224#define PCI_CONFIG_2_BAR1_SIZE_DISABLED (0L<<0) 5239#define PCI_CONFIG_2_BAR1_SIZE_DISABLED (0L<<0)
5225#define PCI_CONFIG_2_BAR1_SIZE_64K (1L<<0) 5240#define PCI_CONFIG_2_BAR1_SIZE_64K (1L<<0)
5226#define PCI_CONFIG_2_BAR1_SIZE_128K (2L<<0) 5241#define PCI_CONFIG_2_BAR1_SIZE_128K (2L<<0)
@@ -5237,11 +5252,11 @@
5237#define PCI_CONFIG_2_BAR1_SIZE_256M (13L<<0) 5252#define PCI_CONFIG_2_BAR1_SIZE_256M (13L<<0)
5238#define PCI_CONFIG_2_BAR1_SIZE_512M (14L<<0) 5253#define PCI_CONFIG_2_BAR1_SIZE_512M (14L<<0)
5239#define PCI_CONFIG_2_BAR1_SIZE_1G (15L<<0) 5254#define PCI_CONFIG_2_BAR1_SIZE_1G (15L<<0)
5240#define PCI_CONFIG_2_BAR1_64ENA (1L<<4) 5255#define PCI_CONFIG_2_BAR1_64ENA (1L<<4)
5241#define PCI_CONFIG_2_EXP_ROM_RETRY (1L<<5) 5256#define PCI_CONFIG_2_EXP_ROM_RETRY (1L<<5)
5242#define PCI_CONFIG_2_CFG_CYCLE_RETRY (1L<<6) 5257#define PCI_CONFIG_2_CFG_CYCLE_RETRY (1L<<6)
5243#define PCI_CONFIG_2_FIRST_CFG_DONE (1L<<7) 5258#define PCI_CONFIG_2_FIRST_CFG_DONE (1L<<7)
5244#define PCI_CONFIG_2_EXP_ROM_SIZE (0xffL<<8) 5259#define PCI_CONFIG_2_EXP_ROM_SIZE (0xffL<<8)
5245#define PCI_CONFIG_2_EXP_ROM_SIZE_DISABLED (0L<<8) 5260#define PCI_CONFIG_2_EXP_ROM_SIZE_DISABLED (0L<<8)
5246#define PCI_CONFIG_2_EXP_ROM_SIZE_2K (1L<<8) 5261#define PCI_CONFIG_2_EXP_ROM_SIZE_2K (1L<<8)
5247#define PCI_CONFIG_2_EXP_ROM_SIZE_4K (2L<<8) 5262#define PCI_CONFIG_2_EXP_ROM_SIZE_4K (2L<<8)
@@ -5258,46 +5273,44 @@
5258#define PCI_CONFIG_2_EXP_ROM_SIZE_8M (13L<<8) 5273#define PCI_CONFIG_2_EXP_ROM_SIZE_8M (13L<<8)
5259#define PCI_CONFIG_2_EXP_ROM_SIZE_16M (14L<<8) 5274#define PCI_CONFIG_2_EXP_ROM_SIZE_16M (14L<<8)
5260#define PCI_CONFIG_2_EXP_ROM_SIZE_32M (15L<<8) 5275#define PCI_CONFIG_2_EXP_ROM_SIZE_32M (15L<<8)
5261#define PCI_CONFIG_2_BAR_PREFETCH (1L<<16) 5276#define PCI_CONFIG_2_BAR_PREFETCH (1L<<16)
5262#define PCI_CONFIG_2_RESERVED0 (0x7fffL<<17) 5277#define PCI_CONFIG_2_RESERVED0 (0x7fffL<<17)
5263 5278
5264/* config_3 offset */ 5279/* config_3 offset */
5265#define GRC_CONFIG_3_SIZE_REG (0x40c) 5280#define GRC_CONFIG_3_SIZE_REG 0x40c
5266#define PCI_CONFIG_3_STICKY_BYTE (0xffL<<0) 5281#define PCI_CONFIG_3_STICKY_BYTE (0xffL<<0)
5267#define PCI_CONFIG_3_FORCE_PME (1L<<24) 5282#define PCI_CONFIG_3_FORCE_PME (1L<<24)
5268#define PCI_CONFIG_3_PME_STATUS (1L<<25) 5283#define PCI_CONFIG_3_PME_STATUS (1L<<25)
5269#define PCI_CONFIG_3_PME_ENABLE (1L<<26) 5284#define PCI_CONFIG_3_PME_ENABLE (1L<<26)
5270#define PCI_CONFIG_3_PM_STATE (0x3L<<27) 5285#define PCI_CONFIG_3_PM_STATE (0x3L<<27)
5271#define PCI_CONFIG_3_VAUX_PRESET (1L<<30) 5286#define PCI_CONFIG_3_VAUX_PRESET (1L<<30)
5272#define PCI_CONFIG_3_PCI_POWER (1L<<31) 5287#define PCI_CONFIG_3_PCI_POWER (1L<<31)
5273
5274/* config_2 offset */
5275#define GRC_CONFIG_2_SIZE_REG 0x408
5276 5288
5277#define GRC_BAR2_CONFIG 0x4e0 5289#define GRC_BAR2_CONFIG 0x4e0
5278#define PCI_CONFIG_2_BAR2_SIZE (0xfL<<0) 5290#define PCI_CONFIG_2_BAR2_SIZE (0xfL<<0)
5279#define PCI_CONFIG_2_BAR2_SIZE_DISABLED (0L<<0) 5291#define PCI_CONFIG_2_BAR2_SIZE_DISABLED (0L<<0)
5280#define PCI_CONFIG_2_BAR2_SIZE_64K (1L<<0) 5292#define PCI_CONFIG_2_BAR2_SIZE_64K (1L<<0)
5281#define PCI_CONFIG_2_BAR2_SIZE_128K (2L<<0) 5293#define PCI_CONFIG_2_BAR2_SIZE_128K (2L<<0)
5282#define PCI_CONFIG_2_BAR2_SIZE_256K (3L<<0) 5294#define PCI_CONFIG_2_BAR2_SIZE_256K (3L<<0)
5283#define PCI_CONFIG_2_BAR2_SIZE_512K (4L<<0) 5295#define PCI_CONFIG_2_BAR2_SIZE_512K (4L<<0)
5284#define PCI_CONFIG_2_BAR2_SIZE_1M (5L<<0) 5296#define PCI_CONFIG_2_BAR2_SIZE_1M (5L<<0)
5285#define PCI_CONFIG_2_BAR2_SIZE_2M (6L<<0) 5297#define PCI_CONFIG_2_BAR2_SIZE_2M (6L<<0)
5286#define PCI_CONFIG_2_BAR2_SIZE_4M (7L<<0) 5298#define PCI_CONFIG_2_BAR2_SIZE_4M (7L<<0)
5287#define PCI_CONFIG_2_BAR2_SIZE_8M (8L<<0) 5299#define PCI_CONFIG_2_BAR2_SIZE_8M (8L<<0)
5288#define PCI_CONFIG_2_BAR2_SIZE_16M (9L<<0) 5300#define PCI_CONFIG_2_BAR2_SIZE_16M (9L<<0)
5289#define PCI_CONFIG_2_BAR2_SIZE_32M (10L<<0) 5301#define PCI_CONFIG_2_BAR2_SIZE_32M (10L<<0)
5290#define PCI_CONFIG_2_BAR2_SIZE_64M (11L<<0) 5302#define PCI_CONFIG_2_BAR2_SIZE_64M (11L<<0)
5291#define PCI_CONFIG_2_BAR2_SIZE_128M (12L<<0) 5303#define PCI_CONFIG_2_BAR2_SIZE_128M (12L<<0)
5292#define PCI_CONFIG_2_BAR2_SIZE_256M (13L<<0) 5304#define PCI_CONFIG_2_BAR2_SIZE_256M (13L<<0)
5293#define PCI_CONFIG_2_BAR2_SIZE_512M (14L<<0) 5305#define PCI_CONFIG_2_BAR2_SIZE_512M (14L<<0)
5294#define PCI_CONFIG_2_BAR2_SIZE_1G (15L<<0) 5306#define PCI_CONFIG_2_BAR2_SIZE_1G (15L<<0)
5295#define PCI_CONFIG_2_BAR2_64ENA (1L<<4) 5307#define PCI_CONFIG_2_BAR2_64ENA (1L<<4)
5308
5309#define PCI_PM_DATA_A 0x410
5310#define PCI_PM_DATA_B 0x414
5311#define PCI_ID_VAL1 0x434
5312#define PCI_ID_VAL2 0x438
5296 5313
5297#define PCI_PM_DATA_A (0x410)
5298#define PCI_PM_DATA_B (0x414)
5299#define PCI_ID_VAL1 (0x434)
5300#define PCI_ID_VAL2 (0x438)
5301 5314
5302#define MDIO_REG_BANK_CL73_IEEEB0 0x0 5315#define MDIO_REG_BANK_CL73_IEEEB0 0x0
5303#define MDIO_CL73_IEEEB0_CL73_AN_CONTROL 0x0 5316#define MDIO_CL73_IEEEB0_CL73_AN_CONTROL 0x0
@@ -5624,4 +5637,13 @@ Theotherbitsarereservedandshouldbezero*/
5624#define IGU_INT_NOP 2 5637#define IGU_INT_NOP 2
5625#define IGU_INT_NOP2 3 5638#define IGU_INT_NOP2 3
5626 5639
5640#define COMMAND_REG_INT_ACK 0x0
5641#define COMMAND_REG_PROD_UPD 0x4
5642#define COMMAND_REG_ATTN_BITS_UPD 0x8
5643#define COMMAND_REG_ATTN_BITS_SET 0xc
5644#define COMMAND_REG_ATTN_BITS_CLR 0x10
5645#define COMMAND_REG_COALESCE_NOW 0x14
5646#define COMMAND_REG_SIMD_MASK 0x18
5647#define COMMAND_REG_SIMD_NOMASK 0x1c
5648
5627 5649