git: 75f1a35ce445 - stable/14 - if_re: Add PNP info for module
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Sep 2025 13:50:47 UTC
The branch stable/14 has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=75f1a35ce445774c546cf333c7b0cb3ee3205006
commit 75f1a35ce445774c546cf333c7b0cb3ee3205006
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:50:33 +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
(cherry picked from commit e13b5298ec87be03da2231bc7b44a6a4b976b850)
---
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 0d4f1dddf46a..a74f4898fa4a 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, \