OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [or1ksim/] [or1ksim-0.4.0/] [testsuite/] [test-code-or1k/] [uos/] [ipc.h] - Diff between revs 90 and 135

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 90 Rev 135
/* ipc.h.  Microkernel IPC header for Or1ksim
/* ipc.h.  Microkernel IPC header for Or1ksim
 
 
   Copyright (C) 2000 Damjan Lampret
   Copyright (C) 2000 Damjan Lampret
   Copyright (C) 2010 Embecosm Limited
   Copyright (C) 2010 Embecosm Limited
 
 
   Contributor Damjan Lampret <lampret@opencores.org>
   Contributor Damjan Lampret <lampret@opencores.org>
   Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
   Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
 
 
   This file is part of OpenRISC 1000 Architectural Simulator.
   This file is part of OpenRISC 1000 Architectural Simulator.
 
 
   This program is free software; you can redistribute it and/or modify it
   This program is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published by the Free
   under the terms of the GNU General Public License as published by the Free
   Software Foundation; either version 3 of the License, or (at your option)
   Software Foundation; either version 3 of the License, or (at your option)
   any later version.
   any later version.
 
 
   This program is distributed in the hope that it will be useful, but WITHOUT
   This program is distributed in the hope that it will be useful, but WITHOUT
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
   more details.
   more details.
 
 
   You should have received a copy of the GNU General Public License along
   You should have received a copy of the GNU General Public License along
   with this program.  If not, see <http:  www.gnu.org/licenses/>.  */
   with this program.  If not, see <http:  www.gnu.org/licenses/>.  */
 
 
/* ----------------------------------------------------------------------------
/* ----------------------------------------------------------------------------
   This code is commented throughout for use with Doxygen.
   This code is commented throughout for use with Doxygen.
   --------------------------------------------------------------------------*/
   --------------------------------------------------------------------------*/
 
 
/* This file is part of test microkernel for OpenRISC 1000. */
/* This file is part of test microkernel for OpenRISC 1000. */
 
 
/* Operation completed sucessfully. */
/* Operation completed sucessfully. */
#define IPC_NOERR 0
#define IPC_NOERR 0
 
 
/* Can't send any messages due to lack of free MCBs. */
/* Can't send any messages due to lack of free MCBs. */
#define IPC_EOUTOFMCBS 1
#define IPC_EOUTOFMCBS 1
 
 
/* Sending message: No such destination task.
/* Sending message: No such destination task.
   Receiving message: No such origin task. */
   Receiving message: No such origin task. */
#define IPC_ENOTASK 2
#define IPC_ENOTASK 2
 
 
/* Message to big to be sent or receive buffer is to small for
/* Message to big to be sent or receive buffer is to small for
   receiving message. If receiving then try again with bigger buffer. */
   receiving message. If receiving then try again with bigger buffer. */
#define IPC_ETOOBIG 3
#define IPC_ETOOBIG 3
 
 
/* No messages waiting to be received. */
/* No messages waiting to be received. */
#define IPC_ENOMSGS 4
#define IPC_ENOMSGS 4
 
 
/* Send message in buffer buf of size len to task desttask. */
/* Send message in buffer buf of size len to task desttask. */
void uos_msgsnd(tid_t desttask, char *buf, int len);
void uos_msgsnd(tid_t desttask, char *buf, int len);
 
 
/* Receive message of max size len from task origintask and put it
/* Receive message of max size len from task origintask and put it
   into buffer buf. If origintask is zero then get the first message
   into buffer buf. If origintask is zero then get the first message
   from the message queue. */
   from the message queue. */
void uos_msgrcv(tid_t origintask, char *buf, int len);
void 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.