Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145978818
D12488.id33393.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D12488.id33393.diff
View Options
Index: sys/dev/bnxt/if_bnxt.c
===================================================================
--- sys/dev/bnxt/if_bnxt.c
+++ sys/dev/bnxt/if_bnxt.c
@@ -243,6 +243,8 @@
MODULE_DEPEND(bnxt, ether, 1, 1, 1);
MODULE_DEPEND(bnxt, iflib, 1, 1, 1);
+IFLIB_PNP_INFO(pci, bnxt, bnxt_vendor_info_array);
+
static device_method_t bnxt_iflib_methods[] = {
DEVMETHOD(ifdi_tx_queues_alloc, bnxt_tx_queues_alloc),
DEVMETHOD(ifdi_rx_queues_alloc, bnxt_rx_queues_alloc),
Index: sys/dev/drm/drmP.h
===================================================================
--- sys/dev/drm/drmP.h
+++ sys/dev/drm/drmP.h
@@ -321,7 +321,7 @@
{
int vendor;
int device;
- long driver_private;
+ intptr_t driver_private;
char *name;
} drm_pci_id_list_t;
Index: sys/dev/drm2/i915/i915_drv.c
===================================================================
--- sys/dev/drm2/i915/i915_drv.c
+++ sys/dev/drm2/i915/i915_drv.c
@@ -1236,6 +1236,8 @@
MODULE_DEPEND(i915kms, iicbus, 1, 1, 1);
MODULE_DEPEND(i915kms, iic, 1, 1, 1);
MODULE_DEPEND(i915kms, iicbb, 1, 1, 1);
+MODULE_PNP_INFO("U32:vendor;U32:device;P;D:human", vgapci, i915, pciidlist,
+ sizeof(pciidlist[0]), nitems(pciidlist));
/* We give fast paths for the really cool registers */
#define NEEDS_FORCE_WAKE(dev_priv, reg) \
Index: sys/dev/drm2/radeon/radeon_drv.c
===================================================================
--- sys/dev/drm2/radeon/radeon_drv.c
+++ sys/dev/drm2/radeon/radeon_drv.c
@@ -401,3 +401,5 @@
MODULE_DEPEND(radeonkms, iic, 1, 1, 1);
MODULE_DEPEND(radeonkms, iicbb, 1, 1, 1);
MODULE_DEPEND(radeonkms, firmware, 1, 1, 1);
+MODULE_PNP_INFO("U32:vendor;U32:device;P;D:human", vgapci, radeonkms,
+ pciidlist, sizeof(pciidlist[0]), nitems(pciidlist));
Index: sys/dev/e1000/if_em.c
===================================================================
--- sys/dev/e1000/if_em.c
+++ sys/dev/e1000/if_em.c
@@ -339,6 +339,8 @@
MODULE_DEPEND(em, ether, 1, 1, 1);
MODULE_DEPEND(em, iflib, 1, 1, 1);
+IFLIB_PNP_INFO(pci, em, em_vendor_info_array);
+
static driver_t igb_driver = {
"igb", igb_methods, sizeof(struct adapter),
};
@@ -350,6 +352,7 @@
MODULE_DEPEND(igb, ether, 1, 1, 1);
MODULE_DEPEND(igb, iflib, 1, 1, 1);
+IFLIB_PNP_INFO(pci, igb, igb_vendor_info_array);
static device_method_t em_if_methods[] = {
DEVMETHOD(ifdi_attach_pre, em_if_attach_pre),
Index: sys/net/iflib.h
===================================================================
--- sys/net/iflib.h
+++ sys/net/iflib.h
@@ -173,6 +173,11 @@
#define PVID_OEM(vendor, devid, svid, sdevid, revid, name) {vendor, devid, svid, sdevid, revid, 0, name}
#define PVID_END {0, 0, 0, 0, 0, 0, NULL}
+#define IFLIB_PNP_DESCR "U32:vendor;U32:device;U32:subvendor;U32:subdevice;" \
+ "U32:revision;U32:class;D:human"
+#define IFLIB_PNP_INFO(b, u, t) \
+ MODULE_PNP_INFO(IFLIB_PNP_DESCR, b, u, t, sizeof(t[0]), nitems(t))
+
typedef struct if_txrx {
int (*ift_txd_encap) (void *, if_pkt_info_t);
void (*ift_txd_flush) (void *, uint16_t, qidx_t pidx);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 27, 5:34 PM (3 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29037406
Default Alt Text
D12488.id33393.diff (2 KB)
Attached To
Mode
D12488: Add PNP metadata to more drivers
Attached
Detach File
Event Timeline
Log In to Comment