]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Split PHY functions
authorYaniv Rosner <yaniv.rosner@broadcom.com>
Tue, 7 Sep 2010 11:40:54 +0000 (11:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Sep 2010 20:13:36 +0000 (13:13 -0700)
commit187fc38783c5fefe4cfce3953448b097f0941abb
treebbc561c7f7104aa14638503948fbcb3ad6546225
parent340a6fceeecaa96827720a7d1a2ce6e37c4d8195
bnx2x: Split PHY functions

Move the code into PHY oriented functions, and for that a new structure
is defines for each PHY which contain PHY properties and its own
functions. This also enables to encapsulate all PHY specific operations
into the PHY functions. During initialization, the PHYs will be probed
by the "bnx2x_phy_probe" function to detect which PHYs exist on-board,
and configure them accordingly. Note that the ext_phy_reset
implementation was incorporated in the ext_phy_init since it is actually
part of the PHY initialization procedure.

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>
drivers/net/bnx2x/bnx2x_ethtool.c
drivers/net/bnx2x/bnx2x_link.c
drivers/net/bnx2x/bnx2x_link.h
drivers/net/bnx2x/bnx2x_main.c