Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2010 17:03:20 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r203884 - head/sys/ia64/include
Message-ID:  <201002141703.o1EH3KFk031091@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002141703.o1EH3KFk031091>