svn commit: r203884 - head/sys/ia64/include

Marcel Moolenaar marcel at FreeBSD.org
Sun Feb 14 17:03:20 UTC 2010


Author: marcel
Date: Sun Feb 14 17:03:20 2010
New Revision: 203884
URL: http://svn.freebsd.org/changeset/base/203884

Log:
  Some code cleanups:
  o   s/u_int32_t/uint32_t/g
  o   Add multiple-inclusion protection.
  o   Break long lines.

Modified:
  head/sys/ia64/include/pci_cfgreg.h

Modified: head/sys/ia64/include/pci_cfgreg.h
==============================================================================
--- head/sys/ia64/include/pci_cfgreg.h	Sun Feb 14 16:56:24 2010	(r203883)
+++ head/sys/ia64/include/pci_cfgreg.h	Sun Feb 14 17:03:20 2010	(r203884)
@@ -1,4 +1,5 @@
 /*-
+ * Copyright (c) 2010 Marcel Moolenaar <marcel at FreeBSD.org>
  * Copyright (c) 1997, Stefan Esser <se at 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_ */


More information about the svn-src-head mailing list