forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 e636c8d336489bf3eed5878299e6cc045bbad077
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);
....@@ -322,9 +321,12 @@
322321 static inline unsigned long
323322 tmc_sg_table_buf_size(struct tmc_sg_table *sg_table)
324323 {
325
- return sg_table->data_pages.nr_pages << PAGE_SHIFT;
324
+ return (unsigned long)sg_table->data_pages.nr_pages << PAGE_SHIFT;
326325 }
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