dev_mp.h Source File

Back to the index.

dev_mp.h
Go to the documentation of this file.
1 #ifndef TESTMACHINE_MP_H
2 #define TESTMACHINE_MP_H
3 
4 /*
5  * Definitions used by the "mp" device in GXemul.
6  *
7  * This file is in the public domain.
8  */
9 
10 
11 /*
12  * Architecture-specific interrupt definitions:
13  */
14 
15 #define MIPS_IPI_INT 6
16 
17 
18 /*
19  * Default (physical) base address and length:
20  */
21 
22 #define DEV_MP_ADDRESS 0x0000000011000000ULL
23 #define DEV_MP_LENGTH 0x0000000000000100ULL
24 
25 
26 /*
27  * Offsets from the base address to reach the MP device' registers:
28  */
29 
30 #define DEV_MP_WHOAMI 0x0000
31 #define DEV_MP_NCPUS 0x0010
32 #define DEV_MP_STARTUPCPU 0x0020
33 #define DEV_MP_STARTUPADDR 0x0030
34 #define DEV_MP_PAUSE_ADDR 0x0040
35 #define DEV_MP_PAUSE_CPU 0x0050
36 #define DEV_MP_UNPAUSE_CPU 0x0060
37 #define DEV_MP_STARTUPSTACK 0x0070
38 #define DEV_MP_HARDWARE_RANDOM 0x0080
39 #define DEV_MP_MEMORY 0x0090
40 #define DEV_MP_IPI_ONE 0x00a0
41 #define DEV_MP_IPI_MANY 0x00b0
42 #define DEV_MP_IPI_READ 0x00c0
43 #define DEV_MP_NCYCLES 0x00d0
44 
45 
46 #endif /* TESTMACHINE_MP_H */

Generated on Tue Mar 24 2020 14:04:48 for GXemul by doxygen 1.8.17