162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * include/asm-xtensa/sembuf.h 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * The semid64_ds structure for Xtensa architecture. 662306a36Sopenharmony_ci * 762306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 862306a36Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 962306a36Sopenharmony_ci * for more details. 1062306a36Sopenharmony_ci * 1162306a36Sopenharmony_ci * Copyright (C) 2001 - 2005 Tensilica Inc. 1262306a36Sopenharmony_ci * 1362306a36Sopenharmony_ci * Note extra padding because this structure is passed back and forth 1462306a36Sopenharmony_ci * between kernel and user space. 1562306a36Sopenharmony_ci * 1662306a36Sopenharmony_ci * Pad space is left for: 1762306a36Sopenharmony_ci * - 2 miscellaneous 32-bit values 1862306a36Sopenharmony_ci * 1962306a36Sopenharmony_ci */ 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci#ifndef _XTENSA_SEMBUF_H 2262306a36Sopenharmony_ci#define _XTENSA_SEMBUF_H 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci#include <asm/byteorder.h> 2562306a36Sopenharmony_ci#include <asm/ipcbuf.h> 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_cistruct semid64_ds { 2862306a36Sopenharmony_ci struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ 2962306a36Sopenharmony_ci#ifdef __XTENSA_EL__ 3062306a36Sopenharmony_ci unsigned long sem_otime; /* last semop time */ 3162306a36Sopenharmony_ci unsigned long sem_otime_high; 3262306a36Sopenharmony_ci unsigned long sem_ctime; /* last change time */ 3362306a36Sopenharmony_ci unsigned long sem_ctime_high; 3462306a36Sopenharmony_ci#else 3562306a36Sopenharmony_ci unsigned long sem_otime_high; 3662306a36Sopenharmony_ci unsigned long sem_otime; /* last semop time */ 3762306a36Sopenharmony_ci unsigned long sem_ctime_high; 3862306a36Sopenharmony_ci unsigned long sem_ctime; /* last change time */ 3962306a36Sopenharmony_ci#endif 4062306a36Sopenharmony_ci unsigned long sem_nsems; /* no. of semaphores in array */ 4162306a36Sopenharmony_ci unsigned long __unused3; 4262306a36Sopenharmony_ci unsigned long __unused4; 4362306a36Sopenharmony_ci}; 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_ci#endif /* __ASM_XTENSA_SEMBUF_H */ 46