/*****************************************************************************1* xenbus.h2*3* Xenbus protocol details.4*5* Permission is hereby granted, free of charge, to any person obtaining a copy6* of this software and associated documentation files (the "Software"), to7* deal in the Software without restriction, including without limitation the8* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or9* sell copies of the Software, and to permit persons to whom the Software is10* furnished to do so, subject to the following conditions:11*12* The above copyright notice and this permission notice shall be included in13* all copies or substantial portions of the Software.14*15* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR16* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,17* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE18* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER19* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING20* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER21* DEALINGS IN THE SOFTWARE.22*23* Copyright (C) 2005 XenSource Ltd.24*/2526#ifndef _XEN_PUBLIC_IO_XENBUS_H27#define _XEN_PUBLIC_IO_XENBUS_H2829/*30* The state of either end of the Xenbus, i.e. the current communication31* status of initialisation across the bus. States here imply nothing about32* the state of the connection between the driver and the kernel's device33* layers.34*/35enum xenbus_state {36XenbusStateUnknown = 0,3738XenbusStateInitialising = 1,3940/*41* InitWait: Finished early initialisation but waiting for information42* from the peer or hotplug scripts.43*/44XenbusStateInitWait = 2,4546/*47* Initialised: Waiting for a connection from the peer.48*/49XenbusStateInitialised = 3,5051XenbusStateConnected = 4,5253/*54* Closing: The device is being closed due to an error or an unplug event.55*/56XenbusStateClosing = 5,5758XenbusStateClosed = 6,5960/*61* Reconfiguring: The device is being reconfigured.62*/63XenbusStateReconfiguring = 7,6465XenbusStateReconfigured = 866};67typedef enum xenbus_state XenbusState;6869#endif /* _XEN_PUBLIC_IO_XENBUS_H */7071/*72* Local variables:73* mode: C74* c-file-style: "BSD"75* c-basic-offset: 476* tab-width: 477* indent-tabs-mode: nil78* End:79*/808182