MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-nios2nommu / ipc.h
blobcb86a316d889d330ad943e3681f722b4487f935a
1 #ifndef __NIOS2_IPC_H__
2 #define __NIOS2_IPC_H__
4 /* Copied from sparc version
5 * These are used to wrap system calls on the Nios.
7 * See arch/niosnommu/kernel/sys_nios.c for ugly details..
9 * Copyright (C) 2004, Microtronix Datacom Ltd.
11 * All rights reserved.
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
21 * NON INFRINGEMENT. See the GNU General Public License for more
22 * details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 struct ipc_kludge {
30 struct msgbuf *msgp;
31 long msgtyp;
34 #define SEMOP 1
35 #define SEMGET 2
36 #define SEMCTL 3
37 #define MSGSND 11
38 #define MSGRCV 12
39 #define MSGGET 13
40 #define MSGCTL 14
41 #define SHMAT 21
42 #define SHMDT 22
43 #define SHMGET 23
44 #define SHMCTL 24
46 /* Used by the DIPC package, try and avoid reusing it */
47 #define DIPC 25
49 #define IPCCALL(version,op) ((version)<<16 | (op))
51 #endif