2 Copyright © 2000, The AROS Development Team. All rights reserved.
5 Desc: Probe installed CPUs and display relevant information
9 /* BIG TO DO - SEPERATE THE INDIVIDUAL PROCESSOR FAMILY "PROBES" INTO RUNTIME SHARED LIBS OR SIMILAR */
11 /****************************************************************************************************
14 i386 compatable families...
15 AMD 486/5x86/K5/K6/K6-II/K6-III/Athlon/Duron/Opteron/Athlon64
16 Intel P5/P54C/P55C/P24T/P6/P2/P3/PM/Itanium(IA-64)
17 Cyrix 5x86/M1/MediaGX/M2
23 Transmeta Crusoe TM3x00 and TM5x00
24 National Semiconductor Geode
26 *****************************************************************************************************/
27 #ifndef _CPU_x86INTERN_H
28 #define _CPU_x86INTERN_H
30 #include <proto/exec.h>
31 #include <proto/dos.h>
32 #include <proto/timer.h>
33 #include <proto/cpu.h>
35 #include <exec/types.h>
36 #include <exec/lists.h>
38 #include <exec/memory.h>
42 #include <devices/timer.h>
53 #include <hardware/cpu/cpu_i386.h>
58 #define __unused__ __attribute__((__unused__))
64 /********************************************
66 ********************************************/
68 #define i386_cpuid(in,a,b,c,d) asm("cpuid": "=a" (a), "=b" (b), "=c" (c), "=d" (d) : "a" (in));
69 #define i386_rdmsr(msr,val1,val2) __asm__ __volatile__ ("rdmsr": "=a" (val1), "=d" (val2) : "c" (msr));
71 /********************************************
73 ********************************************/
75 ULONG
i386_approx_mhz ( void );
76 void i386_getregs ( char *out
, int eax
,int ebx
,int ecx
,int edx
);
77 void i386_printregs ( int eax
,int ebx
,int ecx
,int edx
);
78 int i386_sprintregs ( int buffpos
, char *buffer
, int eax
,int ebx
,int ecx
,int edx
);
80 void i386_Parse_MSR ( unsigned int msr
, int size
);
82 void parse_i386_AMD ( int maxi
, struct i386_compat_intern
* CPUi386
);
83 void parse_i386_Intel ( int maxi
, struct i386_compat_intern
* CPUi386
);
84 void parse_i386_Cyrix ( int maxi
, struct i386_compat_intern
* CPUi386
);
86 void parse_i386_Transmeta ( int maxi
, struct i386_compat_intern
* CPUi386
);
87 void parse_i386_UMC ( int maxi
, struct i386_compat_intern
* CPUi386
);
88 void parse_i386_NexGen ( int maxi
, struct i386_compat_intern
* CPUi386
);
89 void parse_i386_Centaur ( int maxi
, struct i386_compat_intern
* CPUi386
);
90 void parse_i386_Rise ( int maxi
, struct i386_compat_intern
* CPUi386
);
91 void parse_i386_SiS ( int maxi
, struct i386_compat_intern
* CPUi386
);
92 void parse_i386_NSC ( int maxi
, struct i386_compat_intern
* CPUi386
);
94 /********************************************
96 ********************************************/
98 struct CPU_INTERN_DATA
100 UBYTE CPU_BUFF
[4096]; /* TEMPORARY BUFFER */
101 UBYTE CPU_NAME
[2048];
102 UBYTE CPU_IDENTITY
[4096];
103 UBYTE CPU_FEATURES
[4096];
104 UBYTE CPU_CACHE
[2048];
105 UBYTE CPU_ADDR
[2048];
108 #define CONN_UNKNOWN 0
109 #define CONN_SOCKET_3 1
110 #define CONN_SOCKET_4 2
111 #define CONN_SOCKET_5 3
112 #define CONN_SOCKET_7 4
113 #define CONN_SOCKET_370 5
114 #define CONN_SOCKET_370_FCPGA 6
115 #define CONN_SOCKET_5_7 7
116 #define CONN_SUPER_SOCKET_7 8
117 #define CONN_SLOT_A 9
118 #define CONN_SOCKET_A 10
119 #define CONN_SOCKET_A_SLOT_A 11
120 #define CONN_SOCKET_A_OR_SLOT_A 12
121 #define CONN_SOCKET_57B 13
122 #define CONN_MOBILE_7 14
123 #define CONN_SOCKET_8 15
124 #define CONN_SLOT_1 16
125 #define CONN_SLOT_2 17
126 #define CONN_SOCKET_423 18
129 #define CONN_BGA474 21
131 #define CONN_SOCKET_754 23
132 #define CONN_SOCKET_478 24
134 #endif /* _CPU_x86INTERN_H */