xenbus.h revision 183375
1181624Skmacy/***************************************************************************** 2181624Skmacy * xenbus.h 3181624Skmacy * 4181624Skmacy * Xenbus protocol details. 5181624Skmacy * 6181624Skmacy * Permission is hereby granted, free of charge, to any person obtaining a copy 7181624Skmacy * of this software and associated documentation files (the "Software"), to 8181624Skmacy * deal in the Software without restriction, including without limitation the 9181624Skmacy * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 10181624Skmacy * sell copies of the Software, and to permit persons to whom the Software is 11181624Skmacy * furnished to do so, subject to the following conditions: 12181624Skmacy * 13181624Skmacy * The above copyright notice and this permission notice shall be included in 14181624Skmacy * all copies or substantial portions of the Software. 15181624Skmacy * 16181624Skmacy * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17181624Skmacy * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18181624Skmacy * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19181624Skmacy * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20181624Skmacy * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21181624Skmacy * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22181624Skmacy * DEALINGS IN THE SOFTWARE. 23181624Skmacy * 24181624Skmacy * Copyright (C) 2005 XenSource Ltd. 25181624Skmacy */ 26181624Skmacy 27181624Skmacy#ifndef _XEN_PUBLIC_IO_XENBUS_H 28181624Skmacy#define _XEN_PUBLIC_IO_XENBUS_H 29181624Skmacy 30181624Skmacy/* 31181624Skmacy * The state of either end of the Xenbus, i.e. the current communication 32181624Skmacy * status of initialisation across the bus. States here imply nothing about 33181624Skmacy * the state of the connection between the driver and the kernel's device 34181624Skmacy * layers. 35181624Skmacy */ 36181624Skmacyenum xenbus_state { 37181624Skmacy XenbusStateUnknown = 0, 38181624Skmacy 39181624Skmacy XenbusStateInitialising = 1, 40181624Skmacy 41181624Skmacy /* 42181624Skmacy * InitWait: Finished early initialisation but waiting for information 43181624Skmacy * from the peer or hotplug scripts. 44181624Skmacy */ 45181624Skmacy XenbusStateInitWait = 2, 46181624Skmacy 47181624Skmacy /* 48181624Skmacy * Initialised: Waiting for a connection from the peer. 49181624Skmacy */ 50181624Skmacy XenbusStateInitialised = 3, 51181624Skmacy 52181624Skmacy XenbusStateConnected = 4, 53181624Skmacy 54181624Skmacy /* 55181624Skmacy * Closing: The device is being closed due to an error or an unplug event. 56181624Skmacy */ 57181624Skmacy XenbusStateClosing = 5, 58181624Skmacy 59183375Skmacy XenbusStateClosed = 6, 60183375Skmacy 61183375Skmacy /* 62183375Skmacy * Reconfiguring: The device is being reconfigured. 63183375Skmacy */ 64183375Skmacy XenbusStateReconfiguring = 7, 65183375Skmacy 66183375Skmacy XenbusStateReconfigured = 8 67181624Skmacy}; 68181624Skmacytypedef enum xenbus_state XenbusState; 69181624Skmacy 70181624Skmacy#endif /* _XEN_PUBLIC_IO_XENBUS_H */ 71181624Skmacy 72181624Skmacy/* 73181624Skmacy * Local variables: 74181624Skmacy * mode: C 75181624Skmacy * c-set-style: "BSD" 76181624Skmacy * c-basic-offset: 4 77181624Skmacy * tab-width: 4 78181624Skmacy * indent-tabs-mode: nil 79181624Skmacy * End: 80181624Skmacy */ 81