mirror of
https://github.com/acpica/acpica/
synced 2025-01-15 22:09:17 +03:00
date 2001.12.12.00.13.00; author rmoore1; state Exp;
This commit is contained in:
parent
69e6130515
commit
5deb88ac3f
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Name: acintel.h - VC specific defines, etc.
|
||||
* $Revision: 1.6 $
|
||||
* $Revision: 1.1 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
*
|
||||
* 1. Copyright Notice
|
||||
*
|
||||
* Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp.
|
||||
* Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.
|
||||
* All rights reserved.
|
||||
*
|
||||
* 2. License
|
||||
@ -117,36 +117,13 @@
|
||||
#ifndef __ACINTEL_H__
|
||||
#define __ACINTEL_H__
|
||||
|
||||
|
||||
#define COMPILER_DEPENDENT_INT64 __int64
|
||||
#define COMPILER_DEPENDENT_UINT64 unsigned __int64
|
||||
|
||||
/*
|
||||
* Calling conventions:
|
||||
*
|
||||
* ACPI_SYSTEM_XFACE - Interfaces to host OS (handlers, threads)
|
||||
* ACPI_EXTERNAL_XFACE - External ACPI interfaces
|
||||
* ACPI_INTERNAL_XFACE - Internal ACPI interfaces
|
||||
* ACPI_INTERNAL_VAR_XFACE - Internal variable-parameter list interfaces
|
||||
*/
|
||||
#define ACPI_SYSTEM_XFACE
|
||||
#define ACPI_EXTERNAL_XFACE
|
||||
#define ACPI_INTERNAL_XFACE
|
||||
#define ACPI_INTERNAL_VAR_XFACE
|
||||
#define COMPILER_DEPENDENT_UINT64 unsigned __int64
|
||||
|
||||
/*
|
||||
* Math helper functions
|
||||
*/
|
||||
#define ACPI_DIV_64_BY_32(n, n_hi, n_lo, d32, q32, r32) \
|
||||
{ \
|
||||
q32 = n / d32; \
|
||||
r32 = n % d32; \
|
||||
}
|
||||
|
||||
#define ACPI_SHIFT_RIGHT_64(n, n_hi, n_lo) \
|
||||
{ \
|
||||
n <<= 1; \
|
||||
}
|
||||
#define ACPI_DIV_64_BY_32(n_hi, n_lo, d32, q32, r32)
|
||||
#define ACPI_SHIFT_RIGHT_64(n_hi, n_lo)
|
||||
|
||||
|
||||
#pragma warning(disable:810)
|
||||
|
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Name: acwin.h - OS specific defines, etc.
|
||||
* $Revision: 1.8 $
|
||||
* $Revision: 1.1 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
*
|
||||
* 1. Copyright Notice
|
||||
*
|
||||
* Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp.
|
||||
* Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.
|
||||
* All rights reserved.
|
||||
*
|
||||
* 2. License
|
||||
@ -124,8 +124,6 @@
|
||||
|
||||
#define ACPI_OS_NAME "Windows"
|
||||
|
||||
#define ACPI_BITS_PER_LONG 64
|
||||
|
||||
#define strupr _strupr
|
||||
#define ACPI_USE_STANDARD_HEADERS
|
||||
|
||||
@ -140,22 +138,23 @@
|
||||
/*! [Begin] no source code translation */
|
||||
|
||||
#define ACPI_ASM_MACROS
|
||||
#define causeinterrupt(level)
|
||||
#define BREAKPOINT3
|
||||
#define ACPI_DISABLE_IRQS()
|
||||
#define ACPI_ENABLE_IRQS()
|
||||
#define ACPI_FLUSH_CPU_CACHE()
|
||||
#define causeinterrupt(level)
|
||||
#define BREAKPOINT3
|
||||
#define disable()
|
||||
#define enable()
|
||||
#define halt()
|
||||
#define wbinvd()
|
||||
|
||||
|
||||
/*
|
||||
* For Acpi applications, we don't want to try to access the global lock
|
||||
*/
|
||||
#ifdef ACPI_APPLICATION
|
||||
#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) if (AcpiGbl_GlobalLockPresent) {Acq = 0xFF;} else {Acq = 0;}
|
||||
#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pnd) if (AcpiGbl_GlobalLockPresent) {Pnd = 0xFF;} else {Pnd = 0;}
|
||||
#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) (Acq = 0xFF)
|
||||
#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pnd) (Pnd = 0)
|
||||
#else
|
||||
|
||||
#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq)
|
||||
#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq)
|
||||
|
||||
#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pnd)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user