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
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.
46 /* Used by the DIPC package, try and avoid reusing it */
49 #define IPCCALL(version,op) ((version)<<16 | (op))