|
libxcoder
3.5.4
|
Definitions related to working with NI T-408 over NVME interface. More...
Go to the source code of this file.
Data Structures | |
| struct | _ni_logan_nvme_id_power_state |
| struct | _ni_logan_nvme_identity |
| struct | _ni_logan_nvme_write_complete_dw0_t |
Macros | |
| #define | NI_LOGAN_NVME_IDENTITY_CMD_DATA_SZ 4096 |
| #define | NI_LOGAN_NO_CHECK_TS_NVME_CMD_OP (-1) |
| #define | WRITE_INSTANCE_SET_DW2_SUBFRAME_IDX(dst, size) (dst = (size & 0xFFFFFFFFUL)) |
| #define | WRITE_INSTANCE_SET_DW3_SUBFRAME_SIZE(dst, size) (dst = (size & 0xFFFFFFFFUL)) |
| #define | CREATE_SESSION_SET_DW10_SUBTYPE(dst) (dst = (nvme_open_xcoder_create_session & 0xFFFFUL)) |
| #define | CREATE_SESSION_SET_DW11_INSTANCE(dst, instance) (dst = (instance & 0xFFFFUL)) |
| #define | CREATE_SESSION_SET_DW12_DEC_CID(dst, cid) (dst = (cid & 0xFFFFUL)) |
| #define | CREATE_SESSION_SET_DW12_ENC_CID_FRWIDTH(dst, cid, width) (dst = (((width << 16) & 0xFFFF0000UL) | (cid & 0xFFFFUL))) |
| #define | CREATE_SESSION_SET_DW13_ENC_FRHIGHT(dst, hight) (dst = (hight & 0xFFFFUL)) |
| #define | CREATE_SESSION_SET_DW14_MODEL_LOAD(dst, load) (dst = (load & 0xFFFFFFFFUL)) |
| #define | CREATE_SESSION_SET_DW15_SIZE(dst, size) (dst = (size & 0xFFFFFFFFUL)) |
| #define | DESTROY_SESSION_SET_DW10_INSTANCE(dst, sid) (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_close_xcoder_destroy_session & 0xFFFFUL))) |
| #define | READ_INSTANCE_SET_DW10_SUBTYPE(dst, sid) (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_write_xcoder_write_instance & 0xFFFFUL))) |
| #define | READ_INSTANCE_SET_DW11_INSTANCE(dst, instance) (dst = (instance & 0xFFFFUL)) |
| #define | READ_INSTANCE_SET_DW15_SIZE(dst, size) (dst = (size & 0xFFFFFFFFUL)) |
| #define | WRITE_INSTANCE_SET_DW10_SUBTYPE(dst, sid) (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_write_xcoder_write_instance & 0xFFFFUL))) |
| #define | WRITE_INSTANCE_SET_DW11_INSTANCE(dst, instance) (dst = (instance & 0xFFFFUL)) |
| #define | WRITE_INSTANCE_SET_DW11_PAGEOFFSET(dst, pageoffset) (dst = (((pageoffset << 16) | dst))) |
| #define | WRITE_INSTANCE_SET_DW12_ISHWDESC(dst, ishwdesc) (dst = (ishwdesc & 0xFFFFUL)) |
| #define | WRITE_INSTANCE_SET_DW12_FRAMEINSTID(dst, fid) (dst = (0xFFFFUL & dst) | ((fid<<16) & 0xFFFF0000UL)) |
| #define | WRITE_INSTANCE_SET_DW14_YUV_BYTEOFFSET(dst, byteoffset) (dst = (byteoffset & 0xFFFFFFFFUL)) |
| #define | WRITE_INSTANCE_SET_DW15_SIZE(dst, size) (dst = (size & 0xFFFFFFFFUL)) |
| #define | QUERY_SESSION_SET_DW10_SUBTYPE(dst, sid) (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_query_xcoder_query_session & 0xFFFFUL))) |
| #define | QUERY_SESSION_SET_DW11_INSTANCE(dst, instance) (dst = (instance & 0xFFFFUL)) |
| #define | QUERY_SESSION_SET_DW15_SIZE(dst, size) (dst = (size & 0xFFFFFFFFUL)) |
| #define | QUERY_INSTANCE_SET_DW10_SUBTYPE(dst, sid) (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_query_xcoder_query_instance & 0xFFFFUL))) |
| #define | QUERY_INSTANCE_SET_DW11_INSTANCE_STATUS(dst, instance) (dst = (((nvme_query_xcoder_instance_get_status << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
| #define | QUERY_INSTANCE_SET_DW11_INSTANCE_STREAM_INFO(dst, instance) (dst = (((nvme_query_xcoder_instance_get_stream_info << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
| #define | QUERY_INSTANCE_SET_DW11_INSTANCE_END_OF_OUTPUT(dst, instance) (dst = (((nvme_query_xcoder_instance_get_end_of_output << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
| #define | QUERY_INSTANCE_SET_DW11_INSTANCE_BUF_INFO(dst, rw_type, inst_type) (dst = (((rw_type << 16) & 0xFFFF0000UL) | (inst_type & 0xFFFFUL))) |
| #define | QUERY_INSTANCE_SET_DW15_SIZE(dst, size) (dst = (size & 0xFFFFFFFFUL)) |
| #define | QUERY_GENERAL_SET_DW10_SUBTYPE(dst) (dst = ( (nvme_query_xcoder_query_general & 0xFFFFUL))) |
| #define | QUERY_GENERAL_SET_DW11_INSTANCE_STATUS(dst, instance) (dst = (((nvme_query_xcoder_general_get_status << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
| #define | CONFIG_SESSION_SET_DW10_SESSION_ID(dst, sid) (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_config_xcoder_config_session & 0xFFFFUL))) |
| #define | CONFIG_SESSION_SET_DW11_SUBTYPE(dst, subtype) (dst = (((0 << 16) & 0xFFFF0000UL) | (subtype & 0xFFFFUL))) |
| #define | CONFIG_SESSION_SET_DW15_SIZE(dst, size) (dst = (size & 0xFFFFFFFFUL)) |
| #define | CONFIG_INSTANCE_SET_DW10_SUBTYPE(dst, sid) (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_config_xcoder_config_instance & 0xFFFFUL))) |
| #define | CONFIG_INSTANCE_SET_DW11_SOS(dst, instance) (dst = (((nvme_config_xcoder_config_set_sos << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
| #define | CONFIG_INSTANCE_SET_DW11_EOS(dst, instance) (dst = (((nvme_config_xcoder_config_set_eos << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
| #define | CONFIG_INSTANCE_SET_DW11_ENC_PARAMS(dst, instance) (dst = (((nvme_config_xcoder_config_set_enc_params << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
| #define | CONFIG_INSTANCE_SET_DW11_ENC_FRAME_PARAMS(dst, instance) (dst = (((nvme_config_xcoder_config_set_enc_frame_params << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
| #define | CONFIG_INSTANCE_SET_DW11_FLUSH(dst, instance) (dst = (((nvme_config_xcoder_config_flush << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
| #define | CONFIG_INSTANCE_SET_DW11_UPDATE_PARAMS(dst, instance) (dst = (((nvme_config_xcoder_config_update_enc_params << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
| #define | CONFIG_INSTANCE_SET_DW15_SIZE(dst, size) (dst = (size & 0xFFFFFFFFUL)) |
| #define | NI_LOGAN_DATA_BUFFER_LEN 4096 |
| #define | LBA_BIT_OFFSET 12 |
| #define | NI_LOGAN_SUB_BIT_OFFSET 4 |
| #define | NI_LOGAN_OP_BIT_OFFSET 8 |
| #define | NI_LOGAN_INSTANCE_TYPE_OFFSET 18 |
| #define | NI_LOGAN_SESSION_ID_OFFSET 19 |
| #define | NI_LOGAN_HW_DESC_OFFSET 26 |
| #define | MBs(xMB) ((xMB)*1024*1024) |
| #define | MBs_to_4k(xMB) ((xMB)*1024*1024/4096) |
| #define | START_OFFSET_IN_4K MBs_to_4k(512) |
| #define | CTL_OFFSET_IN_4K(op, sub, subtype) |
| #define | RD_OFFSET_IN_4K (START_OFFSET_IN_4K + MBs_to_4k(128)) |
| #define | WR_OFFSET_IN_4K (RD_OFFSET_IN_4K + MBs_to_4k(128)) |
| #define | HIGH_OFFSET_IN_4K(hw, sid, instance) (((hw<<(NI_LOGAN_HW_DESC_OFFSET-NI_LOGAN_INSTANCE_TYPE_OFFSET))|((sid & 0x7FUL)<<1)|(instance))<<NI_LOGAN_INSTANCE_TYPE_OFFSET) |
| #define | GAP(opcode) ((opcode) - nvme_admin_cmd_xcoder_open) |
| #define | WR_METADATA_OFFSET_IN_4K (WR_OFFSET_IN_4K + MBs_to_4k(128) + MBs_to_4k(11)) |
| #define | GET_CPU_LOGS_IN_4K 0x38800 |
| #define | WRITE_INSTANCE_W(hw, sid, instance) HIGH_OFFSET_IN_4K(hw,sid,instance) + WR_OFFSET_IN_4K |
| #define | WRITE_METADATA_W(hw, sid, instance) HIGH_OFFSET_IN_4K(hw,sid, instance) + WR_METADATA_OFFSET_IN_4K |
| #define | READ_INSTANCE_R(hw, sid, instance) HIGH_OFFSET_IN_4K(hw,sid,instance) + RD_OFFSET_IN_4K |
| #define | IDENTIFY_DEVICE_R HIGH_OFFSET_IN_4K(0,0,0) + CTL_OFFSET_IN_4K(GAP(0xD7), 1, 0) |
| #define | OPEN_GET_SID_R(hw, instance) |
| #define | OPEN_SESSION_W(hw, sid, instance) |
| #define | CLOSE_SESSION_R(sid, instance) |
| #define | QUERY_SESSION_R(sid, instance) |
| #define | QUERY_INSTANCE_STATUS_R(sid, instance) |
| #define | QUERY_INSTANCE_CUR_STATUS_INFO_R(sid, instance) |
| #define | QUERY_INSTANCE_STREAM_INFO_R(hw, sid, instance) |
| #define | QUERY_INSTANCE_RBUFF_SIZE_R(hw, sid, instance) |
| #define | QUERY_INSTANCE_WBUFF_SIZE_R(hw, sid, instance) |
| #define | QUERY_INSTANCE_UPLOAD_ID_R(hw, sid, instance) |
| #define | QUERY_INSTANCE_ACQUIRE_BUF(hw, sid, instance) |
| #define | QUERY_GENERAL_GET_STATUS_R(instance) |
| #define | QUERY_INSTANCE_DEBUG_INFO_R(sid, instance) |
| #define | QUERY_INSTANCE_DEBUG_DATA_R(sid, instance) |
| #define | CONFIG_INSTANCE_SetSOS_W(hw, sid, instance) |
| #define | CONFIG_INSTANCE_SetEOS_W(sid, instance) |
| #define | CONFIG_INSTANCE_SetFlush_W(sid, instance) |
| #define | CONFIG_INSTANCE_SetEncPara_W(sid, instance) |
| #define | CONFIG_INSTANCE_UpdateEncPara_W(sid, instance) |
| #define | CONFIG_INSTANCE_SetPktSize_W(hw, sid, instance) |
| #define | CONFIG_INSTANCE_InitFramePool_W(sid, instance) |
| #define | CONFIG_INSTANCE_RecycleBuf_W(sid, instance) |
| #define | CONFIG_INSTANCE_FrameIdx_W(sid, instance) |
| #define | CONFIG_SESSION_KeepAlive_W(sid) |
| #define | CONFIG_SESSION_KeepAliveTimeout_W(sid) |
| #define | CONFIG_SESSION_Read_W(sid) |
| #define | CONFIG_SESSION_Write_W(sid) |
Functions | |
| ni_logan_retcode_t | ni_logan_nvme_check_error_code (int rc, ni_logan_nvme_admin_opcode_t opcode, uint32_t xcoder_type, uint32_t hw_id, int32_t *inst_id) |
| Check f/w error return code, and if it's a fatal one return NI_LOGAN_RETCODE_FAILURE. Application shall handle this gracefully. More... | |
| int | ni_logan_nvme_enumerate_devices (char ni_logan_devices[][NI_LOGAN_MAX_DEVICE_NAME_LEN], int max_handles) |
| prints a report on detected nvme devices More... | |
| int32_t | ni_logan_nvme_send_read_cmd (ni_device_handle_t handle, ni_event_handle_t event_handle, void *p_data, uint32_t data_len, uint32_t lba) |
| Compose a io read command. More... | |
| int32_t | ni_logan_nvme_send_write_cmd (ni_device_handle_t handle, ni_event_handle_t event_handle, void *p_data, uint32_t data_len, uint32_t lba) |
| Compose a io write command. More... | |
Definitions related to working with NI T-408 over NVME interface.
Definition in file ni_nvme_logan.h.
| #define CLOSE_SESSION_R | ( | sid, | |
| instance | |||
| ) |
Definition at line 591 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_FrameIdx_W | ( | sid, | |
| instance | |||
| ) |
Definition at line 636 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_InitFramePool_W | ( | sid, | |
| instance | |||
| ) |
Definition at line 632 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_RecycleBuf_W | ( | sid, | |
| instance | |||
| ) |
Definition at line 634 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_SET_DW10_SUBTYPE | ( | dst, | |
| sid | |||
| ) | (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_config_xcoder_config_instance & 0xFFFFUL))) |
Definition at line 490 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_SET_DW11_ENC_FRAME_PARAMS | ( | dst, | |
| instance | |||
| ) | (dst = (((nvme_config_xcoder_config_set_enc_frame_params << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
Definition at line 494 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_SET_DW11_ENC_PARAMS | ( | dst, | |
| instance | |||
| ) | (dst = (((nvme_config_xcoder_config_set_enc_params << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
Definition at line 493 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_SET_DW11_EOS | ( | dst, | |
| instance | |||
| ) | (dst = (((nvme_config_xcoder_config_set_eos << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
Definition at line 492 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_SET_DW11_FLUSH | ( | dst, | |
| instance | |||
| ) | (dst = (((nvme_config_xcoder_config_flush << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
Definition at line 495 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_SET_DW11_SOS | ( | dst, | |
| instance | |||
| ) | (dst = (((nvme_config_xcoder_config_set_sos << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
Definition at line 491 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_SET_DW11_UPDATE_PARAMS | ( | dst, | |
| instance | |||
| ) | (dst = (((nvme_config_xcoder_config_update_enc_params << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
Definition at line 496 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_SET_DW15_SIZE | ( | dst, | |
| size | |||
| ) | (dst = (size & 0xFFFFFFFFUL)) |
Definition at line 497 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_SetEncPara_W | ( | sid, | |
| instance | |||
| ) |
Definition at line 626 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_SetEOS_W | ( | sid, | |
| instance | |||
| ) |
Definition at line 622 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_SetFlush_W | ( | sid, | |
| instance | |||
| ) |
Definition at line 624 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_SetPktSize_W | ( | hw, | |
| sid, | |||
| instance | |||
| ) |
Definition at line 630 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_SetSOS_W | ( | hw, | |
| sid, | |||
| instance | |||
| ) |
Definition at line 620 of file ni_nvme_logan.h.
| #define CONFIG_INSTANCE_UpdateEncPara_W | ( | sid, | |
| instance | |||
| ) |
Definition at line 628 of file ni_nvme_logan.h.
| #define CONFIG_SESSION_KeepAlive_W | ( | sid | ) |
Definition at line 640 of file ni_nvme_logan.h.
| #define CONFIG_SESSION_KeepAliveTimeout_W | ( | sid | ) |
Definition at line 643 of file ni_nvme_logan.h.
| #define CONFIG_SESSION_Read_W | ( | sid | ) |
Definition at line 646 of file ni_nvme_logan.h.
| #define CONFIG_SESSION_SET_DW10_SESSION_ID | ( | dst, | |
| sid | |||
| ) | (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_config_xcoder_config_session & 0xFFFFUL))) |
Definition at line 485 of file ni_nvme_logan.h.
| #define CONFIG_SESSION_SET_DW11_SUBTYPE | ( | dst, | |
| subtype | |||
| ) | (dst = (((0 << 16) & 0xFFFF0000UL) | (subtype & 0xFFFFUL))) |
Definition at line 486 of file ni_nvme_logan.h.
| #define CONFIG_SESSION_SET_DW15_SIZE | ( | dst, | |
| size | |||
| ) | (dst = (size & 0xFFFFFFFFUL)) |
Definition at line 487 of file ni_nvme_logan.h.
| #define CONFIG_SESSION_Write_W | ( | sid | ) |
Definition at line 649 of file ni_nvme_logan.h.
| #define CREATE_SESSION_SET_DW10_SUBTYPE | ( | dst | ) | (dst = (nvme_open_xcoder_create_session & 0xFFFFUL)) |
Definition at line 447 of file ni_nvme_logan.h.
| #define CREATE_SESSION_SET_DW11_INSTANCE | ( | dst, | |
| instance | |||
| ) | (dst = (instance & 0xFFFFUL)) |
Definition at line 448 of file ni_nvme_logan.h.
| #define CREATE_SESSION_SET_DW12_DEC_CID | ( | dst, | |
| cid | |||
| ) | (dst = (cid & 0xFFFFUL)) |
Definition at line 449 of file ni_nvme_logan.h.
| #define CREATE_SESSION_SET_DW12_ENC_CID_FRWIDTH | ( | dst, | |
| cid, | |||
| width | |||
| ) | (dst = (((width << 16) & 0xFFFF0000UL) | (cid & 0xFFFFUL))) |
Definition at line 451 of file ni_nvme_logan.h.
| #define CREATE_SESSION_SET_DW13_ENC_FRHIGHT | ( | dst, | |
| hight | |||
| ) | (dst = (hight & 0xFFFFUL)) |
Definition at line 452 of file ni_nvme_logan.h.
| #define CREATE_SESSION_SET_DW14_MODEL_LOAD | ( | dst, | |
| load | |||
| ) | (dst = (load & 0xFFFFFFFFUL)) |
Definition at line 453 of file ni_nvme_logan.h.
| #define CREATE_SESSION_SET_DW15_SIZE | ( | dst, | |
| size | |||
| ) | (dst = (size & 0xFFFFFFFFUL)) |
Definition at line 454 of file ni_nvme_logan.h.
| #define CTL_OFFSET_IN_4K | ( | op, | |
| sub, | |||
| subtype | |||
| ) |
Definition at line 561 of file ni_nvme_logan.h.
| #define DESTROY_SESSION_SET_DW10_INSTANCE | ( | dst, | |
| sid | |||
| ) | (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_close_xcoder_destroy_session & 0xFFFFUL))) |
Definition at line 456 of file ni_nvme_logan.h.
| #define GAP | ( | opcode | ) | ((opcode) - nvme_admin_cmd_xcoder_open) |
Definition at line 566 of file ni_nvme_logan.h.
| #define GET_CPU_LOGS_IN_4K 0x38800 |
Definition at line 568 of file ni_nvme_logan.h.
| #define HIGH_OFFSET_IN_4K | ( | hw, | |
| sid, | |||
| instance | |||
| ) | (((hw<<(NI_LOGAN_HW_DESC_OFFSET-NI_LOGAN_INSTANCE_TYPE_OFFSET))|((sid & 0x7FUL)<<1)|(instance))<<NI_LOGAN_INSTANCE_TYPE_OFFSET) |
Definition at line 565 of file ni_nvme_logan.h.
| #define IDENTIFY_DEVICE_R HIGH_OFFSET_IN_4K(0,0,0) + CTL_OFFSET_IN_4K(GAP(0xD7), 1, 0) |
Definition at line 582 of file ni_nvme_logan.h.
| #define LBA_BIT_OFFSET 12 |
Definition at line 547 of file ni_nvme_logan.h.
| #define MBs | ( | xMB | ) | ((xMB)*1024*1024) |
Definition at line 556 of file ni_nvme_logan.h.
| #define MBs_to_4k | ( | xMB | ) | ((xMB)*1024*1024/4096) |
Definition at line 557 of file ni_nvme_logan.h.
| #define NI_LOGAN_DATA_BUFFER_LEN 4096 |
Definition at line 546 of file ni_nvme_logan.h.
| #define NI_LOGAN_HW_DESC_OFFSET 26 |
Definition at line 554 of file ni_nvme_logan.h.
| #define NI_LOGAN_INSTANCE_TYPE_OFFSET 18 |
Definition at line 552 of file ni_nvme_logan.h.
| #define NI_LOGAN_NO_CHECK_TS_NVME_CMD_OP (-1) |
Definition at line 260 of file ni_nvme_logan.h.
| #define NI_LOGAN_NVME_IDENTITY_CMD_DATA_SZ 4096 |
Definition at line 42 of file ni_nvme_logan.h.
| #define NI_LOGAN_OP_BIT_OFFSET 8 |
Definition at line 551 of file ni_nvme_logan.h.
| #define NI_LOGAN_SESSION_ID_OFFSET 19 |
Definition at line 553 of file ni_nvme_logan.h.
| #define NI_LOGAN_SUB_BIT_OFFSET 4 |
Definition at line 550 of file ni_nvme_logan.h.
| #define OPEN_GET_SID_R | ( | hw, | |
| instance | |||
| ) |
Definition at line 585 of file ni_nvme_logan.h.
| #define OPEN_SESSION_W | ( | hw, | |
| sid, | |||
| instance | |||
| ) |
Definition at line 587 of file ni_nvme_logan.h.
| #define QUERY_GENERAL_GET_STATUS_R | ( | instance | ) |
Definition at line 611 of file ni_nvme_logan.h.
| #define QUERY_GENERAL_SET_DW10_SUBTYPE | ( | dst | ) | (dst = ( (nvme_query_xcoder_query_general & 0xFFFFUL))) |
Definition at line 483 of file ni_nvme_logan.h.
| #define QUERY_GENERAL_SET_DW11_INSTANCE_STATUS | ( | dst, | |
| instance | |||
| ) | (dst = (((nvme_query_xcoder_general_get_status << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
Definition at line 484 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_ACQUIRE_BUF | ( | hw, | |
| sid, | |||
| instance | |||
| ) |
Definition at line 609 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_CUR_STATUS_INFO_R | ( | sid, | |
| instance | |||
| ) |
Definition at line 599 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_DEBUG_DATA_R | ( | sid, | |
| instance | |||
| ) |
Definition at line 615 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_DEBUG_INFO_R | ( | sid, | |
| instance | |||
| ) |
Definition at line 613 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_RBUFF_SIZE_R | ( | hw, | |
| sid, | |||
| instance | |||
| ) |
Definition at line 603 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_SET_DW10_SUBTYPE | ( | dst, | |
| sid | |||
| ) | (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_query_xcoder_query_instance & 0xFFFFUL))) |
Definition at line 474 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_SET_DW11_INSTANCE_BUF_INFO | ( | dst, | |
| rw_type, | |||
| inst_type | |||
| ) | (dst = (((rw_type << 16) & 0xFFFF0000UL) | (inst_type & 0xFFFFUL))) |
Definition at line 479 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_SET_DW11_INSTANCE_END_OF_OUTPUT | ( | dst, | |
| instance | |||
| ) | (dst = (((nvme_query_xcoder_instance_get_end_of_output << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
Definition at line 477 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_SET_DW11_INSTANCE_STATUS | ( | dst, | |
| instance | |||
| ) | (dst = (((nvme_query_xcoder_instance_get_status << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
Definition at line 475 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_SET_DW11_INSTANCE_STREAM_INFO | ( | dst, | |
| instance | |||
| ) | (dst = (((nvme_query_xcoder_instance_get_stream_info << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL))) |
Definition at line 476 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_SET_DW15_SIZE | ( | dst, | |
| size | |||
| ) | (dst = (size & 0xFFFFFFFFUL)) |
Definition at line 481 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_STATUS_R | ( | sid, | |
| instance | |||
| ) |
Definition at line 597 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_STREAM_INFO_R | ( | hw, | |
| sid, | |||
| instance | |||
| ) |
Definition at line 601 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_UPLOAD_ID_R | ( | hw, | |
| sid, | |||
| instance | |||
| ) |
Definition at line 607 of file ni_nvme_logan.h.
| #define QUERY_INSTANCE_WBUFF_SIZE_R | ( | hw, | |
| sid, | |||
| instance | |||
| ) |
Definition at line 605 of file ni_nvme_logan.h.
| #define QUERY_SESSION_R | ( | sid, | |
| instance | |||
| ) |
Definition at line 595 of file ni_nvme_logan.h.
| #define QUERY_SESSION_SET_DW10_SUBTYPE | ( | dst, | |
| sid | |||
| ) | (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_query_xcoder_query_session & 0xFFFFUL))) |
Definition at line 470 of file ni_nvme_logan.h.
| #define QUERY_SESSION_SET_DW11_INSTANCE | ( | dst, | |
| instance | |||
| ) | (dst = (instance & 0xFFFFUL)) |
Definition at line 471 of file ni_nvme_logan.h.
| #define QUERY_SESSION_SET_DW15_SIZE | ( | dst, | |
| size | |||
| ) | (dst = (size & 0xFFFFFFFFUL)) |
Definition at line 472 of file ni_nvme_logan.h.
| #define RD_OFFSET_IN_4K (START_OFFSET_IN_4K + MBs_to_4k(128)) |
Definition at line 563 of file ni_nvme_logan.h.
| #define READ_INSTANCE_R | ( | hw, | |
| sid, | |||
| instance | |||
| ) | HIGH_OFFSET_IN_4K(hw,sid,instance) + RD_OFFSET_IN_4K |
Definition at line 578 of file ni_nvme_logan.h.
| #define READ_INSTANCE_SET_DW10_SUBTYPE | ( | dst, | |
| sid | |||
| ) | (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_write_xcoder_write_instance & 0xFFFFUL))) |
Definition at line 458 of file ni_nvme_logan.h.
| #define READ_INSTANCE_SET_DW11_INSTANCE | ( | dst, | |
| instance | |||
| ) | (dst = (instance & 0xFFFFUL)) |
Definition at line 459 of file ni_nvme_logan.h.
| #define READ_INSTANCE_SET_DW15_SIZE | ( | dst, | |
| size | |||
| ) | (dst = (size & 0xFFFFFFFFUL)) |
Definition at line 460 of file ni_nvme_logan.h.
| #define START_OFFSET_IN_4K MBs_to_4k(512) |
Definition at line 559 of file ni_nvme_logan.h.
| #define WR_METADATA_OFFSET_IN_4K (WR_OFFSET_IN_4K + MBs_to_4k(128) + MBs_to_4k(11)) |
Definition at line 567 of file ni_nvme_logan.h.
| #define WR_OFFSET_IN_4K (RD_OFFSET_IN_4K + MBs_to_4k(128)) |
Definition at line 564 of file ni_nvme_logan.h.
| #define WRITE_INSTANCE_SET_DW10_SUBTYPE | ( | dst, | |
| sid | |||
| ) | (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_write_xcoder_write_instance & 0xFFFFUL))) |
Definition at line 462 of file ni_nvme_logan.h.
| #define WRITE_INSTANCE_SET_DW11_INSTANCE | ( | dst, | |
| instance | |||
| ) | (dst = (instance & 0xFFFFUL)) |
Definition at line 463 of file ni_nvme_logan.h.
| #define WRITE_INSTANCE_SET_DW11_PAGEOFFSET | ( | dst, | |
| pageoffset | |||
| ) | (dst = (((pageoffset << 16) | dst))) |
Definition at line 464 of file ni_nvme_logan.h.
| #define WRITE_INSTANCE_SET_DW12_FRAMEINSTID | ( | dst, | |
| fid | |||
| ) | (dst = (0xFFFFUL & dst) | ((fid<<16) & 0xFFFF0000UL)) |
Definition at line 466 of file ni_nvme_logan.h.
| #define WRITE_INSTANCE_SET_DW12_ISHWDESC | ( | dst, | |
| ishwdesc | |||
| ) | (dst = (ishwdesc & 0xFFFFUL)) |
Definition at line 465 of file ni_nvme_logan.h.
| #define WRITE_INSTANCE_SET_DW14_YUV_BYTEOFFSET | ( | dst, | |
| byteoffset | |||
| ) | (dst = (byteoffset & 0xFFFFFFFFUL)) |
Definition at line 467 of file ni_nvme_logan.h.
| #define WRITE_INSTANCE_SET_DW15_SIZE | ( | dst, | |
| size | |||
| ) | (dst = (size & 0xFFFFFFFFUL)) |
Definition at line 468 of file ni_nvme_logan.h.
| #define WRITE_INSTANCE_SET_DW2_SUBFRAME_IDX | ( | dst, | |
| size | |||
| ) | (dst = (size & 0xFFFFFFFFUL)) |
Definition at line 444 of file ni_nvme_logan.h.
| #define WRITE_INSTANCE_SET_DW3_SUBFRAME_SIZE | ( | dst, | |
| size | |||
| ) | (dst = (size & 0xFFFFFFFFUL)) |
Definition at line 445 of file ni_nvme_logan.h.
| #define WRITE_INSTANCE_W | ( | hw, | |
| sid, | |||
| instance | |||
| ) | HIGH_OFFSET_IN_4K(hw,sid,instance) + WR_OFFSET_IN_4K |
Definition at line 572 of file ni_nvme_logan.h.
| #define WRITE_METADATA_W | ( | hw, | |
| sid, | |||
| instance | |||
| ) | HIGH_OFFSET_IN_4K(hw,sid, instance) + WR_METADATA_OFFSET_IN_4K |
Definition at line 575 of file ni_nvme_logan.h.
| typedef enum _ni_logan_nvme_admin_opcode ni_logan_nvme_admin_opcode_t |
| typedef struct _ni_logan_nvme_id_power_state ni_logan_nvme_id_power_state_t |
| typedef struct _ni_logan_nvme_identity ni_logan_nvme_identity_t |
| typedef uint32_t ni_logan_nvme_result_t |
Definition at line 377 of file ni_nvme_logan.h.
| typedef enum _nvme_close_xcoder_subtype nvme_close_xcoder_subtype_t |
| typedef enum _nvme_config_xcoder_config_instance_subtype nvme_config_xcoder_config_instance_subtype_t |
| typedef enum _nvme_config_xcoder_subtype nvme_config_xcoder_subtype_t |
| typedef enum _nvme_open_xcoder_subtype nvme_open_xcoder_subtype_t |
| typedef enum _nvme_query_xcoder_subtype nvme_query_xcoder_subtype_t |
| typedef enum _nvme_read_xcoder_subtype nvme_read_xcoder_subtype_t |
| typedef enum _nvme_write_xcoder_subtype nvme_write_xcoder_subtype_t |
Definition at line 262 of file ni_nvme_logan.h.
| Enumerator | |
|---|---|
| nvme_close_xcoder_destroy_session | |
Definition at line 297 of file ni_nvme_logan.h.
Definition at line 356 of file ni_nvme_logan.h.
| Enumerator | |
|---|---|
| nvme_config_xcoder_config_session_keep_alive | |
| nvme_config_xcoder_config_session_keep_alive_timeout | |
| nvme_config_xcoder_config_session_read | |
| nvme_config_xcoder_config_session_write | |
Definition at line 348 of file ni_nvme_logan.h.
| Enumerator | |
|---|---|
| nvme_config_xcoder_config_session | |
| nvme_config_xcoder_config_instance | |
Definition at line 342 of file ni_nvme_logan.h.
| Enumerator | |
|---|---|
| nvme_open_xcoder_create_session | |
Definition at line 292 of file ni_nvme_logan.h.
| Enumerator | |
|---|---|
| nvme_query_xcoder_general_get_status | |
Definition at line 337 of file ni_nvme_logan.h.
Definition at line 324 of file ni_nvme_logan.h.
| Enumerator | |
|---|---|
| nvme_query_xcoder_session | |
Definition at line 319 of file ni_nvme_logan.h.
| Enumerator | |
|---|---|
| nvme_query_xcoder_query_session | |
| nvme_query_xcoder_query_instance | |
| nvme_query_xcoder_query_general | |
Definition at line 312 of file ni_nvme_logan.h.
| Enumerator | |
|---|---|
| nvme_read_xcoder_read_instance | |
Definition at line 302 of file ni_nvme_logan.h.
| Enumerator | |
|---|---|
| nvme_write_xcoder_write_instance | |
Definition at line 307 of file ni_nvme_logan.h.
| ni_logan_retcode_t ni_logan_nvme_check_error_code | ( | int | rc, |
| ni_logan_nvme_admin_opcode_t | opcode, | ||
| uint32_t | xcoder_type, | ||
| uint32_t | hw_id, | ||
| int32_t * | p_instance_id | ||
| ) |
Check f/w error return code, and if it's a fatal one return NI_LOGAN_RETCODE_FAILURE. Application shall handle this gracefully.
Definition at line 55 of file ni_nvme_logan.c.
| int ni_logan_nvme_enumerate_devices | ( | char | ni_logan_devices[][NI_LOGAN_MAX_DEVICE_NAME_LEN], |
| int | max_handles | ||
| ) |
prints a report on detected nvme devices
| int32_t ni_logan_nvme_send_read_cmd | ( | ni_device_handle_t | handle, |
| ni_event_handle_t | event_handle, | ||
| void * | p_data, | ||
| uint32_t | data_len, | ||
| uint32_t | lba | ||
| ) |
| int32_t ni_logan_nvme_send_write_cmd | ( | ni_device_handle_t | handle, |
| ni_event_handle_t | event_handle, | ||
| void * | p_data, | ||
| uint32_t | data_len, | ||
| uint32_t | lba | ||
| ) |