coresight: Dynamically add connections
[platform/kernel/linux-rpi.git] / include / linux / coresight.h
index b6f4448..12fdbd0 100644 (file)
@@ -104,9 +104,11 @@ union coresight_dev_subtype {
  *
  * @nr_inconns: Number of elements for the input connections.
  * @nr_outconns: Number of elements for the output connections.
- * @out_conns: Sparse array of nr_outconns connections from this component.
+ * @out_conns: Array of nr_outconns connections from this component.
  */
 struct coresight_platform_data {
+       int high_inport;
+       int high_outport;
        int nr_inconns;
        int nr_outconns;
        struct coresight_connection *out_conns;
@@ -609,5 +611,9 @@ static inline void coresight_write64(struct coresight_device *csdev, u64 val, u3
 extern int coresight_get_cpu(struct device *dev);
 
 struct coresight_platform_data *coresight_get_platform_data(struct device *dev);
+struct coresight_connection *
+coresight_add_out_conn(struct device *dev,
+                      struct coresight_platform_data *pdata,
+                      const struct coresight_connection *new_conn);
 
 #endif         /* _LINUX_COREISGHT_H */