Files
thead-kernel/drivers/gpu/drm/img-rogue/km_apphint_defs.h
Mingzheng Xing f72e7cd077 feat: update gpu to Linux_SDK_V1.2.1
This version update involves a lot of content, so the previous version
has been deleted and the new version has been re-merged into the kernel.

The configuration file for the GPU driver originates from a previous
version.

Signed-off-by: Mingzheng Xing <xingmingzheng@iscas.ac.cn>
2023-09-06 12:31:53 +08:00

161 lines
7.1 KiB
C

/*************************************************************************/ /*!
@File
@Title Services AppHint definitions
@Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved
@Description Device specific functions
@License Dual MIT/GPLv2
The contents of this file are subject to the MIT license as set out below.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
Alternatively, the contents of this file may be used under the terms of
the GNU General Public License Version 2 ("GPL") in which case the provisions
of GPL are applicable instead of those above.
If you wish to allow use of your version of this file only under the terms of
GPL, and not to allow others to use your version of this file under the terms
of the MIT license, indicate your decision by deleting the provisions above
and replace them with the notice and other provisions required by GPL as set
out in the file called "GPL-COPYING" included in this distribution. If you do
not delete the provisions above, a recipient may use your version of this file
under the terms of either the MIT license or GPL.
This License is also included in this distribution in the file called
"MIT-COPYING".
EXCEPT AS OTHERWISE STATED IN A NEGOTIATED AGREEMENT: (A) THE SOFTWARE IS
PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT; AND (B) IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ /**************************************************************************/
#include "km_apphint_defs_common.h"
#ifndef KM_APPHINT_DEFS_H
#define KM_APPHINT_DEFS_H
/* NB: The 'DEVICE' AppHints must be last in this list as they will be
* duplicated in the case of a driver supporting multiple devices
*/
#define APPHINT_LIST_ALL \
APPHINT_LIST_BUILDVAR_COMMON \
APPHINT_LIST_BUILDVAR \
APPHINT_LIST_MODPARAM_COMMON \
APPHINT_LIST_MODPARAM \
APPHINT_LIST_DEBUGINFO_COMMON \
APPHINT_LIST_DEBUGINFO \
APPHINT_LIST_DEBUGINFO_DEVICE_COMMON \
APPHINT_LIST_DEBUGINFO_DEVICE
/*
*******************************************************************************
Build variables (rogue-specific)
All of these should be configurable only through the 'default' value
******************************************************************************/
#define APPHINT_LIST_BUILDVAR
/*
*******************************************************************************
Module parameters (rogue-specific)
******************************************************************************/
#define APPHINT_LIST_MODPARAM \
/* name, type, class, default, helper, */ \
X(EnableCDMKillingRandMode, BOOL, VALIDATION, PVRSRV_APPHINT_ENABLECDMKILLINGRANDMODE, NO_PARAM_TABLE ) \
\
X(HWPerfDisableCustomCounterFilter, BOOL, VALIDATION, PVRSRV_APPHINT_HWPERFDISABLECUSTOMCOUNTERFILTER, NO_PARAM_TABLE ) \
X(ValidateSOCUSCTimer, BOOL, VALIDATION, PVRSRV_APPHINT_VALIDATESOCUSCTIMERS, NO_PARAM_TABLE ) \
X(ECCRAMErrInj, UINT32, VALIDATION, 0, NO_PARAM_TABLE ) \
\
X(TFBCCompressionControlGroup, UINT32, VALIDATION, PVRSRV_APPHINT_TFBCCOMPRESSIONCONTROLGROUP, NO_PARAM_TABLE ) \
X(TFBCCompressionControlScheme, UINT32, VALIDATION, PVRSRV_APPHINT_TFBCCOMPRESSIONCONTROLSCHEME, NO_PARAM_TABLE ) \
X(TFBCCompressionControlYUVFormat, BOOL, VALIDATION, 0, NO_PARAM_TABLE ) \
/*
*******************************************************************************
Debugfs parameters (rogue-specific) - driver configuration
******************************************************************************/
#define APPHINT_LIST_DEBUGINFO \
/* name, type, class, default, helper, */ \
/*
*******************************************************************************
Debugfs parameters (rogue-specific) - device configuration
******************************************************************************/
#define APPHINT_LIST_DEBUGINFO_DEVICE \
/* name, type, class, default, helper, */ \
/*
*******************************************************************************
Mapping between debugfs parameters and module parameters.
This mapping is used to initialise device specific apphints from module
parameters. Each entry in this table will provide a default value to all
devices (i.e. if there is more than one device each device's value will
be initialised).
******************************************************************************/
#define APPHINT_LIST_DEBUIGINFO_DEVICE_X_MODPARAM_INIT \
/* debuginfo device apphint name modparam name */
/*
*******************************************************************************
Table generated enums
******************************************************************************/
/* Unique ID for all AppHints */
typedef enum {
#define X(a, b, c, d, e) APPHINT_ID_ ## a,
APPHINT_LIST_ALL
#undef X
APPHINT_ID_MAX
} APPHINT_ID;
/* ID for build variable Apphints - used for build variable only structures */
typedef enum {
#define X(a, b, c, d, e) APPHINT_BUILDVAR_ID_ ## a,
APPHINT_LIST_BUILDVAR_COMMON
APPHINT_LIST_BUILDVAR
#undef X
APPHINT_BUILDVAR_ID_MAX
} APPHINT_BUILDVAR_ID;
/* ID for Modparam Apphints - used for modparam only structures */
typedef enum {
#define X(a, b, c, d, e) APPHINT_MODPARAM_ID_ ## a,
APPHINT_LIST_MODPARAM_COMMON
APPHINT_LIST_MODPARAM
#undef X
APPHINT_MODPARAM_ID_MAX
} APPHINT_MODPARAM_ID;
/* ID for Debugfs Apphints - used for debugfs only structures */
typedef enum {
#define X(a, b, c, d, e) APPHINT_DEBUGINFO_ID_ ## a,
APPHINT_LIST_DEBUGINFO_COMMON
APPHINT_LIST_DEBUGINFO
#undef X
APPHINT_DEBUGINFO_ID_MAX
} APPHINT_DEBUGINFO_ID;
/* ID for Debugfs Device Apphints - used for debugfs device only structures */
typedef enum {
#define X(a, b, c, d, e) APPHINT_DEBUGINFO_DEVICE_ID_ ## a,
APPHINT_LIST_DEBUGINFO_DEVICE_COMMON
APPHINT_LIST_DEBUGINFO_DEVICE
#undef X
APPHINT_DEBUGINFO_DEVICE_ID_MAX
} APPHINT_DEBUGINFO_DEVICE_ID;
#endif /* KM_APPHINT_DEFS_H */