1433d6423SLionel Sambuc /****************************************************************************** 2433d6423SLionel Sambuc * 3*29492bb7SDavid van Moolenbroek * Name: acwin64.h - OS specific defines, etc. 4433d6423SLionel Sambuc * 5433d6423SLionel Sambuc *****************************************************************************/ 6433d6423SLionel Sambuc 7*29492bb7SDavid van Moolenbroek /* 8*29492bb7SDavid van Moolenbroek * Copyright (C) 2000 - 2014, Intel Corp. 9433d6423SLionel Sambuc * All rights reserved. 10433d6423SLionel Sambuc * 11*29492bb7SDavid van Moolenbroek * Redistribution and use in source and binary forms, with or without 12*29492bb7SDavid van Moolenbroek * modification, are permitted provided that the following conditions 13*29492bb7SDavid van Moolenbroek * are met: 14*29492bb7SDavid van Moolenbroek * 1. Redistributions of source code must retain the above copyright 15*29492bb7SDavid van Moolenbroek * notice, this list of conditions, and the following disclaimer, 16*29492bb7SDavid van Moolenbroek * without modification. 17*29492bb7SDavid van Moolenbroek * 2. Redistributions in binary form must reproduce at minimum a disclaimer 18*29492bb7SDavid van Moolenbroek * substantially similar to the "NO WARRANTY" disclaimer below 19*29492bb7SDavid van Moolenbroek * ("Disclaimer") and any redistribution must be conditioned upon 20*29492bb7SDavid van Moolenbroek * including a substantially similar Disclaimer requirement for further 21*29492bb7SDavid van Moolenbroek * binary redistribution. 22*29492bb7SDavid van Moolenbroek * 3. Neither the names of the above-listed copyright holders nor the names 23*29492bb7SDavid van Moolenbroek * of any contributors may be used to endorse or promote products derived 24*29492bb7SDavid van Moolenbroek * from this software without specific prior written permission. 25433d6423SLionel Sambuc * 26*29492bb7SDavid van Moolenbroek * Alternatively, this software may be distributed under the terms of the 27*29492bb7SDavid van Moolenbroek * GNU General Public License ("GPL") version 2 as published by the Free 28*29492bb7SDavid van Moolenbroek * Software Foundation. 29433d6423SLionel Sambuc * 30*29492bb7SDavid van Moolenbroek * NO WARRANTY 31*29492bb7SDavid van Moolenbroek * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 32*29492bb7SDavid van Moolenbroek * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 33*29492bb7SDavid van Moolenbroek * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 34*29492bb7SDavid van Moolenbroek * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 35*29492bb7SDavid van Moolenbroek * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 36*29492bb7SDavid van Moolenbroek * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 37*29492bb7SDavid van Moolenbroek * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38*29492bb7SDavid van Moolenbroek * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 39*29492bb7SDavid van Moolenbroek * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 40*29492bb7SDavid van Moolenbroek * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 41*29492bb7SDavid van Moolenbroek * POSSIBILITY OF SUCH DAMAGES. 42*29492bb7SDavid van Moolenbroek */ 43433d6423SLionel Sambuc 44433d6423SLionel Sambuc #ifndef __ACWIN64_H__ 45433d6423SLionel Sambuc #define __ACWIN64_H__ 46433d6423SLionel Sambuc 47433d6423SLionel Sambuc /*! [Begin] no source code translation (Keep the include) */ 48433d6423SLionel Sambuc 49433d6423SLionel Sambuc #include "acintel.h" 50433d6423SLionel Sambuc /*! [End] no source code translation !*/ 51433d6423SLionel Sambuc 52433d6423SLionel Sambuc #define ACPI_MACHINE_WIDTH 64 53433d6423SLionel Sambuc 54433d6423SLionel Sambuc #define ACPI_USE_STANDARD_HEADERS 55433d6423SLionel Sambuc 56433d6423SLionel Sambuc /* 57433d6423SLionel Sambuc * Handle platform- and compiler-specific assembly language differences. 58433d6423SLionel Sambuc * 59433d6423SLionel Sambuc * Notes: 60433d6423SLionel Sambuc * 1) Interrupt 3 is used to break into a debugger 61433d6423SLionel Sambuc * 2) Interrupts are turned off during ACPI register setup 62433d6423SLionel Sambuc */ 63433d6423SLionel Sambuc 64433d6423SLionel Sambuc /*! [Begin] no source code translation */ 65433d6423SLionel Sambuc 66433d6423SLionel Sambuc #define ACPI_FLUSH_CPU_CACHE() 67433d6423SLionel Sambuc 68433d6423SLionel Sambuc /* 69433d6423SLionel Sambuc * For Acpi applications, we don't want to try to access the global lock 70433d6423SLionel Sambuc */ 71433d6423SLionel Sambuc #ifdef ACPI_APPLICATION 72433d6423SLionel Sambuc #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) if (AcpiGbl_GlobalLockPresent) {Acq = 0xFF;} else {Acq = 0;} 73433d6423SLionel Sambuc #define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pnd) if (AcpiGbl_GlobalLockPresent) {Pnd = 0xFF;} else {Pnd = 0;} 74433d6423SLionel Sambuc #else 75433d6423SLionel Sambuc 76433d6423SLionel Sambuc #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) 77433d6423SLionel Sambuc 78433d6423SLionel Sambuc #define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pnd) 79433d6423SLionel Sambuc 80433d6423SLionel Sambuc #endif 81433d6423SLionel Sambuc 82*29492bb7SDavid van Moolenbroek /*! [End] no source code translation !*/ 83433d6423SLionel Sambuc 84433d6423SLionel Sambuc #endif /* __ACWIN_H__ */ 85