2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License as
4 * published by the Free Software Foundation; either version 2 of the
5 * License, or (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 * Copyright IBM Corp. 2007
18 * Authors: Jimi Xenidis <jimix@watson.ibm.com>
19 * Hollis Blanchard <hollisb@us.ibm.com>
22 #ifndef __LINUX_XEN_COMPAT_H__
23 #define __LINUX_XEN_COMPAT_H__
25 #include <linux/compat.h>
27 extern int privcmd_ioctl_32(int fd, unsigned int cmd, unsigned long arg);
28 struct privcmd_mmap_32 {
34 struct privcmd_mmapbatch_32 {
35 int num; /* number of pages to populate */
36 domid_t dom; /* target domain */
37 __u64 addr; /* virtual address */
38 compat_uptr_t arr; /* array of mfns - top nibble set on err */
40 #define IOCTL_PRIVCMD_MMAP_32 \
41 _IOC(_IOC_NONE, 'P', 2, sizeof(struct privcmd_mmap_32))
42 #define IOCTL_PRIVCMD_MMAPBATCH_32 \
43 _IOC(_IOC_NONE, 'P', 3, sizeof(struct privcmd_mmapbatch_32))
45 #endif /* __LINUX_XEN_COMPAT_H__ */