xenio.h revision 1.1.2.2 1 1.1.2.2 he /* $NetBSD: xenio.h,v 1.1.2.2 2004/05/22 15:59:21 he Exp $ */
2 1.1.2.2 he
3 1.1.2.2 he /*
4 1.1.2.2 he *
5 1.1.2.2 he * Copyright (c) 2003, 2004 Keir Fraser (on behalf of the Xen team)
6 1.1.2.2 he * All rights reserved.
7 1.1.2.2 he *
8 1.1.2.2 he * Permission is hereby granted, free of charge, to any person obtaining a copy
9 1.1.2.2 he * of this software and associated documentation files (the "Software"), to
10 1.1.2.2 he * deal in the Software without restriction, including without limitation the
11 1.1.2.2 he * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12 1.1.2.2 he * sell copies of the Software, and to permit persons to whom the Software is
13 1.1.2.2 he * furnished to do so, subject to the following conditions:
14 1.1.2.2 he *
15 1.1.2.2 he * The above copyright notice and this permission notice shall be included in
16 1.1.2.2 he * all copies or substantial portions of the Software.
17 1.1.2.2 he *
18 1.1.2.2 he * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 1.1.2.2 he * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 1.1.2.2 he * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 1.1.2.2 he * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 1.1.2.2 he * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 1.1.2.2 he * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24 1.1.2.2 he * DEALINGS IN THE SOFTWARE.
25 1.1.2.2 he */
26 1.1.2.2 he
27 1.1.2.2 he
28 1.1.2.2 he #ifndef __SYS_XENIO_H__
29 1.1.2.2 he #define __SYS_XENIO_H__
30 1.1.2.2 he
31 1.1.2.2 he typedef struct privcmd_hypercall {
32 1.1.2.2 he unsigned long op;
33 1.1.2.2 he unsigned long arg[5];
34 1.1.2.2 he } privcmd_hypercall_t;
35 1.1.2.2 he
36 1.1.2.2 he typedef struct privcmd_blkmsg {
37 1.1.2.2 he unsigned long op;
38 1.1.2.2 he void *buf;
39 1.1.2.2 he int buf_size;
40 1.1.2.2 he } privcmd_blkmsg_t;
41 1.1.2.2 he
42 1.1.2.2 he #define IOCTL_PRIVCMD_HYPERCALL \
43 1.1.2.2 he _IOC(IOC_IN, 'P', 0, sizeof(privcmd_hypercall_t))
44 1.1.2.2 he #define IOCTL_PRIVCMD_BLKMSG \
45 1.1.2.2 he _IOC(IOC_VOID, 'P', 1, sizeof(privcmd_blkmsg_t))
46 1.1.2.2 he
47 1.1.2.2 he #endif /* __SYS_XENIO_H__ */
48