merge ROS Shell without integrated explorer part into trunk
[reactos.git] / reactos / drivers / bus / acpi / include / platform / aclinux.h
1 /******************************************************************************
2 *
3 * Name: aclinux.h - OS specific defines, etc.
4 * $Revision: 1.1 $
5 *
6 *****************************************************************************/
7
8 /*
9 * Copyright (C) 2000, 2001 R. Byron Moore
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 */
25
26 #ifndef __ACLINUX_H__
27 #define __ACLINUX_H__
28
29 #define ACPI_OS_NAME "Linux"
30
31 #undef ACPI_USE_SYSTEM_CLIBRARY
32
33 #ifdef __KERNEL__
34
35 #include <linux/config.h>
36 #include <linux/string.h>
37 #include <linux/kernel.h>
38 #include <linux/ctype.h>
39 #include <asm/system.h>
40 #include <asm/atomic.h>
41 #include <asm/div64.h>
42
43 #else
44
45 #include <stdarg.h>
46
47 #endif
48
49 /* Linux uses GCC */
50
51 #include "acgcc.h"
52
53 #undef DEBUGGER_THREADING
54 #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
55
56 #ifndef _IA64
57 /* Linux ia32 can't do int64 well */
58 #define ACPI_NO_INTEGER64_SUPPORT
59 /* And the ia32 kernel doesn't include 64-bit divide support */
60 #define ACPI_DIV64(dividend, divisor) do_div(dividend, divisor)
61 #else
62 #define ACPI_DIV64(dividend, divisor) ACPI_DIVIDE(dividend, divisor)
63 #endif
64
65
66 #endif /* __ACLINUX_H__ */