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>
34 #include <exec/types.h>
35 #include <exec/lists.h>
37 #include <exec/memory.h>
41 #include <devices/timer.h>
52 #include <hardware/cpu/cpu_i386.h>
57 #define __unused__ __attribute__((__unused__))
63 /********************************************
65 ********************************************/
67 #define i386_cpuid(in,a,b,c,d) asm("cpuid": "=a" (a), "=b" (b), "=c" (c), "=d" (d) : "a" (in));
68 #define i386_rdmsr(msr,val1,val2) __asm__ __volatile__ ("rdmsr": "=a" (val1), "=d" (val2) : "c" (msr));
70 /********************************************
72 ********************************************/
74 ULONG
i386_approx_mhz ( void );
75 void i386_getregs ( char *out
, int eax
,int ebx
,int ecx
,int edx
);
76 void i386_printregs ( int eax
,int ebx
,int ecx
,int edx
);
77 int i386_sprintregs ( int buffpos
, char *buffer
, int eax
,int ebx
,int ecx
,int edx
);
79 void i386_Parse_MSR ( unsigned int msr
, int size
);
81 void parse_i386_AMD ( int maxi
, struct i386_compat_intern
* CPUi386
);
82 void parse_i386_Intel ( int maxi
, struct i386_compat_intern
* CPUi386
);
83 void parse_i386_Cyrix ( int maxi
, struct i386_compat_intern
* CPUi386
);
85 void parse_i386_Transmeta ( int maxi
, struct i386_compat_intern
* CPUi386
);
86 void parse_i386_UMC ( int maxi
, struct i386_compat_intern
* CPUi386
);
87 void parse_i386_NexGen ( int maxi
, struct i386_compat_intern
* CPUi386
);
88 void parse_i386_Centaur ( int maxi
, struct i386_compat_intern
* CPUi386
);
89 void parse_i386_Rise ( int maxi
, struct i386_compat_intern
* CPUi386
);
90 void parse_i386_SiS ( int maxi
, struct i386_compat_intern
* CPUi386
);
91 void parse_i386_NSC ( int maxi
, struct i386_compat_intern
* CPUi386
);
93 /********************************************
95 ********************************************/
97 struct CPU_INTERN_DATA
99 UBYTE CPU_BUFF
[4096]; /* TEMPORARY BUFFER */
100 UBYTE CPU_NAME
[2048];
101 UBYTE CPU_IDENTITY
[4096];
102 UBYTE CPU_FEATURES
[4096];
103 UBYTE CPU_CACHE
[2048];
104 UBYTE CPU_ADDR
[2048];
107 #define CONN_UNKNOWN 0
108 #define CONN_SOCKET_3 1
109 #define CONN_SOCKET_4 2
110 #define CONN_SOCKET_5 3
111 #define CONN_SOCKET_7 4
112 #define CONN_SOCKET_370 5
113 #define CONN_SOCKET_370_FCPGA 6
114 #define CONN_SOCKET_5_7 7
115 #define CONN_SUPER_SOCKET_7 8
116 #define CONN_SLOT_A 9
117 #define CONN_SOCKET_A 10
118 #define CONN_SOCKET_A_SLOT_A 11
119 #define CONN_SOCKET_A_OR_SLOT_A 12
120 #define CONN_SOCKET_57B 13
121 #define CONN_MOBILE_7 14
122 #define CONN_SOCKET_8 15
123 #define CONN_SLOT_1 16
124 #define CONN_SLOT_2 17
125 #define CONN_SOCKET_423 18
128 #define CONN_BGA474 21
130 #define CONN_SOCKET_754 23
131 #define CONN_SOCKET_478 24
133 #endif /* _CPU_x86INTERN_H */