2 * This confidential and proprietary software may be used only as
3 * authorised by a licensing agreement from ARM Limited
4 * (C) COPYRIGHT 2012-2015 ARM Limited
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.
11 #ifndef __MALI_BROADCAST_H__
12 #define __MALI_BROADCAST_H__
15 * Interface for the broadcast unit on Mali-450.
17 * - Represents up to 8 × (MMU + PP) pairs.
18 * - Supports dynamically changing which (MMU + PP) pairs receive the broadcast by
22 #include "mali_hw_core.h"
23 #include "mali_group.h"
25 struct mali_bcast_unit
;
27 struct mali_bcast_unit
*mali_bcast_unit_create(const _mali_osk_resource_t
*resource
);
28 void mali_bcast_unit_delete(struct mali_bcast_unit
*bcast_unit
);
30 /* Add a group to the list of (MMU + PP) pairs broadcasts go out to. */
31 void mali_bcast_add_group(struct mali_bcast_unit
*bcast_unit
, struct mali_group
*group
);
33 /* Remove a group to the list of (MMU + PP) pairs broadcasts go out to. */
34 void mali_bcast_remove_group(struct mali_bcast_unit
*bcast_unit
, struct mali_group
*group
);
36 /* Re-set cached mask. This needs to be called after having been suspended. */
37 void mali_bcast_reset(struct mali_bcast_unit
*bcast_unit
);
40 * Disable broadcast unit
42 * mali_bcast_enable must be called to re-enable the unit. Cores may not be
43 * added or removed when the unit is disabled.
45 void mali_bcast_disable(struct mali_bcast_unit
*bcast_unit
);
48 * Re-enable broadcast unit
50 * This resets the masks to include the cores present when mali_bcast_disable was called.
52 MALI_STATIC_INLINE
void mali_bcast_enable(struct mali_bcast_unit
*bcast_unit
)
54 mali_bcast_reset(bcast_unit
);
57 #endif /* __MALI_BROADCAST_H__ */