PDK API Guide for J721E
vhwa_m2mLdc.h File Reference

Introduction

Defines the structures / control operations that could be used to configure / control LDC M2M driver.

Typical Application for the LDC M2M driver is as shown below.

Vhwa_m2mLdcInit || Vhwa_m2mLdcAllocSl2 || FVID2_Create || IOCTL_VHWA_M2M_LDC_SET_CONFIG (sets LDC configuration) || FVID2_ProcessReq || Wait for completion callback || FVID2_GetProcessedReq || FVID2_close || FVID2_deInit

Go to the source code of this file.

Data Structures

struct  Vhwa_M2mLdcCreateArgs
 
struct  Vhwa_M2mLdcInitParams
 Init Parameters for LDC M2M Driver. More...
 
struct  Vhwa_M2mLdcSl2AllocPrms
 Used for allocating SL2 memory. More...
 

Macros

#define VHWA_M2M_LDC_DRV_INST_ID   (0U)
 
#define VHWA_M2M_LDC_MAX_HANDLES   (8u)
 Max Number of handles supported by LDC M2M Driver. More...
 
Ioctls for the LDC memory to memory driver

Input/Output control MACRO's for LDC memory to memory module

#define IOCTL_VHWA_M2M_LDC_SET_PARAMS   (VHWA_IOCTL_M2M_LDC_IOCTL_BASE)
 IOCTL for setting LDC configuration. This IOCTL takes LDC Configuration Ldc_Config as input. More...
 
#define IOCTL_VHWA_M2M_LDC_GET_PERFORMANCE   (IOCTL_VHWA_M2M_LDC_SET_PARAMS + 1U)
 IOCTL for getting module's performance numbers for the last frame submitted. More...
 
#define IOCTL_VHWA_M2M_LDC_GET_PSA_SIGN
 IOCTL for getting LSE PSA Signature. More...
 
#define IOCTL_VHWA_M2M_LDC_REGISTER_ERR_CB
 IOCTL for enabling error events and registering callbacks for the same. This IOCTL pointer to Ldc_ErrEventParams as input. More...
 
#define IOCTL_VHWA_M2M_LDC_SET_RD_BW_LIMIT
 IOCTL for enabling and setting parameters for LDC Read bandwidth limiter. This ioctl sets the configurations directly in the registers, so it gets used for all open handles. This IOCTL takes pointer to Ldc_RdBwLimitConfig as input. More...
 
#define IOCTL_VHWA_M2M_LDC_SET_HTS_LIMIT
 IOCTL for enabling and setting HTS limiter. This is used to slowed down the HTS by introducing clock cycles between internal start signals. This IOCTL takes pointer to Vhwa_HtsLimiter as input. More...
 
#define IOCTL_VHWA_M2M_LDC_SYNC_START
 IOCTL to sync start each module This IOCTL doesn't configure any register and only enable pipeline to start processing. More...
 

Functions

int32_t Vhwa_m2mLdcInit (Vhwa_M2mLdcInitParams *ldcInitPrms)
 Initializes LDC Init Parameters. More...
 
void Vhwa_m2mLdcDeInit (void)
 DeInitializes LDC Init Parameters. More...
 
int32_t Vhwa_m2mLdcAllocSl2 (const Vhwa_M2mLdcSl2AllocPrms *sl2allocPrms)
 Function to allocate Sl2 memory for the output buffers. More...
 
void Vhwa_m2mLdcFreeSl2 (void)
 Function to free allocated SL2. More...
 
static void Vhwa_m2mLdcInitParamsInit (Vhwa_M2mLdcInitParams *ldcCfg)
 This function should be used to initialize variable of type Vhwa_M2mLdcInitParams. More...
 
static void Vhwa_M2mLdcCreateArgsInit (Vhwa_M2mLdcCreateArgs *createArgs)
 This function should be used to initialize variable of type Vhwa_M2mLdcCreateArgs. More...
 
static void Vhwa_M2mLdcSl2AllocPrmsInit (Vhwa_M2mLdcSl2AllocPrms *sl2Prms)