acintel.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
  2. /******************************************************************************
  3. *
  4. * Name: acintel.h - VC specific defines, etc.
  5. *
  6. * Copyright (C) 2000 - 2018, Intel Corp.
  7. *
  8. *****************************************************************************/
  9. #ifndef __ACINTEL_H__
  10. #define __ACINTEL_H__
  11. /*
  12. * Use compiler specific <stdarg.h> is a good practice for even when
  13. * -nostdinc is specified (i.e., ACPI_USE_STANDARD_HEADERS undefined.
  14. */
  15. #ifndef va_arg
  16. #include <stdarg.h>
  17. #endif
  18. /* Configuration specific to Intel 64-bit C compiler */
  19. #define COMPILER_DEPENDENT_INT64 __int64
  20. #define COMPILER_DEPENDENT_UINT64 unsigned __int64
  21. #define ACPI_INLINE __inline
  22. /*
  23. * Calling conventions:
  24. *
  25. * ACPI_SYSTEM_XFACE - Interfaces to host OS (handlers, threads)
  26. * ACPI_EXTERNAL_XFACE - External ACPI interfaces
  27. * ACPI_INTERNAL_XFACE - Internal ACPI interfaces
  28. * ACPI_INTERNAL_VAR_XFACE - Internal variable-parameter list interfaces
  29. */
  30. #define ACPI_SYSTEM_XFACE
  31. #define ACPI_EXTERNAL_XFACE
  32. #define ACPI_INTERNAL_XFACE
  33. #define ACPI_INTERNAL_VAR_XFACE
  34. /* remark 981 - operands evaluated in no particular order */
  35. #pragma warning(disable:981)
  36. /* warn C4100: unreferenced formal parameter */
  37. #pragma warning(disable:4100)
  38. /* warn C4127: conditional expression is constant */
  39. #pragma warning(disable:4127)
  40. /* warn C4706: assignment within conditional expression */
  41. #pragma warning(disable:4706)
  42. /* warn C4214: bit field types other than int */
  43. #pragma warning(disable:4214)
  44. #endif /* __ACINTEL_H__ */