Home | History | Annotate | Line # | Download | only in xenbus
      1  1.8  jdolecek /* $NetBSD: xenbus_comms.h,v 1.8 2020/05/13 13:19:38 jdolecek 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.8  jdolecek int xs_init(device_t);
     34  1.8  jdolecek int xb_init_comms(device_t);
     35  1.8  jdolecek void xb_suspend_comms(device_t);
     36  1.8  jdolecek int xb_resume_comms(device_t);
     37  1.1    bouyer 
     38  1.7    bouyer void xb_xenstored_make_ready(void);
     39  1.7    bouyer 
     40  1.1    bouyer /* Low level routines. */
     41  1.1    bouyer int xb_write(const void *data, unsigned len);
     42  1.1    bouyer int xb_read(void *data, unsigned len);
     43  1.1    bouyer int xs_input_avail(void);
     44  1.1    bouyer 
     45  1.3    bouyer extern struct xenstore_domain_interface *xenstore_interface;
     46  1.3    bouyer 
     47  1.7    bouyer extern int xenstored_ready;
     48  1.7    bouyer 
     49  1.1    bouyer #endif /* _XENBUS_COMMS_H */
     50  1.1    bouyer 
     51  1.1    bouyer /*
     52  1.1    bouyer  * Local variables:
     53  1.1    bouyer  *  c-file-style: "linux"
     54  1.1    bouyer  *  indent-tabs-mode: t
     55  1.1    bouyer  *  c-indent-level: 8
     56  1.1    bouyer  *  c-basic-offset: 8
     57  1.1    bouyer  *  tab-width: 8
     58  1.1    bouyer  * End:
     59  1.1    bouyer  */
     60