e100: add non-MII PHY support
authorAndreas Mohr <andim2@users.sourceforge.net>
Wed, 10 Jun 2009 09:55:04 +0000 (09:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jun 2009 09:32:39 +0000 (02:32 -0700)
commit720017623ab294b66c8a95d7bc5ccf75a581ebe4
treeb5603217826267eaff7022dca689169b29bf8d36
parente5241c448f94feee40b2a285c8bf55d066420073
e100: add non-MII PHY support

Restore support for cards with MII-lacking PHYs as compared to removed
pre-2.6.29 eepro100 driver: use full low-level MII I/O access abstraction
by providing clean PHY-specific mdio_ctrl() functions for either standard
MII-compliant cards, slightly special ones or non-MII PHY ones.

We now have another netdev_priv member for mdio_ctrl(), thus we have some
array indirection, but we save some additional opcodes for specific
phy_82552_v handling in the common case.

[akpm@linux-foundation.org: cleanups]
Signed-off-by: Andreas Mohr <andi@lisas.de>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
Cc: Bruce Allan <bruce.w.allan@intel.com>
Cc: PJ Waskiewicz <peter.p.waskiewicz.jr@intel.com>
Cc: John Ronciak <john.ronciak@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e100.c