| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Trim trailing whitespace and comments before parsing, and skip empty lines.
Skip subvendor / subdevice entries (which start with two tab characters).
Change the scanf() format string to match any amount and type of whitespace
between the device ID and the description text.
MFC after: 3 weeks
|
| |
|
|
|
|
| |
Reviewed by: imp (almost 6 months ago)
|
| |
|
|
|
|
|
| |
Additionally, since this file is written in C and not in Perl,
we need 'continue' instead of 'next'.
|
|
|
|
| |
(with permission of addtional copyright holders where appropriate)
|
|
|
|
|
|
| |
in pciconf are limited to the superuser.
Requested by: ru
|
|
|
|
|
|
|
|
| |
and list_verbose(), so don't open /dev/pci read-write. This allows
pciconf -l[v] to work for non-root users, assuming the securelevel is
0 or -1.
Problem experienced by: William Michael Grim <wgrim@siue.edu>
|
|
|
|
|
|
|
|
| |
pciconf -r none8@pci1:12:2: 0x0
now works.
PR: bin/10312
Submitted by: Castor Fu
|
|
|
|
| |
Approved by: re (blanket)
|
|
|
|
| |
Noticed by: sheldonh
|
|
|
|
|
| |
PR: 43678
Submitted by: ru
|
|
|
|
|
|
|
|
| |
synopsis, and the man page description ("selector" vs. "sel" and
"addr" vs. "reg").
Fix the usage message and man page synopsis to show that the "value"
argument is not optional.
|
| |
|
| |
|
| |
|
|
|
|
| |
actual program.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
eg pciconf -r pci0:10:0 0:0xff
and keep the output of the old singleton the same.
Reviewed by: audit@, dd
MFC after: 10 days
|
| |
|
|
|
|
| |
- MAN[1-9] -> MAN.
|
| |
|
| |
|
|
|
|
|
|
|
| |
- Read the database from /usr/share/misc (or wherever else we're pointed)
rather than compiling it in.
- Decode the class/subclass fields if requested.
- Print things in a slightly longer but more readable format.
|
| |
|
| |
|
|
|
|
|
|
| |
database of about 1400 vendors and 2700 devices courtesy of
www.yourvote.com/pci. We still need to add some more, but this is a good
start.
|
|
|
|
|
| |
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
background ]
Rename sys/pci/pci_ioctl.h to sys/sys/pciio.h to make it easier for
userland programs to use this interface. Reformat the file, and add a
BSD-style copyright to it.
Add a new man page for pci(4). The PCIOCGETCONF, PCIOCREAD, and PCIOCWRITE
ioctls are documented, but the PCIOCATTACHED ioctl is not documented
because it is not implemented.
Change includes of <pci/pci_ioctl.h> to <sys/pciio.h> or remove them
altogether. In many cases, pci_ioctl.h was unused.
Reviewed by: steve
|
|
|
|
| |
Do not start warn() message with uppercase.
|
| |
|
|
|
|
|
|
|
| |
Before:
isab0@pci0:8:0: class=0x060100 card=0x00000000 chip=0xffffffffc6931080 ...
After:
isab0@pci0:8:0: class=0x060100 card=0x00000000 chip=0xc6931080 ...
|
|
|
|
| |
Submitted by: Nathan Ahlstrom <nrahlstr@winternet.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
configured in the kernel. It gives them a device name of "none" and
monotonically incrementing unit numbers. (starting at 0) Before, pciconf
would just skip over unconfigured devices. (unconfigured devices can be
detected because they have a null string for a device name)
Update the man page to reflect the new pciconf output. Unfortunately, this
causes the sample 'pciconf -l' output lines to wrap, but I'm not sure what
to do about that really.
If anyone presents a reasonable case for printing out something other than
"none1" for unconfigured devices, I'm willing to listen.
|
|
|
|
| |
Submitted by: "Kenneth D. Merry" <ken@plutotech.com>
|
| |
|
|
|
|
|
|
| |
CFLAGS=+-I${.CURDIR}/../../sys -> CFLAGS+= -I${.CURDIR}/../../sys
Asked about on BSDnet:#FreeBSD by: philw@dream.webmaster.com (Phillip White)
|
|
|
|
| |
Unfortunately, Makefile is not included in .depend.
|
| |
|
|
|
|
| |
posix standard on the topic.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
documentation on the ioctl() interface provided by /dev/pci ...
Reviewed by: wollman
|
|
|
|
| |
to a device.
|