Rev | Line | |
---|
[4406] | 1 | /* $Id: cpuhlp.h,v 1.4 2000-10-03 17:26:03 sandervl Exp $ */
|
---|
[2615] | 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 |
|
---|
[4406] | 26 | BOOL CDECL SupportsCPUID();
|
---|
[2615] | 27 |
|
---|
[4406] | 28 | void CDECL GetCPUVendorString(char *vendor);
|
---|
| 29 | DWORD CDECL GetCPUFeatures();
|
---|
| 30 | DWORD CDECL GetCPUSignature();
|
---|
| 31 | void CDECL GetTSC(LONG *high, LONG *low);
|
---|
[2615] | 32 |
|
---|
| 33 | void InitSystemInfo(int nrcpus);
|
---|
| 34 |
|
---|
| 35 | extern DWORD CPUFeatures;
|
---|
| 36 |
|
---|
| 37 | #ifdef __cplusplus
|
---|
| 38 | }
|
---|
| 39 | #endif
|
---|
| 40 |
|
---|
| 41 | #endif /* _CPUHLP_H_ */
|
---|
| 42 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.