freebsd-skq/sys
Marius Strobl a55fb8a458 Add a NetBSD-compatible mii_attach(), which is intended to eventually
replace mii_phy_probe() altogether. Compared to the latter the advantages
of mii_attach() are:
- intended to be called multiple times in order to attach PHYs in multiple
  passes (f.e. in order to only use sub-ranges of the 0 to MII_NPHY - 1
  range)
- being able to pass along the capability mask from the NIC to the PHY
  drivers
- being able to specify at which address (phyloc) to probe for a PHY
  (instead of always probing at all addresses from 0 to MII_NPHY - 1)
- being able to specify which PHY instance (offloc) to attach
- being able to pass along MIIF_* flags from the NIC to the PHY drivers
  (f.e. as required to indicated to the PHY drivers that flow control is
  supported by the NIC driver, which actually is the motivation for this
  change).

While at it, I used the opportunity to get rid of some hacks in mii(4)
like miibus_probe() generally doing work besides sheer probing and the
"EVIL HACK" (which will vanish entirely along with mii_phy_probe()) by
passing the struct ifnet pointer via an argument of mii_attach() as well
as to fix some resource leaks in mii(4) in case something fails.
Commits which will update the PHY drivers to honor the MII flags passed
down from the NIC drivers and take advantage of mii_attach() to get rid
of certain types of hacks in NIC and PHY drivers as well as a conversion
of the remaining uses of mii_phy_probe() will follow shortly.

Reviewed by:	jhb, yongari
Obtained from:	NetBSD (partially)
2010-10-14 22:01:40 +00:00
..
amd64 Remove trailing ", " from `sysctl machdep.idle_available' output. 2010-10-12 20:53:12 +00:00
arm Add the QILA9G20 config files. 2010-10-06 22:41:32 +00:00
boot mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
bsm
cam Decrease poll interval from 1000 to 100us. This significantly reduces 2010-09-22 05:17:18 +00:00
cddl Pass a format string to panic() and to taskqueue_start_threads(). 2010-10-13 17:13:43 +00:00
compat Remove stale comment. 2010-10-14 19:30:44 +00:00
conf USB Network: 2010-10-13 21:36:42 +00:00
contrib Merge ACPICA 20101013. 2010-10-13 21:37:02 +00:00
crypto Change two missed instances of 'retq' in aeskeys_i386.S to 'retl', which 2010-10-13 17:55:53 +00:00
ddb One more use for _SIG_VALID. 2010-07-12 10:18:10 +00:00
dev Add a NetBSD-compatible mii_attach(), which is intended to eventually 2010-10-14 22:01:40 +00:00
fs Ignore the return value of DE_INTERNALIZE(). 2010-10-13 11:37:39 +00:00
gdb there must be only one SYSINIT with SI_SUB_RUN_SCHEDULER+SI_ORDER_ANY order 2010-09-30 17:05:23 +00:00
geom The canonical way to print __func__ when using KASSERT() is to write 2010-10-13 11:35:59 +00:00
gnu The r184588 changed the layout of struct export_args, causing an ABI 2010-10-10 07:05:47 +00:00
i386 Remove trailing ", " from `sysctl machdep.idle_available' output. 2010-10-12 20:53:12 +00:00
ia64 Fix bogus error message from bus_dmamem_alloc() about incorrect alignment. 2010-09-29 21:53:11 +00:00
isa bus_add_child: change type of order parameter to u_int 2010-09-10 11:19:03 +00:00
kern In kern_sigtimedwait(), move initialization code out of process lock, 2010-10-14 08:01:33 +00:00
kgssapi
libkern Make the RPC specific __rpc_inet_ntop() and __rpc_inet_pton() general 2010-09-24 15:01:45 +00:00
mips Keep polling at 50hz as long as link state is changing. 2010-10-13 21:45:56 +00:00
modules Add a NetBSD-compatible mii_attach(), which is intended to eventually 2010-10-14 22:01:40 +00:00
net Only hide the ifa and not the tp under #ifdef INET as the tp is needed 2010-10-01 15:14:14 +00:00
net80211 Fix background roaming to actually work in AUTO roaming mode. 2010-10-01 09:18:30 +00:00
netatalk
netgraph When calling panic(), always pass a format string. 2010-10-13 17:21:21 +00:00
netinet Use ifa_ifwithaddr_check() rather than ifa_ifwithaddr() as we are not 2010-10-14 12:32:49 +00:00
netinet6 Purposely tell the compiler that we ignore the return value of ADDCARRY() 2010-10-13 10:45:22 +00:00
netipsec Remove dead code: 2010-10-14 15:15:22 +00:00
netipx
netnatm
netncp
netsmb
nfs Move sys/nfsclient/nfs_lock.c into sys/nfs and build it as a separate 2010-07-24 22:11:11 +00:00
nfsclient Do not fork nfsiod directly from the vop methods. This causes LORs between 2010-09-12 19:06:08 +00:00
nfsserver - When VFS_VGET() is not supported, switch to VOP_LOOKUP(). 2010-08-26 23:41:40 +00:00
nlm Make the RPC specific __rpc_inet_ntop() and __rpc_inet_pton() general 2010-09-24 15:01:45 +00:00
opencrypto Add support for AES-XTS. 2010-09-23 11:52:32 +00:00
pc98 Remove trailing ", " from `sysctl machdep.idle_available' output. 2010-10-12 20:53:12 +00:00
pci Rewrite interrupt handler to give fairness for both RX and TX. 2010-10-13 17:55:19 +00:00
powerpc Handle vector assist traps without a kernel panic, by setting denormalized 2010-10-05 18:08:07 +00:00
rpc Fix the krpc so that it can handle NFSv3,UDP mounts with a read/write 2010-10-13 00:57:14 +00:00
security Replace sbuf_overflowed() with sbuf_error(), which returns any error 2010-09-10 16:42:16 +00:00
sparc64 Explicitly lower the PIL to 0 as part of enabling interrupts, similar to 2010-10-14 21:46:53 +00:00
sun4v Just use the sparc64 version of this header rather than duplicating it. 2010-10-08 14:50:58 +00:00
sys Use a safer mechanism for determining if a task is currently running, 2010-10-13 22:59:04 +00:00
teken Make ^L with cons25 and origin mode bit more sane. 2010-08-09 18:07:15 +00:00
tools Add an extra comment to the SDT probes definition. This allows us to get 2010-08-22 11:18:57 +00:00
ufs The r184588 changed the layout of struct export_args, causing an ABI 2010-10-10 07:05:47 +00:00
vm If vm_map_find() is asked to allocate a superpage-aligned region of virtual 2010-10-04 16:49:40 +00:00
x86 Restore pre-r212778 optimization, skipping timer reprogramming when it is 2010-09-18 07:36:43 +00:00
xdr
xen
Makefile