PDK API Guide for J721E
RegisterIntr

Introduction

RegisterIntr interface

Files

file  RegisterIntr.h
 Interrupt register routines.
 

Data Structures

struct  OsalRegisterIntParams_corepac_t
 Interrupt Configuration parameters for the corepac (c6x/a15/m5/a8/a9) More...
 
struct  OsalRegisterIntParams_socmux_t
 Interrupt Configuration parameters for soc mux prior to reaching the core. More...
 
struct  OsalRegisterIntrParams_t
 Interrupt Configuration parameters This is the data structure used to configure the interrupts in the system. coreConfig: This part configures the interrupt for corepac such as c66x, arm, m4 socMuxConfig: This part configures the interrupt path for any SOC level mux such as CIC/GIC or cross bar, leading up to the corepac. More...
 

Functions

void Osal_RegisterInterrupt_initParams (OsalRegisterIntrParams_t *interruptRegParams)
 Function to initialize the interrupt registration configuration data structure. More...
 
OsalInterruptRetCode_e Osal_RegisterInterruptDirect (OsalRegisterIntrParams_t *interruptRegParams, HwiP_DirectFxn isrFxn, HwiP_Handle *hwiPHandlePtr)
 Function to register direct interrupt with parameters provided. More...
 
OsalInterruptRetCode_e Osal_RegisterInterrupt (OsalRegisterIntrParams_t *interruptRegParams, HwiP_Handle *hwiPHandlePtr)
 Function to register interrupt with parameters provided. More...
 
OsalInterruptRetCode_e Osal_DeleteInterrupt (HwiP_Handle hwiPhandle, int32_t corepacEventNum)
 Function to delete interrupt corresponding to an event number. More...
 
void Osal_EnableInterrupt (int32_t corepacEvent, int32_t interruptNum)
 Function to enable the interrupt corresponding to an event number. More...
 
void Osal_DisableInterrupt (int32_t corepacEvent, int32_t interruptNum)
 Function to disable the interrupt corresponding to an event number. More...
 
void Osal_ClearInterrupt (int32_t corepacEvent, int32_t interruptNum)
 Function to clear the interrupt corresponding to an event number. More...
 

Typedefs

typedef void(* Osal_IsrRoutine) (uintptr_t arg)
 

Macros

#define OSAL_REGINT_INTVEC_EVENT_COMBINER   (16)
 For C6x, if intVec=16, then event combiner is to be used. More...
 

Osal Interrupt return Codes

typedef int32_t OsalInterruptRetCode_e
 Return error codes for Osal Interrupt functions. More...
 
#define OSAL_INT_SUCCESS   ((int32_t) 0)
 
#define OSAL_INT_ERR_INVALID_PARAMS   ((int32_t) -1)
 
#define OSAL_INT_ERR_HWICREATE   ((int32_t) -2)
 
#define OSAL_INT_ERR_EVENTCOMBINER_REG   ((int32_t) -3)
 
#define OSAL_INT_ERR_DELETE   ((int32_t) -4)
 
#define OSAL_INT_UNSUPPORTED   ((int32_t) -5)
 

Macro Definition Documentation

◆ OSAL_REGINT_INTVEC_EVENT_COMBINER

#define OSAL_REGINT_INTVEC_EVENT_COMBINER   (16)

For C6x, if intVec=16, then event combiner is to be used.

◆ OSAL_INT_SUCCESS

#define OSAL_INT_SUCCESS   ((int32_t) 0)

Success return code

◆ OSAL_INT_ERR_INVALID_PARAMS

#define OSAL_INT_ERR_INVALID_PARAMS   ((int32_t) -1)

Invalid input parameters

◆ OSAL_INT_ERR_HWICREATE

#define OSAL_INT_ERR_HWICREATE   ((int32_t) -2)

Error while registering the Hwi object

◆ OSAL_INT_ERR_EVENTCOMBINER_REG

#define OSAL_INT_ERR_EVENTCOMBINER_REG   ((int32_t) -3)

Error while registering the event combiner to the defaults

◆ OSAL_INT_ERR_DELETE

#define OSAL_INT_ERR_DELETE   ((int32_t) -4)

Failed to delete a Interrupt handle.

◆ OSAL_INT_UNSUPPORTED

#define OSAL_INT_UNSUPPORTED   ((int32_t) -5)

Unsupported function

Typedef Documentation

◆ Osal_IsrRoutine

typedef void(* Osal_IsrRoutine) (uintptr_t arg)

◆ OsalInterruptRetCode_e

typedef int32_t OsalInterruptRetCode_e

Return error codes for Osal Interrupt functions.

Function Documentation

◆ Osal_RegisterInterrupt_initParams()

void Osal_RegisterInterrupt_initParams ( OsalRegisterIntrParams_t interruptRegParams)

Function to initialize the interrupt registration configuration data structure.

◆ Osal_RegisterInterruptDirect()

OsalInterruptRetCode_e Osal_RegisterInterruptDirect ( OsalRegisterIntrParams_t interruptRegParams,
HwiP_DirectFxn  isrFxn,
HwiP_Handle hwiPHandlePtr 
)

Function to register direct interrupt with parameters provided.

◆ Osal_RegisterInterrupt()

OsalInterruptRetCode_e Osal_RegisterInterrupt ( OsalRegisterIntrParams_t interruptRegParams,
HwiP_Handle hwiPHandlePtr 
)

Function to register interrupt with parameters provided.

◆ Osal_DeleteInterrupt()

OsalInterruptRetCode_e Osal_DeleteInterrupt ( HwiP_Handle  hwiPhandle,
int32_t  corepacEventNum 
)

Function to delete interrupt corresponding to an event number.

◆ Osal_EnableInterrupt()

void Osal_EnableInterrupt ( int32_t  corepacEvent,
int32_t  interruptNum 
)

Function to enable the interrupt corresponding to an event number.

◆ Osal_DisableInterrupt()

void Osal_DisableInterrupt ( int32_t  corepacEvent,
int32_t  interruptNum 
)

Function to disable the interrupt corresponding to an event number.

◆ Osal_ClearInterrupt()

void Osal_ClearInterrupt ( int32_t  corepacEvent,
int32_t  interruptNum 
)

Function to clear the interrupt corresponding to an event number.