<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/mii, branch release/5.2.1</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F5.2.1</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F5.2.1'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2003-10-31T18:32:15Z</updated>
<entry>
<title>Replace the if_name and if_unit members of struct ifnet with new members</title>
<updated>2003-10-31T18:32:15Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2003-10-31T18:32:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9bf40ede4a299f315bc4b0ae5329631b8c7dc271'/>
<id>urn:sha1:9bf40ede4a299f315bc4b0ae5329631b8c7dc271</id>
<content type='text'>
if_xname, if_dname, and if_dunit. if_xname is the name of the interface
and if_dname/unit are the driver name and instance.

This change paves the way for interface renaming and enhanced pseudo
device creation and configuration symantics.

Approved By:	re (in principle)
Reviewed By:	njl, imp
Tested On:	i386, amd64, sparc64
Obtained From:	NetBSD (if_xname)
</content>
</entry>
<entry>
<title>Typo when setting wirespeed.  || != |</title>
<updated>2003-09-28T04:16:16Z</updated>
<author>
<name>Paul Saab</name>
<email>ps@FreeBSD.org</email>
</author>
<published>2003-09-28T04:16:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=786a9b65a9a3c69e908b95c0fde10fa502038685'/>
<id>urn:sha1:786a9b65a9a3c69e908b95c0fde10fa502038685</id>
<content type='text'>
Found by:	jake
</content>
</entry>
<entry>
<title>Add support for SK-9521 V2.0 and 3COM 3C940.</title>
<updated>2003-09-20T10:53:08Z</updated>
<author>
<name>Wilko Bulte</name>
<email>wilko@FreeBSD.org</email>
</author>
<published>2003-09-20T10:53:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=59ce78fef1b8c6a10164f3abca776d433b2795ec'/>
<id>urn:sha1:59ce78fef1b8c6a10164f3abca776d433b2795ec</id>
<content type='text'>
Tested at 100Mbit only, using Asus P4P800 onboard 3C940.
The -stable version of this patch I have in use for ~2 weeks now, and works
just fine for me.

Based on: Nathan L. Binkert's patch for OpenBSD
Patch submitted by and thanks to: Jung-uk Kim &lt;jkim@niksun.com&gt;
MFC after: 2 weeks
</content>
</entry>
<entry>
<title>Clean up dead code.</title>
<updated>2003-09-11T08:28:38Z</updated>
<author>
<name>Bill Paul</name>
<email>wpaul@FreeBSD.org</email>
</author>
<published>2003-09-11T08:28:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d5a50459214b2288618e38d4b58a6804b1d4e44e'/>
<id>urn:sha1:d5a50459214b2288618e38d4b58a6804b1d4e44e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add a PHY driver to support the built-in gigE PHY in the 8169S/8110S</title>
<updated>2003-09-11T03:53:46Z</updated>
<author>
<name>Bill Paul</name>
<email>wpaul@FreeBSD.org</email>
</author>
<published>2003-09-11T03:53:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9bac70b85175d16cc91c1e707966d6261e64a160'/>
<id>urn:sha1:9bac70b85175d16cc91c1e707966d6261e64a160</id>
<content type='text'>
ethernet chips. This driver is pretty simple, however it contains
special DSP initialization code which is needed in order to get
the chip to negotiate a gigE link. (This special initialization
may not be needed in subsequent chip revs.) Also:

- Fix typo in if_rlreg.h (RL_GMEDIASTAT_1000MPS -&gt; RL_GMEDIASTAT_1000MBPS)

- Deal with shared interrupts in re_intr(): if interface isn't up,
  return.

- Fix another bug in re_gmii_writereg() (properly apply data field mask)

- Allow PHY driver to read the RL_GMEDIASTAT register via the
  re_gmii_readreg() register (this is register needed to determine
  real time link/media status).
</content>
</entry>
<entry>
<title>Add a device driver for the Broadcom BCM4401 ethernet controller,</title>
<updated>2003-09-09T18:17:23Z</updated>
<author>
<name>Bill Paul</name>
<email>wpaul@FreeBSD.org</email>
</author>
<published>2003-09-09T18:17:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b9f78d2b4a8b3f55b6e04cfcc94105dd896d6f5c'/>
<id>urn:sha1:b9f78d2b4a8b3f55b6e04cfcc94105dd896d6f5c</id>
<content type='text'>
written by Stuart Walsh and Duncan Barclay (with some kibbitzing by
me). I'm checking it in on Stuart's behalf.

The BCM4401 is built into several x86 laptop and desktop systems. For the
moment, I have only enabled it in the x86 kernel config because although
it's a PCI device, I haven't heard of any standalone NICs that use it. If
somebody knows of one, we can easily add it to the other arches.

This driver uses register/structure data gleaned from the Linux
driver released by Broadcom, but does not contain any of the code
from the Linux driver itself. It uses busdma.
</content>
</entry>
<entry>
<title>Take the support for the 8139C+/8169/8169S/8110S chips out of the</title>
<updated>2003-09-08T02:11:25Z</updated>
<author>
<name>Bill Paul</name>
<email>wpaul@FreeBSD.org</email>
</author>
<published>2003-09-08T02:11:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a94100fa9b9ddccb74164cb9407e69fba557dbac'/>
<id>urn:sha1:a94100fa9b9ddccb74164cb9407e69fba557dbac</id>
<content type='text'>
rl(4) driver and put it in a new re(4) driver. The re(4) driver shares
the if_rlreg.h file with rl(4) but is a separate module. (Ultimately
I may change this. For now, it's convenient.)

rl(4) has been modified so that it will never attach to an 8139C+
chip, leaving it to re(4) instead. Only re(4) has the PCI IDs to
match the 8169/8169S/8110S gigE chips. if_re.c contains the same
basic code that was originally bolted onto if_rl.c, with the
following updates:

- Added support for jumbo frames. Currently, there seems to be
  a limit of approximately 6200 bytes for jumbo frames on transmit.
  (This was determined via experimentation.) The 8169S/8110S chips
  apparently are limited to 7.5K frames on transmit. This may require
  some more work, though the framework to handle jumbo frames on RX
  is in place: the re_rxeof() routine will gather up frames than span
  multiple 2K clusters into a single mbuf list.

- Fixed bug in re_txeof(): if we reap some of the TX buffers,
  but there are still some pending, re-arm the timer before exiting
  re_txeof() so that another timeout interrupt will be generated, just
  in case re_start() doesn't do it for us.

- Handle the 'link state changed' interrupt

- Fix a detach bug. If re(4) is loaded as a module, and you do
  tcpdump -i re0, then you do 'kldunload if_re,' the system will
  panic after a few seconds. This happens because ether_ifdetach()
  ends up calling the BPF detach code, which notices the interface
  is in promiscuous mode and tries to switch promisc mode off while
  detaching the BPF listner. This ultimately results in a call
  to re_ioctl() (due to SIOCSIFFLAGS), which in turn calls re_init()
  to handle the IFF_PROMISC flag change. Unfortunately, calling re_init()
  here turns the chip back on and restarts the 1-second timeout loop
  that drives re_tick(). By the time the timeout fires, if_re.ko
  has been unloaded, which results in a call to invalid code and
  blows up the system.

  To fix this, I cleared the IFF_UP flag before calling ether_ifdetach(),
  which stops the ioctl routine from trying to reset the chip.

- Modified comments in re_rxeof() relating to the difference in
  RX descriptor status bit layout between the 8139C+ and the gigE
  chips. The layout is different because the frame length field
  was expanded from 12 bits to 13, and they got rid of one of the
  status bits to make room.

- Add diagnostic code (re_diag()) to test for the case where a user
  has installed a broken 32-bit 8169 PCI NIC in a 64-bit slot. Some
  NICs have the REQ64# and ACK64# lines connected even though the
  board is 32-bit only (in this case, they should be pulled high).
  This fools the chip into doing 64-bit DMA transfers even though
  there is no 64-bit data path. To detect this, re_diag() puts the
  chip into digital loopback mode and sets the receiver to promiscuous
  mode, then initiates a single 64-byte packet transmission. The
  frame is echoed back to the host, and if the frame contents are
  intact, we know DMA is working correctly, otherwise we complain
  loudly on the console and abort the device attach. (At the moment,
  I don't know of any way to work around the problem other than
  physically modifying the board, so until/unless I can think of a
  software workaround, this will have do to.)

- Created re(4) man page

- Modified rlphy.c to allow re(4) to attach as well as rl(4).

Note that this code works for the sample 8169/Marvell 88E1000 NIC
that I have, but probably won't work for the 8169S/8110S chips.
RealTek has sent me some sample NICs, but they haven't arrived yet.
I will probably need to add an rlgphy driver to handle the on-board
PHY in the 8169S/8110S (it needs special DSP initialization).
</content>
</entry>
<entry>
<title>Use __FBSDID().</title>
<updated>2003-08-24T17:55:58Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2003-08-24T17:55:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=aad970f1fee9a2a3e5a0f880be9b87c6193b3bd1'/>
<id>urn:sha1:aad970f1fee9a2a3e5a0f880be9b87c6193b3bd1</id>
<content type='text'>
Also some minor style cleanups.
</content>
</entry>
<entry>
<title>Prefer new location of pci include files (which have only been in the</title>
<updated>2003-08-22T06:42:59Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2003-08-22T06:42:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=38d8c9940bac138b83c5aa0066f0e2623d3a3512'/>
<id>urn:sha1:38d8c9940bac138b83c5aa0066f0e2623d3a3512</id>
<content type='text'>
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
</content>
</entry>
<entry>
<title>On Dell boxes such as the PE2650 we need to disable 3 led mode for the</title>
<updated>2003-08-20T04:06:00Z</updated>
<author>
<name>Doug Ambrisko</name>
<email>ambrisko@FreeBSD.org</email>
</author>
<published>2003-08-20T04:06:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6d2a9bd669b395905085eed17a0d10c586dded02'/>
<id>urn:sha1:6d2a9bd669b395905085eed17a0d10c586dded02</id>
<content type='text'>
link LED to work.

Reviewed by:	wpaul
Obtained from:	Linux driver
</content>
</entry>
</feed>
