xref: /illumos-gate/usr/src/uts/intel/sys/acpi/platform/acwin64.h (revision 7b1019a6d29ccb7999dc76cba3dde1c627e8e609)
17c478bd9Sstevel@tonic-gate /******************************************************************************
27c478bd9Sstevel@tonic-gate  *
326f3cdf0SGordon Ross  * Name: acwin64.h - OS specific defines, etc.
47c478bd9Sstevel@tonic-gate  *
57c478bd9Sstevel@tonic-gate  *****************************************************************************/
67c478bd9Sstevel@tonic-gate 
726f3cdf0SGordon Ross /*
8*7b1019a6SJerry Jelinek  * Copyright (C) 2000 - 2016, Intel Corp.
97c478bd9Sstevel@tonic-gate  * All rights reserved.
107c478bd9Sstevel@tonic-gate  *
1126f3cdf0SGordon Ross  * Redistribution and use in source and binary forms, with or without
1226f3cdf0SGordon Ross  * modification, are permitted provided that the following conditions
1326f3cdf0SGordon Ross  * are met:
1426f3cdf0SGordon Ross  * 1. Redistributions of source code must retain the above copyright
1526f3cdf0SGordon Ross  *    notice, this list of conditions, and the following disclaimer,
1626f3cdf0SGordon Ross  *    without modification.
1726f3cdf0SGordon Ross  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
1826f3cdf0SGordon Ross  *    substantially similar to the "NO WARRANTY" disclaimer below
1926f3cdf0SGordon Ross  *    ("Disclaimer") and any redistribution must be conditioned upon
2026f3cdf0SGordon Ross  *    including a substantially similar Disclaimer requirement for further
2126f3cdf0SGordon Ross  *    binary redistribution.
2226f3cdf0SGordon Ross  * 3. Neither the names of the above-listed copyright holders nor the names
2326f3cdf0SGordon Ross  *    of any contributors may be used to endorse or promote products derived
2426f3cdf0SGordon Ross  *    from this software without specific prior written permission.
2526f3cdf0SGordon Ross  *
2626f3cdf0SGordon Ross  * Alternatively, this software may be distributed under the terms of the
2726f3cdf0SGordon Ross  * GNU General Public License ("GPL") version 2 as published by the Free
2826f3cdf0SGordon Ross  * Software Foundation.
2926f3cdf0SGordon Ross  *
3026f3cdf0SGordon Ross  * NO WARRANTY
3126f3cdf0SGordon Ross  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
3226f3cdf0SGordon Ross  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
3326f3cdf0SGordon Ross  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
3426f3cdf0SGordon Ross  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
3526f3cdf0SGordon Ross  * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3626f3cdf0SGordon Ross  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
3726f3cdf0SGordon Ross  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3826f3cdf0SGordon Ross  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
3926f3cdf0SGordon Ross  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
4026f3cdf0SGordon Ross  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
4126f3cdf0SGordon Ross  * POSSIBILITY OF SUCH DAMAGES.
4226f3cdf0SGordon Ross  */
437c478bd9Sstevel@tonic-gate 
447c478bd9Sstevel@tonic-gate #ifndef __ACWIN64_H__
457c478bd9Sstevel@tonic-gate #define __ACWIN64_H__
467c478bd9Sstevel@tonic-gate 
477c478bd9Sstevel@tonic-gate /*! [Begin] no source code translation (Keep the include) */
487c478bd9Sstevel@tonic-gate 
497c478bd9Sstevel@tonic-gate #include "acintel.h"
507c478bd9Sstevel@tonic-gate /*! [End] no source code translation !*/
517c478bd9Sstevel@tonic-gate 
527c478bd9Sstevel@tonic-gate #define ACPI_MACHINE_WIDTH          64
537c478bd9Sstevel@tonic-gate 
547c478bd9Sstevel@tonic-gate #define ACPI_USE_STANDARD_HEADERS
557c478bd9Sstevel@tonic-gate 
567c478bd9Sstevel@tonic-gate /*
577c478bd9Sstevel@tonic-gate  * Handle platform- and compiler-specific assembly language differences.
587c478bd9Sstevel@tonic-gate  *
597c478bd9Sstevel@tonic-gate  * Notes:
607c478bd9Sstevel@tonic-gate  * 1) Interrupt 3 is used to break into a debugger
617c478bd9Sstevel@tonic-gate  * 2) Interrupts are turned off during ACPI register setup
627c478bd9Sstevel@tonic-gate  */
637c478bd9Sstevel@tonic-gate 
647c478bd9Sstevel@tonic-gate /*! [Begin] no source code translation  */
657c478bd9Sstevel@tonic-gate 
667c478bd9Sstevel@tonic-gate #define ACPI_FLUSH_CPU_CACHE()
677c478bd9Sstevel@tonic-gate 
687c478bd9Sstevel@tonic-gate /*
697c478bd9Sstevel@tonic-gate  * For Acpi applications, we don't want to try to access the global lock
707c478bd9Sstevel@tonic-gate  */
717c478bd9Sstevel@tonic-gate #ifdef ACPI_APPLICATION
727c478bd9Sstevel@tonic-gate #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq)       if (AcpiGbl_GlobalLockPresent) {Acq = 0xFF;} else {Acq = 0;}
737c478bd9Sstevel@tonic-gate #define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pnd)       if (AcpiGbl_GlobalLockPresent) {Pnd = 0xFF;} else {Pnd = 0;}
747c478bd9Sstevel@tonic-gate #else
757c478bd9Sstevel@tonic-gate 
767c478bd9Sstevel@tonic-gate #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq)
777c478bd9Sstevel@tonic-gate 
787c478bd9Sstevel@tonic-gate #define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pnd)
797c478bd9Sstevel@tonic-gate 
807c478bd9Sstevel@tonic-gate #endif
817c478bd9Sstevel@tonic-gate 
82*7b1019a6SJerry Jelinek /*! [End] no source code translation !*/
837c478bd9Sstevel@tonic-gate 
847c478bd9Sstevel@tonic-gate #endif /* __ACWIN_H__ */
85