diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-02-12 03:36:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-16 02:31:20 -0500 |
commit | 4acac6a53a3c9dfc604a9a8647f16b0242080e93 (patch) | |
tree | d21f2687f4d580f22e0aa018dc9eccaaa56de005 /drivers/net/bnx2x.h | |
parent | 87942b467880fb65381af87a5ff61fdb7ede5eb3 (diff) |
bnx2x: GPIO accessories
A GPIO is used with the 8726 PHY. Adding the GPIO related functions in this
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x.h')
-rw-r--r-- | drivers/net/bnx2x.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h index 2397a891e1ba..d66be72d8321 100644 --- a/drivers/net/bnx2x.h +++ b/drivers/net/bnx2x.h | |||
@@ -982,7 +982,9 @@ struct bnx2x { | |||
982 | void bnx2x_read_dmae(struct bnx2x *bp, u32 src_addr, u32 len32); | 982 | void bnx2x_read_dmae(struct bnx2x *bp, u32 src_addr, u32 len32); |
983 | void bnx2x_write_dmae(struct bnx2x *bp, dma_addr_t dma_addr, u32 dst_addr, | 983 | void bnx2x_write_dmae(struct bnx2x *bp, dma_addr_t dma_addr, u32 dst_addr, |
984 | u32 len32); | 984 | u32 len32); |
985 | int bnx2x_get_gpio(struct bnx2x *bp, int gpio_num, u8 port); | ||
985 | int bnx2x_set_gpio(struct bnx2x *bp, int gpio_num, u32 mode, u8 port); | 986 | int bnx2x_set_gpio(struct bnx2x *bp, int gpio_num, u32 mode, u8 port); |
987 | int bnx2x_set_gpio_int(struct bnx2x *bp, int gpio_num, u32 mode, u8 port); | ||
986 | 988 | ||
987 | static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms, | 989 | static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms, |
988 | int wait) | 990 | int wait) |