3 * (C) COPYRIGHT ARM Limited. All rights reserved.
5 * This program is free software and is provided to you under the terms of the
6 * GNU General Public License version 2 as published by the Free Software
7 * Foundation, and any use by you of this program is subject to the terms
10 * A copy of the licence is included with the program, and can also be obtained
11 * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12 * Boston, MA 02110-1301, USA.
22 * Run-time work-arounds helpers
28 #include "mali_kbase_defs.h"
31 * @brief Tell whether a work-around should be enabled
33 #define kbase_hw_has_issue(kbdev, issue)\
34 test_bit(issue, &(kbdev)->hw_issues_mask[0])
37 * @brief Tell whether a feature is supported
39 #define kbase_hw_has_feature(kbdev, feature)\
40 test_bit(feature, &(kbdev)->hw_features_mask[0])
43 * @brief Set the HW issues mask depending on the GPU ID
45 mali_error kbase_hw_set_issues_mask(kbase_device *kbdev);
48 * @brief Set the features mask depending on the GPU ID
50 void kbase_hw_set_features_mask(kbase_device *kbdev);
52 #endif /* _KBASE_HW_H_ */