sys: Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
mii: Add opt_platform.h to all miibus driversmiivar.h includes opt_platform.h. Make sure all the drivers that use themiibus_if.h interface file have opt_platform.h as well. While some ofthese may
mii: Add opt_platform.h to all miibus driversmiivar.h includes opt_platform.h. Make sure all the drivers that use themiibus_if.h interface file have opt_platform.h as well. While some ofthese may not, strictly speaking, need it, it's easier to include ituniversally for miibus.Sponsored by: Netflix
show more ...
sys/modules: normalize .CURDIR-relative paths to SRCTOPThis simplifies make output/logicTested with: `cd sys/modules; make ALL_MODULES=` on amd64MFC after: 1 monthSponsored by: Dell EMC Isilon
- Follow the lead of dcphy(4) and pnphy(4) and move the reminder of the PHY drivers that only ever attach to a particular MAC driver, i.e. inphy(4), ruephy(4) and xlphy(4), to the directory where
- Follow the lead of dcphy(4) and pnphy(4) and move the reminder of the PHY drivers that only ever attach to a particular MAC driver, i.e. inphy(4), ruephy(4) and xlphy(4), to the directory where the respective MAC driver lives and only compile it into the kernel when the latter is also there, also removing it from miibus.ko and moving it into the module of the respective MAC driver.- While at it, rename exphy.c, which comes from NetBSD where the MAC driver it corresponds to also is named ex(4) instead of xl(4) but that in FreeBSD actually identifies itself as xlphy(4), and its function names accordingly for consistency.- Additionally while at it, fix some minor style issues like whitespace in the register headers and add multi-inclusion protection to inphyreg.h.
Move the xl driver form sys/pci to sys/dev/xl for consistency.
Remove bridge(4) from the tree. if_bridge(4) is a full functionalreplacement and has additional features which make it superior.Discussed on: -archReviewed by: thompsaX-MFC-after: never (RELENG
Remove bridge(4) from the tree. if_bridge(4) is a full functionalreplacement and has additional features which make it superior.Discussed on: -archReviewed by: thompsaX-MFC-after: never (RELENG_6 as transition period)
Use a consistent style and one much closer to the rest of /usr/src
Use .include <bsd.kmod.mk> to get to ../../*/conf/kmod.mk instead ofencoding the relative path.
Pull in sys/conf/kmod.mk, rather than /usr/share/mk/bsd.kmod.mk.This means that the kernel can be totally self contained now and is notdependent on the last buildworld to update /usr/share/mk. Thi
Pull in sys/conf/kmod.mk, rather than /usr/share/mk/bsd.kmod.mk.This means that the kernel can be totally self contained now and is notdependent on the last buildworld to update /usr/share/mk. This mightalso make it easier to build 5.x kernels on 4.0 boxes etc, assuminggensetdefs and config(8) are updated.
Zap KMODDEPS line
Add ${DEBUG_FLAGS} to CFLAGS in bsd.kmod.mk, not in scattered modulemakefiles. Bad examples in fxp/Makefile keep getting copied to newmakefiles.
Removed special rules for building and cleaning device interface filesand empty options files. The rules are now generated automatically inbsd.kmod.mk. Cleaned up related things ($S and ${CLEANFI
Removed special rules for building and cleaning device interface filesand empty options files. The rules are now generated automatically inbsd.kmod.mk. Cleaned up related things ($S and ${CLEANFILES}).
Zap some unused echo "#define NFOO 1" > foo.h style defunct stuff.
Don't generate 'bpf.h' since it's not used.
Change the name of the installed KLM to contain a leading "if_".Except for miibus which is now installed as miibus.ko.Discussed by: msmith, peter, and wpaul
Convert the 3Com XL driver to miibus. This one is a little trickydue to the fact that there are non-MII cards supported by the samedriver and I don't have all of the cards available for testing. Th
Convert the 3Com XL driver to miibus. This one is a little trickydue to the fact that there are non-MII cards supported by the samedriver and I don't have all of the cards available for testing. There'salso the 3c905B-COMBO which has MII, AUI and BNC media ports all in onepackage. Supporting the COMBO is difficult because we have to add the10base5 and 10base2 media types to the same ifmedia struct as theMII-attached types, however there is no way to force the miibus andchild PHYs into existence before xl_attach() completes, so there isno ifmedia struct available in xl_attach(). What we do inistead isuse the mediainit method as a callback: when a child PHY is attached,it calls the miibus mediainit routine which selects a default media.This routing also calls the NIC driver's mediainit method (if itimplements one) at which point we can safely add the other mediatypes.
$Id$ -> $FreeBSD$
Convert the VIA Rhine driver to newbus and set it up to be compiled asa module. Also modified the code to work on FreeBSD/alpha and addeddevice vr0 to the alpha GENERIC config.While I was in the
Convert the VIA Rhine driver to newbus and set it up to be compiled asa module. Also modified the code to work on FreeBSD/alpha and addeddevice vr0 to the alpha GENERIC config.While I was in the neighborhood, I noticed that I was still using#define NFPX 1 in all of the Makefiles that I'd copied from the fxpmodule. I don't really use #define Nfoo X so it didn't matter, butI decided to customize this correctly anyway.
Create module directories for the xl, ti, tl and sk drivers and addthem to the Makefile so that modules will be generated for /modules.