xref: /OK3568_Linux_fs/kernel/include/xen/xenbus_dev.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /******************************************************************************
2*4882a593Smuzhiyun  * evtchn.h
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * Interface to /dev/xen/xenbus_backend.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Copyright (c) 2011 Bastian Blank <waldi@debian.org>
7*4882a593Smuzhiyun  *
8*4882a593Smuzhiyun  * This program is free software; you can redistribute it and/or
9*4882a593Smuzhiyun  * modify it under the terms of the GNU General Public License version 2
10*4882a593Smuzhiyun  * as published by the Free Software Foundation; or, when distributed
11*4882a593Smuzhiyun  * separately from the Linux kernel or incorporated into other
12*4882a593Smuzhiyun  * software packages, subject to the following license:
13*4882a593Smuzhiyun  *
14*4882a593Smuzhiyun  * Permission is hereby granted, free of charge, to any person obtaining a copy
15*4882a593Smuzhiyun  * of this source file (the "Software"), to deal in the Software without
16*4882a593Smuzhiyun  * restriction, including without limitation the rights to use, copy, modify,
17*4882a593Smuzhiyun  * merge, publish, distribute, sublicense, and/or sell copies of the Software,
18*4882a593Smuzhiyun  * and to permit persons to whom the Software is furnished to do so, subject to
19*4882a593Smuzhiyun  * the following conditions:
20*4882a593Smuzhiyun  *
21*4882a593Smuzhiyun  * The above copyright notice and this permission notice shall be included in
22*4882a593Smuzhiyun  * all copies or substantial portions of the Software.
23*4882a593Smuzhiyun  *
24*4882a593Smuzhiyun  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25*4882a593Smuzhiyun  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26*4882a593Smuzhiyun  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27*4882a593Smuzhiyun  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28*4882a593Smuzhiyun  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29*4882a593Smuzhiyun  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
30*4882a593Smuzhiyun  * IN THE SOFTWARE.
31*4882a593Smuzhiyun  */
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun #ifndef __LINUX_XEN_XENBUS_DEV_H__
34*4882a593Smuzhiyun #define __LINUX_XEN_XENBUS_DEV_H__
35*4882a593Smuzhiyun 
36*4882a593Smuzhiyun #include <linux/ioctl.h>
37*4882a593Smuzhiyun 
38*4882a593Smuzhiyun #define IOCTL_XENBUS_BACKEND_EVTCHN			\
39*4882a593Smuzhiyun 	_IOC(_IOC_NONE, 'B', 0, 0)
40*4882a593Smuzhiyun 
41*4882a593Smuzhiyun #define IOCTL_XENBUS_BACKEND_SETUP			\
42*4882a593Smuzhiyun 	_IOC(_IOC_NONE, 'B', 1, 0)
43*4882a593Smuzhiyun 
44*4882a593Smuzhiyun #endif /* __LINUX_XEN_XENBUS_DEV_H__ */
45