diff options
Diffstat (limited to 'drivers/xen/xenbus/xenbus_probe.h')
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe.h b/drivers/xen/xenbus/xenbus_probe.h index 6c5e3185a6a2..be390cef329f 100644 --- a/drivers/xen/xenbus/xenbus_probe.h +++ b/drivers/xen/xenbus/xenbus_probe.h | |||
@@ -36,26 +36,13 @@ | |||
36 | 36 | ||
37 | #define XEN_BUS_ID_SIZE 20 | 37 | #define XEN_BUS_ID_SIZE 20 |
38 | 38 | ||
39 | #ifdef CONFIG_XEN_BACKEND | ||
40 | extern void xenbus_backend_suspend(int (*fn)(struct device *, void *)); | ||
41 | extern void xenbus_backend_resume(int (*fn)(struct device *, void *)); | ||
42 | extern void xenbus_backend_probe_and_watch(void); | ||
43 | extern int xenbus_backend_bus_register(void); | ||
44 | extern void xenbus_backend_bus_unregister(void); | ||
45 | #else | ||
46 | static inline void xenbus_backend_suspend(int (*fn)(struct device *, void *)) {} | ||
47 | static inline void xenbus_backend_resume(int (*fn)(struct device *, void *)) {} | ||
48 | static inline void xenbus_backend_probe_and_watch(void) {} | ||
49 | static inline int xenbus_backend_bus_register(void) { return 0; } | ||
50 | static inline void xenbus_backend_bus_unregister(void) {} | ||
51 | #endif | ||
52 | |||
53 | struct xen_bus_type | 39 | struct xen_bus_type |
54 | { | 40 | { |
55 | char *root; | 41 | char *root; |
56 | unsigned int levels; | 42 | unsigned int levels; |
57 | int (*get_bus_id)(char bus_id[XEN_BUS_ID_SIZE], const char *nodename); | 43 | int (*get_bus_id)(char bus_id[XEN_BUS_ID_SIZE], const char *nodename); |
58 | int (*probe)(const char *type, const char *dir); | 44 | int (*probe)(struct xen_bus_type *bus, const char *type, const char *dir); |
45 | void (*otherend_changed)(struct xenbus_watch *watch, const char **vec, unsigned int len); | ||
59 | struct bus_type bus; | 46 | struct bus_type bus; |
60 | }; | 47 | }; |
61 | 48 | ||
@@ -73,4 +60,17 @@ extern int xenbus_probe_devices(struct xen_bus_type *bus); | |||
73 | 60 | ||
74 | extern void xenbus_dev_changed(const char *node, struct xen_bus_type *bus); | 61 | extern void xenbus_dev_changed(const char *node, struct xen_bus_type *bus); |
75 | 62 | ||
63 | extern int xenbus_uevent(struct device *_dev, struct kobj_uevent_env *env); | ||
64 | extern void xenbus_dev_shutdown(struct device *_dev); | ||
65 | |||
66 | extern int xenbus_dev_suspend(struct device *dev, pm_message_t state); | ||
67 | extern int xenbus_dev_resume(struct device *dev); | ||
68 | |||
69 | extern void xenbus_otherend_changed(struct xenbus_watch *watch, | ||
70 | const char **vec, unsigned int len, | ||
71 | int ignore_on_shutdown); | ||
72 | |||
73 | extern int xenbus_read_otherend_details(struct xenbus_device *xendev, | ||
74 | char *id_node, char *path_node); | ||
75 | |||
76 | #endif | 76 | #endif |