1 /*
2  *  Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved.
3  *
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 /*
19  * Hexagon specific structures for linux-user
20  */
21 #ifndef HEXAGON_TARGET_STRUCTS_H
22 #define HEXAGON_TARGET_STRUCTS_H
23 
24 struct target_ipc_perm {
25     abi_int __key;                      /* Key.  */
26     abi_uint uid;                       /* Owner's user ID.  */
27     abi_uint gid;                       /* Owner's group ID.  */
28     abi_uint cuid;                      /* Creator's user ID.  */
29     abi_uint cgid;                      /* Creator's group ID.  */
30     abi_ushort mode;                    /* Read/write permission.  */
31     abi_ushort __pad1;
32     abi_ushort __seq;                   /* Sequence number.  */
33     abi_ushort __pad2;
34     abi_ulong __unused1;
35     abi_ulong __unused2;
36 };
37 
38 struct target_shmid_ds {
39     struct target_ipc_perm shm_perm;    /* operation permission struct */
40     abi_long shm_segsz;                 /* size of segment in bytes */
41     abi_ulong shm_atime;                /* time of last shmat() */
42     abi_ulong __unused1;
43     abi_ulong shm_dtime;                /* time of last shmdt() */
44     abi_ulong __unused2;
45     abi_ulong shm_ctime;                /* time of last change by shmctl() */
46     abi_ulong __unused3;
47     abi_int shm_cpid;                   /* pid of creator */
48     abi_int shm_lpid;                   /* pid of last shmop */
49     abi_ulong shm_nattch;               /* number of current attaches */
50     abi_ulong __unused4;
51     abi_ulong __unused5;
52 };
53 
54 #endif
55