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 for soc mux prior to reaching the core 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)
 
OsalInterruptRetCode_e Osal_RegisterInterrupt (OsalRegisterIntrParams_t *interruptRegParams, HwiP_Handle *hwiPHandlePtr)
 Function to initialize the interrupt registration configuration data structure. More...
 
OsalInterruptRetCode_e Osal_DeleteInterrupt (HwiP_Handle hwiPhandle, int32_t corepacEventNum)
 Function to register interrupt with parameters provided. More...
 
void Osal_EnableInterrupt (int32_t corepacEvent, int32_t interruptNum)
 Function to delete interrupt corresponding to an event number. More...
 
void Osal_DisableInterrupt (int32_t corepacEvent, int32_t interruptNum)
 Function to enable the interrupt corresponding to an event number. More...
 
void Osal_ClearInterrupt (int32_t corepacEvent, int32_t interruptNum)
 Function to disable the interrupt corresponding to an event number. More...
 

Typedefs

typedef void(* Osal_IsrRoutine) (uintptr_t arg)
 

Macros

#define OSAL_REGINT_INTVEC_EVENT_COMBINER   (16)
 

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)
 

Macro Definition Documentation

#define OSAL_REGINT_INTVEC_EVENT_COMBINER   (16)
#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)

Typedef Documentation

typedef void(* Osal_IsrRoutine) (uintptr_t arg)
typedef int32_t OsalInterruptRetCode_e

Return error codes for Osal Interrupt functions.

Function Documentation

void Osal_RegisterInterrupt_initParams ( OsalRegisterIntrParams_t interruptRegParams)
OsalInterruptRetCode_e Osal_RegisterInterrupt ( OsalRegisterIntrParams_t interruptRegParams,
HwiP_Handle hwiPHandlePtr 
)

Function to initialize the interrupt registration configuration data structure.

OsalInterruptRetCode_e Osal_DeleteInterrupt ( HwiP_Handle  hwiPhandle,
int32_t  corepacEventNum 
)

Function to register interrupt with parameters provided.

void Osal_EnableInterrupt ( int32_t  corepacEvent,
int32_t  interruptNum 
)

Function to delete interrupt corresponding to an event number.

void Osal_DisableInterrupt ( int32_t  corepacEvent,
int32_t  interruptNum 
)

Function to enable the interrupt corresponding to an event number.

void Osal_ClearInterrupt ( int32_t  corepacEvent,
int32_t  interruptNum 
)

Function to disable the interrupt corresponding to an event number.