freebsd-dev/sys/modules
Marius Strobl 3fcb7a5365 - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP
(reporting IFM_LOOP based on BMCR_LOOP is left in place though as
  it might provide useful for debugging). For most mii(4) drivers it
  was unclear whether the PHYs driven by them actually support
  loopback or not. Moreover, typically loopback mode also needs to
  be activated on the MAC, which none of the Ethernet drivers using
  mii(4) implements. Given that loopback media has no real use (and
  obviously hardly had a chance to actually work) besides for driver
  development (which just loopback mode should be sufficient for
  though, i.e one doesn't necessary need support for loopback media)
  support for it is just dropped as both NetBSD and OpenBSD already
  did quite some time ago.
- Let mii_phy_add_media() also announce the support of IFM_NONE.
- Restructure the PHY entry points to use a structure of entry points
  instead of discrete function pointers, and extend this to include
  a "reset" entry point. Make sure any PHY-specific reset routine is
  always used, and provide one for lxtphy(4) which disables MII
  interrupts (as is done for a few other PHYs we have drivers for).
  This includes changing NIC drivers which previously just called the
  generic mii_phy_reset() to now actually call the PHY-specific reset
  routine, which might be crucial in some cases. While at it, the
  redundant checks in these NIC drivers for mii->mii_instance not being
  zero before calling the reset routines were removed because as soon
  as one PHY driver attaches mii->mii_instance is incremented and we
  hardly can end up in their media change callbacks etc if no PHY driver
  has attached as mii_attach() would have failed in that case and not
  attach a miibus(4) instance.
  Consequently, NIC drivers now no longer should call mii_phy_reset()
  directly, so it was removed from EXPORT_SYMS.
- Add a mii_phy_dev_attach() as a companion helper to mii_phy_dev_probe().
  The purpose of that function is to perform the common steps to attach
  a PHY driver instance and to hook it up to the miibus(4) instance and to
  optionally also handle the probing, addition and initialization of the
  supported media. So all a PHY driver without any special requirements
  has to do in its bus attach method is to call mii_phy_dev_attach()
  along with PHY-specific MIIF_* flags, a pointer to its PHY functions
  and the add_media set to one. All PHY drivers were updated to take
  advantage of mii_phy_dev_attach() as appropriate. Along with these
  changes the capability mask was added to the mii_softc structure so
  PHY drivers taking advantage of mii_phy_dev_attach() but still
  handling media on their own do not need to fiddle with the MII attach
  arguments anyway.
- Keep track of the PHY offset in the mii_softc structure. This is done
  for compatibility with NetBSD/OpenBSD.
- Keep track of the PHY's OUI, model and revision in the mii_softc
  structure. Several PHY drivers require this information also after
  attaching and previously had to wrap their own softc around mii_softc.
  NetBSD/OpenBSD also keep track of the model and revision on their
  mii_softc structure. All PHY drivers were updated to take advantage
  as appropriate.
- Convert the mebers of the MII data structure to unsigned where
  appropriate. This is partly inspired by NetBSD/OpenBSD.
- According to IEEE 802.3-2002 the bits actually have to be reversed
  when mapping an OUI to the MII ID registers. All PHY drivers and
  miidevs where changed as necessary. Actually this now again allows to
  largely share miidevs with NetBSD, which fixed this problem already
  9 years ago. Consequently miidevs was synced as far as possible.
- Add MIIF_NOMANPAUSE and mii_phy_flowstatus() calls to drivers that
  weren't explicitly converted to support flow control before. It's
  unclear whether flow control actually works with these but typically
  it should and their net behavior should be more correct with these
  changes in place than without if the MAC driver sets MIIF_DOPAUSE.

Obtained from:	NetBSD (partially)
Reviewed by:	yongari (earlier version), silence on arch@ and net@
2011-05-03 19:51:29 +00:00
..
3dfx
3dfx_linux
aac MFtbemd: 2010-08-23 06:13:29 +00:00
accf_data
accf_dns
accf_http
acpi Merge ACPICA 20110413. 2011-04-15 18:34:27 +00:00
ae
aesni Crypto(4) driver for AESNI. 2010-07-23 11:00:46 +00:00
age
agp Add a driver for the Apple Uninorth AGP host bridge found in all PowerPC 2010-10-31 18:27:05 +00:00
aha No need to genreate these here 2011-01-06 21:04:00 +00:00
ahb No need to genreate these here 2011-01-06 21:04:00 +00:00
ahci
aic
aic7xxx
aio
alc
ale
alq
amd
amdsbwd
amdtemp
amr MFtbemd: 2010-08-23 06:13:29 +00:00
an
aout
apm
arcmsr
arcnet Fix make buildworld -DMODULES_WITH_WORLD on i386 2011-04-09 09:07:31 +00:00
asmc
asr MFtbemd: 2010-08-23 06:13:29 +00:00
ata pci_if.h is required to build atacore. 2010-07-31 00:08:18 +00:00
ath Introduce AR9130 (HOWL) WMAC support to the FreeBSD HAL. 2011-04-28 12:47:40 +00:00
ath_ahb Break out the ath PCI logic into a separate device/module. 2011-03-31 08:07:13 +00:00
ath_pci Add missing include. 2011-04-02 09:46:09 +00:00
auxio
bce
bfe
bge MFtbemd: 2010-08-23 06:13:29 +00:00
bios Upgrade our copy of llvm/clang to r126079, from upstream's trunk. 2011-02-20 19:33:47 +00:00
bktr
bm
bridgestp
bwi
bwn
bxe Remove mii(4) dependency and unneeded headers. 2011-04-13 16:35:43 +00:00
cam - Add shim to simplify migration to the CAM-based ATA. For each new adaX 2011-04-26 17:01:49 +00:00
canbepm
canbus
cardbus
cas Make kernel modules build correctly on 64-bit PowerPC. 2010-07-13 12:47:31 +00:00
cbb
cc Import an implementation of the CAIA-Hamilton-Delay (CHD) congestion control 2011-02-01 07:05:14 +00:00
cd9660
cd9660_iconv
ce
ciss
cm
cmx
coda
coda5
coff
coretemp
cp
cpuctl
cpufreq MFtbemd: 2010-08-23 06:13:29 +00:00
crypto List low-level Blowfish ECB module in the SRCS. It looks like it was dropped 2010-09-12 16:28:26 +00:00
cryptodev Add opt_compat.h to SRCS. 2010-10-13 14:44:38 +00:00
cs
ctau
cx
cxgb MFtbemd: 2010-08-23 06:13:29 +00:00
cxgbe Allow multiple modules within sys/modules/cxgbe. The first one is if_cxgbe. 2011-04-01 00:25:32 +00:00
cyclic MFtbemd: 2010-08-23 06:13:29 +00:00
dc
dcons
dcons_crom
de
digi
dpms
dpt
drm
dtrace Fix make buildworld -DMODULES_WITH_WORLD on i386 2011-04-09 09:07:31 +00:00
dummynet
ed
elink
em Remove unnecessary clean target in em(4), igb(4) and ixgbe(4). 2010-08-16 17:48:55 +00:00
en
ep
epic
esp
et
ex
exca
ext2fs Sync with several changes in UFS/FFS: 2011-04-28 14:27:17 +00:00
fatm
fdc
fdescfs
fe
firewire Fix buildworld -DMODULES_WITH_WORLD 2011-04-05 19:41:18 +00:00
firmware
fxp
gem Merge r207585 from cas(4): 2010-09-16 09:29:48 +00:00
geom Instead of allocating memory for all the keys at device attach, 2011-04-21 13:31:43 +00:00
glxsb
hatm
hifn
hme
hpfs
hptiop
hptmv MFtbemd: 2010-08-23 06:13:29 +00:00
hptrr MFtbemd: 2010-08-23 06:13:29 +00:00
hwpmc MFtbemd: 2010-08-23 06:13:29 +00:00
i2c MFtbemd: 2010-08-23 06:13:29 +00:00
ibcs2
ichwd
ida
ie
if_bridge
if_carp Update carp, gre and pf module builds to be depenent on INET and/or 2011-04-30 17:59:54 +00:00
if_disc
if_edsc
if_ef
if_epair
if_faith
if_gif
if_gre
if_lagg
if_ndis
if_stf
if_tap
if_tun
if_vlan
igb Remove unnecessary clean target in em(4), igb(4) and ixgbe(4). 2010-08-16 17:48:55 +00:00
iir
io MFtbemd: 2010-08-23 06:13:29 +00:00
ip6_mroute_mod
ip_mroute_mod
ipdivert
ipfilter
ipfw Do not build ip_fw_nat.c for ipfw.ko. It can be build as separate module. 2011-03-29 06:42:52 +00:00
ipfw_nat
ipmi
ips
ipw
ipwfw
iscsi
isp
ispfw
iwi
iwifw
iwn
iwnfw Add firmware images for the 6000 series g2a and g2b adapters. 2011-04-20 17:34:09 +00:00
ixgb
ixgbe Update ixgbe driver to verion 2.3.6 2010-11-26 22:46:32 +00:00
jme
joy
kbdmux
kgssapi
kgssapi_krb5
khelp Import the ERTT (Enhanced Round Trip Time) Khelp module. ERTT uses the 2011-01-24 23:08:38 +00:00
krpc Make the RPC specific __rpc_inet_ntop() and __rpc_inet_pton() general 2010-09-24 15:01:45 +00:00
ksyms
le MFtbemd: 2010-08-23 06:13:29 +00:00
lge
libalias
libiconv
libmbpool
libmchain
lindev
linprocfs MFtbemd: 2010-08-23 06:13:29 +00:00
linsysfs MFtbemd: 2010-08-23 06:13:29 +00:00
linux Upgrade our copy of llvm/clang to r126079, from upstream's trunk. 2011-02-20 19:33:47 +00:00
lmc
lpt
mac_biba
mac_bsdextended
mac_ifoff
mac_lomac
mac_mls
mac_none
mac_partition
mac_portacl
mac_seeotheruids
mac_stub
mac_test
malo
mcd
md
mem Add reader/writer lock around mem_range_attr_get() and mem_range_attr_set(). 2011-01-17 22:58:28 +00:00
mfi MFtbemd: 2010-08-23 06:13:29 +00:00
mii - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
mlx
mlx4 - Merge in OFED 1.5.3 from projects/ofed/head 2011-03-21 09:58:24 +00:00
mlx4ib - Merge in OFED 1.5.3 from projects/ofed/head 2011-03-21 09:58:24 +00:00
mlxen - Merge in OFED 1.5.3 from projects/ofed/head 2011-03-21 09:58:24 +00:00
mly
mmc
mmcsd
mps Re-add opt_mps.h and opt_cam.h, lost in the previous rev. 2010-10-17 20:01:56 +00:00
mpt
mqueue
msdosfs
msdosfs_iconv
mse
msk
mthca - Merge in OFED 1.5.3 from projects/ofed/head 2011-03-21 09:58:24 +00:00
mvs
mwl
mwlfw
mxge
my
ncp
ncv
ndis MFtbemd: 2010-08-23 06:13:29 +00:00
netgraph Remove missing include directory in preparation for adding 2011-04-16 11:15:57 +00:00
nfe
nfs_common
nfscl Fix the experimental NFS client so that it does not bogusly 2011-04-25 22:22:51 +00:00
nfsclient Fix the experimental NFS client so that it does not bogusly 2011-04-25 22:22:51 +00:00
nfscommon
nfsd
nfslock Move sys/nfsclient/nfs_lock.c into sys/nfs and build it as a separate 2010-07-24 22:11:11 +00:00
nfslockd
nfsserver
nfssvc
nge
nmdm
nsp
ntfs
ntfs_iconv
nullfs
nve
nvram
nwfs
nxge
opensolaris Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
padlock
patm
pccard
pcfclock
pcn
pf
pflog
plip
pmc
portalfs
powermac_nvram
ppbus
ppc MFtbemd: 2010-08-23 06:13:29 +00:00
ppi
pps
procfs MFtbemd: 2010-08-23 06:13:29 +00:00
pseudofs
pst
pty
puc
ral
ralfw
random
rc
rc4
rdma
re
reiserfs
rl
rndtest
rp
runfw
s3
safe
sbni
scc MFtbemd: use MACHINE_CPUARCH 2010-09-13 02:05:42 +00:00
scd
scsi_low
sdhci
sem Add missed dependency. 2010-08-15 15:33:01 +00:00
send MFp4: anchie_soc2009 branch: 2010-08-19 11:31:03 +00:00
sf
sge
siba_bwn
siftr Import the Statistical Information For TCP Research (SIFTR) kernel module into 2010-07-03 13:32:39 +00:00
siis
sio
sis
sk
smbfs MFtbemd: 2010-08-23 06:13:29 +00:00
sn
snc
snp
sound MFtbemd: use MACHINE_CPUARCH 2010-09-13 02:05:42 +00:00
speaker
splash
sppp
ste
stg
stge
streams
svr4 MFtbemd: 2010-08-23 06:13:29 +00:00
sym
syscons MFtbemd: 2010-08-23 06:13:29 +00:00
sysvipc Add opt_compat.h to SRCS. 2010-10-13 14:44:38 +00:00
ti
tl
tmpfs
tpm Hook tpm.4 manual to build. 2010-08-13 04:00:35 +00:00
trm
twa
twe
tx
txp
uart MFtbemd: 2010-08-23 06:13:29 +00:00
ubsec
ubser
uchcom
ucycom
udf
udf_iconv
ufs Retire opt_ffs_broken_fixme.h. 2011-03-20 21:05:09 +00:00
unionfs
usb Connect uep.ko to build 2011-02-26 17:22:11 +00:00
utopia
vesa
vge
vkbd
vpo
vr
vte Add driver for DM&P Vortex86 RDC R6040 Fast Ethernet. 2010-12-31 00:21:41 +00:00
vx MFtbemd: 2010-08-23 06:13:29 +00:00
vxge Exar driver for X3100 10GbE Server/Storage adapters 2011-04-28 14:33:15 +00:00
wb
wi
wlan Fix an undefined behaviour if the desired ratectl algo is not available. 2010-10-19 18:49:26 +00:00
wlan_acl
wlan_amrr
wlan_ccmp
wlan_rssadapt
wlan_tkip
wlan_wep
wlan_xauth
wpi
wpifw Update firmware for wpi(4) from version 2.14.4 to 15.32.2.9. 2010-12-19 11:37:44 +00:00
x86bios Do not build real mode emulator for i386. We use VM86 again since r210877. 2010-08-08 06:18:05 +00:00
xe
xfs
xl
zfs Fix misuse of TARGET_ARCH. This should be MACHINE_ARCH. 2011-03-01 20:51:41 +00:00
zlib
Makefile Update carp, gre and pf module builds to be depenent on INET and/or 2011-04-30 17:59:54 +00:00
Makefile.inc