Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * (C) COPYRIGHT 2018 ARM Limited. All rights reserved.
0004  * Author: James.Qian.Wang <james.qian.wang@arm.com>
0005  *
0006  */
0007 #ifndef _MALIDP_PRODUCT_H_
0008 #define _MALIDP_PRODUCT_H_
0009 
0010 /* Product identification */
0011 #define MALIDP_CORE_ID(__product, __major, __minor, __status) \
0012     ((((__product) & 0xFFFF) << 16) | (((__major) & 0xF) << 12) | \
0013     (((__minor) & 0xF) << 8) | ((__status) & 0xFF))
0014 
0015 #define MALIDP_CORE_ID_PRODUCT_ID(__core_id) ((__u32)(__core_id) >> 16)
0016 #define MALIDP_CORE_ID_MAJOR(__core_id)      (((__u32)(__core_id) >> 12) & 0xF)
0017 #define MALIDP_CORE_ID_MINOR(__core_id)      (((__u32)(__core_id) >> 8) & 0xF)
0018 #define MALIDP_CORE_ID_STATUS(__core_id)     (((__u32)(__core_id)) & 0xFF)
0019 
0020 /* Mali-display product IDs */
0021 #define MALIDP_D71_PRODUCT_ID   0x0071
0022 #define MALIDP_D32_PRODUCT_ID   0x0032
0023 
0024 union komeda_config_id {
0025     struct {
0026         __u32   max_line_sz:16,
0027             n_pipelines:2,
0028             n_scalers:2, /* number of scalers per pipeline */
0029             n_layers:3, /* number of layers per pipeline */
0030             n_richs:3, /* number of rich layers per pipeline */
0031             reserved_bits:6;
0032     };
0033     __u32 value;
0034 };
0035 
0036 #endif /* _MALIDP_PRODUCT_H_ */