Home | History | Annotate | Line # | Download | only in xenbus
xenbus_comms.h revision 1.5.8.1
      1  1.5.8.1     jym /* $NetBSD: xenbus_comms.h,v 1.5.8.1 2009/02/09 00:03:55 jym 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.5     jym int xs_init(device_t dev);
     34      1.4  cegger int xb_init_comms(device_t dev);
     35  1.5.8.1     jym void xb_suspend_comms(device_t dev);
     36  1.5.8.1     jym void xb_resume_comms(device_t dev);
     37      1.1  bouyer 
     38      1.1  bouyer /* Low level routines. */
     39      1.1  bouyer int xb_write(const void *data, unsigned len);
     40      1.1  bouyer int xb_read(void *data, unsigned len);
     41      1.1  bouyer int xs_input_avail(void);
     42      1.1  bouyer 
     43      1.3  bouyer extern struct xenstore_domain_interface *xenstore_interface;
     44      1.3  bouyer 
     45      1.1  bouyer #endif /* _XENBUS_COMMS_H */
     46      1.1  bouyer 
     47      1.1  bouyer /*
     48      1.1  bouyer  * Local variables:
     49      1.1  bouyer  *  c-file-style: "linux"
     50      1.1  bouyer  *  indent-tabs-mode: t
     51      1.1  bouyer  *  c-indent-level: 8
     52      1.1  bouyer  *  c-basic-offset: 8
     53      1.1  bouyer  *  tab-width: 8
     54      1.1  bouyer  * End:
     55      1.1  bouyer  */
     56