FreeBSD Bugzilla – Attachment 197394 Details for
Bug 231625
[patch] provide MODULE_PNP_INFO() for iwm(4)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
add MODULE_PNP_INFO() to iwm(4)
iwmpnp.diff (text/plain), 2.13 KB, created by
Yuri Pankov
on 2018-09-23 11:21:06 UTC
(
hide
)
Description:
add MODULE_PNP_INFO() to iwm(4)
Filename:
MIME Type:
Creator:
Yuri Pankov
Created:
2018-09-23 11:21:06 UTC
Size:
2.13 KB
patch
obsolete
>diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c >index 9daa85257ac9..1488d3a65e40 100644 >--- a/sys/dev/iwm/if_iwm.c >+++ b/sys/dev/iwm/if_iwm.c >@@ -5694,21 +5694,22 @@ iwm_intr(void *arg) > #define PCI_PRODUCT_INTEL_WL_8265_1 0x24fd > > static const struct iwm_devices { >+ uint16_t vendor; > uint16_t device; > const struct iwm_cfg *cfg; > } iwm_devices[] = { >- { PCI_PRODUCT_INTEL_WL_3160_1, &iwm3160_cfg }, >- { PCI_PRODUCT_INTEL_WL_3160_2, &iwm3160_cfg }, >- { PCI_PRODUCT_INTEL_WL_3165_1, &iwm3165_cfg }, >- { PCI_PRODUCT_INTEL_WL_3165_2, &iwm3165_cfg }, >- { PCI_PRODUCT_INTEL_WL_3168_1, &iwm3168_cfg }, >- { PCI_PRODUCT_INTEL_WL_7260_1, &iwm7260_cfg }, >- { PCI_PRODUCT_INTEL_WL_7260_2, &iwm7260_cfg }, >- { PCI_PRODUCT_INTEL_WL_7265_1, &iwm7265_cfg }, >- { PCI_PRODUCT_INTEL_WL_7265_2, &iwm7265_cfg }, >- { PCI_PRODUCT_INTEL_WL_8260_1, &iwm8260_cfg }, >- { PCI_PRODUCT_INTEL_WL_8260_2, &iwm8260_cfg }, >- { PCI_PRODUCT_INTEL_WL_8265_1, &iwm8265_cfg }, >+ { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_3160_1, &iwm3160_cfg }, >+ { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_3160_2, &iwm3160_cfg }, >+ { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_3165_1, &iwm3165_cfg }, >+ { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_3165_2, &iwm3165_cfg }, >+ { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_3168_1, &iwm3168_cfg }, >+ { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_7260_1, &iwm7260_cfg }, >+ { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_7260_2, &iwm7260_cfg }, >+ { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_7265_1, &iwm7265_cfg }, >+ { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_7265_2, &iwm7265_cfg }, >+ { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_8260_1, &iwm8260_cfg }, >+ { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_8260_2, &iwm8260_cfg }, >+ { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_8265_1, &iwm8265_cfg }, > }; > > static int >@@ -6460,6 +6461,8 @@ static driver_t iwm_pci_driver = { > static devclass_t iwm_devclass; > > DRIVER_MODULE(iwm, pci, iwm_pci_driver, iwm_devclass, NULL, NULL); >+MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, iwm_pci_driver, iwm_devices, >+ sizeof(iwm_devices[0]), nitems(iwm_devices)); > MODULE_DEPEND(iwm, firmware, 1, 1, 1); > MODULE_DEPEND(iwm, pci, 1, 1, 1); > MODULE_DEPEND(iwm, wlan, 1, 1, 1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231625
:
197394
|
197497