18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
28c2ecf20Sopenharmony_ci/******************************************************************************
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Name: acintel.h - VC specific defines, etc.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Copyright (C) 2000 - 2020, Intel Corp.
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci *****************************************************************************/
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#ifndef __ACINTEL_H__
118c2ecf20Sopenharmony_ci#define __ACINTEL_H__
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci/*
148c2ecf20Sopenharmony_ci * Use compiler specific <stdarg.h> is a good practice for even when
158c2ecf20Sopenharmony_ci * -nostdinc is specified (i.e., ACPI_USE_STANDARD_HEADERS undefined.
168c2ecf20Sopenharmony_ci */
178c2ecf20Sopenharmony_ci#ifndef va_arg
188c2ecf20Sopenharmony_ci#include <stdarg.h>
198c2ecf20Sopenharmony_ci#endif
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci/* Configuration specific to Intel 64-bit C compiler */
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#define COMPILER_DEPENDENT_INT64    __int64
248c2ecf20Sopenharmony_ci#define COMPILER_DEPENDENT_UINT64   unsigned __int64
258c2ecf20Sopenharmony_ci#define ACPI_INLINE                 __inline
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci/*
288c2ecf20Sopenharmony_ci * Calling conventions:
298c2ecf20Sopenharmony_ci *
308c2ecf20Sopenharmony_ci * ACPI_SYSTEM_XFACE        - Interfaces to host OS (handlers, threads)
318c2ecf20Sopenharmony_ci * ACPI_EXTERNAL_XFACE      - External ACPI interfaces
328c2ecf20Sopenharmony_ci * ACPI_INTERNAL_XFACE      - Internal ACPI interfaces
338c2ecf20Sopenharmony_ci * ACPI_INTERNAL_VAR_XFACE  - Internal variable-parameter list interfaces
348c2ecf20Sopenharmony_ci */
358c2ecf20Sopenharmony_ci#define ACPI_SYSTEM_XFACE
368c2ecf20Sopenharmony_ci#define ACPI_EXTERNAL_XFACE
378c2ecf20Sopenharmony_ci#define ACPI_INTERNAL_XFACE
388c2ecf20Sopenharmony_ci#define ACPI_INTERNAL_VAR_XFACE
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci/* remark 981 - operands evaluated in no particular order */
418c2ecf20Sopenharmony_ci#pragma warning(disable:981)
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci/* warn C4100: unreferenced formal parameter */
448c2ecf20Sopenharmony_ci#pragma warning(disable:4100)
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci/* warn C4127: conditional expression is constant */
478c2ecf20Sopenharmony_ci#pragma warning(disable:4127)
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci/* warn C4706: assignment within conditional expression */
508c2ecf20Sopenharmony_ci#pragma warning(disable:4706)
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci/* warn C4214: bit field types other than int */
538c2ecf20Sopenharmony_ci#pragma warning(disable:4214)
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci#endif				/* __ACINTEL_H__ */
56