diff --git a/sys/dev/ena/ena.c b/sys/dev/ena/ena.c index 53d81d100498..670df66569f7 100644 --- a/sys/dev/ena/ena.c +++ b/sys/dev/ena/ena.c @@ -3947,6 +3947,8 @@ static driver_t ena_driver = { devclass_t ena_devclass; DRIVER_MODULE(ena, pci, ena_driver, ena_devclass, 0, 0); +MODULE_PNP_INFO("U16:vendor; U16:device", pci, ena, ena_vendor_info_array, + sizeof(ena_vendor_info_array[0]), nitems(ena_vendor_info_array) - 1); MODULE_DEPEND(ena, pci, 1, 1, 1); MODULE_DEPEND(ena, ether, 1, 1, 1); diff --git a/sys/dev/ena/ena.h b/sys/dev/ena/ena.h index dd7ec39d87db..f6711439b633 100644 --- a/sys/dev/ena/ena.h +++ b/sys/dev/ena/ena.h @@ -151,8 +151,8 @@ struct msix_entry { }; typedef struct _ena_vendor_info_t { - unsigned int vendor_id; - unsigned int device_id; + uint16_t vendor_id; + uint16_t device_id; unsigned int index; } ena_vendor_info_t;