diff options
Diffstat (limited to 'include/linux/coresight.h')
| -rw-r--r-- | include/linux/coresight.h | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/include/linux/coresight.h b/include/linux/coresight.h index 5d3c54311f7a..3486b9082adb 100644 --- a/include/linux/coresight.h +++ b/include/linux/coresight.h | |||
| @@ -179,15 +179,6 @@ struct coresight_device { | |||
| 179 | #define sink_ops(csdev) csdev->ops->sink_ops | 179 | #define sink_ops(csdev) csdev->ops->sink_ops |
| 180 | #define link_ops(csdev) csdev->ops->link_ops | 180 | #define link_ops(csdev) csdev->ops->link_ops |
| 181 | 181 | ||
| 182 | #define CORESIGHT_DEBUGFS_ENTRY(__name, __entry_name, \ | ||
| 183 | __mode, __get, __set, __fmt) \ | ||
| 184 | DEFINE_SIMPLE_ATTRIBUTE(__name ## _ops, __get, __set, __fmt); \ | ||
| 185 | static const struct coresight_ops_entry __name ## _entry = { \ | ||
| 186 | .name = __entry_name, \ | ||
| 187 | .mode = __mode, \ | ||
| 188 | .ops = &__name ## _ops \ | ||
| 189 | } | ||
| 190 | |||
| 191 | /** | 182 | /** |
| 192 | * struct coresight_ops_sink - basic operations for a sink | 183 | * struct coresight_ops_sink - basic operations for a sink |
| 193 | * Operations available for sinks | 184 | * Operations available for sinks |
| @@ -236,13 +227,8 @@ coresight_register(struct coresight_desc *desc); | |||
| 236 | extern void coresight_unregister(struct coresight_device *csdev); | 227 | extern void coresight_unregister(struct coresight_device *csdev); |
| 237 | extern int coresight_enable(struct coresight_device *csdev); | 228 | extern int coresight_enable(struct coresight_device *csdev); |
| 238 | extern void coresight_disable(struct coresight_device *csdev); | 229 | extern void coresight_disable(struct coresight_device *csdev); |
| 239 | extern int coresight_is_bit_set(u32 val, int position, int value); | ||
| 240 | extern int coresight_timeout(void __iomem *addr, u32 offset, | 230 | extern int coresight_timeout(void __iomem *addr, u32 offset, |
| 241 | int position, int value); | 231 | int position, int value); |
| 242 | #ifdef CONFIG_OF | ||
| 243 | extern struct coresight_platform_data *of_get_coresight_platform_data( | ||
| 244 | struct device *dev, struct device_node *node); | ||
| 245 | #endif | ||
| 246 | #else | 232 | #else |
| 247 | static inline struct coresight_device * | 233 | static inline struct coresight_device * |
| 248 | coresight_register(struct coresight_desc *desc) { return NULL; } | 234 | coresight_register(struct coresight_desc *desc) { return NULL; } |
| @@ -250,14 +236,16 @@ static inline void coresight_unregister(struct coresight_device *csdev) {} | |||
| 250 | static inline int | 236 | static inline int |
| 251 | coresight_enable(struct coresight_device *csdev) { return -ENOSYS; } | 237 | coresight_enable(struct coresight_device *csdev) { return -ENOSYS; } |
| 252 | static inline void coresight_disable(struct coresight_device *csdev) {} | 238 | static inline void coresight_disable(struct coresight_device *csdev) {} |
| 253 | static inline int coresight_is_bit_set(u32 val, int position, int value) | ||
| 254 | { return 0; } | ||
| 255 | static inline int coresight_timeout(void __iomem *addr, u32 offset, | 239 | static inline int coresight_timeout(void __iomem *addr, u32 offset, |
| 256 | int position, int value) { return 1; } | 240 | int position, int value) { return 1; } |
| 241 | #endif | ||
| 242 | |||
| 257 | #ifdef CONFIG_OF | 243 | #ifdef CONFIG_OF |
| 244 | extern struct coresight_platform_data *of_get_coresight_platform_data( | ||
| 245 | struct device *dev, struct device_node *node); | ||
| 246 | #else | ||
| 258 | static inline struct coresight_platform_data *of_get_coresight_platform_data( | 247 | static inline struct coresight_platform_data *of_get_coresight_platform_data( |
| 259 | struct device *dev, struct device_node *node) { return NULL; } | 248 | struct device *dev, struct device_node *node) { return NULL; } |
| 260 | #endif | 249 | #endif |
| 261 | #endif | ||
| 262 | 250 | ||
| 263 | #endif | 251 | #endif |
