diff options
Diffstat (limited to 'drivers/xen/xenbus/xenbus_probe.h')
| -rw-r--r-- | drivers/xen/xenbus/xenbus_probe.h | 50 | 
1 files changed, 30 insertions, 20 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe.h b/drivers/xen/xenbus/xenbus_probe.h index 6c5e3185a6a..1085ec294a1 100644 --- a/drivers/xen/xenbus/xenbus_probe.h +++ b/drivers/xen/xenbus/xenbus_probe.h @@ -36,36 +36,31 @@  #define XEN_BUS_ID_SIZE			20 -#ifdef CONFIG_XEN_BACKEND -extern void xenbus_backend_suspend(int (*fn)(struct device *, void *)); -extern void xenbus_backend_resume(int (*fn)(struct device *, void *)); -extern void xenbus_backend_probe_and_watch(void); -extern int xenbus_backend_bus_register(void); -extern void xenbus_backend_bus_unregister(void); -#else -static inline void xenbus_backend_suspend(int (*fn)(struct device *, void *)) {} -static inline void xenbus_backend_resume(int (*fn)(struct device *, void *)) {} -static inline void xenbus_backend_probe_and_watch(void) {} -static inline int xenbus_backend_bus_register(void) { return 0; } -static inline void xenbus_backend_bus_unregister(void) {} -#endif - -struct xen_bus_type -{ +struct xen_bus_type {  	char *root;  	unsigned int levels;  	int (*get_bus_id)(char bus_id[XEN_BUS_ID_SIZE], const char *nodename); -	int (*probe)(const char *type, const char *dir); +	int (*probe)(struct xen_bus_type *bus, const char *type, +		     const char *dir); +	void (*otherend_changed)(struct xenbus_watch *watch, const char **vec, +				 unsigned int len);  	struct bus_type bus;  }; +enum xenstore_init { +	XS_UNKNOWN, +	XS_PV, +	XS_HVM, +	XS_LOCAL, +}; + +extern const struct attribute_group *xenbus_dev_groups[]; +  extern int xenbus_match(struct device *_dev, struct device_driver *_drv);  extern int xenbus_dev_probe(struct device *_dev);  extern int xenbus_dev_remove(struct device *_dev);  extern int xenbus_register_driver_common(struct xenbus_driver *drv, -					 struct xen_bus_type *bus, -					 struct module *owner, -					 const char *mod_name); +					 struct xen_bus_type *bus);  extern int xenbus_probe_node(struct xen_bus_type *bus,  			     const char *type,  			     const char *nodename); @@ -73,4 +68,19 @@ extern int xenbus_probe_devices(struct xen_bus_type *bus);  extern void xenbus_dev_changed(const char *node, struct xen_bus_type *bus); +extern void xenbus_dev_shutdown(struct device *_dev); + +extern int xenbus_dev_suspend(struct device *dev); +extern int xenbus_dev_resume(struct device *dev); +extern int xenbus_dev_cancel(struct device *dev); + +extern void xenbus_otherend_changed(struct xenbus_watch *watch, +				    const char **vec, unsigned int len, +				    int ignore_on_shutdown); + +extern int xenbus_read_otherend_details(struct xenbus_device *xendev, +					char *id_node, char *path_node); + +void xenbus_ring_ops_init(void); +  #endif  | 
