1 #ifndef POWERUP_PPCLIB_MESSAGE_H 2 #define POWERUP_PPCLIB_MESSAGE_H 3 4 #include <utility/tagitem.h> 5 6 /* This file should be used under SAS and GCC 7 */ 8 9 #define PPCPORTTAG_Dummy (TAG_USER + 0x24000) 10 #define PPCPORTTAG_NAME (PPCPORTTAG_Dummy + 0) 11 #define PPCPORTTAG_ERROR (PPCPORTTAG_Dummy + 1) 12 /* 13 * PPCObtainPort() 14 */ 15 16 /* To define a different network timeout 17 * if PPCPORTTAG_MACHINE is used 18 * Not supported yet 19 */ 20 #define PPCPORTTAG_TIMEOUT (PPCPORTTAG_Dummy + 2) 21 /* To define a machine in the network 22 * Not supported yet 23 */ 24 #define PPCPORTTAG_MACHINE (PPCPORTTAG_Dummy + 3) 25 /* Search port on the local processor 26 * Not supported yet 27 */ 28 #define PPCPORTTAG_LOCAL (PPCPORTTAG_Dummy + 4) 29 /* Search port on all processors 30 * Not supported yet 31 */ 32 #define PPCPORTTAG_GLOBAL (PPCPORTTAG_Dummy + 5) 33 34 35 #define PPCMSGTAG_Dummy (TAG_USER + 0x25000) 36 #define PPCMSGTAG_DATA (PPCMSGTAG_Dummy + 0) 37 #define PPCMSGTAG_DATALENGTH (PPCMSGTAG_Dummy + 1) 38 #define PPCMSGTAG_MSGID (PPCMSGTAG_Dummy + 2) 39 40 /* Returns NT_REPLYMSG or NT_MESSAGE or NT_FREEMSG */ 41 #define PPCMSGTAG_MSGTYPE (PPCMSGTAG_Dummy + 3) 42 43 #define PPCPORTERROR_OK 0 44 #define PPCPORTERROR_MEMORY 1 45 #define PPCPORTERROR_SIGNAL 2 46 #define PPCPORTERROR_PORTEXISTS 3 47 #define PPCPORTERROR_NOTFOUND 4 48 #define PPCPORTERROR_TIMEOUT 5 49 50 #define PPCPORTLISTTAG_Dummy (TAG_USER + 0x26000) 51 #define PPCPORTLISTTAG_EXTENDEDSIGNALS (PPCPORTLISTTAG_Dummy + 0) 52 #define PPCPORTLISTTAG_RECEIVEDSIGNALS (PPCPORTLISTTAG_Dummy + 1) 53 54 #endif