cx23418.h
来自「trident tm5600的linux驱动」· C头文件 代码 · 共 464 行 · 第 1/2 页
H
464 行
#define CX18_CPU_SET_CAPTURE_LINE_NO (CPU_CMD_MASK_CAPTURE | 0x0017)/* Description: Set copyright IN[0] - task handle. Handle of the task to start IN[1] - copyright ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_COPYRIGHT (CPU_CMD_MASK_CAPTURE | 0x0018)/* Description: Set audio PID IN[0] - task handle. Handle of the task to start IN[1] - PID ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_AUDIO_PID (CPU_CMD_MASK_CAPTURE | 0x0019)/* Description: Set video PID IN[0] - task handle. Handle of the task to start IN[1] - PID ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_VIDEO_PID (CPU_CMD_MASK_CAPTURE | 0x001A)/* Description: Set Vertical Crop Line IN[0] - task handle. Handle of the task to start IN[1] - Line ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_VER_CROP_LINE (CPU_CMD_MASK_CAPTURE | 0x001B)/* Description: Set COP structure IN[0] - task handle. Handle of the task to start IN[1] - M IN[2] - N ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_GOP_STRUCTURE (CPU_CMD_MASK_CAPTURE | 0x001C)/* Description: Set Scene Change Detection IN[0] - task handle. Handle of the task to start IN[1] - scene change ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_SCENE_CHANGE_DETECTION (CPU_CMD_MASK_CAPTURE | 0x001D)/* Description: Set Aspect Ratio IN[0] - task handle. Handle of the task to start IN[1] - AspectRatio ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_ASPECT_RATIO (CPU_CMD_MASK_CAPTURE | 0x001E)/* Description: Set Skip Input Frame IN[0] - task handle. Handle of the task to start IN[1] - skip input frames ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_SKIP_INPUT_FRAME (CPU_CMD_MASK_CAPTURE | 0x001F)/* Description: Set sliced VBI parameters - Note This API will only apply to MPEG and Sliced VBI Channels IN[0] - Task handle IN[1] - output type, 0 - CC, 1 - Moji, 2 - Teletext IN[2] - start / stop line bit[15:0] start line number bit[31:16] stop line number IN[3] - number of output frames per interrupt IN[4] - VBI insertion mode bit 0: output user data, 1 - enable bit 1: output private stream, 1 - enable bit 2: mux option, 0 - in GOP, 1 - in picture bit[7:0] private stream ID IN[5] - insertion period while mux option is in picture ReturnCode - VBI data offset */#define CX18_CPU_SET_SLICED_VBI_PARAM (CPU_CMD_MASK_CAPTURE | 0x0020)/* Description: Set the user data place holder IN[0] - type of data (0 for user) IN[1] - Stuffing period IN[2] - ID data size in word (less than 10) IN[3] - Pointer to ID buffer */#define CX18_CPU_SET_USERDATA_PLACE_HOLDER (CPU_CMD_MASK_CAPTURE | 0x0021)/* Description: In[0] Task Handle return parameter: Out[0] Reserved Out[1] Video PTS bit[32:2] of last output video frame. Out[2] Video PTS bit[ 1:0] of last output video frame. Out[3] Hardware Video PTS counter bit[31:0], these bits get incremented on every 90kHz clock tick. Out[4] Hardware Video PTS counter bit32, these bits get incremented on every 90kHz clock tick. ReturnCode */#define CX18_CPU_GET_ENC_PTS (CPU_CMD_MASK_CAPTURE | 0x0022)/* Below is the list of commands related to the data exchange */#define CPU_CMD_MASK_DE (CPU_CMD_MASK | 0x040000)/* Description: This command provides the physical base address of the local DDR as viewed by EPU IN[0] - Physical offset where EPU has the local DDR mapped ReturnCode - One of the ERR_DE_... */#define CPU_CMD_DE_SetBase (CPU_CMD_MASK_DE | 0x0001)/* Description: This command provides the offsets in the device memory where the 2 cx18_mdl_ack blocks reside IN[0] - Task handle. Handle of the task to start IN[1] - Offset of the first cx18_mdl_ack from the beginning of the local DDR. IN[2] - Offset of the second cx18_mdl_ack from the beginning of the local DDR. ReturnCode - One of the ERR_DE_... */#define CX18_CPU_DE_SET_MDL_ACK (CPU_CMD_MASK_DE | 0x0002)/* Description: This command provides the offset to a Memory Descriptor List IN[0] - Task handle. Handle of the task to start IN[1] - Offset of the MDL from the beginning of the local DDR. IN[2] - Number of cx18_mdl structures in the array pointed to by IN[1] IN[3] - Buffer ID IN[4] - Total buffer length ReturnCode - One of the ERR_DE_... */#define CX18_CPU_DE_SET_MDL (CPU_CMD_MASK_DE | 0x0005)/* Description: This command requests return of all current Memory Descriptor Lists to the driver IN[0] - Task handle. Handle of the task to start ReturnCode - One of the ERR_DE_... */#define CX18_CPU_DE_RELEASE_MDL (CPU_CMD_MASK_DE | 0x0006)/* Description: This command signals the cpu that the dat buffer has been consumed and ready for re-use. IN[0] - Task handle. Handle of the task IN[1] - Offset of the data block from the beginning of the local DDR. IN[2] - Number of bytes in the data block ReturnCode - One of the ERR_DE_... *//* #define CX18_CPU_DE_RELEASE_BUFFER (CPU_CMD_MASK_DE | 0x0007) *//* No Error / Success */#define CNXT_OK 0x000000/* Received unknown command */#define CXERR_UNK_CMD 0x000001/* First parameter in the command is invalid */#define CXERR_INVALID_PARAM1 0x000002/* Second parameter in the command is invalid */#define CXERR_INVALID_PARAM2 0x000003/* Device interface is not open/found */#define CXERR_DEV_NOT_FOUND 0x000004/* Requested function is not implemented/available */#define CXERR_NOTSUPPORTED 0x000005/* Invalid pointer is provided */#define CXERR_BADPTR 0x000006/* Unable to allocate memory */#define CXERR_NOMEM 0x000007/* Object/Link not found */#define CXERR_LINK 0x000008/* Device busy, command cannot be executed */#define CXERR_BUSY 0x000009/* File/device/handle is not open. */#define CXERR_NOT_OPEN 0x00000A/* Value is out of range */#define CXERR_OUTOFRANGE 0x00000B/* Buffer overflow */#define CXERR_OVERFLOW 0x00000C/* Version mismatch */#define CXERR_BADVER 0x00000D/* Operation timed out */#define CXERR_TIMEOUT 0x00000E/* Operation aborted */#define CXERR_ABORT 0x00000F/* Specified I2C device not found for read/write */#define CXERR_I2CDEV_NOTFOUND 0x000010/* Error in I2C data xfer (but I2C device is present) */#define CXERR_I2CDEV_XFERERR 0x000011/* Chanel changing component not ready */#define CXERR_CHANNELNOTREADY 0x000012/* PPU (Presensation/Decoder) mail box is corrupted */#define CXERR_PPU_MB_CORRUPT 0x000013/* CPU (Capture/Encoder) mail box is corrupted */#define CXERR_CPU_MB_CORRUPT 0x000014/* APU (Audio) mail box is corrupted */#define CXERR_APU_MB_CORRUPT 0x000015/* Unable to open file for reading */#define CXERR_FILE_OPEN_READ 0x000016/* Unable to open file for writing */#define CXERR_FILE_OPEN_WRITE 0x000017/* Unable to find the I2C section specified */#define CXERR_I2C_BADSECTION 0x000018/* Error in I2C data xfer (but I2C device is present) */#define CXERR_I2CDEV_DATALOW 0x000019/* Error in I2C data xfer (but I2C device is present) */#define CXERR_I2CDEV_CLOCKLOW 0x00001A/* No Interrupt received from HW (for I2C access) */#define CXERR_NO_HW_I2C_INTR 0x00001B/* RPU is not ready to accept commands! */#define CXERR_RPU_NOT_READY 0x00001C/* RPU is not ready to accept commands! */#define CXERR_RPU_NO_ACK 0x00001D/* The are no buffers ready. Try again soon! */#define CXERR_NODATA_AGAIN 0x00001E/* The stream is stopping. Function not alllowed now! */#define CXERR_STOPPING_STATUS 0x00001F/* Trying to access hardware when the power is turned OFF */#define CXERR_DEVPOWER_OFF 0x000020#endif /* CX23418_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?