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.8 2D Core Interrupt Controller API
2D Core Interrupt Controller handler functions
Macros
−
−
−
−
−
−
#define MM_GDC_IRIS_INT_STORE9_FRAMECOMPLETE_IRQ_CP 1U
#define MM_GDC_IRIS_INT_EXTDST0_FRAMECOMPLETE_IRQ_CP 4U
#define MM_GDC_IRIS_INT_DISENGCFG_FRAMECOMPLETE0_IRQ_CP 10U
#define MM_GDC_IRIS_INT_CMDSEQ_ERROR_IRQ_CP 20U
#define MM_GDC_IRIS_INT_FRAMEGEN0_SECSYNC_ON_IRQ_CP 27U
#define MM_GDC_IRIS_INT_FRAMEGEN0_SECSYNC_OFF_IRQ_CP 28U
Interrupt signal irqs
These can be used in mmdGdcInterruptRegisterHandler
− #define MM_GDC_IRIS_STORE9_FRAMECOMPLETE_IRQ ((MM_U64)1 <<
MM_GDC_IRIS_INT_STORE9_FRAMECOMPLETE_IRQ_CP)
− #define MM_GDC_IRIS_EXTDST0_FRAMECOMPLETE_IRQ ((MM_U64)1 <<
MM_GDC_IRIS_INT_EXTDST0_FRAMECOMPLETE_IRQ_CP)
− #define MM_GDC_IRIS_DISENGCFG_FRAMECOMPLETE0_IRQ ((MM_U64)1 <<
MM_GDC_IRIS_INT_DISENGCFG_FRAMECOMPLETE0_IRQ_CP)
− #define MM_GDC_IRIS_CMDSEQ_ERROR_IRQ ((MM_U64)1 <<
MM_GDC_IRIS_INT_CMDSEQ_ERROR_IRQ_CP)
− #define MM_GDC_IRIS_FRAMEGEN0_SECSYNC_ON_IRQ ((MM_U64)1 <<
MM_GDC_IRIS_INT_FRAMEGEN0_SECSYNC_ON_IRQ_CP)
− #define MM_GDC_IRIS_FRAMEGEN0_SECSYNC_OFF_IRQ ((MM_U64)1 <<
MM_GDC_IRIS_INT_FRAMEGEN0_SECSYNC_OFF_IRQ_CP)
Interrupt Operations Functions
− void mmdGdcInterruptHandler (void)
Interrupt Handler Function.
− MM_ERROR mmdGdcInterruptRegisterHandler (MM_U64 irq, void(∗pHandler)(MM_U64 intrrpt))
Set an application defined interrupt handler function.
11.8.1.1 Detailed Description
2D Core Interrupt Controller handler functions
#include "mmd_gdc_interrupthandler.h"
The interrupt controller API provides all required functions to handle 2D core interrupts.
Note:
−
The 2D core interrupts are required for the 2D Core Graphics Driver. Therefore it is required that all
2D core IRQ lines connected to the ARM core are enabled and linked to the
mmdGdcInterruptHandler function provided by this interface. The 2D Core Driver will take care that
the interrupt sources are reset.
September 11, 2015, S6E2DH_AN709-00022-1v0-E
CONFIDENTIAL
143