xref: /linux/arch/xtensa/include/uapi/asm/sembuf.h (revision b497ef570ecdeeaef4335ecc4f712cbaae0918a5)
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>
2583596729SDavid Howells 
2683596729SDavid Howells struct semid64_ds {
2783596729SDavid Howells 	struct ipc64_perm sem_perm;		/* permissions .. see ipc.h */
2883596729SDavid Howells #ifdef __XTENSA_EL__
29*b497ef57SArnd Bergmann 	unsigned long	sem_otime;		/* last semop time */
30*b497ef57SArnd Bergmann 	unsigned long	sem_otime_high;
31*b497ef57SArnd Bergmann 	unsigned long	sem_ctime;		/* last change time */
32*b497ef57SArnd Bergmann 	unsigned long	sem_ctime_high;
3383596729SDavid Howells #else
34*b497ef57SArnd Bergmann 	unsigned long	sem_otime_high;
35*b497ef57SArnd Bergmann 	unsigned long	sem_otime;		/* last semop time */
36*b497ef57SArnd Bergmann 	unsigned long	sem_ctime_high;
37*b497ef57SArnd Bergmann 	unsigned long	sem_ctime;		/* last change time */
3883596729SDavid Howells #endif
3983596729SDavid Howells 	unsigned long	sem_nsems;		/* no. of semaphores in array */
4083596729SDavid Howells 	unsigned long	__unused3;
4183596729SDavid Howells 	unsigned long	__unused4;
4283596729SDavid Howells };
4383596729SDavid Howells 
4483596729SDavid Howells #endif /* __ASM_XTENSA_SEMBUF_H */
45