aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_reg.h
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-08-12 04:22:16 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-13 02:02:18 -0400
commit2f9044603c8b9ead9eb4d88e360093b44d362b58 (patch)
tree21019592618ddb1e24881c1ea1b1bffc58060e6e /drivers/net/bnx2x_reg.h
parent0c593270432035b7b9ba27ee7dd4f32f6feea2e0 (diff)
bnx2x: BCM8481 LED4 instead of LASI
The BCM8481 does not generate LASI interrupt for 10M, 100M and 1G link, so we are using LED4 output as the interrupt input to the 57711. This requires some adaptation in the link interrupt routines Signed-off-by: Yaniv Rosner <yanivr@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_reg.h')
-rw-r--r--drivers/net/bnx2x_reg.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/net/bnx2x_reg.h b/drivers/net/bnx2x_reg.h
index 25639e2df52b..9a20da5bf19a 100644
--- a/drivers/net/bnx2x_reg.h
+++ b/drivers/net/bnx2x_reg.h
@@ -1681,6 +1681,24 @@
1681/* [RW 17] Debug only. RX_EOP_DSCR_lb_FIFO in NIG_RX_EOP. Data 1681/* [RW 17] Debug only. RX_EOP_DSCR_lb_FIFO in NIG_RX_EOP. Data
1682 packet_length[13:0]; mac_error[14]; trunc_error[15]; parity[16] */ 1682 packet_length[13:0]; mac_error[14]; trunc_error[15]; parity[16] */
1683#define NIG_REG_INGRESS_EOP_LB_FIFO 0x104e4 1683#define NIG_REG_INGRESS_EOP_LB_FIFO 0x104e4
1684/* [RW 27] 0 - must be active for Everest A0; 1- for Everest B0 when latch
1685 logic for interrupts must be used. Enable per bit of interrupt of
1686 ~latch_status.latch_status */
1687#define NIG_REG_LATCH_BC_0 0x16210
1688/* [RW 27] Latch for each interrupt from Unicore.b[0]
1689 status_emac0_misc_mi_int; b[1] status_emac0_misc_mi_complete;
1690 b[2]status_emac0_misc_cfg_change; b[3]status_emac0_misc_link_status;
1691 b[4]status_emac0_misc_link_change; b[5]status_emac0_misc_attn;
1692 b[6]status_serdes0_mac_crs; b[7]status_serdes0_autoneg_complete;
1693 b[8]status_serdes0_fiber_rxact; b[9]status_serdes0_link_status;
1694 b[10]status_serdes0_mr_page_rx; b[11]status_serdes0_cl73_an_complete;
1695 b[12]status_serdes0_cl73_mr_page_rx; b[13]status_serdes0_rx_sigdet;
1696 b[14]status_xgxs0_remotemdioreq; b[15]status_xgxs0_link10g;
1697 b[16]status_xgxs0_autoneg_complete; b[17]status_xgxs0_fiber_rxact;
1698 b[21:18]status_xgxs0_link_status; b[22]status_xgxs0_mr_page_rx;
1699 b[23]status_xgxs0_cl73_an_complete; b[24]status_xgxs0_cl73_mr_page_rx;
1700 b[25]status_xgxs0_rx_sigdet; b[26]status_xgxs0_mac_crs */
1701#define NIG_REG_LATCH_STATUS_0 0x18000
1684/* [RW 1] led 10g for port 0 */ 1702/* [RW 1] led 10g for port 0 */
1685#define NIG_REG_LED_10G_P0 0x10320 1703#define NIG_REG_LED_10G_P0 0x10320
1686/* [RW 1] led 10g for port 1 */ 1704/* [RW 1] led 10g for port 1 */
@@ -1871,6 +1889,7 @@
1871#define NIG_REG_XGXS_LANE_SEL_P0 0x102e8 1889#define NIG_REG_XGXS_LANE_SEL_P0 0x102e8
1872/* [RW 1] selection for port0 for NIG_MUX block : 0 = SerDes; 1 = XGXS */ 1890/* [RW 1] selection for port0 for NIG_MUX block : 0 = SerDes; 1 = XGXS */
1873#define NIG_REG_XGXS_SERDES0_MODE_SEL 0x102e0 1891#define NIG_REG_XGXS_SERDES0_MODE_SEL 0x102e0
1892#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_EMAC0_MISC_MI_INT (0x1<<0)
1874#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_SERDES0_LINK_STATUS (0x1<<9) 1893#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_SERDES0_LINK_STATUS (0x1<<9)
1875#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK10G (0x1<<15) 1894#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK10G (0x1<<15)
1876#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS (0xf<<18) 1895#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS (0xf<<18)
@@ -5889,6 +5908,13 @@ Theotherbitsarereservedandshouldbezero*/
5889#define MDIO_PMA_REG_7101_VER1 0xc026 5908#define MDIO_PMA_REG_7101_VER1 0xc026
5890#define MDIO_PMA_REG_7101_VER2 0xc027 5909#define MDIO_PMA_REG_7101_VER2 0xc027
5891 5910
5911#define MDIO_PMA_REG_8481_PMD_SIGNAL 0xa811
5912#define MDIO_PMA_REG_8481_LED1_MASK 0xa82c
5913#define MDIO_PMA_REG_8481_LED2_MASK 0xa82f
5914#define MDIO_PMA_REG_8481_LED3_MASK 0xa832
5915#define MDIO_PMA_REG_8481_SIGNAL_MASK 0xa835
5916#define MDIO_PMA_REG_8481_LINK_SIGNAL 0xa83b
5917
5892 5918
5893#define MDIO_WIS_DEVAD 0x2 5919#define MDIO_WIS_DEVAD 0x2
5894/*bcm*/ 5920/*bcm*/
@@ -5942,6 +5968,12 @@ Theotherbitsarereservedandshouldbezero*/
5942 5968
5943#define MDIO_AN_REG_8073_2_5G 0x8329 5969#define MDIO_AN_REG_8073_2_5G 0x8329
5944 5970
5971#define MDIO_AN_REG_8481_LEGACY_MII_CTRL 0xffe0
5972#define MDIO_AN_REG_8481_LEGACY_AN_ADV 0xffe4
5973#define MDIO_AN_REG_8481_1000T_CTRL 0xffe9
5974#define MDIO_AN_REG_8481_EXPANSION_REG_RD_RW 0xfff5
5975#define MDIO_AN_REG_8481_EXPANSION_REG_ACCESS 0xfff7
5976#define MDIO_AN_REG_8481_LEGACY_SHADOW 0xfffc
5945 5977
5946#define IGU_FUNC_BASE 0x0400 5978#define IGU_FUNC_BASE 0x0400
5947 5979