NVIDIA DRIVE OS Linux API Reference

5.1.0.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ote_storage_protocol.h File Reference

Go to the source code of this file.

Data Structures

struct  ote_file_create_params_t
 
struct  ote_file_delete_params_t
 
struct  ote_file_open_params_t
 
struct  ote_file_close_params_t
 
struct  ote_file_write_params_t
 
struct  ote_file_read_params_t
 
struct  ote_file_get_size_params_t
 
struct  ote_file_seek_params_t
 
struct  ote_file_trunc_params_t
 
struct  ote_file_test_exist_params_t
 
struct  ote_file_sync_params_t
 
struct  ote_file_flag_params_t
 
struct  ote_file_get_name_params_t
 
struct  ote_rpmb_write_params_t
 
struct  ote_rpmb_read_params_t
 
struct  ote_cpc_io_params_t
 
union  ote_file_req_params_t
 
struct  ote_ss_req_t
 

Macros

#define OTE_STORAGE_NS_CONFIG_FLAGS_RPMB_AVAILABLE   (1 << 0)
 
#define OTE_STORAGE_NS_CONFIG_FLAGS_CPC_AVAILABLE   (1 << 1)
 
#define OTE_STORAGE_NS_CONFIG_FLAGS_USE_1K_BLOCKS   (1 << 2)
 
#define OTE_MAX_DIR_NAME_LEN   (64)
 
#define OTE_MAX_FILE_NAME_LEN   (128)
 
#define OTE_MAX_DATA_SIZE   (8192)
 
#define DAEMON_FLAG_OP_GET_GLOBAL   0
 
#define DAEMON_FLAG_OP_SET_GLOBAL   1
 
#define DAEMON_FLAG_OP_SET_FILE   2
 
#define DAEMON_FLAG_OP_SYNC   3
 
#define DAEMON_GFLAG_NONE   0x0000
 
#define DAEMON_GFLAG_FSYNC   0x0001
 
#define DAEMON_GFLAG_FDATASYNC   0x0002
 
#define DAEMON_GFLAG_FILE_O_DIRECT   0x0010
 
#define DAEMON_GFLAG_FILE_O_SYNC   0x0020
 
#define DAEMON_GFLAG_FILE_O_DSYNC   0x0040
 
#define DAEMON_GFLAG_FILE_O_APPEND   0x0080
 
#define DAEMON_GFLAG_FILE_O_ASYNC   0x0100
 
#define DAEMON_GFLAG_FILE_O_NOATIME   0x0200
 
#define DAEMON_GFLAG_FILE_O_NONBLOCK   0x0400
 
#define FS_TYPE_0   0
 
#define FS_TYPE_1   1
 
#define FS_TYPE_OLD   2
 
#define OTE_RPMB_FRAME_SIZE   512
 
#define OTE_CPC_FRAME_SIZE   128
 
#define OTE_STORAGE_PROTOCOL_MAGIC   (0xfeedbeefcafebabe)
 

Enumerations

enum  {
  OTE_STORAGE_NS_CONFIG = 0x1,
  OTE_STORAGE_GET_STATUS = 0x90,
  OTE_STORAGE_FILE_CREATE = 0x100,
  OTE_STORAGE_FILE_DELETE = 0x101,
  OTE_STORAGE_FILE_OPEN = 0x102,
  OTE_STORAGE_FILE_CLOSE = 0x103,
  OTE_STORAGE_FILE_READ = 0x104,
  OTE_STORAGE_FILE_WRITE = 0x105,
  OTE_STORAGE_FILE_GET_SIZE = 0x106,
  OTE_STORAGE_FILE_SEEK = 0x107,
  OTE_STORAGE_FILE_TRUNC = 0x108,
  OTE_STORAGE_FILE_TEST_EXIST = 0x109,
  OTE_STORAGE_FILE_GET_NAME = 0x10a,
  OTE_STORAGE_FILE_SYNC = 0x10b,
  OTE_STORAGE_FILE_FLAGS = 0x10c,
  OTE_STORAGE_RPMB_READ = 0x1001,
  OTE_STORAGE_RPMB_WRITE = 0x1002,
  OTE_STORAGE_CPC_IO = 0x1011
}
 

Macro Definition Documentation

#define DAEMON_FLAG_OP_GET_GLOBAL   0

Definition at line 60 of file ote_storage_protocol.h.

#define DAEMON_FLAG_OP_SET_FILE   2

Definition at line 62 of file ote_storage_protocol.h.

#define DAEMON_FLAG_OP_SET_GLOBAL   1

Definition at line 61 of file ote_storage_protocol.h.

#define DAEMON_FLAG_OP_SYNC   3

Definition at line 63 of file ote_storage_protocol.h.

#define DAEMON_GFLAG_FDATASYNC   0x0002

Definition at line 68 of file ote_storage_protocol.h.

#define DAEMON_GFLAG_FILE_O_APPEND   0x0080

Definition at line 73 of file ote_storage_protocol.h.

#define DAEMON_GFLAG_FILE_O_ASYNC   0x0100

Definition at line 74 of file ote_storage_protocol.h.

#define DAEMON_GFLAG_FILE_O_DIRECT   0x0010

Definition at line 70 of file ote_storage_protocol.h.

#define DAEMON_GFLAG_FILE_O_DSYNC   0x0040

Definition at line 72 of file ote_storage_protocol.h.

#define DAEMON_GFLAG_FILE_O_NOATIME   0x0200

Definition at line 75 of file ote_storage_protocol.h.

#define DAEMON_GFLAG_FILE_O_NONBLOCK   0x0400

Definition at line 76 of file ote_storage_protocol.h.

#define DAEMON_GFLAG_FILE_O_SYNC   0x0020

Definition at line 71 of file ote_storage_protocol.h.

#define DAEMON_GFLAG_FSYNC   0x0001

Definition at line 67 of file ote_storage_protocol.h.

#define DAEMON_GFLAG_NONE   0x0000

Definition at line 66 of file ote_storage_protocol.h.

#define FS_TYPE_0   0

Definition at line 152 of file ote_storage_protocol.h.

#define FS_TYPE_1   1

Definition at line 153 of file ote_storage_protocol.h.

#define FS_TYPE_OLD   2

Definition at line 154 of file ote_storage_protocol.h.

#define OTE_CPC_FRAME_SIZE   128

Definition at line 178 of file ote_storage_protocol.h.

#define OTE_MAX_DATA_SIZE   (8192)

Definition at line 58 of file ote_storage_protocol.h.

#define OTE_MAX_DIR_NAME_LEN   (64)

Definition at line 56 of file ote_storage_protocol.h.

#define OTE_MAX_FILE_NAME_LEN   (128)

Definition at line 57 of file ote_storage_protocol.h.

#define OTE_RPMB_FRAME_SIZE   512

Definition at line 164 of file ote_storage_protocol.h.

#define OTE_STORAGE_NS_CONFIG_FLAGS_CPC_AVAILABLE   (1 << 1)

Definition at line 53 of file ote_storage_protocol.h.

#define OTE_STORAGE_NS_CONFIG_FLAGS_RPMB_AVAILABLE   (1 << 0)

Definition at line 52 of file ote_storage_protocol.h.

#define OTE_STORAGE_NS_CONFIG_FLAGS_USE_1K_BLOCKS   (1 << 2)

Definition at line 54 of file ote_storage_protocol.h.

#define OTE_STORAGE_PROTOCOL_MAGIC   (0xfeedbeefcafebabe)

Definition at line 203 of file ote_storage_protocol.h.

Enumeration Type Documentation

anonymous enum
Enumerator
OTE_STORAGE_NS_CONFIG 
OTE_STORAGE_GET_STATUS 
OTE_STORAGE_FILE_CREATE 
OTE_STORAGE_FILE_DELETE 
OTE_STORAGE_FILE_OPEN 
OTE_STORAGE_FILE_CLOSE 
OTE_STORAGE_FILE_READ 
OTE_STORAGE_FILE_WRITE 
OTE_STORAGE_FILE_GET_SIZE 
OTE_STORAGE_FILE_SEEK 
OTE_STORAGE_FILE_TRUNC 
OTE_STORAGE_FILE_TEST_EXIST 
OTE_STORAGE_FILE_GET_NAME 
OTE_STORAGE_FILE_SYNC 
OTE_STORAGE_FILE_FLAGS 
OTE_STORAGE_RPMB_READ 
OTE_STORAGE_RPMB_WRITE 
OTE_STORAGE_CPC_IO 

Definition at line 30 of file ote_storage_protocol.h.