summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2010-02-14 17:03:20 +0000
committermarcel <marcel@FreeBSD.org>2010-02-14 17:03:20 +0000
commitfa7b6a95c41b8916d478743256c687afe4fce54f (patch)
tree966ddc63943e1094caf8d8f18ab47b8ec07330b9 /sys/ia64/include
parentd64c132e246c63213bfdfdc38c07d59eb413b25b (diff)
downloadFreeBSD-src-fa7b6a95c41b8916d478743256c687afe4fce54f.zip
FreeBSD-src-fa7b6a95c41b8916d478743256c687afe4fce54f.tar.gz
Some code cleanups:
o s/u_int32_t/uint32_t/g o Add multiple-inclusion protection. o Break long lines.
Diffstat (limited to 'sys/ia64/include')
-rw-r--r--sys/ia64/include/pci_cfgreg.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/ia64/include/pci_cfgreg.h b/sys/ia64/include/pci_cfgreg.h
index b4d2702..a0bc6e1 100644
--- a/sys/ia64/include/pci_cfgreg.h
+++ b/sys/ia64/include/pci_cfgreg.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2010 Marcel Moolenaar <marcel@FreeBSD.org>
* Copyright (c) 1997, Stefan Esser <se@freebsd.org>
* All rights reserved.
*
@@ -24,9 +25,14 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $FreeBSD$
- *
*/
-extern int pci_cfgregopen(void);
-extern u_int32_t pci_cfgregread(int bus, int slot, int func, int reg, int bytes);
-extern void pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_t data, int bytes);
+#ifndef _MACHINE_PCI_CFGREG_H_
+#define _MACHINE_PCI_CFGREG_H_
+
+int pci_cfgregopen(void);
+uint32_t pci_cfgregread(int bus, int slot, int func, int reg, int len);
+void pci_cfgregwrite(int bus, int slot, int func, int reg, uint32_t data,
+ int bytes);
+
+#endif /* _MACHINE_PCI_CFGREG_H_ */
OpenPOWER on IntegriCloud