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