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 / msgbuf.h
blob4d090f74c27f2d642ac5abf18b594fb6d5b1e837
1 /*
2 * Taken from the m68k.
4 * Copyright (C) 2004, Microtronix Datacom Ltd.
6 * All rights reserved.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
16 * NON INFRINGEMENT. See the GNU General Public License for more
17 * details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 #ifndef _NIOS2_MSGBUF_H
26 #define _NIOS2_MSGBUF_H
28 /*
29 * The msqid64_ds structure for nios2 architecture.
30 * Note extra padding because this structure is passed back and forth
31 * between kernel and user space.
33 * Pad space is left for:
34 * - 64-bit time_t to solve y2038 problem
35 * - 2 miscellaneous 32-bit values
38 struct msqid64_ds {
39 struct ipc64_perm msg_perm;
40 __kernel_time_t msg_stime; /* last msgsnd time */
41 unsigned long __unused1;
42 __kernel_time_t msg_rtime; /* last msgrcv time */
43 unsigned long __unused2;
44 __kernel_time_t msg_ctime; /* last change time */
45 unsigned long __unused3;
46 unsigned long msg_cbytes; /* current number of bytes on queue */
47 unsigned long msg_qnum; /* number of messages in queue */
48 unsigned long msg_qbytes; /* max number of bytes on queue */
49 __kernel_pid_t msg_lspid; /* pid of last msgsnd */
50 __kernel_pid_t msg_lrpid; /* last receive pid */
51 unsigned long __unused4;
52 unsigned long __unused5;
55 #endif /* _NIOS2_MSGBUF_H */