|
libxcoder
3.5.4
|
Private definitions related to resource management of NI T-408 devices. More...
#include "ni_device_api_logan.h"Go to the source code of this file.
Macros | |
| #define | LOCK_DIR "/dev/shm" |
| #define | CODERS_LCK_NAME "/dev/shm/NI_LOGAN_LCK_CODERS" |
| #define | CODERS_RETRY_DELCK_NAME "/dev/shm/NI_LOGAN_RETRY_LCK_DECODERS" |
| #define | CODERS_RETRY_ENLCK_NAME "/dev/shm/NI_LOGAN_RETRY_LCK_ENCODERS" |
| #define | CODERS_SHM_NAME "NI_LOGAN_SHM_CODERS" |
| #define | MAX_LOCK_RETRY 6000 |
| #define | LOCK_WAIT 10000 |
Functions | |
| void | ni_logan_rsrc_get_lock_name (ni_logan_device_type_t device_type, int32_t guid, char *p_name, size_t max_name_len) |
| Returns the device lock name. More... | |
| void | ni_logan_rsrc_get_shm_name (ni_logan_device_type_t device_type, int32_t guid, char *p_name, size_t max_name_len) |
| Returns the name of shared memory of the codec record. More... | |
| void | ni_logan_rsrc_update_record (ni_logan_device_context_t *p_device_context, ni_logan_session_context_t *p_session_ctx) |
| Updates the codec record. More... | |
| void | ni_logan_rsrc_get_one_device_info (ni_logan_device_info_t *p_device_info) |
| Retrieve codec record info. More... | |
| ni_logan_retcode_t | ni_logan_rsrc_fill_device_info (ni_logan_device_info_t *p_device_info, ni_codec_t fmt, ni_logan_device_type_t type, ni_logan_hw_capability_t *p_hw_cap) |
| Update codec record info with retrieved device info from HW. More... | |
| int | ni_logan_rsrc_enumerate_devices (char ni_logan_devices[][NI_LOGAN_MAX_DEVICE_NAME_LEN], int max_handles) |
| List NETINT nvme devices. More... | |
| int | ni_logan_rsrc_strcmp (const void *p_str, const void *p_str1) |
| String comparison function. More... | |
| int | ni_logan_is_fw_compatible (uint8_t fw_rev[8]) |
| Check if a FW_rev retrieved from card is supported by libxcoder. Support is checked for API flavor, API version, and SW/FW release version. More... | |
| void | ni_logan_get_dev_pcie_addr (char *device_name, char *pcie, char *domain, char *slot, char *dev, char *func) |
| get PCIe address information from device name More... | |
Variables | |
| LIB_API uint32_t | g_logan_xcoder_stop_process |
Private definitions related to resource management of NI T-408 devices.
Definition in file ni_rsrc_priv_logan.h.
| #define CODERS_LCK_NAME "/dev/shm/NI_LOGAN_LCK_CODERS" |
Definition at line 50 of file ni_rsrc_priv_logan.h.
| #define CODERS_RETRY_DELCK_NAME "/dev/shm/NI_LOGAN_RETRY_LCK_DECODERS" |
Definition at line 51 of file ni_rsrc_priv_logan.h.
| #define CODERS_RETRY_ENLCK_NAME "/dev/shm/NI_LOGAN_RETRY_LCK_ENCODERS" |
Definition at line 52 of file ni_rsrc_priv_logan.h.
| #define CODERS_SHM_NAME "NI_LOGAN_SHM_CODERS" |
Definition at line 55 of file ni_rsrc_priv_logan.h.
| #define LOCK_DIR "/dev/shm" |
Definition at line 49 of file ni_rsrc_priv_logan.h.
| #define LOCK_WAIT 10000 |
Definition at line 59 of file ni_rsrc_priv_logan.h.
| #define MAX_LOCK_RETRY 6000 |
Definition at line 58 of file ni_rsrc_priv_logan.h.
| void ni_logan_get_dev_pcie_addr | ( | char * | device_name, |
| char * | pcie, | ||
| char * | domain, | ||
| char * | slot, | ||
| char * | dev, | ||
| char * | func | ||
| ) |
get PCIe address information from device name
| [in] | char | *device_name e.g. /dev/nvme0n1. |
| [out] | char | *pcie e.g. 0000:0a:00.0. Should be at least 13 bytes including null terminator |
| [out] | char | *domain, optional. Should be at least 5 bytes including null terminator |
| [out] | char | *slot, optional. Should be at least 3 bytes including null terminator |
| [out] | char | *dev, optional. Should be at least 3 bytes including null terminator |
| [out] | char | *func, optional. Should be at least 2 bytes including null terminator |
| int ni_logan_is_fw_compatible | ( | uint8_t | fw_rev[8] | ) |
Check if a FW_rev retrieved from card is supported by libxcoder. Support is checked for API flavor, API version, and SW/FW release version.
| [in] | fw_rev | FW revision queried from card firmware |
Definition at line 271 of file ni_rsrc_priv_logan.cpp.
| int ni_logan_rsrc_enumerate_devices | ( | char | ni_logan_devices[][NI_LOGAN_MAX_DEVICE_NAME_LEN], |
| int | max_handles | ||
| ) |
List NETINT nvme devices.
| ni_logan_retcode_t ni_logan_rsrc_fill_device_info | ( | ni_logan_device_info_t * | p_device_info, |
| ni_codec_t | fmt, | ||
| ni_logan_device_type_t | type, | ||
| ni_logan_hw_capability_t * | p_hw_cap | ||
| ) |
Update codec record info with retrieved device info from HW.
encoder
Definition at line 64 of file ni_rsrc_priv_logan.cpp.
| void ni_logan_rsrc_get_lock_name | ( | ni_logan_device_type_t | device_type, |
| int32_t | guid, | ||
| char * | p_name, | ||
| size_t | max_name_len | ||
| ) |
| void ni_logan_rsrc_get_one_device_info | ( | ni_logan_device_info_t * | p_device_info | ) |
Retrieve codec record info.
| void ni_logan_rsrc_get_shm_name | ( | ni_logan_device_type_t | device_type, |
| int32_t | guid, | ||
| char * | p_name, | ||
| size_t | max_name_len | ||
| ) |
Returns the name of shared memory of the codec record.
assume there is enough space allocated in name
Definition at line 248 of file ni_rsrc_priv_logan.cpp.
| int ni_logan_rsrc_strcmp | ( | const void * | p_str, |
| const void * | p_str1 | ||
| ) |
| void ni_logan_rsrc_update_record | ( | ni_logan_device_context_t * | p_device_context, |
| ni_logan_session_context_t * | p_session_ctx | ||
| ) |
Updates the codec record.
|
extern |
Definition at line 55 of file ni_rsrc_priv_logan.cpp.