integrate local MP comm within the IPC module

This commit is contained in:
Arisotura
2023-03-11 21:16:37 +01:00
parent d296ce3f5e
commit 6fed0f8d75
4 changed files with 571 additions and 42 deletions

View File

@ -33,14 +33,27 @@ enum
extern int InstanceID;
void Init();
bool Init();
bool InitSema();
void DeInit();
void DeInitSema();
void Process();
void SetMPRecvTimeout(int timeout);
void MPBegin();
void MPEnd();
void ProcessCommands();
bool SendCommand(u16 recipients, u16 command, u16 len, void* data);
bool CommandReceived(u16 command);
int SendMPPacket(u8* data, int len, u64 timestamp);
int RecvMPPacket(u8* data, u64* timestamp);
int SendMPCmd(u8* data, int len, u64 timestamp);
int SendMPReply(u8* data, int len, u64 timestamp, u16 aid);
int SendMPAck(u8* data, int len, u64 timestamp);
int RecvMPHostPacket(u8* data, u64* timestamp);
u16 RecvMPReplies(u8* data, u64 timestamp, u16 aidmask);
}
#endif // IPC_H