18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci#ifndef _ASM_SEMBUF_H 38c2ecf20Sopenharmony_ci#define _ASM_SEMBUF_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <asm/ipcbuf.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci/* 88c2ecf20Sopenharmony_ci * The semid64_ds structure for the MIPS architecture. 98c2ecf20Sopenharmony_ci * Note extra padding because this structure is passed back and forth 108c2ecf20Sopenharmony_ci * between kernel and user space. 118c2ecf20Sopenharmony_ci * 128c2ecf20Sopenharmony_ci * Pad space is left for 2 miscellaneous 64-bit values on mips64, 138c2ecf20Sopenharmony_ci * but used for the upper 32 bit of the time values on mips32. 148c2ecf20Sopenharmony_ci */ 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#ifdef __mips64 178c2ecf20Sopenharmony_cistruct semid64_ds { 188c2ecf20Sopenharmony_ci struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ 198c2ecf20Sopenharmony_ci long sem_otime; /* last semop time */ 208c2ecf20Sopenharmony_ci long sem_ctime; /* last change time */ 218c2ecf20Sopenharmony_ci unsigned long sem_nsems; /* no. of semaphores in array */ 228c2ecf20Sopenharmony_ci unsigned long __unused1; 238c2ecf20Sopenharmony_ci unsigned long __unused2; 248c2ecf20Sopenharmony_ci}; 258c2ecf20Sopenharmony_ci#else 268c2ecf20Sopenharmony_cistruct semid64_ds { 278c2ecf20Sopenharmony_ci struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ 288c2ecf20Sopenharmony_ci unsigned long sem_otime; /* last semop time */ 298c2ecf20Sopenharmony_ci unsigned long sem_ctime; /* last change time */ 308c2ecf20Sopenharmony_ci unsigned long sem_nsems; /* no. of semaphores in array */ 318c2ecf20Sopenharmony_ci unsigned long sem_otime_high; 328c2ecf20Sopenharmony_ci unsigned long sem_ctime_high; 338c2ecf20Sopenharmony_ci}; 348c2ecf20Sopenharmony_ci#endif 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci#endif /* _ASM_SEMBUF_H */ 37