/****************************************************************************** * * Name: aclinux.h - OS specific defines, etc. * $Revision: 1.1 $ * *****************************************************************************/ /* * Copyright (C) 2000, 2001 R. Byron Moore * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef __ACWIN_H__ #define __ACWIN_H__ #define ACPI_OS_NAME "ReactOS" #define DEFINE_ALTERNATE_TYPES #undef ACPI_USE_SYSTEM_CLIBRARY #ifdef __KERNEL__ #include #include #include #include #include #include #include #else #include #endif /* ReactOS uses GCC */ #include "acgcc.h" #undef disable #define disable() __asm__("cli\n\t"); #undef enable #define enable() __asm__("sti\n\t"); #undef DEBUGGER_THREADING #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED #ifndef _IA64 /* Linux ia32 can't do int64 well */ #define ACPI_NO_INTEGER64_SUPPORT /* And the ia32 kernel doesn't include 64-bit divide support */ #define ACPI_DIV64(dividend, divisor) do_div(dividend, divisor) #else #define ACPI_DIV64(dividend, divisor) ACPI_DIVIDE(dividend, divisor) #endif #endif /* __ACWIN_H__ */