source: golgotha/src/i4/device/processor.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 855 bytes
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#ifndef PROCESSOR_HH
10#define PROCESSOR_HH
11
12#include "arch.hh"
13
14struct i4_cpu_info_struct
15{
16  enum
17  {
18    NON_X86     = 0,
19    UNKNOWN_X86 = 1,
20    INTEL_X86   = 2,
21    AMD_X86     = 3
22  };
23
24  enum
25  {
26    RDTSC = 1,
27    MMX   = 2,
28    AMD3D = 4
29  };
30
31  w32 cpu_type;
32  w32 cpu_flags;
33};
34
35void i4_get_cpu_info(i4_cpu_info_struct *s);
36
37#endif
Note: See TracBrowser for help on using the repository browser.