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