# Support for compressed pci.ids (yes/no, default: detect)
ZLIB=
-# Support for resolving ID's by DNS (yes/no, default: detect)
+# Support for resolving IDs by DNS (yes/no, default: detect)
DNS=
# Build libpci as a shared library (yes/no; or local for testing; requires GCC)
#define PCI_CLASS_OTHERS 0xff
-/* Several ID's we need in the library */
+/* Several IDs we need in the library */
#define PCI_VENDOR_ID_INTEL 0x8086
#define PCI_VENDOR_ID_COMPAQ 0x0e11
static void
pci_init_dns(struct pci_access *a)
{
- pci_define_param(a, "net.domain", PCI_ID_DOMAIN, "DNS domain used for resolving of ID's");
+ pci_define_param(a, "net.domain", PCI_ID_DOMAIN, "DNS domain used for resolving of IDs");
a->id_lookup_mode = PCI_LOOKUP_CACHE;
char *cache_dir = getenv("XDG_CACHE_HOME");
/*
- * The PCI Library -- Resolving ID's via DNS
+ * The PCI Library -- Resolving IDs via DNS
*
* Copyright (c) 2007--2008 Martin Mares <mj@ucw.cz>
*
int pci_filter_match(struct pci_filter *, struct pci_dev *) PCI_ABI;
/*
- * Conversion of PCI ID's to names (according to the pci.ids file)
+ * Conversion of PCI IDs to names (according to the pci.ids file)
*
- * Call pci_lookup_name() to identify different types of ID's:
+ * Call pci_lookup_name() to identify different types of IDs:
*
* VENDOR (vendorID) -> vendor
* DEVICE (vendorID, deviceID) -> device
PCI_LOOKUP_NUMERIC = 0x10000, /* Want only formatted numbers; default if access->numeric_ids is set */
PCI_LOOKUP_NO_NUMBERS = 0x20000, /* Return NULL if not found in the database; default is to print numerically */
PCI_LOOKUP_MIXED = 0x40000, /* Include both numbers and names */
- PCI_LOOKUP_NETWORK = 0x80000, /* Try to resolve unknown ID's by DNS */
+ PCI_LOOKUP_NETWORK = 0x80000, /* Try to resolve unknown IDs by DNS */
PCI_LOOKUP_SKIP_LOCAL = 0x100000, /* Do not consult local database */
PCI_LOOKUP_CACHE = 0x200000, /* Consult the local cache before using DNS */
PCI_LOOKUP_REFRESH_CACHE = 0x400000, /* Forget all previously cached entries, but still allow updating the cache */
"-P\t\tDisplay bridge path in addition to bus and device number\n"
"-PP\t\tDisplay bus path in addition to bus and device number\n"
"\n"
-"Resolving of device ID's to names:\n"
-"-n\t\tShow numeric ID's\n"
-"-nn\t\tShow both textual and numeric ID's (names & numbers)\n"
+"Resolving of device IDs to names:\n"
+"-n\t\tShow numeric IDs\n"
+"-nn\t\tShow both textual and numeric IDs (names & numbers)\n"
#ifdef PCI_USE_DNS
-"-q\t\tQuery the PCI ID database for unknown ID's via DNS\n"
+"-q\t\tQuery the PCI ID database for unknown IDs via DNS\n"
"-qq\t\tAs above, but re-query locally cached entries\n"
-"-Q\t\tQuery the PCI ID database for all ID's via DNS\n"
+"-Q\t\tQuery the PCI ID database for all IDs via DNS\n"
#endif
"\n"
"Selection of devices:\n"
"-s [[[[<domain>]:]<bus>]:][<slot>][.[<func>]]\tShow only devices in selected slots\n"
-"-d [<vendor>]:[<device>][:<class>]\t\tShow only devices with specified ID's\n"
+"-d [<vendor>]:[<device>][:<class>]\t\tShow only devices with specified IDs\n"
"\n"
"Other options:\n"
"-i <file>\tUse specified ID database instead of %s\n"
Identify PCI devices by path through each bridge, showing the bus number as
well as the device number.
-.SS Options to control resolving ID's to names
+.SS Options to control resolving IDs to names
.TP
.B -n
Show PCI vendor and device codes as numbers instead of looking them up in the
.TP
.B -d [<vendor>]:[<device>][:<class>[:<prog-if>]]
Show only devices with specified vendor, device, class ID, and programming interface.
-The ID's are given in hexadecimal and may be omitted or given as "*", both meaning
+The IDs are given in hexadecimal and may be omitted or given as "*", both meaning
"any value". The class ID can contain "x" characters which stand for "any digit".
.SS Other options
Use
.B
<file>
-as the map of PCI ID's handled by kernel modules. By default, lspci uses
+as the map of PCI IDs handled by kernel modules. By default, lspci uses
.RI /lib/modules/ kernel_version /modules.pcimap.
Applies only to Linux systems with recent enough module tools.
.TP
between versions of lspci.
.P
-All numbers are always printed in hexadecimal. If you want to process numeric ID's instead of
+All numbers are always printed in hexadecimal. If you want to process numeric IDs instead of
names, please add the
.B -n
switch.
.SH FILES
.TP
.B @IDSDIR@/pci.ids
-A list of all known PCI ID's (vendors, devices, classes and subclasses). Maintained
+A list of all known PCI IDs (vendors, devices, classes and subclasses). Maintained
at https://pci-ids.ucw.cz/, use the
.B update-pciids
utility to download the most recent version.
If lspci is compiled with support for compression, this file is tried before pci.ids.
.TP
.B $XDG_CACHE_HOME/pci-ids
-All ID's found in the DNS query mode are cached in this file.
+All IDs found in the DNS query mode are cached in this file.
.SH BUGS
only builds a read-only virtual emulated config space with information from the
Configuration Manager.
-.SS Parameters for resolving of ID's via DNS
+.SS Parameters for resolving of IDs via DNS
.TP
.B net.domain
DNS domain containing the ID database.
.TP
.B net.cache_name
-Name of the file used for caching of resolved ID's. An initial
+Name of the file used for caching of resolved IDs. An initial
.B ~/
is expanded to the user's home directory.
-.SS Parameters for resolving of ID's via UDEV's HWDB
+.SS Parameters for resolving of IDs via UDEV's HWDB
.TP
.B hwdb.disable
Disable use of HWDB if set to a non-zero value.
.TP
.B -d [<vendor>]:[<device>][:<class>[:<prog-if>]]
Select devices with specified vendor, device, class ID, and programming interface.
-The ID's are given in hexadecimal and may be omitted or given as "*", both meaning
+The IDs are given in hexadecimal and may be omitted or given as "*", both meaning
"any value". The class ID can contain "x" characters which stand for "any digit".
.PP
When