xenbusvar.h (255040) | xenbusvar.h (294090) |
---|---|
1/****************************************************************************** 2 * Copyright (C) 2005 Rusty Russell, IBM Corporation 3 * Copyright (C) 2005 XenSource Ltd. 4 * 5 * This file may be distributed separately from the Linux kernel, or 6 * incorporated into other software packages, subject to the following license: 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a copy --- 9 unchanged lines hidden (view full) --- 18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 24 * IN THE SOFTWARE. 25 * | 1/****************************************************************************** 2 * Copyright (C) 2005 Rusty Russell, IBM Corporation 3 * Copyright (C) 2005 XenSource Ltd. 4 * 5 * This file may be distributed separately from the Linux kernel, or 6 * incorporated into other software packages, subject to the following license: 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a copy --- 9 unchanged lines hidden (view full) --- 18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 24 * IN THE SOFTWARE. 25 * |
26 * $FreeBSD: head/sys/xen/xenbus/xenbusvar.h 255040 2013-08-29 19:52:18Z gibbs $ | 26 * $FreeBSD: head/sys/xen/xenbus/xenbusvar.h 294090 2016-01-15 14:34:31Z royger $ |
27 */ 28 29/** 30 * \file xenbusvar.h 31 * 32 * \brief Datastructures and function declarations for usedby device 33 * drivers operating on the XenBus. 34 */ --- 42 unchanged lines hidden (view full) --- 77 78 /** 79 * Path of the other end device. 80 */ 81 XENBUS_IVAR_OTHEREND_PATH 82}; 83 84/** | 27 */ 28 29/** 30 * \file xenbusvar.h 31 * 32 * \brief Datastructures and function declarations for usedby device 33 * drivers operating on the XenBus. 34 */ --- 42 unchanged lines hidden (view full) --- 77 78 /** 79 * Path of the other end device. 80 */ 81 XENBUS_IVAR_OTHEREND_PATH 82}; 83 84/** |
85 * Simplified accessors for xenbus devices | 85 * Simplified accessors for xenbus devices: 86 * 87 * xenbus_get_node 88 * xenbus_get_type 89 * xenbus_get_state 90 * xenbus_get_otherend_id 91 * xenbus_get_otherend_path |
86 */ 87#define XENBUS_ACCESSOR(var, ivar, type) \ 88 __BUS_ACCESSOR(xenbus, var, XENBUS, ivar, type) 89 90XENBUS_ACCESSOR(node, NODE, const char *) 91XENBUS_ACCESSOR(type, TYPE, const char *) 92XENBUS_ACCESSOR(state, STATE, enum xenbus_state) 93XENBUS_ACCESSOR(otherend_id, OTHEREND_ID, int) --- 182 unchanged lines hidden --- | 92 */ 93#define XENBUS_ACCESSOR(var, ivar, type) \ 94 __BUS_ACCESSOR(xenbus, var, XENBUS, ivar, type) 95 96XENBUS_ACCESSOR(node, NODE, const char *) 97XENBUS_ACCESSOR(type, TYPE, const char *) 98XENBUS_ACCESSOR(state, STATE, enum xenbus_state) 99XENBUS_ACCESSOR(otherend_id, OTHEREND_ID, int) --- 182 unchanged lines hidden --- |