bzr branch
http://darksoft.org/webbzr/alps/pcitool
330
by Suren A. Chilingaryan
Support for 64-bit registes |
1 |
#ifndef _PCILIB_CPU_H
|
2 |
#define _PCILIB_CPU_H
|
|
3 |
||
4 |
#ifdef __cplusplus
|
|
5 |
extern "C" { |
|
6 |
#endif
|
|
7 |
||
361
by Suren A. Chilingaryan
Documentation update |
8 |
/**
|
9 |
* Return the mask of system memory page
|
|
10 |
* @return - page mask, the bits which will correspond to offset within the page are set to 1
|
|
11 |
*/
|
|
330
by Suren A. Chilingaryan
Support for 64-bit registes |
12 |
int pcilib_get_page_mask(); |
361
by Suren A. Chilingaryan
Documentation update |
13 |
|
14 |
/**
|
|
15 |
* Number of CPU cores in the system (including HyperThreading cores)
|
|
16 |
* @return - number of available CPU cores
|
|
17 |
*/
|
|
330
by Suren A. Chilingaryan
Support for 64-bit registes |
18 |
int pcilib_get_cpu_count(); |
361
by Suren A. Chilingaryan
Documentation update |
19 |
|
20 |
/**
|
|
21 |
* Returns the generation of Intel Core architecture
|
|
22 |
* Processors up to Intel Core gen4 are recognized.
|
|
23 |
* @return - Generation of Intel Core architecture (1 to 4) or 0 for non-Intel and Intel pre-Core architectures
|
|
24 |
*/
|
|
330
by Suren A. Chilingaryan
Support for 64-bit registes |
25 |
int pcilib_get_cpu_gen(); |
26 |
||
27 |
#ifdef __cplusplus
|
|
28 |
}
|
|
29 |
#endif
|
|
30 |
||
31 |
||
32 |
#endif /* _PCILIB_CPU_H */ |