diff options
author | imp <imp@FreeBSD.org> | 2003-02-18 03:25:57 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-02-18 03:25:57 +0000 |
commit | 760ee1ddda9dae788653ae8c1641fc0c3ce61814 (patch) | |
tree | c7ef6d5ca86bb57c6c45771e19beb0238848ce37 | |
parent | 1b0d82cc2b7e127cbb9549efbfec990108019568 (diff) | |
download | FreeBSD-src-760ee1ddda9dae788653ae8c1641fc0c3ce61814.zip FreeBSD-src-760ee1ddda9dae788653ae8c1641fc0c3ce61814.tar.gz |
Include class designation in pnpinfo for generic driver loading
-rw-r--r-- | sys/dev/pci/pci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 39ab54c..130bf3c 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -1416,8 +1416,9 @@ pci_child_pnpinfo_str_method(device_t cbdev, device_t child, char *buf, dinfo = device_get_ivars(child); cfg = &dinfo->cfg; snprintf(buf, buflen, "vendor=0x%04x device=0x%04x subvendor=0x%04x " - "subdevice=0x%04x", cfg->vendor, cfg->device, cfg->subvendor, - cfg->subdevice); + "subdevice=0x%04x class=0x%02x%02x%02x", cfg->vendor, cfg->device, + cfg->subvendor, cfg->subdevice, cfg->baseclass, cfg->subclass, + cfg->progif); return (0); } |