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 / sembuf.h
blobe530cab248993278c19ab0324491a6cf5b713eba
1 #ifndef _NIOS_SEMBUF_H
2 #define _NIOS_SEMBUF_H
4 /*--------------------------------------------------------------------
6 * include/asm-nios2nommu/sembuf.h
8 * Derived from various works, Alpha, ix86, M68K, Sparc, ...et al
10 * Copyright (C) 2004 Microtronix Datacom Ltd
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
23 * Jan/20/2004 dgt NiosII
25 ---------------------------------------------------------------------*/
28 /*
29 * Note extra padding because this structure is passed back and forth
30 * between kernel and user space.
32 * Pad space is left for:
33 * - 64-bit time_t to solve y2038 problem
34 * - 2 miscellaneous 32-bit values
37 struct semid64_ds {
38 struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
39 __kernel_time_t sem_otime; /* last semop time */
40 unsigned long __unused1;
41 __kernel_time_t sem_ctime; /* last change time */
42 unsigned long __unused2;
43 unsigned long sem_nsems; /* no. of semaphores in array */
44 unsigned long __unused3;
45 unsigned long __unused4;
48 #endif /* _NIOS_SEMBUF_H */