summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2005-07-10 17:24:19 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2005-07-10 17:24:19 +0000
commit46c05ee939fd7017d86ee23bc2f1a9b37f1d8615 (patch)
treef9171675319cda0fb08a98c3735e56f1c3bf41e4 /sys/dev
parent8c9c2450a1368bc135be1cb09a0bc30d11a68b50 (diff)
Protect from multiple inclusion.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/acpireg.h7
-rw-r--r--sys/dev/acpi/acpivar.h7
-rw-r--r--sys/dev/acpi/hpetreg.h7
3 files changed, 18 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpireg.h b/sys/dev/acpi/acpireg.h
index 9b3c965ffe8..93eb12f7986 100644
--- a/sys/dev/acpi/acpireg.h
+++ b/sys/dev/acpi/acpireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpireg.h,v 1.1 2005/06/02 20:09:39 tholo Exp $ */
+/* $OpenBSD: acpireg.h,v 1.2 2005/07/10 17:24:18 grange Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -15,6 +15,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef _DEV_ACPI_ACPIREG_H_
+#define _DEV_ACPI_ACPIREG_H_
+
/* Root System Descriptor Pointer */
struct acpi_rsdp1 {
u_int8_t signature[8];
@@ -426,3 +429,5 @@ struct acpi_facs {
#define ACPI_PM1_BM_RLD 0x0002
#define ACPI_PM1_GBL_RLS 0x0004
#define ACPI_PM1_SLP_EN 0x2000
+
+#endif /* !_DEV_ACPI_ACPIREG_H_ */
diff --git a/sys/dev/acpi/acpivar.h b/sys/dev/acpi/acpivar.h
index b654a45bba4..5065706cad5 100644
--- a/sys/dev/acpi/acpivar.h
+++ b/sys/dev/acpi/acpivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpivar.h,v 1.1 2005/06/02 20:09:39 tholo Exp $ */
+/* $OpenBSD: acpivar.h,v 1.2 2005/07/10 17:24:18 grange Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -15,6 +15,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef _DEV_ACPI_ACPIVAR_H_
+#define _DEV_ACPI_ACPIVAR_H_
+
#include <sys/timeout.h>
struct klist;
@@ -109,3 +112,5 @@ void acpi_attach_machdep(struct acpi_softc *);
int acpi_interrupt(void *);
void acpi_enter_sleep_state(struct acpi_softc *, int);
#endif
+
+#endif /* !_DEV_ACPI_ACPIVAR_H_ */
diff --git a/sys/dev/acpi/hpetreg.h b/sys/dev/acpi/hpetreg.h
index 7c5bae72a82..a94d7eecb80 100644
--- a/sys/dev/acpi/hpetreg.h
+++ b/sys/dev/acpi/hpetreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: hpetreg.h,v 1.1 2005/06/02 20:09:39 tholo Exp $ */
+/* $OpenBSD: hpetreg.h,v 1.2 2005/07/10 17:24:18 grange Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -15,6 +15,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef _DEV_ACPI_HPETREG_H_
+#define _DEV_ACPI_HPETREG_H_
+
#define HPET_REG_SIZE 1024
#define HPET_CAPABILITIES 0x000
@@ -30,3 +33,5 @@
#define HPET_TIMER2_CONFIG 0x400
#define HPET_TIMER2_COMPARE 0x408
#define HPET_TIMER2_INTERRUPT 0x510
+
+#endif /* !_DEV_ACPI_HPETREG_H_ */