summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pcivar.h
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2002-01-10 00:56:02 +0000
committermdodd <mdodd@FreeBSD.org>2002-01-10 00:56:02 +0000
commit2fc9c4563aec4d68e1438f96a23fe9e3ce39a42b (patch)
treec616ef2c952addbd30c94db9a417e370378a3729 /sys/dev/pci/pcivar.h
parentcaa458225bdcfc1a2ca4b7b7ce49ce458677a30f (diff)
downloadFreeBSD-src-2fc9c4563aec4d68e1438f96a23fe9e3ce39a42b.zip
FreeBSD-src-2fc9c4563aec4d68e1438f96a23fe9e3ce39a42b.tar.gz
Implement 2 small helper functions:
pci_find_bsf() - Find a device_t by bus/slot/function. pci_find_device() - Find a device_t by vendor/device ID.
Diffstat (limited to 'sys/dev/pci/pcivar.h')
-rw-r--r--sys/dev/pci/pcivar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index 3fc06c7..432f885 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -308,6 +308,8 @@ pci_get_powerstate(device_t dev)
return PCI_GET_POWERSTATE(device_get_parent(dev), dev);
}
+device_t pci_find_bsf(u_int8_t, u_int8_t, u_int8_t);
+device_t pci_find_device(u_int16_t, u_int16_t);
#endif /* _SYS_BUS_H_ */
/*
OpenPOWER on IntegriCloud