18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci#ifndef _SPARC_SEMBUF_H 38c2ecf20Sopenharmony_ci#define _SPARC_SEMBUF_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <asm/ipcbuf.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci/* 88c2ecf20Sopenharmony_ci * The semid64_ds structure for sparc 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: 138c2ecf20Sopenharmony_ci * - 2 miscellaneous 32-bit values 148c2ecf20Sopenharmony_ci */ 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_cistruct semid64_ds { 178c2ecf20Sopenharmony_ci struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ 188c2ecf20Sopenharmony_ci#if defined(__sparc__) && defined(__arch64__) 198c2ecf20Sopenharmony_ci long sem_otime; /* last semop time */ 208c2ecf20Sopenharmony_ci long sem_ctime; /* last change time */ 218c2ecf20Sopenharmony_ci#else 228c2ecf20Sopenharmony_ci unsigned long sem_otime_high; 238c2ecf20Sopenharmony_ci unsigned long sem_otime; /* last semop time */ 248c2ecf20Sopenharmony_ci unsigned long sem_ctime_high; 258c2ecf20Sopenharmony_ci unsigned long sem_ctime; /* last change time */ 268c2ecf20Sopenharmony_ci#endif 278c2ecf20Sopenharmony_ci unsigned long sem_nsems; /* no. of semaphores in array */ 288c2ecf20Sopenharmony_ci unsigned long __unused1; 298c2ecf20Sopenharmony_ci unsigned long __unused2; 308c2ecf20Sopenharmony_ci}; 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#endif /* _SPARC64_SEMBUF_H */ 33