message.h

00001 /***************************************************************************
00002                           message.h  -  description
00003                              -------------------
00004     begin                : Wed Jan 21 2004
00005     copyright            : (C) 2004 by Dynacube Team
00006     email                : 
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef __MESSAGE_H
00018 #define __MESSAGE_H
00019 
00020     #include "common/kconst.h"
00021     #include "common/ktypes.h"
00022     #include "proc/proc.h"
00023     #include "mm/mm.h"
00024     #include "common/ds/queue.h"
00025 
00026     #define MAX_MSG_BUF 64
00027     typedef struct  {
00028         DW from_pid;
00029         DW type;
00030         DW sub_type;
00031         DD length;
00032         DB msg_buf[MAX_MSG_BUF];        
00033       }MSG;
00034       
00035  extern DB _msg[MAX_PROC][MAX_Q];
00036 
00037  SDW send(DW pid,MSG *msg);
00038  SDW recv(MSG *msg);
00039  SDW ksend(DW pid, MSG *m);
00040 
00041 #endif

Generated on Thu Jul 27 23:52:27 2006 for Dynacube by  doxygen 1.4.7