Yuri Pankov
2018-09-25 13:10:26 UTC
Hi,
Looking at adding the MODULE_PNP_INFO() entry to iwm(4), I came up with
the patch in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231625
adding redundant and useless vendor field to iwm_devices. While it
works, it's unfortunate, and I have started looking into possible
solutions and the result is a small patch for kldxref(8) allowing
specifying literal values in descriptor_string like the following:
MODULE_PNP_INFO("U16=8086:vendor;U16:device;P:#", pci, iwm_pci_driver,
iwm_devices, sizeof(iwm_devices[0]), nitems(iwm_devices));
...so that we always have vendor 0x8086 and only consume the device field.
If it makes at least some sense, I'll put it for review.
Looking at adding the MODULE_PNP_INFO() entry to iwm(4), I came up with
the patch in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231625
adding redundant and useless vendor field to iwm_devices. While it
works, it's unfortunate, and I have started looking into possible
solutions and the result is a small patch for kldxref(8) allowing
specifying literal values in descriptor_string like the following:
MODULE_PNP_INFO("U16=8086:vendor;U16:device;P:#", pci, iwm_pci_driver,
iwm_devices, sizeof(iwm_devices[0]), nitems(iwm_devices));
...so that we always have vendor 0x8086 and only consume the device field.
If it makes at least some sense, I'll put it for review.