[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: CVS: cvs.openbsd.org: src
- From: Marc Balmer <mbalmer_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
- Date: Tue, 2 Jan 2007 12:22:38 -0700 (MST)
CVSROOT: /cvs
Module name: src
Changes by: mbalmer_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_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
Visit your host, monkey.org