git: e13b5298ec87 - main - if_re: Add PNP info for module
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 16 Sep 2025 13:22:30 UTC
The branch main has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=e13b5298ec87be03da2231bc7b44a6a4b976b850
commit e13b5298ec87be03da2231bc7b44a6a4b976b850
Author: Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2025-09-16 13:19:00 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2025-09-16 13:22:05 +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 67864c2de388..d56c975a43d2 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, \