diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-12 19:48:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-12 19:48:54 +0000 |
commit | a2b4a748480fc294137e97f81d1a90f14195bcbd (patch) | |
tree | 41ef9f50a686307e7349f0b4365ec04c8208c5db /usr.sbin/pcidump | |
parent | b950aab1f54fc458dcad8528a35c7e8aa71f85eb (diff) |
missing protos and an unused variable
Diffstat (limited to 'usr.sbin/pcidump')
-rw-r--r-- | usr.sbin/pcidump/pcidump.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/pcidump/pcidump.c b/usr.sbin/pcidump/pcidump.c index 9716227cafa..3e601011d62 100644 --- a/usr.sbin/pcidump/pcidump.c +++ b/usr.sbin/pcidump/pcidump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcidump.c,v 1.34 2013/08/30 06:46:39 jsg Exp $ */ +/* $OpenBSD: pcidump.c,v 1.35 2013/11/12 19:48:53 deraadt Exp $ */ /* * Copyright (c) 2006, 2007 David Gwynne <loki@animata.net> @@ -54,6 +54,10 @@ void print_pcie_ls(uint8_t); int dump_rom(int, int, int); int dump_vga_bios(void); +void dump_type0(int bus, int dev, int func); +void dump_type1(int bus, int dev, int func); +void dump_type2(int bus, int dev, int func); + __dead void usage(void) { @@ -296,7 +300,7 @@ void dump_pcie_linkspeed(int bus, int dev, int func, uint8_t ptr) { u_int32_t lcap, sreg, lcap2 = 0, xcap; - u_int8_t cap, cwidth, cspeed, swidth, sspeed; + u_int8_t cwidth, cspeed, swidth, sspeed; if (pci_read(bus, dev, func, ptr + PCI_PCIE_XCAP, &xcap) != 0) return; |