[project @ 2001-03-21 15:33:47 by simonmar]
[ghc-hetmet.git] / ghc / rts / parallel / PEOpCodes.h
1 #ifndef PEOPCODES_H
2 #define PEOPCODES_H
3
4 /************************************************************************
5 *                         PEOpCodes.h                                   *
6 *                                                                       *
7 *       This file contains definitions for all the GUM PE Opcodes       *
8 *       It's based on the GRAPH for PVM version                         *
9 *       Phil Trinder, Glasgow University 8th December 1994              *
10 *                                                                       *
11    RFPointon, December 1999
12      - removed PP_SYSMAN_TID, introduced PP_READY
13      - removed PP_MAIN_TASK, introduced PP_NEWPE
14      - added PP_REVAL
15 ************************************************************************/
16
17 #define REPLY_OK                0x00
18
19 /*Startup + Shutdown*/
20 #define PP_SYSMAN_TID           0x50
21 #define PP_MAIN_TASK            0x51
22 #define PP_FINISH               0x52
23 #define PP_PETIDS               0x53
24
25 /* Stats stuff */
26 #define PP_STATS                0x54
27 #define PP_STATS_ON             0x55
28 #define PP_STATS_OFF            0x56
29
30 #define PP_FAIL                 0x57
31
32 /*Garbage Collection*/
33 #define PP_GC_INIT              0x58
34 #define PP_FULL_SYSTEM          0x59
35 #define PP_GC_POLL              0x5a
36
37 /*GUM Messages*/
38 #define PP_FETCH                0x5b
39 #define PP_RESUME               0x5c
40 #define PP_ACK                  0x5d
41 #define PP_FISH                 0x5e
42 #define PP_SCHEDULE             0x5f
43 #define PP_FREE                 0x60
44
45 #define MIN_PEOPS               0x50
46 #define MAX_PEOPS               0x60
47
48 #define PEOP_NAMES              "Init", "IOInit", \
49                                 "Finish", "PETIDS", \
50                                 "Stats", "Stats_On", "Stats_Off", \
51                                 "Fail", \
52                                 "GCInit", "FullSystem", "GCPoll", \
53                                 "Fetch","Resume","ACK","Fish","Schedule", \
54                                 "Free"
55
56 #endif /* PEOPCODES_H */