qcom_common.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef __RPROC_QCOM_COMMON_H__
  2. #define __RPROC_QCOM_COMMON_H__
  3. #include <linux/remoteproc.h>
  4. #include "remoteproc_internal.h"
  5. struct qcom_rproc_glink {
  6. struct rproc_subdev subdev;
  7. struct device *dev;
  8. struct device_node *node;
  9. struct qcom_glink *edge;
  10. };
  11. struct qcom_rproc_subdev {
  12. struct rproc_subdev subdev;
  13. struct device *dev;
  14. struct device_node *node;
  15. struct qcom_smd_edge *edge;
  16. };
  17. struct qcom_rproc_ssr {
  18. struct rproc_subdev subdev;
  19. const char *name;
  20. };
  21. struct resource_table *qcom_mdt_find_rsc_table(struct rproc *rproc,
  22. const struct firmware *fw,
  23. int *tablesz);
  24. void qcom_add_glink_subdev(struct rproc *rproc, struct qcom_rproc_glink *glink);
  25. void qcom_remove_glink_subdev(struct rproc *rproc, struct qcom_rproc_glink *glink);
  26. void qcom_add_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd);
  27. void qcom_remove_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd);
  28. void qcom_add_ssr_subdev(struct rproc *rproc, struct qcom_rproc_ssr *ssr,
  29. const char *ssr_name);
  30. void qcom_remove_ssr_subdev(struct rproc *rproc, struct qcom_rproc_ssr *ssr);
  31. #endif