|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
CVS: cvs.openbsd.org: src
From: Marc Balmer (mbalmer
cvs.openbsd.org)
Date: Tue Jan 02 2007 - 13:22:38 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
CVSROOT: /cvs
Module name: src
Changes by: mbalmer
cvs.openbsd.org 2007/01/02 12:22:38
Modified files:
sys/dev/pci : pcivar.h pci_subr.c
Log message:
Provide a new function, pci_findproduct(), which is analog to pci_findvendor().
Use these two functions in pci_devinfo() to remove some duplicated code and
make it easier to read. Remove two now unused variables. This shrinks the
size of the resulting object code.
Drivers (or other kernel code) can now get at the PCI vendor and/or product
strings using pci_findvendor() and pci_findproduct().
ok claudio, deraadt, mglocker
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]