iPXE
xenbus.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * xenbus.h
00003  *
00004  * Xenbus protocol details.
00005  *
00006  * Permission is hereby granted, free of charge, to any person obtaining a copy
00007  * of this software and associated documentation files (the "Software"), to
00008  * deal in the Software without restriction, including without limitation the
00009  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
00010  * sell copies of the Software, and to permit persons to whom the Software is
00011  * furnished to do so, subject to the following conditions:
00012  *
00013  * The above copyright notice and this permission notice shall be included in
00014  * all copies or substantial portions of the Software.
00015  *
00016  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00017  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00018  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
00019  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00020  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00021  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00022  * DEALINGS IN THE SOFTWARE.
00023  *
00024  * Copyright (C) 2005 XenSource Ltd.
00025  */
00026 
00027 #ifndef _XEN_PUBLIC_IO_XENBUS_H
00028 #define _XEN_PUBLIC_IO_XENBUS_H
00029 
00030 FILE_LICENCE ( MIT );
00031 
00032 /*
00033  * The state of either end of the Xenbus, i.e. the current communication
00034  * status of initialisation across the bus.  States here imply nothing about
00035  * the state of the connection between the driver and the kernel's device
00036  * layers.
00037  */
00038 enum xenbus_state {
00039     XenbusStateUnknown       = 0,
00040 
00041     XenbusStateInitialising  = 1,
00042 
00043     /*
00044      * InitWait: Finished early initialisation but waiting for information
00045      * from the peer or hotplug scripts.
00046      */
00047     XenbusStateInitWait      = 2,
00048 
00049     /*
00050      * Initialised: Waiting for a connection from the peer.
00051      */
00052     XenbusStateInitialised   = 3,
00053 
00054     XenbusStateConnected     = 4,
00055 
00056     /*
00057      * Closing: The device is being closed due to an error or an unplug event.
00058      */
00059     XenbusStateClosing       = 5,
00060 
00061     XenbusStateClosed        = 6,
00062 
00063     /*
00064      * Reconfiguring: The device is being reconfigured.
00065      */
00066     XenbusStateReconfiguring = 7,
00067 
00068     XenbusStateReconfigured  = 8
00069 };
00070 typedef enum xenbus_state XenbusState;
00071 
00072 #endif /* _XEN_PUBLIC_IO_XENBUS_H */
00073 
00074 /*
00075  * Local variables:
00076  * mode: C
00077  * c-file-style: "BSD"
00078  * c-basic-offset: 4
00079  * tab-width: 4
00080  * indent-tabs-mode: nil
00081  * End:
00082  */