Rework the xxxVERBOSE option to share the common module-hook-based
verbose mechanism with MIIVERBOSE. This reduces some duplicated code
and allows us to once again permit auto-unload of MIIVERBOSE.
Change details:
* Update dev/devlist2h.awk to accomodate miidevs, including generation
of MII_STR_oui_model definitions and use of oui and model rather than
vendor and product. This also changes the compressed data in the
xxxdevs_data.h files to uint32_t (since mii oui's are up to 6 hex
digits long)
* Update a couple of phy drivers to use new calls to get verbose data
* Regen all of the xxxdevs{,_data}.h files (separate commit, coming
very soon)
* Update mii/mii_verbose.[ch] and mii/mii_physubr.c to use the various
DEV_VERBOSE_xxx macros
* Update the pci, usb, and hdaudio code as needed, to #include the
xxxdevs.h files (in order to get the proper printf format strings)
* Since dev/dev_verbose.c now uses non-literal printf format strings,
(to deal with the vendor/product vs oui/model issue), we need to
make sure it gets compiled with -Wno-error=format-nonliteral, even
in userland's libpci and librumpdev!
* Bump kernel version for the change in module interfaces
Welcome to 9.99.86!
XXX It might be useful in the future to extend the MII_STR_oui_model
XXX definitions to PCI as well (and perhaps USB and HDAUDIO). This
XXX would allow for a single centralized location for the products'
XXX descriptions, rather than being dispersed among individual
XXX drivers' xxx_match tables.
2021-06-30 00:03:36 +03:00
|
|
|
# $NetBSD: Makefile.miidevs,v 1.4 2021/06/29 21:03:36 pgoyette Exp $
|
|
|
|
#
|
|
|
|
# As per tron@NetBSD.org, the proper procedure is (adapted from dev/hdaudio)
|
|
|
|
#
|
|
|
|
# 1.) Change "src/sys/dev/mii/miidevs".
|
|
|
|
# 2.) Commit "src/sys/dev/mii/miidevs".
|
|
|
|
# 3.) Execute "make -f Makefile.miidevs" in "src/sys/dev/mii".
|
|
|
|
# 4.) Ensure that the value of MII_MAX_DESCR_LEN is at least as large as
|
|
|
|
# the values reported. If necessary, update "src/sys/dev/mii/miivar.h"
|
|
|
|
# and bump the kernel version in "src/sys/sys/param/h".
|
|
|
|
# 5.) Commit "src/sys/dev/mii/miidevs.h" and
|
|
|
|
# "src/sys/dev/mii/miidevs_data.h"; if you changed them, also
|
|
|
|
# commit "src/sys/dev/mii/miivar.h" and "src/sys/sys/param.h".
|
2008-10-20 02:05:19 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1998-08-11 03:55:16 +04:00
|
|
|
|
Rework the xxxVERBOSE option to share the common module-hook-based
verbose mechanism with MIIVERBOSE. This reduces some duplicated code
and allows us to once again permit auto-unload of MIIVERBOSE.
Change details:
* Update dev/devlist2h.awk to accomodate miidevs, including generation
of MII_STR_oui_model definitions and use of oui and model rather than
vendor and product. This also changes the compressed data in the
xxxdevs_data.h files to uint32_t (since mii oui's are up to 6 hex
digits long)
* Update a couple of phy drivers to use new calls to get verbose data
* Regen all of the xxxdevs{,_data}.h files (separate commit, coming
very soon)
* Update mii/mii_verbose.[ch] and mii/mii_physubr.c to use the various
DEV_VERBOSE_xxx macros
* Update the pci, usb, and hdaudio code as needed, to #include the
xxxdevs.h files (in order to get the proper printf format strings)
* Since dev/dev_verbose.c now uses non-literal printf format strings,
(to deal with the vendor/product vs oui/model issue), we need to
make sure it gets compiled with -Wno-error=format-nonliteral, even
in userland's libpci and librumpdev!
* Bump kernel version for the change in module interfaces
Welcome to 9.99.86!
XXX It might be useful in the future to extend the MII_STR_oui_model
XXX definitions to PCI as well (and perhaps USB and HDAUDIO). This
XXX would allow for a single centralized location for the products'
XXX descriptions, rather than being dispersed among individual
XXX drivers' xxx_match tables.
2021-06-30 00:03:36 +03:00
|
|
|
miidevs.h miidevs_data.h: ${.CURDIR}/../devlist2h.awk miidevs
|
|
|
|
/bin/rm -f miidevs.h miidevs_data.h
|
|
|
|
${TOOL_AWK} -f ${.ALLSRC}
|