1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2010-2015 Intel Corporation 3 */ 4 5 #ifndef RTE_CPUID_H 6 #define RTE_CPUID_H 7 8 #ifndef RTE_TOOLCHAIN_MSVC 9 #include <cpuid.h> 10 #endif 11 12 enum cpu_register_t { 13 RTE_REG_EAX = 0, 14 RTE_REG_EBX, 15 RTE_REG_ECX, 16 RTE_REG_EDX, 17 }; 18 19 typedef uint32_t cpuid_registers_t[4]; 20 21 #ifdef RTE_TOOLCHAIN_MSVC 22 int 23 __get_cpuid_max(unsigned int e, unsigned int *s); 24 #endif 25 26 #endif /* RTE_CPUID_H */ 27