chromium/third_party/crashpad/crashpad/compat/non_win/winnt.h

// Copyright 2014 The Crashpad Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef CRASHPAD_COMPAT_NON_WIN_WINNT_H_
#define CRASHPAD_COMPAT_NON_WIN_WINNT_H_

#include <stdint.h>

//! \file

//! \anchor VER_SUITE_x
//! \name VER_SUITE_*
//!
//! \brief Installable product values for MINIDUMP_SYSTEM_INFO::SuiteMask.
//! \{
#define VER_SUITE_SMALLBUSINESS
#define VER_SUITE_ENTERPRISE
#define VER_SUITE_BACKOFFICE
#define VER_SUITE_COMMUNICATIONS
#define VER_SUITE_TERMINAL
#define VER_SUITE_SMALLBUSINESS_RESTRICTED
#define VER_SUITE_EMBEDDEDNT
#define VER_SUITE_DATACENTER
#define VER_SUITE_SINGLEUSERTS
#define VER_SUITE_PERSONAL
#define VER_SUITE_BLADE
#define VER_SUITE_EMBEDDED_RESTRICTED
#define VER_SUITE_SECURITY_APPLIANCE
#define VER_SUITE_STORAGE_SERVER
#define VER_SUITE_COMPUTE_SERVER
#define VER_SUITE_WH_SERVER
//! \}

//! \brief The maximum number of exception parameters present in the
//!     MINIDUMP_EXCEPTION::ExceptionInformation array.
#define EXCEPTION_MAXIMUM_PARAMETERS

//! \anchor PROCESSOR_ARCHITECTURE_x
//! \name PROCESSOR_ARCHITECTURE_*
//!
//! \brief CPU type values for MINIDUMP_SYSTEM_INFO::ProcessorArchitecture.
//!
//! \sa crashpad::MinidumpCPUArchitecture
//! \{
#define PROCESSOR_ARCHITECTURE_INTEL
#define PROCESSOR_ARCHITECTURE_MIPS
#define PROCESSOR_ARCHITECTURE_ALPHA
#define PROCESSOR_ARCHITECTURE_PPC
#define PROCESSOR_ARCHITECTURE_SHX
#define PROCESSOR_ARCHITECTURE_ARM
#define PROCESSOR_ARCHITECTURE_IA64
#define PROCESSOR_ARCHITECTURE_ALPHA64
#define PROCESSOR_ARCHITECTURE_MSIL
#define PROCESSOR_ARCHITECTURE_AMD64
#define PROCESSOR_ARCHITECTURE_IA32_ON_WIN64
#define PROCESSOR_ARCHITECTURE_NEUTRAL
#define PROCESSOR_ARCHITECTURE_ARM64
#define PROCESSOR_ARCHITECTURE_ARM32_ON_WIN64
#define PROCESSOR_ARCHITECTURE_UNKNOWN
//! \}

//! \anchor PF_x
//! \name PF_*
//!
//! \brief CPU feature values for \ref CPU_INFORMATION::ProcessorFeatures
//!     "CPU_INFORMATION::OtherCpuInfo::ProcessorFeatures".
//!
//! \{
#define PF_FLOATING_POINT_PRECISION_ERRATA
#define PF_FLOATING_POINT_EMULATED
#define PF_COMPARE_EXCHANGE_DOUBLE
#define PF_MMX_INSTRUCTIONS_AVAILABLE
#define PF_PPC_MOVEMEM_64BIT_OK
#define PF_ALPHA_BYTE_INSTRUCTIONS
#define PF_XMMI_INSTRUCTIONS_AVAILABLE
#define PF_3DNOW_INSTRUCTIONS_AVAILABLE
#define PF_RDTSC_INSTRUCTION_AVAILABLE
#define PF_PAE_ENABLED
#define PF_XMMI64_INSTRUCTIONS_AVAILABLE
#define PF_SSE_DAZ_MODE_AVAILABLE
#define PF_NX_ENABLED
#define PF_SSE3_INSTRUCTIONS_AVAILABLE
#define PF_COMPARE_EXCHANGE128
#define PF_COMPARE64_EXCHANGE128
#define PF_CHANNELS_ENABLED
#define PF_XSAVE_ENABLED
#define PF_ARM_VFP_32_REGISTERS_AVAILABLE
#define PF_ARM_NEON_INSTRUCTIONS_AVAILABLE
#define PF_SECOND_LEVEL_ADDRESS_TRANSLATION
#define PF_VIRT_FIRMWARE_ENABLED
#define PF_RDWRFSGSBASE_AVAILABLE
#define PF_FASTFAIL_AVAILABLE
#define PF_ARM_DIVIDE_INSTRUCTION_AVAILABLE
#define PF_ARM_64BIT_LOADSTORE_ATOMIC
#define PF_ARM_EXTERNAL_CACHE_AVAILABLE
#define PF_ARM_FMAC_INSTRUCTIONS_AVAILABLE
#define PF_RDRAND_INSTRUCTION_AVAILABLE
#define PF_ARM_V8_INSTRUCTIONS_AVAILABLE
#define PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE
#define PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE
#define PF_RDTSCP_INSTRUCTION_AVAILABLE
//! \}

//! \anchor PAGE_x
//! \name PAGE_*
//!
//! \brief Memory protection constants for MINIDUMP_MEMORY_INFO::Protect and
//!     MINIDUMP_MEMORY_INFO::AllocationProtect.
//! \{
#define PAGE_NOACCESS
#define PAGE_READONLY
#define PAGE_READWRITE
#define PAGE_WRITECOPY
#define PAGE_EXECUTE
#define PAGE_EXECUTE_READ
#define PAGE_EXECUTE_READWRITE
#define PAGE_EXECUTE_WRITECOPY
#define PAGE_GUARD
#define PAGE_NOCACHE
#define PAGE_WRITECOMBINE
//! \}

//! \anchor MEM_x
//! \name MEM_*
//!
//! \brief Memory state and type constants for MINIDUMP_MEMORY_INFO::State and
//!     MINIDUMP_MEMORY_INFO::Type.
//! \{
#define MEM_COMMIT
#define MEM_RESERVE
#define MEM_DECOMMIT
#define MEM_RELEASE
#define MEM_FREE
#define MEM_PRIVATE
#define MEM_MAPPED
#define MEM_RESET
//! \}

//! \brief The maximum number of distinct identifiable features that could
//!     possibly be carried in an XSAVE area.
//!
//! This corresponds to the number of bits in the XSAVE state-component bitmap,
//! XSAVE_BV. See Intel Software Developer’s Manual, Volume 1: Basic
//! Architecture (253665-060), 13.4.2 “XSAVE Header”.
#define MAXIMUM_XSTATE_FEATURES

//! \anchor XSTATE_x
//! \name XSTATE_*
//!
//! \brief Offsets and constants for extended state.
//! \{
#define XSTATE_COMPACTION_ENABLE
#define XSTATE_COMPACTION_ENABLE_MASK
#define XSTATE_CET_U
#define XSTATE_MASK_CET_U
//! \}

//! \brief The location of a single state component within an XSAVE area.
struct XSTATE_FEATURE {};

//! \anchor IMAGE_DEBUG_MISC_x
//! \name IMAGE_DEBUG_MISC_*
//!
//! Data type values for IMAGE_DEBUG_MISC::DataType.
//! \{

//! \brief A pointer to a `.dbg` file.
//!
//! IMAGE_DEBUG_MISC::Data will contain the path or file name of the `.dbg` file
//! associated with the module.
#define IMAGE_DEBUG_MISC_EXENAME

//! \}

//! \brief Miscellaneous debugging record.
//!
//! This structure is referenced by MINIDUMP_MODULE::MiscRecord. It is obsolete,
//! superseded by the CodeView record.
struct IMAGE_DEBUG_MISC {};

//! \anchor VER_NT_x
//! \name VER_NT_*
//!
//! \brief Operating system type values for MINIDUMP_SYSTEM_INFO::ProductType.
//!
//! \sa crashpad::MinidumpOSType
//! \{
#define VER_NT_WORKSTATION
#define VER_NT_DOMAIN_CONTROLLER
#define VER_NT_SERVER
//! \}

//! \anchor VER_PLATFORM_x
//! \name VER_PLATFORM_*
//!
//! \brief Operating system family values for MINIDUMP_SYSTEM_INFO::PlatformId.
//!
//! \sa crashpad::MinidumpOS
//! \{
#define VER_PLATFORM_WIN32s
#define VER_PLATFORM_WIN32_WINDOWS
#define VER_PLATFORM_WIN32_NT
//! \}

#endif  // CRASHPAD_COMPAT_NON_WIN_WINNT_H_