Download Graphics Driver Manual for 2D core of S6E2D devices

Transcript
A P P L I C A T I O N
N O T E
11.14 Macro Definition
Macros
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
#define MM_ERRCODE(err) ((MM_ERROR)(err))
#define MM_MODULEID(moduleId) ((MM_MODULE)(moduleId))
#define MML_ERR MM_ERRCODE(0x3FFFFFFF)
#define MMD_ERR MM_ERRCODE(0x7FFFFFFF)
#define MML_OK MM_ERRCODE(0x0)
#define MMD_OK MM_ERRCODE(0x0)
#define MM_FALSE ((MM_BOOL) 0)
#define MM_TRUE ((MM_BOOL) 1)
#define NULL ((void ∗)0)
#define MM_BIT(x) (1U<<(x))
#define MM_PTR_TO_ADDR(x) (MM_ADDR)(x)
#define MM_ADDR_TO_PTR(x) (void∗)(x)
#define MM_ADDR_TO_UINT32(x) (MM_U32)(x)
#define MM_UINT32_TO_ADDR(x) (MM_ADDR)(x)
#define MM_PTR_TO_UINT32(x) (MM_U32)(x)
#define MM_UINT32_TO_PTR(x) (void∗)(x)
#define MM_ADDR_TO_UINT32PTR(x) (MM_U32∗)(x)
#define MM_ADDR_TO_SINT32PTR(x) (MM_S32∗)(x)
#define MM_IO_IRIS_SUBSYSTEM 0xD0A00000U
#define MM_IO_IRIS_CORE 0xD0A10000U
#define NULL_FUNCTION ((void) 0)
#define UNUSED_PARAMETER(x) (void)(x)
11.14.1 Detailed Description
11.14.2 Macro Definition Documentation
11.14.2.1
#define MM_ADDR_TO_PTR(
x
) (void∗)(x)
Conversion: "MM_ADDR" to "void∗"
11.14.2.2
#define MM_ADDR_TO_SINT32PTR(
x
) (MM_S32∗)(x)
Conversion: ’MM_ADDR’ to ’MM_S32∗’
11.14.2.3
#define MM_ADDR_TO_UINT32(
x
) (MM_U32)(x)
Conversion: ’MM_ADDR’ to ’MM_U32’
11.14.2.4
#define MM_ADDR_TO_UINT32PTR(
x
) (MM_U32∗)(x)
Conversion: ’MM_ADDR’ to ’MM_U32∗’
11.14.2.5
#define MM_BIT(
x ) (1U<<(x))
Set bit
170
CONFIDENTIAL
S6E2DH_AN709-00022-1v0-E, September 11, 2015