git: f54dfda721ef - stable/15 - if_re: Add PNP info for module
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Sep 2025 13:50:10 UTC
The branch stable/15 has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=f54dfda721ef63326c666299ff5258036ca19748
commit f54dfda721ef63326c666299ff5258036ca19748
Author: Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2025-09-16 13:19:00 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2025-09-29 13:23:42 +0000
if_re: Add PNP info for module
Add PNP info so it the module can be by devmatch(8) and automatically
loaded. On non-x86 platforms it is not included in GENERIC.
Reviewed by: imp
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52557
---
sys/dev/re/if_re.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c
index 091ab2db72ec..76d395165df7 100644
--- a/sys/dev/re/if_re.c
+++ b/sys/dev/re/if_re.c
@@ -353,6 +353,8 @@ static driver_t re_driver = {
DRIVER_MODULE(re, pci, re_driver, 0, 0);
DRIVER_MODULE(miibus, re, miibus_driver, 0, 0);
+MODULE_PNP_INFO("U16:vendor;U16:device;U32:#;D:#", pci, re, re_devs,
+ nitems(re_devs) - 1);
#define EE_SET(x) \
CSR_WRITE_1(sc, RL_EECMD, \