Line | |
---|
1 | /* $Id: cpuhlp.h,v 1.2 1999-11-23 20:01:18 sandervl Exp $ */
|
---|
2 |
|
---|
3 | #ifndef _CPUHLP_H_
|
---|
4 | #define _CPUHLP_H_
|
---|
5 |
|
---|
6 | #ifdef __cplusplus
|
---|
7 | extern "C" {
|
---|
8 | #endif
|
---|
9 |
|
---|
10 | #define BIT(a) (1<<a)
|
---|
11 |
|
---|
12 | #define CPUID_FPU_PRESENT BIT(0)
|
---|
13 | #define CPUID_VMMODE_EXTENSIONS BIT(1)
|
---|
14 | #define CPUID_DBG_EXTENSIONS BIT(2)
|
---|
15 | #define CPUID_PAGE_SIZE_EXTENSIONS BIT(3)
|
---|
16 | #define CPUID_TIME_STAMP_COUNTER BIT(4)
|
---|
17 | #define CPUID_K86_MODEL_REGS BIT(5)
|
---|
18 | #define CPUID_MACHINE_CHECK_EXCEPTION BIT(7)
|
---|
19 | #define CPUID_CMPXCHG8B_INSTRUCTION BIT(8)
|
---|
20 | #define CPUID_APIC BIT(9)
|
---|
21 | #define CPUID_MEMORY_TYPE_RANGE_REGS BIT(12)
|
---|
22 | #define CPUID_GLOBAL_PAGING_EXTENSIONS BIT(13)
|
---|
23 | #define CPUID_CONDITIONAL_MOVE BIT(15)
|
---|
24 | #define CPUID_MMX BIT(23)
|
---|
25 |
|
---|
26 | BOOL SupportsCPUID();
|
---|
27 |
|
---|
28 | void GetCPUVendorString(char *vendor);
|
---|
29 | DWORD GetCPUFeatures();
|
---|
30 | DWORD GetCPUSignature();
|
---|
31 |
|
---|
32 | void InitSystemInfo(int nrcpus);
|
---|
33 |
|
---|
34 | #ifdef __cplusplus
|
---|
35 | }
|
---|
36 | #endif
|
---|
37 |
|
---|
38 | #endif /* _CPUHLP_H_ */
|
---|
39 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.