summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/uapi/asm/sembuf.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-10-25 17:36:02 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-10-25 17:36:02 +0100
commit456ba5a7802e58eccb5aa9751b3ab515ef99b9ca (patch)
tree4ca4dd3726b34dead51af13b67475af7bf857893 /arch/xtensa/include/uapi/asm/sembuf.h
parent05304949332c6d2c7b50f2d0f666a52369f09ced (diff)
parent79748cdb39dbf914bc5f26c75cfd5f91d84d82c9 (diff)
downloadop-kernel-dev-456ba5a7802e58eccb5aa9751b3ab515ef99b9ca.zip
op-kernel-dev-456ba5a7802e58eccb5aa9751b3ab515ef99b9ca.tar.gz
Merge remote-tracking branches 'asoc/fix/ux500' and 'asoc/fix/wm8994' into for-3.7
Diffstat (limited to 'arch/xtensa/include/uapi/asm/sembuf.h')
-rw-r--r--arch/xtensa/include/uapi/asm/sembuf.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/arch/xtensa/include/uapi/asm/sembuf.h b/arch/xtensa/include/uapi/asm/sembuf.h
new file mode 100644
index 0000000..c158704
--- /dev/null
+++ b/arch/xtensa/include/uapi/asm/sembuf.h
@@ -0,0 +1,44 @@
+/*
+ * include/asm-xtensa/sembuf.h
+ *
+ * The semid64_ds structure for Xtensa architecture.
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2001 - 2005 Tensilica Inc.
+ *
+ * Note extra padding because this structure is passed back and forth
+ * between kernel and user space.
+ *
+ * Pad space is left for:
+ * - 64-bit time_t to solve y2038 problem
+ * - 2 miscellaneous 32-bit values
+ *
+ */
+
+#ifndef _XTENSA_SEMBUF_H
+#define _XTENSA_SEMBUF_H
+
+#include <asm/byteorder.h>
+
+struct semid64_ds {
+ struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
+#ifdef __XTENSA_EL__
+ __kernel_time_t sem_otime; /* last semop time */
+ unsigned long __unused1;
+ __kernel_time_t sem_ctime; /* last change time */
+ unsigned long __unused2;
+#else
+ unsigned long __unused1;
+ __kernel_time_t sem_otime; /* last semop time */
+ unsigned long __unused2;
+ __kernel_time_t sem_ctime; /* last change time */
+#endif
+ unsigned long sem_nsems; /* no. of semaphores in array */
+ unsigned long __unused3;
+ unsigned long __unused4;
+};
+
+#endif /* __ASM_XTENSA_SEMBUF_H */
OpenPOWER on IntegriCloud