Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
0002 /******************************************************************************
0003  *
0004  * Name: acintel.h - VC specific defines, etc.
0005  *
0006  * Copyright (C) 2000 - 2022, Intel Corp.
0007  *
0008  *****************************************************************************/
0009 
0010 #ifndef __ACINTEL_H__
0011 #define __ACINTEL_H__
0012 
0013 /*
0014  * Use compiler specific <stdarg.h> is a good practice for even when
0015  * -nostdinc is specified (i.e., ACPI_USE_STANDARD_HEADERS undefined.
0016  */
0017 #ifndef va_arg
0018 #include <stdarg.h>
0019 #endif
0020 
0021 /* Configuration specific to Intel 64-bit C compiler */
0022 
0023 #define COMPILER_DEPENDENT_INT64    __int64
0024 #define COMPILER_DEPENDENT_UINT64   unsigned __int64
0025 #define ACPI_INLINE                 __inline
0026 
0027 /*
0028  * Calling conventions:
0029  *
0030  * ACPI_SYSTEM_XFACE        - Interfaces to host OS (handlers, threads)
0031  * ACPI_EXTERNAL_XFACE      - External ACPI interfaces
0032  * ACPI_INTERNAL_XFACE      - Internal ACPI interfaces
0033  * ACPI_INTERNAL_VAR_XFACE  - Internal variable-parameter list interfaces
0034  */
0035 #define ACPI_SYSTEM_XFACE
0036 #define ACPI_EXTERNAL_XFACE
0037 #define ACPI_INTERNAL_XFACE
0038 #define ACPI_INTERNAL_VAR_XFACE
0039 
0040 /* remark 981 - operands evaluated in no particular order */
0041 #pragma warning(disable:981)
0042 
0043 /* warn C4100: unreferenced formal parameter */
0044 #pragma warning(disable:4100)
0045 
0046 /* warn C4127: conditional expression is constant */
0047 #pragma warning(disable:4127)
0048 
0049 /* warn C4706: assignment within conditional expression */
0050 #pragma warning(disable:4706)
0051 
0052 /* warn C4214: bit field types other than int */
0053 #pragma warning(disable:4214)
0054 
0055 #endif              /* __ACINTEL_H__ */