xenbus_comms.h revision 1.3 1 1.3 bouyer /* $NetBSD: xenbus_comms.h,v 1.3 2006/04/09 21:39:42 bouyer Exp $ */
2 1.1 bouyer /*
3 1.1 bouyer * Private include for xenbus communications.
4 1.1 bouyer *
5 1.1 bouyer * Copyright (C) 2005 Rusty Russell, IBM Corporation
6 1.1 bouyer *
7 1.1 bouyer * This file may be distributed separately from the Linux kernel, or
8 1.1 bouyer * incorporated into other software packages, subject to the following license:
9 1.1 bouyer *
10 1.1 bouyer * Permission is hereby granted, free of charge, to any person obtaining a copy
11 1.1 bouyer * of this source file (the "Software"), to deal in the Software without
12 1.1 bouyer * restriction, including without limitation the rights to use, copy, modify,
13 1.1 bouyer * merge, publish, distribute, sublicense, and/or sell copies of the Software,
14 1.1 bouyer * and to permit persons to whom the Software is furnished to do so, subject to
15 1.1 bouyer * the following conditions:
16 1.1 bouyer *
17 1.1 bouyer * The above copyright notice and this permission notice shall be included in
18 1.1 bouyer * all copies or substantial portions of the Software.
19 1.1 bouyer *
20 1.1 bouyer * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 1.1 bouyer * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 1.1 bouyer * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 1.1 bouyer * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 1.1 bouyer * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25 1.1 bouyer * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
26 1.1 bouyer * IN THE SOFTWARE.
27 1.1 bouyer */
28 1.1 bouyer
29 1.1 bouyer #ifndef _XENBUS_COMMS_H
30 1.1 bouyer #define _XENBUS_COMMS_H
31 1.1 bouyer
32 1.2 bouyer void xenbus_kernfs_init(void);
33 1.1 bouyer int xs_init(void);
34 1.2 bouyer int xb_init_comms(struct device *dev);
35 1.1 bouyer
36 1.1 bouyer /* Low level routines. */
37 1.1 bouyer int xb_write(const void *data, unsigned len);
38 1.1 bouyer int xb_read(void *data, unsigned len);
39 1.1 bouyer int xs_input_avail(void);
40 1.1 bouyer
41 1.3 bouyer extern struct xenstore_domain_interface *xenstore_interface;
42 1.3 bouyer
43 1.1 bouyer #endif /* _XENBUS_COMMS_H */
44 1.1 bouyer
45 1.1 bouyer /*
46 1.1 bouyer * Local variables:
47 1.1 bouyer * c-file-style: "linux"
48 1.1 bouyer * indent-tabs-mode: t
49 1.1 bouyer * c-indent-level: 8
50 1.1 bouyer * c-basic-offset: 8
51 1.1 bouyer * tab-width: 8
52 1.1 bouyer * End:
53 1.1 bouyer */
54