k3-psil-priv.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
  4. */
  5. #ifndef K3_PSIL_PRIV_H_
  6. #define K3_PSIL_PRIV_H_
  7. #include "k3-psil.h"
  8. struct psil_ep {
  9. u32 thread_id;
  10. struct psil_endpoint_config ep_config;
  11. };
  12. /**
  13. * struct psil_ep_map - PSI-L thread ID configuration maps
  14. * @name: Name of the map, set it to the name of the SoC
  15. * @src: Array of source PSI-L thread configurations
  16. * @src_count: Number of entries in the src array
  17. * @dst: Array of destination PSI-L thread configurations
  18. * @dst_count: Number of entries in the dst array
  19. *
  20. * In case of symmetric configuration for a matching src/dst thread (for example
  21. * 0x4400 and 0xc400) only the src configuration can be present. If no dst
  22. * configuration found the code will look for (dst_thread_id & ~0x8000) to find
  23. * the symmetric match.
  24. */
  25. struct psil_ep_map {
  26. char *name;
  27. struct psil_ep *src;
  28. int src_count;
  29. struct psil_ep *dst;
  30. int dst_count;
  31. };
  32. struct psil_endpoint_config *psil_get_ep_config(u32 thread_id);
  33. /* SoC PSI-L endpoint maps */
  34. extern struct psil_ep_map am654_ep_map;
  35. extern struct psil_ep_map j721e_ep_map;
  36. #endif /* K3_PSIL_PRIV_H_ */