summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pciconf
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2005-08-18 11:04:49 +0000
committerdes <des@FreeBSD.org>2005-08-18 11:04:49 +0000
commit208685f8882a7f457fb00a5a61b16bf763d2a8f3 (patch)
tree7001fff224c73e87625907fb745864f28b190031 /usr.sbin/pciconf
parentb2a592be598990a1f620d5338cf6ed992b5519a2 (diff)
downloadFreeBSD-src-208685f8882a7f457fb00a5a61b16bf763d2a8f3.zip
FreeBSD-src-208685f8882a7f457fb00a5a61b16bf763d2a8f3.tar.gz
Whitespace cleanup.
Diffstat (limited to 'usr.sbin/pciconf')
-rw-r--r--usr.sbin/pciconf/pciconf.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c
index c36c692..828eb85 100644
--- a/usr.sbin/pciconf/pciconf.c
+++ b/usr.sbin/pciconf/pciconf.c
@@ -12,7 +12,7 @@
* no representations about the suitability of this software for any
* purpose. It is provided "as is" without express or implied
* warranty.
- *
+ *
* THIS SOFTWARE IS PROVIDED BY M.I.T. ``AS IS''. M.I.T. DISCLAIMS
* ALL EXPRESS OR IMPLIED WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
@@ -47,7 +47,7 @@ static const char rcsid[] =
#include "pathnames.h"
-struct pci_device_info
+struct pci_device_info
{
TAILQ_ENTRY(pci_device_info) link;
int id;
@@ -108,7 +108,7 @@ main(int argc, char **argv)
case 'r':
readmode = 1;
break;
-
+
case 'w':
writemode = 1;
break;
@@ -139,16 +139,16 @@ main(int argc, char **argv)
if (listmode) {
list_devs(verbose);
} else if (attachedmode) {
- chkattached(argv[optind],
+ chkattached(argv[optind],
byte ? 1 : isshort ? 2 : 4);
} else if (readmode) {
- readit(argv[optind], argv[optind + 1],
+ readit(argv[optind], argv[optind + 1],
byte ? 1 : isshort ? 2 : 4);
} else if (writemode) {
writeit(argv[optind], argv[optind + 1], argv[optind + 2],
byte ? 1 : isshort ? 2 : 4);
} else {
- usage();
+ usage();
}
return exitstatus;
@@ -199,12 +199,12 @@ list_devs(int verbose)
for (p = conf; p < &conf[pc.num_matches]; p++) {
printf("%s%d@pci%d:%d:%d:\tclass=0x%06x card=0x%08x "
- "chip=0x%08x rev=0x%02x hdr=0x%02x\n",
+ "chip=0x%08x rev=0x%02x hdr=0x%02x\n",
(p->pd_name && *p->pd_name) ? p->pd_name :
"none",
(p->pd_name && *p->pd_name) ? (int)p->pd_unit :
none_count++,
- p->pc_sel.pc_bus, p->pc_sel.pc_dev,
+ p->pc_sel.pc_bus, p->pc_sel.pc_dev,
p->pc_sel.pc_func, (p->pc_class << 16) |
(p->pc_subclass << 8) | p->pc_progif,
(p->pc_subdevice << 16) | p->pc_subvendor,
@@ -224,7 +224,7 @@ list_verbose(struct pci_conf *p)
struct pci_vendor_info *vi;
struct pci_device_info *di;
char *dp;
-
+
TAILQ_FOREACH(vi, &pci_vendors, link) {
if (vi->id == p->pc_vendor) {
printf(" vendor = '%s'\n", vi->desc);
@@ -313,7 +313,7 @@ static struct
{PCIC_PROCESSOR, -1, "processor"},
{PCIC_SERIALBUS, -1, "serial bus"},
{PCIC_SERIALBUS, PCIS_SERIALBUS_FW, "FireWire"},
- {PCIC_SERIALBUS, PCIS_SERIALBUS_ACCESS, "AccessBus"},
+ {PCIC_SERIALBUS, PCIS_SERIALBUS_ACCESS, "AccessBus"},
{PCIC_SERIALBUS, PCIS_SERIALBUS_SSA, "SSA"},
{PCIC_SERIALBUS, PCIS_SERIALBUS_USB, "USB"},
{PCIC_SERIALBUS, PCIS_SERIALBUS_FC, "Fibre Channel"},
@@ -411,7 +411,7 @@ load_vendors(void)
TAILQ_INSERT_TAIL(&pci_vendors, cv, link);
continue;
}
-
+
/* Check for device entry */
if ((buf[0] == '\t') && (sscanf(buf + 1, "%04x\t%[^\n]", &id, str) == 2)) {
if ((id == 0) || (strlen(str) < 1))
@@ -441,7 +441,7 @@ load_vendors(void)
if (ferror(db))
error = 1;
fclose(db);
-
+
return(error);
}
@@ -516,7 +516,7 @@ readit(const char *name, const char *reg, int width)
rend = strtol(end, (char **) 0, 0);
}
sel = getsel(name);
- for (i = 1, r = rstart; r <= rend; i++, r += width) {
+ for (i = 1, r = rstart; r <= rend; i++, r += width) {
readone(fd, &sel, r, width);
if (i && !(i % 8)) putchar(' ');
putchar(i % (16/width) ? ' ' : '\n');
OpenPOWER on IntegriCloud