virtio: error out if guest exceeds virtqueue size
[qemu/ar7.git] / linux-user / sparc / target_structs.h
blobee24c3b5fc98759a8585bbc1ee0ea712b25b7a28
1 /*
2 * SPARC specific structures for linux-user
4 * Copyright (c) 2013 Fabrice Bellard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 #ifndef SPARC_TARGET_STRUCTS_H
20 #define SPARC_TARGET_STRUCTS_H
22 struct target_ipc_perm {
23 abi_int __key; /* Key. */
24 abi_uint uid; /* Owner's user ID. */
25 abi_uint gid; /* Owner's group ID. */
26 abi_uint cuid; /* Creator's user ID. */
27 abi_uint cgid; /* Creator's group ID. */
28 #if TARGET_ABI_BITS == 32
29 abi_ushort __pad1;
30 abi_ushort mode; /* Read/write permission. */
31 abi_ushort __pad2;
32 #else
33 abi_ushort mode;
34 abi_ushort __pad1;
35 #endif
36 abi_ushort __seq; /* Sequence number. */
37 uint64_t __unused1;
38 uint64_t __unused2;
41 struct target_shmid_ds {
42 struct target_ipc_perm shm_perm; /* operation permission struct */
43 #if TARGET_ABI_BITS == 32
44 abi_uint __pad1;
45 #endif
46 abi_ulong shm_atime; /* time of last shmat() */
47 #if TARGET_ABI_BITS == 32
48 abi_uint __pad2;
49 #endif
50 abi_ulong shm_dtime; /* time of last shmdt() */
51 #if TARGET_ABI_BITS == 32
52 abi_uint __pad3;
53 #endif
54 abi_ulong shm_ctime; /* time of last change by shmctl() */
55 abi_long shm_segsz; /* size of segment in bytes */
56 abi_ulong shm_cpid; /* pid of creator */
57 abi_ulong shm_lpid; /* pid of last shmop */
58 abi_long shm_nattch; /* number of current attaches */
59 abi_ulong __unused1;
60 abi_ulong __unused2;
63 #endif