mali_broadcast.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * This confidential and proprietary software may be used only as
  3. * authorised by a licensing agreement from ARM Limited
  4. * (C) COPYRIGHT 2012-2013 ARM Limited
  5. * ALL RIGHTS RESERVED
  6. * The entire notice above must be reproduced on all authorised
  7. * copies and copies may only be made to the extent permitted
  8. * by a licensing agreement from ARM Limited.
  9. */
  10. /*
  11. * Interface for the broadcast unit on Mali-450.
  12. *
  13. * - Represents up to 8 × (MMU + PP) pairs.
  14. * - Supports dynamically changing which (MMU + PP) pairs receive the broadcast by
  15. * setting a mask.
  16. */
  17. #include "mali_hw_core.h"
  18. #include "mali_group.h"
  19. struct mali_bcast_unit;
  20. struct mali_bcast_unit *mali_bcast_unit_create(const _mali_osk_resource_t *resource);
  21. void mali_bcast_unit_delete(struct mali_bcast_unit *bcast_unit);
  22. /* Add a group to the list of (MMU + PP) pairs broadcasts go out to. */
  23. void mali_bcast_add_group(struct mali_bcast_unit *bcast_unit, struct mali_group *group);
  24. /* Remove a group to the list of (MMU + PP) pairs broadcasts go out to. */
  25. void mali_bcast_remove_group(struct mali_bcast_unit *bcast_unit, struct mali_group *group);
  26. /* Re-set cached mask. This needs to be called after having been suspended. */
  27. void mali_bcast_reset(struct mali_bcast_unit *bcast_unit);
  28. /**
  29. * Disable broadcast unit
  30. *
  31. * mali_bcast_enable must be called to re-enable the unit. Cores may not be
  32. * added or removed when the unit is disabled.
  33. */
  34. void mali_bcast_disable(struct mali_bcast_unit *bcast_unit);
  35. /**
  36. * Re-enable broadcast unit
  37. *
  38. * This resets the masks to include the cores present when mali_bcast_disable was called.
  39. */
  40. MALI_STATIC_INLINE void mali_bcast_enable(struct mali_bcast_unit *bcast_unit)
  41. {
  42. mali_bcast_reset(bcast_unit);
  43. }