diff options
author | Yaniv Rosner <yaniv.rosner@broadcom.com> | 2010-09-07 07:41:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-07 16:15:42 -0400 |
commit | a22f078867ef362e35c54055878168e6613ff743 (patch) | |
tree | 2cf683f3057b7ed5dcaaaad16192f3a267dcf0f8 /drivers/net/bnx2x/bnx2x.h | |
parent | de6eae1f42eae736548f293570fd867bd37c3bdd (diff) |
bnx2x: Add dual-media changes
Add required changes in order to support dual-media boards.
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/bnx2x.h')
-rw-r--r-- | drivers/net/bnx2x/bnx2x.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/bnx2x/bnx2x.h b/drivers/net/bnx2x/bnx2x.h index a019c67d2995..137187684f27 100644 --- a/drivers/net/bnx2x/bnx2x.h +++ b/drivers/net/bnx2x/bnx2x.h | |||
@@ -566,13 +566,13 @@ struct bnx2x_common { | |||
566 | struct bnx2x_port { | 566 | struct bnx2x_port { |
567 | u32 pmf; | 567 | u32 pmf; |
568 | 568 | ||
569 | u32 link_config; | 569 | u32 link_config[LINK_CONFIG_SIZE]; |
570 | 570 | ||
571 | u32 supported; | 571 | u32 supported[LINK_CONFIG_SIZE]; |
572 | /* link settings - missing defines */ | 572 | /* link settings - missing defines */ |
573 | #define SUPPORTED_2500baseX_Full (1 << 15) | 573 | #define SUPPORTED_2500baseX_Full (1 << 15) |
574 | 574 | ||
575 | u32 advertising; | 575 | u32 advertising[LINK_CONFIG_SIZE]; |
576 | /* link settings - missing defines */ | 576 | /* link settings - missing defines */ |
577 | #define ADVERTISED_2500baseX_Full (1 << 15) | 577 | #define ADVERTISED_2500baseX_Full (1 << 15) |
578 | 578 | ||
@@ -931,7 +931,7 @@ void bnx2x_write_dmae(struct bnx2x *bp, dma_addr_t dma_addr, u32 dst_addr, | |||
931 | int bnx2x_get_gpio(struct bnx2x *bp, int gpio_num, u8 port); | 931 | int bnx2x_get_gpio(struct bnx2x *bp, int gpio_num, u8 port); |
932 | int bnx2x_set_gpio(struct bnx2x *bp, int gpio_num, u32 mode, u8 port); | 932 | int bnx2x_set_gpio(struct bnx2x *bp, int gpio_num, u32 mode, u8 port); |
933 | int bnx2x_set_gpio_int(struct bnx2x *bp, int gpio_num, u32 mode, u8 port); | 933 | int bnx2x_set_gpio_int(struct bnx2x *bp, int gpio_num, u32 mode, u8 port); |
934 | u32 bnx2x_fw_command(struct bnx2x *bp, u32 command); | 934 | u32 bnx2x_fw_command(struct bnx2x *bp, u32 command, u32 param); |
935 | void bnx2x_reg_wr_ind(struct bnx2x *bp, u32 addr, u32 val); | 935 | void bnx2x_reg_wr_ind(struct bnx2x *bp, u32 addr, u32 val); |
936 | void bnx2x_write_dmae_phys_len(struct bnx2x *bp, dma_addr_t phys_addr, | 936 | void bnx2x_write_dmae_phys_len(struct bnx2x *bp, dma_addr_t phys_addr, |
937 | u32 addr, u32 len); | 937 | u32 addr, u32 len); |
@@ -939,7 +939,7 @@ void bnx2x_calc_fc_adv(struct bnx2x *bp); | |||
939 | int bnx2x_sp_post(struct bnx2x *bp, int command, int cid, | 939 | int bnx2x_sp_post(struct bnx2x *bp, int command, int cid, |
940 | u32 data_hi, u32 data_lo, int common); | 940 | u32 data_hi, u32 data_lo, int common); |
941 | void bnx2x_update_coalesce(struct bnx2x *bp); | 941 | void bnx2x_update_coalesce(struct bnx2x *bp); |
942 | 942 | int bnx2x_get_link_cfg_idx(struct bnx2x *bp); | |
943 | static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms, | 943 | static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms, |
944 | int wait) | 944 | int wait) |
945 | { | 945 | { |