xref: /linux/arch/xtensa/include/uapi/asm/sembuf.h (revision e2be04c7f9958dde770eeb8b30e829ca969b37bb)
1*e2be04c7SGreg 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  * - 64-bit time_t to solve y2038 problem
1883596729SDavid Howells  * - 2 miscellaneous 32-bit values
1983596729SDavid Howells  *
2083596729SDavid Howells  */
2183596729SDavid Howells 
2283596729SDavid Howells #ifndef _XTENSA_SEMBUF_H
2383596729SDavid Howells #define _XTENSA_SEMBUF_H
2483596729SDavid Howells 
2583596729SDavid Howells #include <asm/byteorder.h>
2683596729SDavid Howells 
2783596729SDavid Howells struct semid64_ds {
2883596729SDavid Howells 	struct ipc64_perm sem_perm;		/* permissions .. see ipc.h */
2983596729SDavid Howells #ifdef __XTENSA_EL__
3083596729SDavid Howells 	__kernel_time_t	sem_otime;		/* last semop time */
3183596729SDavid Howells 	unsigned long	__unused1;
3283596729SDavid Howells 	__kernel_time_t	sem_ctime;		/* last change time */
3383596729SDavid Howells 	unsigned long	__unused2;
3483596729SDavid Howells #else
3583596729SDavid Howells 	unsigned long	__unused1;
3683596729SDavid Howells 	__kernel_time_t	sem_otime;		/* last semop time */
3783596729SDavid Howells 	unsigned long	__unused2;
3883596729SDavid Howells 	__kernel_time_t	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