- patches.rt/0001-sched-count-of-queued-RT-tasks.patch: Delete.
[linux-flexiantxendom0-3.2.10.git] / include / xen / compat_ioctl.h
1 /*
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.
6  *
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.
11  *
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.
15  *
16  * Copyright IBM Corp. 2007
17  *
18  * Authors: Jimi Xenidis <jimix@watson.ibm.com>
19  *          Hollis Blanchard <hollisb@us.ibm.com>
20  */
21
22 #ifndef __LINUX_XEN_COMPAT_H__ 
23 #define __LINUX_XEN_COMPAT_H__ 
24
25 #include <linux/compat.h>
26
27 extern int privcmd_ioctl_32(int fd, unsigned int cmd, unsigned long arg);
28 struct privcmd_mmap_32 {
29         int num;
30         domid_t dom;
31         compat_uptr_t entry;
32 };
33
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 */
39 };
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))
44
45 #endif /* __LINUX_XEN_COMPAT_H__ */