xref: /linux/arch/xtensa/include/uapi/asm/sembuf.h (revision c95baf12f5077419db01313ab61c2aac007d40cd)
1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
283596729SDavid Howells /*
383596729SDavid Howells  * include/asm-xtensa/sembuf.h
483596729SDavid Howells  *
583596729SDavid Howells  * The semid64_ds structure for Xtensa architecture.
683596729SDavid Howells  *
783596729SDavid Howells  * This file is subject to the terms and conditions of the GNU General Public
883596729SDavid Howells  * License.  See the file "COPYING" in the main directory of this archive
983596729SDavid Howells  * for more details.
1083596729SDavid Howells  *
1183596729SDavid Howells  * Copyright (C) 2001 - 2005 Tensilica Inc.
1283596729SDavid Howells  *
1383596729SDavid Howells  * Note extra padding because this structure is passed back and forth
1483596729SDavid Howells  * between kernel and user space.
1583596729SDavid Howells  *
1683596729SDavid Howells  * Pad space is left for:
1783596729SDavid Howells  * - 2 miscellaneous 32-bit values
1883596729SDavid Howells  *
1983596729SDavid Howells  */
2083596729SDavid Howells 
2183596729SDavid Howells #ifndef _XTENSA_SEMBUF_H
2283596729SDavid Howells #define _XTENSA_SEMBUF_H
2383596729SDavid Howells 
2483596729SDavid Howells #include <asm/byteorder.h>
25*0fb9dc28SMasahiro Yamada #include <asm/ipcbuf.h>
2683596729SDavid Howells 
2783596729SDavid Howells struct semid64_ds {
2883596729SDavid Howells 	struct ipc64_perm sem_perm;		/* permissions .. see ipc.h */
2983596729SDavid Howells #ifdef __XTENSA_EL__
30b497ef57SArnd Bergmann 	unsigned long	sem_otime;		/* last semop time */
31b497ef57SArnd Bergmann 	unsigned long	sem_otime_high;
32b497ef57SArnd Bergmann 	unsigned long	sem_ctime;		/* last change time */
33b497ef57SArnd Bergmann 	unsigned long	sem_ctime_high;
3483596729SDavid Howells #else
35b497ef57SArnd Bergmann 	unsigned long	sem_otime_high;
36b497ef57SArnd Bergmann 	unsigned long	sem_otime;		/* last semop time */
37b497ef57SArnd Bergmann 	unsigned long	sem_ctime_high;
38b497ef57SArnd Bergmann 	unsigned long	sem_ctime;		/* last change time */
3983596729SDavid Howells #endif
4083596729SDavid Howells 	unsigned long	sem_nsems;		/* no. of semaphores in array */
4183596729SDavid Howells 	unsigned long	__unused3;
4283596729SDavid Howells 	unsigned long	__unused4;
4383596729SDavid Howells };
4483596729SDavid Howells 
4583596729SDavid Howells #endif /* __ASM_XTENSA_SEMBUF_H */
46