freebsd-skq/sys/dev
marius 28e02ade01 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
..
aac Previously, the aac driver did not handle enclosure management AIFs, 2010-09-29 14:22:00 +00:00
acpi_support Remove an unnecessary hack from ACPICA 20100915 (r212761). 2010-09-16 20:11:40 +00:00
acpica Clean up unused headers. 2010-10-13 17:06:25 +00:00
adb
adlink
advansys
ae Remove unnecessary controller reinitialization. 2010-09-21 17:25:15 +00:00
age Make sure to not use stale ip/tcp header pointers. The ip/tcp 2010-10-14 18:31:40 +00:00
agp
aha
ahb
ahci Fix panic, when due to some kind of congestion on FIS-based switching 2010-09-16 12:39:50 +00:00
aic
aic7xxx Revert r213765. This is required because our build infrastructure uses 2010-10-14 19:19:19 +00:00
alc Make sure to not use stale ip/tcp header pointers. The ip/tcp 2010-10-14 18:31:40 +00:00
ale Make sure to not use stale ip/tcp header pointers. The ip/tcp 2010-10-14 18:31:40 +00:00
amd
amdsbwd
amdtemp
amr Fix clang warning on empty statement. 2010-07-28 16:24:11 +00:00
an
arcmsr Apply vendor version 1.20.00.17. 2010-07-21 18:50:24 +00:00
asmc
asr
ata Revert r132291. 2010-09-30 16:09:52 +00:00
ath Fix indenting/whitespace issues introduced by me. 2010-08-15 11:40:53 +00:00
atkbdc bus_add_child: change type of order parameter to u_int 2010-09-10 11:19:03 +00:00
auxio
bce Make sure to not use stale ip/tcp header pointers. The ip/tcp 2010-10-14 18:31:40 +00:00
bfe
bge Make sure to not use stale ip/tcp header pointers. The ip/tcp 2010-10-14 18:31:40 +00:00
bktr Fix build on architectures where PAGE_SIZE is a long (sparc64, powerpc). 2010-07-13 19:27:20 +00:00
bm
buslogic
bwi Introduce IEEE80211_C_RATECTL, drivers which use the ratectl framework 2010-08-14 20:12:10 +00:00
bwn Small grammar nit in a printf message. 2010-10-12 11:05:32 +00:00
cardbus
cas KTR_CTx are long time aliased by existing classes so they can't serve 2010-07-21 10:05:07 +00:00
ce Revert r213793. 2010-10-13 17:38:23 +00:00
cfe Start using the 'init_static_kenv()' API provided by r198561 to initialize 2010-08-11 02:13:50 +00:00
cfi Convert Freescale PowerPC platforms to FDT convention. 2010-07-11 21:08:29 +00:00
ciss Cosmetic: make it less confusing when displaying RAID 1 level, that might 2010-10-02 08:18:19 +00:00
cm
cmx
coretemp Catch known CPUs before using IA32_TEMPERATURE_TARGET. 2010-08-04 00:25:13 +00:00
cp Revert r213793. 2010-10-13 17:38:23 +00:00
cpuctl
cpufreq
cs
ct
ctau
cx
cxgb Re-add r212370 now that the LOR in powerpc64 has been resolved: 2010-09-16 16:13:12 +00:00
cy
dc It seems some multi-port dc(4) controllers shares SROM of the first 2010-10-14 17:22:38 +00:00
dcons
de
digi
dpms
dpt
drm Add support for ATI Radeon HD 4250. 2010-08-03 16:30:56 +00:00
e1000 Update code from Intel: 2010-09-28 00:13:15 +00:00
ed On second thought, we need to force 16-bit mode 2010-08-25 02:09:07 +00:00
eisa
en
ep
esp
et Make sure to clear IFF_DRV_RUNNING to reinitialize controller. 2010-09-21 17:31:14 +00:00
ex
exca
fatm
fb Fix segment:offset calculation of interrupt vector for relocated video BIOS 2010-09-13 19:58:46 +00:00
fdc
fdt Eliminate FDT_IMMR_VA define. 2010-07-19 18:47:18 +00:00
fe
firewire bus_add_child: change type of order parameter to u_int 2010-09-10 11:19:03 +00:00
flash Add s25sl064a, an 8mb SPI flash part. 2010-08-17 16:27:13 +00:00
fxp Make sure to not use stale ip/tcp header pointers. The ip/tcp 2010-10-14 18:31:40 +00:00
gem Merge r207585 from cas(4): 2010-09-16 09:29:48 +00:00
glxsb
gpio Fix legal staff in GPIO sources: 2010-09-29 20:53:33 +00:00
hatm
hifn - Do not place variables to memory allocated by busdma. pre/post ops 2010-09-24 04:46:46 +00:00
hme KTR_CTx are long time aliased by existing classes so they can't serve 2010-07-21 10:05:07 +00:00
hptiop
hptmv
hptrr Pass a format string to make_dev(). 2010-10-13 14:41:52 +00:00
hwpmc Fix two aliases that had the same name but were pointing to different 2010-10-04 17:22:18 +00:00
ic
ichsmb Add support for Intel Cougar Point SMBus controller. 2010-08-27 23:24:08 +00:00
ichwd Add Intel Cougar Point PCH LPC Controller Device IDs 2010-08-28 00:09:46 +00:00
ida
ie
ieee488
if_ndis WPA_CSE_WEP104 was being incorrectly checked. 2010-10-13 14:37:52 +00:00
iicbus bus_add_child: change type of order parameter to u_int 2010-09-10 11:19:03 +00:00
iir
io
ipmi Fix test for double-nul characters that terminate the string table at 2010-07-29 13:46:37 +00:00
ips
ipw
iscsi/initiator Remove the freelist, which simply duplicates some of the zone allocator's 2010-09-02 14:13:43 +00:00
isp
ispfw
iwi Fix monitor mode which is implemented by doing a firmware scan. This 2010-10-12 16:52:13 +00:00
iwn Fix typo in previous commit. 2010-09-19 12:52:23 +00:00
ixgb Do not allocate multicast array memory in multicast filter 2010-08-28 00:34:22 +00:00
ixgbe Do not allocate multicast array memory in multicast filter 2010-08-28 00:34:22 +00:00
jme Make sure to not use stale ip/tcp header pointers. The ip/tcp 2010-10-14 18:31:40 +00:00
joy
kbd Explicitly tell the compiler that we don't care about the return value 2010-10-13 11:37:12 +00:00
kbdmux Explicitly tell the compiler that we don't care about the return value 2010-10-13 11:37:12 +00:00
ksyms
le
led Fix an incorrect use of sbuf_overflowed() after a call to sbuf_finish(). 2010-09-09 18:35:08 +00:00
lge
lindev
lmc
malo Fix firmware module dependencies. 2010-09-10 08:11:48 +00:00
mc146818
mca
mcd
md - Remove some extra white space. 2010-07-26 10:37:14 +00:00
mem
mfi
mge
mii Add a NetBSD-compatible mii_attach(), which is intended to eventually 2010-10-14 22:01:40 +00:00
mk48txx
mlx
mly
mmc
mn
mps Support firmware download. 2010-10-14 16:44:44 +00:00
mpt Take mpt_req_on_{free,pending}_list() out from under INVARIANTS as these 2010-09-24 23:54:03 +00:00
mse
msk Catch up to rename of the constant for the Master Data Parity Error bit in 2010-09-09 20:26:30 +00:00
mvs Fix panic, when due to some kind of congestion on FIS-based switching 2010-09-16 12:39:50 +00:00
mwl Fix firmware module dependencies. 2010-09-10 08:11:48 +00:00
mxge
my
ncv
nfe
nge
nmdm
nsp
null Mark /dev/zero and /dev/null as eternal. 2010-08-06 09:47:48 +00:00
nve
nvram
nxge
ofw Change OF_interpret() to also take an array of cell_t (missed in r209801). 2010-09-11 18:55:00 +00:00
patm
pbio
pccard
pccbb
pcf
pci - Rename the constant for the Master Data Parity Error flag in the 2010-09-09 18:19:15 +00:00
pcn
pdq
powermac_nvram Add support for the Sharp/Micron flash chips to powermac_mvram(4). 2010-09-05 20:04:02 +00:00
ppbus bus_add_child: change type of order parameter to u_int 2010-09-10 11:19:03 +00:00
ppc
pst
pty
puc
quicc Convert Freescale PowerPC platforms to FDT convention. 2010-07-11 21:08:29 +00:00
ral If rt2560_bbp_init() fails, don't drop the lock as the callers of 2010-09-29 11:52:44 +00:00
random
rc
re
rndtest
rp
safe
sbni
scc
scd
sdhci
sec Convert Freescale PowerPC platforms to FDT convention. 2010-07-11 21:08:29 +00:00
sf Remove unnecessary controller reinitialization. 2010-09-21 17:42:19 +00:00
sge Make sure to not use stale ip/tcp header pointers. The ip/tcp 2010-10-14 18:31:40 +00:00
si
siba bus_add_child: change type of order parameter to u_int 2010-09-10 11:19:03 +00:00
siis Fix panic, when due to some kind of congestion on FIS-based switching 2010-09-16 12:39:50 +00:00
sio
sis Fix another bug introduced in r212109. We should unload DMA maps 2010-09-03 18:00:17 +00:00
sk Some revision of Yukon controller generates corrupted frame when TX 2010-07-09 21:21:08 +00:00
smbus
smc
sn
snc
snp
sound Fix a brain-o: wrong case statement semantics. 2010-10-13 14:39:54 +00:00
speaker
spibus bus_add_child: change type of order parameter to u_int 2010-09-10 11:19:03 +00:00
ste It seems some old Sundace(now IC Plus Corp.) controllers do not 2010-08-09 01:47:09 +00:00
stg
stge Fix build breakage introduced in r212972. 2010-09-22 16:48:24 +00:00
streams
sym
syscons Explicitly tell the compiler that we don't care about the return value 2010-10-13 11:37:12 +00:00
tdfx
ti
tl
tpm Add tpm(4) driver for Trusted Platform Module. 2010-08-12 00:16:18 +00:00
trm
tsec Convert Freescale PowerPC platforms to FDT convention. 2010-07-11 21:08:29 +00:00
twa Fix a compile problem introduced with r212008 on 32bit: 2010-09-04 16:27:14 +00:00
twe
tx
txp
uart Eliminate FDT_IMMR_VA define. 2010-07-19 18:47:18 +00:00
ubsec
usb Add more USB device IDs to supported list of devices. 2010-10-14 21:53:42 +00:00
utopia
vge
vkbd
vr vr_init_locked() will stop and reset the controller. Remove 2010-08-24 18:44:12 +00:00
vx
watchdog
wb
wds
wi
wl
wpi Introduce IEEE80211_C_RATECTL, drivers which use the ratectl framework 2010-08-14 20:12:10 +00:00
xe
xen
xl Implement basic WOL support. Note, not all xl(4) controllers 2010-08-23 19:18:50 +00:00