1. Added a brief definition of komeda_dev/pipeline/component, this change didn't add the detailed component features and capabilities, which will be added in the following changes. 2. Corresponding resources discovery and initialzation functions. Changes in v4: - Deleted unnecessary headers Changes in v3: - Fixed style problem found by checkpatch.pl --strict. Changes in v2: - Unified abbreviation of "pipeline" to "pipe". Signed-off-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com> Reviewed-by: Liviu Dudau <liviu.dudau@arm.com> Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
16 lines
451 B
C
16 lines
451 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* (C) COPYRIGHT 2018 ARM Limited. All rights reserved.
|
|
* Author: James.Qian.Wang <james.qian.wang@arm.com>
|
|
*
|
|
*/
|
|
#ifndef _MALIDP_UTILS_
|
|
#define _MALIDP_UTILS_
|
|
|
|
#define has_bit(nr, mask) (BIT(nr) & (mask))
|
|
#define has_bits(bits, mask) (((bits) & (mask)) == (bits))
|
|
|
|
#define dp_for_each_set_bit(bit, mask) \
|
|
for_each_set_bit((bit), ((unsigned long *)&(mask)), sizeof(mask) * 8)
|
|
|
|
#endif /* _MALIDP_UTILS_ */
|