kernel-ark/drivers/net
Jens Osterkamp eb5b5b2ff9 sungem_phy: support bcm5461 phy, autoneg.
This version moves the medium variable to the card specific structure and
changes the GMII_* to BCM54XX_* #defines.

This patch adds improved version of enable_fiber for both the 5421 and
the 5461 phy. It is now possible to specify with these wether you want
autonegotiation or not. This is needed for bladecenter switches where
some expect autonegotiation and some dont seem to like this at all.
Depending on this flag it sets phy->autoneg accordingly for the fiber mode.

More importantly it implements proper read_link and poll_link functions
for both phys which can handle both copper and fiber mode by determining
the medium first and then branching to the required functions. For fiber
they all work fine, for copper they are not tested but return the result
of the genmii_* function anyway which is supposed to work.

The patch moves the genmii_* functions around to avoid foreward declarations.

Signed-off-by: Jens Osterkamp <jens@de.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-02-27 04:16:02 -05:00
..
appletalk [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
arcnet bugfixes and new hardware support for arcnet driver 2007-02-17 15:30:48 -05:00
arm [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
atl1 atl1: bump version number 2007-02-17 15:17:05 -05:00
bonding [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
chelsio git-netdev-all: chelsio fix 2007-02-05 16:58:49 -05:00
cris [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
cxgb3 cxgb3 Fix copyrights in the cxgb3 driver. 2007-02-17 15:30:46 -05:00
e1000 Revert "e1000: fix shared interrupt warning message" 2007-02-21 11:21:44 -08:00
ehea Merge branch 'master' into upstream 2007-02-17 15:11:43 -05:00
fec_8xx [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
fs_enet [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
hamradio Replace local random function with random32() 2007-02-20 11:18:13 -05:00
ibm_emac [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
irda [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
ixgb Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6 2007-02-07 19:23:44 -08:00
ixp2000
myri10ge remove NETIF_F_TSO ifdefery 2007-02-05 16:58:45 -05:00
netxen NetXen: Fix to get the driver working after sparse changes 2007-02-17 15:26:45 -05:00
pcmcia PCMCIA-NETDEV : the 2nd argument of el3_interrrupt and smc_interrupt is struct net_device* 2007-02-17 15:16:08 -05:00
phy phylib: Add support for Marvell 88e1111S and 88e1145 2007-02-17 15:16:08 -05:00
sk98lin sk98lin: planned removal 2007-02-17 15:37:14 -05:00
skfp net: use bitrev8 2007-02-05 16:58:47 -05:00
tokenring Merge branch 'master' into upstream 2006-12-07 04:57:19 -05:00
tulip Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 2006-12-05 17:01:28 +00:00
wan Hostess SV-11 depends on INET 2007-02-17 15:39:37 -05:00
wireless Merge branch 'upstream-jgarzik' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into upstream 2007-02-20 11:28:42 -05:00
3c59x.c NET-3c59x: turn local_save_flags() + local_irq_disable() into local_irq_save() 2007-02-06 19:10:33 -05:00
3c501.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
3c501.h
3c503.c [PATCH] kill eth_io_copy_and_sum() 2007-02-09 09:14:07 -08:00
3c503.h
3c505.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
3c505.h
3c507.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
3c509.c
3c515.c
3c523.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
3c523.h
3c527.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
3c527.h
7990.c [PATCH] Scheduled removal of SA_xxx interrupt flags fixups 2007-02-14 08:09:54 -08:00
7990.h
8139cp.c 8139cp: Don't blindly enable interrupts 2007-01-18 11:47:22 -05:00
8139too.c 8139too: RTNL and flush_scheduled_work deadlock 2007-02-20 11:18:12 -05:00
8390.c [PATCH] beginning of 8390 fixes - generic and arm/etherh 2006-12-02 00:11:56 -05:00
8390.h [PATCH] 8390 fixes - the final chunk (h8300) 2006-12-02 00:11:56 -05:00
82596.c 82596 warning fixes 2007-01-30 09:36:01 -05:00
a2065.c
a2065.h
ac3200.c [PATCH] kill eth_io_copy_and_sum() 2007-02-09 09:14:07 -08:00
acenic_firmware.h
acenic.c
acenic.h
amd8111e.c NET: turn local_save_flags() + local_irq_disable() into local_irq_save() 2007-02-06 19:10:34 -05:00
amd8111e.h [PATCH] amd8111e use standard CRC lib 2006-12-02 00:22:30 -05:00
apne.c [PATCH] Amiga PCMCIA NE2000 Ethernet dev->irq init 2006-12-09 09:41:18 -08:00
ariadne.c
ariadne.h
at1700.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
atari_bionet.c
atari_pamsnet.c
atarilance.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
atp.c
atp.h
au1000_eth.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
au1000_eth.h
b44.c B44: increase wait loop 2007-02-17 15:37:14 -05:00
b44.h b44 endian annotations 2007-02-06 19:03:56 -05:00
bmac.c net: use bitrev8 2007-02-05 16:58:47 -05:00
bmac.h
bnx2_fw2.h [BNX2]: New firmware to support 5709 (part 4). 2006-12-02 21:24:31 -08:00
bnx2_fw.h [BNX2]: Re-organize firmware structures. 2006-12-02 21:24:22 -08:00
bnx2.c Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6 2007-02-07 19:23:44 -08:00
bnx2.h [BNX2]: PHY workaround for 5709 A0. 2007-02-02 00:46:35 -08:00
bsd_comp.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
cassini.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 2006-12-05 14:37:56 +00:00
cassini.h
cs89x0.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
cs89x0.h
de600.c [PATCH] paravirt: header and stubs for paravirtualisation 2006-12-07 02:14:07 +01:00
de600.h
de620.c
de620.h
declance.c mips: declance: Driver model for the PMAD-A 2007-02-07 18:49:11 -05:00
defxx.c [TC] defxx: TURBOchannel support 2007-02-09 16:23:17 +00:00
defxx.h [TC] defxx: TURBOchannel support 2007-02-09 16:23:17 +00:00
depca.c [PATCH] Remove unnecessary check in drivers/net/depca.c 2006-12-02 00:11:55 -05:00
depca.h
dgrs_asstruct.h
dgrs_bcomm.h
dgrs_es4h.h
dgrs_ether.h
dgrs_firmware.c
dgrs_i82596.h
dgrs_plx9060.h
dgrs.c
dgrs.h
dl2k.c
dl2k.h
dm9000.c
dm9000.h
dummy.c
e100.c e100: fix napi ifdefs removing needed code 2007-02-02 08:34:10 -05:00
e2100.c [PATCH] kill eth_io_copy_and_sum() 2007-02-09 09:14:07 -08:00
eepro100.c
eepro.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
eexpress.c drivers/net/eexpress.c: remove duplicate comment 2007-02-17 19:56:23 +01:00
eexpress.h
epic100.c
eql.c
es3210.c [PATCH] kill eth_io_copy_and_sum() 2007-02-09 09:14:07 -08:00
eth16i.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
ewrk3.c
ewrk3.h
fealnx.c
fec.c
fec.h
forcedeth.c forcedeth: fix checksum feature in mcp65 2007-02-27 04:16:02 -05:00
gianfar_ethtool.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
gianfar_mii.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
gianfar_mii.h
gianfar_sysfs.c Merge branch 'master' into upstream 2007-02-17 15:11:43 -05:00
gianfar.c gianfar: don't duplicate gfar_error() 2007-02-17 15:26:45 -05:00
gianfar.h [PATCH] PHY: Add support for configuring the PHY connection interface 2006-12-02 00:33:11 -05:00
hamachi.c
hp100.c hp100: convert pci_module_init() to pci_register_driver() 2007-02-06 19:10:33 -05:00
hp100.h
hp-plus.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
hp.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
hplance.c [PATCH] m68k/HP300: HP LANCE updates 2006-12-09 09:41:18 -08:00
hplance.h
hydra.c [PATCH] 8390 fixes - m68k oddballs 2006-12-02 00:11:56 -05:00
ibmlana.c
ibmlana.h
ibmveth.c [PATCH] mark struct file_operations const 5 2007-02-12 09:48:45 -08:00
ibmveth.h [PATCH] ibmveth: Remove ibmveth "liobn" field 2006-12-04 20:38:06 +11:00
ifb.c Revert "net: ifb error path loop fix" 2007-01-30 14:11:12 -08:00
ioc3-eth.c Fix link autonegotiation timer. 2007-02-17 15:37:14 -05:00
isa-skeleton.c
iseries_veth.c Network: convert network devices to use struct device instead of class_device 2007-02-07 10:37:11 -08:00
jazzsonic.c
Kconfig Merge master.kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6 2007-02-26 12:48:06 -08:00
lance.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
lasi_82596.c [PARISC] lasi_82596: use BUILD_BUG_ON() and constify static array 2006-12-08 00:34:42 -05:00
lib8390.c [PATCH] beginning of 8390 fixes - generic and arm/etherh 2006-12-02 00:11:56 -05:00
LICENSE.SRC
lne390.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
loopback.c [NET] drivers/net/loopback.c: convert to module_init() 2007-01-03 18:38:10 -08:00
lp486e.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
mac89x0.c
mac8390.c [PATCH] 8390 fixes - m68k oddballs 2006-12-02 00:11:56 -05:00
macb.c macb: Remove inappropriate spinlocks around mii calls 2007-02-17 15:30:48 -05:00
macb.h AT91: MACB support 2007-02-07 18:50:53 -05:00
mace.c net: use bitrev8 2007-02-05 16:58:47 -05:00
mace.h
macmace.c net: use bitrev8 2007-02-05 16:58:47 -05:00
macsonic.c [PATCH] missing include in macsonic 2007-02-09 08:28:48 -08:00
Makefile Add Attansic L1 ethernet driver. 2007-02-08 10:42:37 -05:00
meth.c Convert meth to netdev_priv 2007-02-17 15:30:47 -05:00
meth.h
mii.c
mipsnet.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
mipsnet.h
mv643xx_eth.c [PATCH] misc duplicate field initializers 2007-02-09 09:14:07 -08:00
mv643xx_eth.h
mvme147.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
myri_code.h
myri_sbus.c [NET]: Kill direct includes of asm/checksum.h 2006-12-02 21:22:59 -08:00
myri_sbus.h
natsemi.c natsemi: Support Aculab E1/T1 PMXc cPCI carrier cards 2007-02-20 11:18:13 -05:00
ne2.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
ne2k-pci.c
ne3210.c [PATCH] severing skbuff.h -> mm.h 2006-12-04 02:00:34 -05:00
ne-h8300.c [PATCH] 8390 fixes - the final chunk (h8300) 2006-12-02 00:11:56 -05:00
ne.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
netconsole.c netpoll queue cleanup 2006-12-02 21:22:37 -08:00
netx-eth.c
ni52.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
ni52.h
ni65.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
ni65.h
ni5010.c
ni5010.h
ns83820.c Merge branch 'master' into upstream 2006-12-07 04:57:19 -05:00
pasemi_mac.c PA Semi PWRficient Ethernet driver 2007-02-05 16:58:52 -05:00
pasemi_mac.h PA Semi PWRficient Ethernet driver 2007-02-05 16:58:52 -05:00
pci-skeleton.c
pcnet32.c
plip.c WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
ppp_async.c
ppp_deflate.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
ppp_generic.c [PATCH] mark struct file_operations const 5 2007-02-12 09:48:45 -08:00
ppp_mppe.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
ppp_mppe.h
ppp_synctty.c
pppoe.c [PATCH] mark struct file_operations const 5 2007-02-12 09:48:45 -08:00
pppox.c
qla3xxx.c [PATCH] Scheduled removal of SA_xxx interrupt flags fixups 2007-02-14 08:09:54 -08:00
qla3xxx.h qla3xxx: Add support for Qlogic 4032 chip. 2007-02-05 16:58:47 -05:00
r8169.c r8169: RTNL and flush_scheduled_work deadlock 2007-02-20 11:18:12 -05:00
rionet.c
rrunner.c
rrunner.h
s2io-regs.h s2io: De-typedef driver. 2007-02-05 16:58:52 -05:00
s2io.c s2io: RTNL and flush_scheduled_work deadlock 2007-02-20 11:18:13 -05:00
s2io.h [PATCH] trivial s2io annotations 2007-02-09 09:14:08 -08:00
saa9730.c
saa9730.h
sb1000.c
sb1250-mac.c [PATCH] Remove useless comment from sb1250 2006-10-21 14:20:01 -04:00
sc92031.c [PATCH] Scheduled removal of SA_xxx interrupt flags fixups 2 2007-02-14 08:09:55 -08:00
seeq8005.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
seeq8005.h
sgiseeq.c
sgiseeq.h
shaper.c
sis190.c sis190: RTNL and flush_scheduled_work deadlock 2007-02-20 11:18:12 -05:00
sis900.c
sis900.h
skge.c skge: race with workq and RTNL 2007-02-20 11:18:13 -05:00
skge.h skge: WOL support 2007-02-06 19:07:44 -05:00
sky2.c sky2: v1.13 2007-02-17 15:30:47 -05:00
sky2.h sky2: transmit timeout 2007-02-17 15:30:47 -05:00
slhc.c
slip.c [NET] slip: Replace kmalloc() + memset() pairs with the appropriate kzalloc() calls 2007-02-08 12:38:55 -08:00
slip.h
smc91x.c Network: convert network devices to use struct device instead of class_device 2007-02-07 10:37:11 -08:00
smc91x.h [PATCH] smc91x: Kill off excessive versatile hooks. 2006-12-11 09:54:50 -05:00
smc911x.c Network: convert network devices to use struct device instead of class_device 2007-02-07 10:37:11 -08:00
smc911x.h
smc9194.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
smc9194.h
smc-mca.c [PATCH] kill eth_io_copy_and_sum() 2007-02-09 09:14:07 -08:00
smc-ultra32.c [PATCH] kill eth_io_copy_and_sum() 2007-02-09 09:14:07 -08:00
smc-ultra.c [PATCH] kill eth_io_copy_and_sum() 2007-02-09 09:14:07 -08:00
sonic.c
sonic.h
Space.c remove the broken SKMC driver 2007-02-05 16:58:46 -05:00
spider_net_ethtool.c Spidernet DMA coalescing 2007-02-05 16:58:43 -05:00
spider_net.c [PATCH] spider_net breakage from class_device -> device 2007-02-09 08:28:48 -08:00
spider_net.h Spidernet remove rxramfull tasklet 2007-02-05 16:58:44 -05:00
starfire_firmware.h
starfire_firmware.pl
starfire.c [PATCH] severing skbuff.h -> mm.h 2006-12-04 02:00:34 -05:00
stnic.c
sun3_82586.c
sun3_82586.h
sun3lance.c [PATCH] trivial missing __init in drivers/net/* 2006-12-04 16:07:19 -05:00
sunbmac.c
sunbmac.h
sundance.c [PATCH] sundance: use NULL for pointer 2006-12-02 00:16:36 -05:00
sungem_phy.c sungem_phy: support bcm5461 phy, autoneg. 2007-02-27 04:16:02 -05:00
sungem_phy.h sungem_phy: support bcm5461 phy, autoneg. 2007-02-27 04:16:02 -05:00
sungem.c [SUNGEM]: PHY updates & pause fixes (#2) 2007-01-03 18:54:43 -08:00
sungem.h
sunhme.c Merge branch 'for-linus4' of master.kernel.org:/pub/scm/linux/kernel/git/viro/bird 2006-12-04 10:37:06 -08:00
sunhme.h
sunlance.c
sunqe.c
sunqe.h
tc35815.c [netdrvr] tc35815: fix obvious bugs 2007-02-27 04:11:05 -05:00
tg3.c [TG3]: TSO workaround fixes. 2007-02-26 11:42:47 -08:00
tg3.h [TG3]: TSO workaround fixes. 2007-02-26 11:42:47 -08:00
tlan.c WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
tlan.h WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
tsi108_eth.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
tsi108_eth.h [PATCH] Add tsi108/9 On Chip Ethernet device driver support 2006-12-02 00:12:03 -05:00
tun.c [PATCH] mark struct file_operations const 5 2007-02-12 09:48:45 -08:00
typhoon-firmware.h
typhoon.c [PATCH] severing skbuff.h -> mm.h 2006-12-04 02:00:34 -05:00
typhoon.h
ucc_geth_phy.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
ucc_geth_phy.h [PATCH] ucc_geth: changes to ucc_geth driver as a result of qe_lib changes and bugfixes 2006-10-21 14:09:51 -04:00
ucc_geth.c [PATCH] Scheduled removal of SA_xxx interrupt flags fixups 2007-02-14 08:09:54 -08:00
ucc_geth.h [PATCH] ucc_geth: changes to ucc_geth driver as a result of qe_lib changes and bugfixes 2006-10-21 14:09:51 -04:00
via-rhine.c
via-velocity.c via-velocity uses INET interfaces 2006-12-26 16:28:20 -05:00
via-velocity.h
wd.c [PATCH] kill eth_io_copy_and_sum() 2007-02-09 09:14:07 -08:00
yellowfin.c
znet.c
zorro8390.c [PATCH] 8390 fixes - m68k oddballs 2006-12-02 00:11:56 -05:00