1/******************************************************************************
2 *
3 * Name: acfreebsd.h - OS specific defines, etc.
4 * $Revision: 11 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp.
13 * All rights reserved.
14 *
15 * 2. License
16 *
17 * 2.1. This is your license from Intel Corp. under its intellectual property
18 * rights. You may have additional license terms from the party that provided
19 * you this software, covering your right to use that party's intellectual
20 * property rights.
--- 92 unchanged lines hidden (view full) ---
113 * such license, approval or letter.
114 *
115 *****************************************************************************/
116
117#ifndef __ACFREEBSD_H__
118#define __ACFREEBSD_H__
119
120/*
121 * XXX this is technically correct, but will cause problems with some ASL
122 * which only works if the string names a Microsoft operating system.
123 */
124#define ACPI_OS_NAME "FreeBSD"
125
126/* FreeBSD uses GCC */
127
128#include "acgcc.h"
129#include <machine/acpica_machdep.h>
130
131#ifdef _KERNEL
132#include <sys/ctype.h>
133#include <sys/param.h>
134#include <sys/systm.h>
135#include <sys/libkern.h>
136#include <machine/stdarg.h>
137
138#define asm __asm
139#define __cli() disable_intr()
140#define __sti() enable_intr()
141
142#ifdef ACPI_DEBUG_OUTPUT
143#ifdef DEBUGGER_THREADING
144#undef DEBUGGER_THREADING
145#endif /* DEBUGGER_THREADING */
146#define DEBUGGER_THREADING 0 /* integrated with DDB */
147#include "opt_ddb.h"
148#ifdef DDB
149#define ACPI_DEBUGGER
150#endif /* DDB */
151#endif /* ACPI_DEBUG_OUTPUT */
152
153#else /* _KERNEL */
154
155/* Not building kernel code, so use libc */
156#define ACPI_USE_STANDARD_HEADERS
157
158#define __cli()
159#define __sti()
160
161#endif /* _KERNEL */
162
163/* Always use FreeBSD code over our local versions */
164#define ACPI_USE_SYSTEM_CLIBRARY
--- 36 unchanged lines hidden ---
2 *
3 * Name: acfreebsd.h - OS specific defines, etc.
4 * $Revision: 11 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp.
13 * All rights reserved.
14 *
15 * 2. License
16 *
17 * 2.1. This is your license from Intel Corp. under its intellectual property
18 * rights. You may have additional license terms from the party that provided
19 * you this software, covering your right to use that party's intellectual
20 * property rights.
--- 92 unchanged lines hidden (view full) ---
113 * such license, approval or letter.
114 *
115 *****************************************************************************/
116
117#ifndef __ACFREEBSD_H__
118#define __ACFREEBSD_H__
119
120/*
121 * XXX this is technically correct, but will cause problems with some ASL
122 * which only works if the string names a Microsoft operating system.
123 */
124#define ACPI_OS_NAME "FreeBSD"
125
126/* FreeBSD uses GCC */
127
128#include "acgcc.h"
129#include <machine/acpica_machdep.h>
130
131#ifdef _KERNEL
132#include <sys/ctype.h>
133#include <sys/param.h>
134#include <sys/systm.h>
135#include <sys/libkern.h>
136#include <machine/stdarg.h>
137
138#define asm __asm
139#define __cli() disable_intr()
140#define __sti() enable_intr()
141
142#ifdef ACPI_DEBUG_OUTPUT
143#ifdef DEBUGGER_THREADING
144#undef DEBUGGER_THREADING
145#endif /* DEBUGGER_THREADING */
146#define DEBUGGER_THREADING 0 /* integrated with DDB */
147#include "opt_ddb.h"
148#ifdef DDB
149#define ACPI_DEBUGGER
150#endif /* DDB */
151#endif /* ACPI_DEBUG_OUTPUT */
152
153#else /* _KERNEL */
154
155/* Not building kernel code, so use libc */
156#define ACPI_USE_STANDARD_HEADERS
157
158#define __cli()
159#define __sti()
160
161#endif /* _KERNEL */
162
163/* Always use FreeBSD code over our local versions */
164#define ACPI_USE_SYSTEM_CLIBRARY
--- 36 unchanged lines hidden ---