OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [testbench/] [uos/] [ipc.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 222 markom
/* This file is part of test microkernel for OpenRISC 1000. */
2
/* (C) 2000 Damjan Lampret, lampret@opencores.org */
3
 
4
/* Operation completed sucessfully. */
5
#define IPC_NOERR 0
6
 
7
/* Can't send any messages due to lack of free MCBs. */
8
#define IPC_EOUTOFMCBS 1
9
 
10
/* Sending message: No such destination task.
11
   Receiving message: No such origin task. */
12
#define IPC_ENOTASK 2
13
 
14
/* Message to big to be sent or receive buffer is to small for
15
   receiving message. If receiving then try again with bigger buffer. */
16
#define IPC_ETOOBIG 3
17
 
18
/* No messages waiting to be received. */
19
#define IPC_ENOMSGS 4
20
 
21
/* Send message in buffer buf of size len to task desttask. */
22
int uos_msgsnd(tid_t desttask, char *buf, int len);
23
 
24
/* Receive message of max size len from task origintask and put it
25
   into buffer buf. If origintask is zero then get the first message
26
   from the message queue. */
27
int uos_msgrcv(tid_t origintask, char *buf, int len);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.