aboutsummaryrefslogtreecommitdiffstats
path: root/lib/librte_eal/common/arch/x86/rte_cpuid.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_eal/common/arch/x86/rte_cpuid.h')
-rw-r--r--lib/librte_eal/common/arch/x86/rte_cpuid.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/librte_eal/common/arch/x86/rte_cpuid.h b/lib/librte_eal/common/arch/x86/rte_cpuid.h
new file mode 100644
index 00000000..b773ad93
--- /dev/null
+++ b/lib/librte_eal/common/arch/x86/rte_cpuid.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2010-2015 Intel Corporation
+ */
+
+#ifndef RTE_CPUID_H
+#define RTE_CPUID_H
+
+#include <cpuid.h>
+
+enum cpu_register_t {
+ RTE_REG_EAX = 0,
+ RTE_REG_EBX,
+ RTE_REG_ECX,
+ RTE_REG_EDX,
+};
+
+typedef uint32_t cpuid_registers_t[4];
+
+#endif /* RTE_CPUID_H */