Remove a use of a negative array index from fxp(4).This fixes a warning seen when compiling amd64 GENERIC with clang 7.Also remove the workaround added in r337324. clang 7 and gcc 4.2generate th
Remove a use of a negative array index from fxp(4).This fixes a warning seen when compiling amd64 GENERIC with clang 7.Also remove the workaround added in r337324. clang 7 and gcc 4.2generate the same code with or without the code change.Reviewed by: imp (previous version)MFC after: 3 daysDifferential Revision: https://reviews.freebsd.org/D18603
show more ...
Put in a temporary workaround for strange array access in if_fxp.c.
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.
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)
vlan.h is obsolete, don't create it anymore.
Unconditinally turn on VLAN support when building fxp as a module, sinceit may be plugged into a kernel that supports VLANs. If the kernel isnot VLAN aware, things will still work as before.Modu
Unconditinally turn on VLAN support when building fxp as a module, sinceit may be plugged into a kernel that supports VLANs. If the kernel isnot VLAN aware, things will still work as before.Modules don't really have option support, so this is somewhat of a hack.
Update makefile to reflect vlan support.
Back out 'KMODDEPS = miibus' addition in last commit. This isn't used.
Adjust the fxp module to use the correct directory path, and add adependency on miibus.
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.
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
$Id$ -> $FreeBSD$
Rename bpfilter to bpf.
Use perl, not perl5 to compile interfaces.
Add a sample loadable pci driver Makefile..