1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00
freebsd/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 Separate the parallel scsi knowledge out of the core of the XPT, and 2009-07-10 08:18:08 +00:00
aic
aic7xxx
aio
alc Add alc(4), a driver for Atheros AR8131/AR8132 PCIe ethernet 2009-06-10 02:07:58 +00:00
ale
alq Add support for ALQ(9) to be compiled and loaded as a kernel module. 2010-03-31 03:58:57 +00:00
amd
amdsbwd amdsbwd: new driver for AMD SB600/SB7xx watchdog timer 2009-11-30 11:44:03 +00:00
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 After r193232 rt_tables in vnet.h are no longer indirectly dependent on 2009-06-08 19:57:35 +00:00
bwi Bring in Andrew Thompson's port of Sepherosa Ziehau's bwi driver for 2009-05-03 04:01:43 +00:00
bwn adds bwn(4) driver for supporting Broadcom BCM43xx chipsets. 2010-02-16 01:44:14 +00:00
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 Rewrite x86bios and update its dependent drivers. 2009-10-19 20:58:10 +00:00
dpt
drm Welcome drm support for VIA unichrome chips. 2010-01-31 14:30:39 +00:00
dtrace Fix make buildworld -DMODULES_WITH_WORLD on i386 2011-04-09 09:07:31 +00:00
dummynet add priority scheduler to the module 2010-04-07 13:02:20 +00:00
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 Add epic(4), a driver for the front panel LEDs in Sun Fire V215/V245. 2010-01-10 15:44:48 +00:00
esp
et
ex
exca
ext2fs Sync with several changes in UFS/FFS: 2011-04-28 14:27:17 +00:00
fatm
fdc Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
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 Remove opt_mac.h generation for various kernel modules that no longer 2009-06-06 17:01:44 +00:00
ichwd ichwd: don't attach to isa pnp device(s) by accident 2009-11-07 11:41:23 +00:00
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 After r193232 rt_tables in vnet.h are no longer indirectly dependent on 2009-06-08 19:57:35 +00:00
if_epair Update epair(4) to the new netisr implementation and polish 2009-07-26 12:20:07 +00:00
if_faith
if_gif Remove opt_mac.h generation for various kernel modules that no longer 2009-06-06 17:01:44 +00:00
if_gre
if_lagg
if_ndis
if_stf Remove opt_mac.h generation for various kernel modules that no longer 2009-06-06 17:01:44 +00:00
if_tap
if_tun Remove opt_mac.h generation for various kernel modules that no longer 2009-06-06 17:01:44 +00:00
if_vlan After r193232 rt_tables in vnet.h are no longer indirectly dependent on 2009-06-08 19:57:35 +00:00
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 Remove opt_mac.h generation for various kernel modules that no longer 2009-06-06 17:01:44 +00:00
ip_mroute_mod After r193232 rt_tables in vnet.h are no longer indirectly dependent on 2009-06-08 19:57:35 +00:00
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 move kernel ipfw-related sources to a separate directory, 2009-06-05 19:22:47 +00:00
ipmi
ips
ipw
ipwfw
iscsi
isp
ispfw Add 8Gb card firmware. Update some 2Gb and 4Gb f/w sets. 2009-08-01 00:57:34 +00:00
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 Add the ksyms(4) pseudo driver. The ksyms driver allows a process to 2009-05-26 21:39:09 +00:00
le MFtbemd: 2010-08-23 06:13:29 +00:00
lge
libalias
libiconv
libmbpool
libmchain
lindev lindev(4) [1] is supposed to be a collection of linux-specific pseudo 2009-09-26 12:45:28 +00:00
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 Remove opt_mac.h generation for various kernel modules that no longer 2009-06-06 17:01:44 +00:00
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 Add missing opt_compat.h dependency. 2010-06-22 20:52:35 +00:00
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 Make mvs_if.c to not be always linked statically into the kernel. 2010-05-17 03:51:57 +00:00
mwl driver for Marvell 88W8363 Wireless LAN controller 2009-06-01 18:07:01 +00:00
mwlfw driver for Marvell 88W8363 Wireless LAN controller 2009-06-01 18:07:01 +00:00
mxge Implement minimal set of changes suggested by bz to make 2009-06-23 17:42:06 +00:00
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 Factor out the code shared between NFS client and server into its own 2010-02-16 20:00:21 +00:00
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 Add the kernel build glue for the experimental NFS subsystem that 2009-05-28 19:45:11 +00:00
nfsd Add the kernel build glue for the experimental NFS subsystem that 2009-05-28 19:45:11 +00:00
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 unifdef NFSCLIENT because the nlm depends on the nfsclient even if NFSCLIENT 2009-10-03 12:22:12 +00:00
nfsserver Factor out the code shared between NFS client and server into its own 2010-02-16 20:00:21 +00:00
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 Fix typo which has survived amazingly long! 2009-10-10 03:32:46 +00:00
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 Remove opt_mac.h generation for various kernel modules that no longer 2009-06-06 17:01:44 +00:00
pst
pty Allow pty(4) to be loaded as a kld. 2009-08-23 20:26:09 +00:00
puc
ral
ralfw
random
rc
rc4
rdma
re
reiserfs
rl
rndtest
rp
runfw Uuencode the rt2870 firmware into ascii like the other firmware blobs. 2010-01-29 03:35:01 +00:00
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 Add driver for Silicon Integrated Systems SiS190/191 Fast/Gigabit Ethernet. 2010-04-14 20:45:33 +00:00
siba_bwn Adds siba_bwn module which is used with bwn(4). Main purpose of this 2010-01-31 21:18:22 +00:00
siftr Import the Statistical Information For TCP Research (SIFTR) kernel module into 2010-07-03 13:32:39 +00:00
siis Add siis CAM driver for SiliconImage SiI3124/3132/3531 SATA2 controllers. 2009-07-21 12:32:46 +00:00
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 Fix this module so it at least builds. Note that it isn't hooked up to 2009-10-13 18:07:56 +00:00
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 Rewrite x86bios and update its dependent drivers. 2009-10-19 20:58:10 +00:00
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 Remove empty files and do nto try to build them. 2009-05-18 17:20:24 +00:00
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