forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/drivers/hwtracing/coresight/coresight-tmc.h
....@@ -165,7 +165,6 @@
165165 /**
166166 * struct tmc_drvdata - specifics associated to an TMC component
167167 * @base: memory mapped base address for this component.
168
- * @dev: the device entity associated to this component.
169168 * @csdev: component vitals needed by the framework.
170169 * @miscdev: specifics to handle "/dev/xyz.tmc" entry.
171170 * @spinlock: only one at a time pls.
....@@ -188,7 +187,6 @@
188187 */
189188 struct tmc_drvdata {
190189 void __iomem *base;
191
- struct device *dev;
192190 struct coresight_device *csdev;
193191 struct miscdevice miscdev;
194192 spinlock_t spinlock;
....@@ -270,6 +268,7 @@
270268 /* ETR functions */
271269 int tmc_read_prepare_etr(struct tmc_drvdata *drvdata);
272270 int tmc_read_unprepare_etr(struct tmc_drvdata *drvdata);
271
+void tmc_etr_disable_hw(struct tmc_drvdata *drvdata);
273272 extern const struct coresight_ops tmc_etr_cs_ops;
274273 ssize_t tmc_etr_get_sysfs_trace(struct tmc_drvdata *drvdata,
275274 loff_t pos, size_t len, char **bufpp);
....@@ -327,4 +326,7 @@
327326
328327 struct coresight_device *tmc_etr_get_catu_device(struct tmc_drvdata *drvdata);
329328
329
+void tmc_etr_set_catu_ops(const struct etr_buf_operations *catu);
330
+void tmc_etr_remove_catu_ops(void);
331
+
330332 #endif