xref: /openbmc/linux/arch/powerpc/include/uapi/asm/sembuf.h (revision c95baf12f5077419db01313ab61c2aac007d40cd)
1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2c3617f72SDavid Howells #ifndef _ASM_POWERPC_SEMBUF_H
3c3617f72SDavid Howells #define _ASM_POWERPC_SEMBUF_H
4c3617f72SDavid Howells 
5*0fb9dc28SMasahiro Yamada #include <asm/ipcbuf.h>
6*0fb9dc28SMasahiro Yamada 
7c3617f72SDavid Howells /*
8c3617f72SDavid Howells  * This program is free software; you can redistribute it and/or
9c3617f72SDavid Howells  * modify it under the terms of the GNU General Public License
10c3617f72SDavid Howells  * as published by the Free Software Foundation; either version
11c3617f72SDavid Howells  * 2 of the License, or (at your option) any later version.
12c3617f72SDavid Howells  */
13c3617f72SDavid Howells 
14c3617f72SDavid Howells /*
15c3617f72SDavid Howells  * The semid64_ds structure for PPC architecture.
16c3617f72SDavid Howells  * Note extra padding because this structure is passed back and forth
17c3617f72SDavid Howells  * between kernel and user space.
18c3617f72SDavid Howells  *
19c3617f72SDavid Howells  * Pad space is left for:
20d0b67de9SArnd Bergmann  * - 2 miscellaneous 32/64-bit values
21c3617f72SDavid Howells  */
22c3617f72SDavid Howells 
23c3617f72SDavid Howells struct semid64_ds {
24c3617f72SDavid Howells 	struct ipc64_perm sem_perm;	/* permissions .. see ipc.h */
25c3617f72SDavid Howells #ifndef __powerpc64__
26d0b67de9SArnd Bergmann 	unsigned long	sem_otime_high;
27d0b67de9SArnd Bergmann 	unsigned long	sem_otime;	/* last semop time */
28d0b67de9SArnd Bergmann 	unsigned long	sem_ctime_high;
29d0b67de9SArnd Bergmann 	unsigned long	sem_ctime;	/* last change time */
30d0b67de9SArnd Bergmann #else
31caf5e32dSArnd Bergmann 	long		sem_otime;	/* last semop time */
32caf5e32dSArnd Bergmann 	long		sem_ctime;	/* last change time */
33d0b67de9SArnd Bergmann #endif
34c3617f72SDavid Howells 	unsigned long	sem_nsems;	/* no. of semaphores in array */
35c3617f72SDavid Howells 	unsigned long	__unused3;
36c3617f72SDavid Howells 	unsigned long	__unused4;
37c3617f72SDavid Howells };
38c3617f72SDavid Howells 
39c3617f72SDavid Howells #endif	/* _ASM_POWERPC_SEMBUF_H */
40