1#ifndef __CRIS_IPC_H__ 2#define __CRIS_IPC_H__ 3 4/* 5 * These are used to wrap system calls on CRIS. 6 * 7 * See arch/cris/kernel/sys_cris.c for ugly details.. 8 * 9 * Same as x86 version. 10 * 11 */ 12struct ipc_kludge { 13 struct msgbuf *msgp; 14 long msgtyp; 15}; 16 17#define SEMOP 1 18#define SEMGET 2 19#define SEMCTL 3 20#define MSGSND 11 21#define MSGRCV 12 22#define MSGGET 13 23#define MSGCTL 14 24#define SHMAT 21 25#define SHMDT 22 26#define SHMGET 23 27#define SHMCTL 24 28 29/* Used by the DIPC package, try and avoid reusing it */ 30#define DIPC 25 31 32#define IPCCALL(version,op) ((version)<<16 | (op)) 33 34#endif 35