Age | Commit message (Collapse) | Author |
|
with gotos.
supported by kettenis@, ok sobrado@
|
|
2. Replace a continue statement in an inner loop with goto loop_end
This fixes a simple logical bug found with Coccinelle.
ok kettenis@
|
|
(ifmedia64).
|
|
This changes numbers of the SIOCSIFMEDIA and SIOCGIFMEDIA ioctls and
grows struct ifmediareq.
Old ifconfig and dhclient binaries can still assign addresses, however
the 'media' subcommand stops working. Recompiling ifconfig and dhclient
with new headers before a reboot should not be necessary unless in very
special circumstances where non-default media settings must be used to
get link and console access is not available.
There may be some MD fallout but that will be cleared up later.
ok deraadt miod
with help and suggestions from several sharks attending l2k15
|
|
driver definetion.
ok deraadt@
|
|
|
|
|
|
specific driver definition.
no logical change.
ok deraadt@
|
|
|
|
ok deraadt@
|
|
|
|
- PSE control register (0x0b)
- PSE status register (0x0c)
- MMD access control register (0x0d)
- MMD access address data register (0x0e)
from netbsd
ok deraadt@, miod@
|
|
based devices. This introduces Realtek PHY into em driver
code and is only a temporary solution to the problem.
OK deraadt@
|
|
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
capitalization corrections.
|
|
|
|
ok mikeb@, krw@, bluhm@, tedu@
|
|
|
|
|
|
ok mpi@ kspillner@
|
|
This is an MI driver currently targeting only the BCM53115 model,
but other Broadcom devices (specially from the 53XX family) can make use
of it as well.
The driver currently accounts just for the CPU port. The switch is left
in dumb-mode. Further advanced switch control is in the works.
Parts of this was inspired by looking at the b53 driver from the
OpenWrt project. Thanks!
Okay miod@
|
|
|
|
Okay miod@
|
|
ok naddy@
|
|
ok mikeb@
|
|
Tested with 8168G controllers.
|
|
when attached to re(4), as was done before rev 1.25 which was intended to
fix rgephy(4) with external PHY with MACs other than re(4). This is to
fix operation with some integrated PHY on re(4) where the PHY Specific
Status register does not work properly and the link cannot be established.
From FreeBSD and matches what the Linux driver does.
Tested on a number of newer re(4) with PHYs rev 2, 4 and 5 and
newer integrated PHY with the 8168G controllers.
|
|
to match behavior before rev 1.52.
ok deraadt@
|
|
configuration setting is done at resume time because all networks
drivers which were previously up, do an IFF_UP operation which
hits PHY_RESET.
This was in snapshots for about 2 weeks.
|
|
attach() and activate() time] into the eephy_reset() routine. This
means that a bit more work gets done at PHY_RESET time, but it means
also means it gets done in all scenarios. Why? For the next commit...
This was in snapshots for about 2 weeks.
|
|
|
|
|
|
|
|
Pointed out by LLVM.
ok mikeb@
|
|
ok miod@, mikeb@
|
|
|
|
ok miod@, mikeb@
|
|
autonegotiation timer when PHY gets the link so that if we
restart the timer the mii_ticks value would be sane.
Lifted originally from FreeBSD, tested by a few on re(4) and
bge(4), ok kettenis
|
|
ok sthen@
|
|
- Bring in a workaround for the IP1001 PHY which causes the downshift support
to not function properly. From FreeBSD
ok sthen@
|
|
ok dlg@
|
|
of workarounds in the 5718 family and up.
we dont attach bge to those chips yet, so this cant break anything that
isnt already broken.
from freebsd.
|
|
|
|
tested on real 5720 hardware.
|
|
make sure we check the oui as well. broadcom has 4 or 5 ouis with
overlapping model numbers, so they should be scoped when you look
them up.
tested on at least:
bge0 at pci3 dev 4 function 0 "Broadcom BCM5714" rev 0xa3, BCM5715 A3 (0x9003): ivec 0x795, address 00:14:4f:a9:34:90
brgphy0 at bge0 phy 1: BCM5714 10/100/1000baseT/SX PHY, rev. 0
bnx0 at pci7 dev 0 function 0 "Broadcom BCM5709" rev 0x20: apic 0 int 6
bnx0: address 1c:c1:de:e4:5e:b0
brgphy0 at bnx0 phy 1: BCM5709 10/100/1000baseT PHY, rev. 8
bge0 at pci0 dev 5 function 0 "Broadcom BCM5702X" rev 0x02, BCM5702/5703 A2 (0x1002): eb164 irq 2, address 00:10:18:00:98:e9
brgphy0 at bge0 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2
bge0 at pci2 dev 0 function 0 "Broadcom BCM5761" rev 0x10, BCM5761 A1 (0x5761100): apic 2 int 18, address 00:10:18:4b:23:b4
brgphy0 at bge0 phy 1: BCM5761 10/100/1000baseT PHY, rev. 0
some tests by and ok mikeb@ and naddy@
|
|
ok deraadt@ sthen@
|
|
- Use ANAR_PAUSE_TOWARDS define
- Only advertise flow control if the MAC sets MIIF_DOPAUSE
ok jsg@
|
|
ok jsg@
|
|
|