36 #define ELOAD_RESERVED_NVM_OFFSET 0 // offset of NVM reserved for Euroloader 37 #define ELOAD_RESERVED_NVM_SIZE_WIDTH 2 // width in bytes of variable denoting no. 40 #define ELOAD_NVM_DATA_OFFSET ELOAD_RESERVED_NVM_SIZE_WIDTH // E'loader data starts immed. after size variable 47 SECURE_NVM_DEFAULT_ENCRYPTION_KEY,
48 SECURE_NVM_DEFAULT_ENC_INIT_VECTOR,
49 SECURE_NVM_CI_PLUS_ROOT_CERT,
50 SECURE_NVM_CI_PLUS_BRAND_CERT,
51 SECURE_NVM_CI_PLUS_DEVICE_CERT,
52 SECURE_NVM_CI_PLUS_DEVICE_KEY,
53 SECURE_NVM_CI_PLUS_DH_P,
54 SECURE_NVM_CI_PLUS_DH_G,
55 SECURE_NVM_CI_PLUS_DH_Q,
56 SECURE_NVM_CI_PLUS_PRNG_KEY_K,
57 SECURE_NVM_CI_PLUS_PRNG_SEED,
58 SECURE_NVM_CI_PLUS_SIV,
59 SECURE_NVM_CI_PLUS_SLK,
60 SECURE_NVM_CI_PLUS_CLK,
61 SECURE_NVM_CI_PLUS_CONTEXTS,
62 SECURE_NVM_MHEG5_PRIVATE_KEY,
63 SECURE_NVM_MHEG5_PRIVATE_KEY_VERSION,
64 SECURE_NVM_SOFTWARE_UPGRADE_PUBLIC_KEY,
65 SECURE_NVM_SOFTWARE_UPGRADE_SHARED_KEY
92 BOOLEAN
STB_MEMReadNVM(U32BIT addr, U32BIT bytes, U8BIT *dst_addr);
212 BOOLEAN STB_MEMConfigMloaderForUpgrade(
void *loader_data, U32BIT data_size);
213 BOOLEAN STB_MEMReadMloaderData(
void *buffer, U32BIT size);
214 BOOLEAN STB_MEMWriteMloaderData(
void *buffer, U32BIT size);
291 E_STB_DIR_ENTRY_TYPE *entry_type);
299 #endif // _STBHWMEM_H BOOLEAN STB_NVMDeleteFile(U8BIT *filename)
Deletes the file.
void * STB_MEMReadSecureVariable(U8BIT key, U32BIT *len)
Read variable defined by the given key from secure NVM. The data must be released using STB_MEMReleas...
BOOLEAN STB_MEMWriteNVM(U32BIT addr, U32BIT bytes, U8BIT *src_addr)
Writes data to the NVM.
void * STB_MEMResizeAppRAM(void *ptr, U32BIT new_num_bytes)
Changes the size of the given block of memory ensuring data contained within the original memory bloc...
void STB_MEMReleaseSecureVariable(void *value)
Releas the data returned by STB_MEMReadSecureVariable. This function is used for CI+.
void STB_NVMCloseFile(void *file)
Flushes and closes an open file.
BOOLEAN STB_MEMWriteSecureVariable(U8BIT key, void *value, U32BIT len)
Writes data defined by the given key to secure NVM. This function is used for CI+.
void * STB_NVMOpenFile(U8BIT *name, E_STB_DSK_FILE_MODE mode)
Opens an existing file or creates a new one.
void STB_MEMInitialiseNVM(void)
Initialises Non-Volatile memory access. For a new NVM device, this function formats it ready for use...
U8BIT STB_MEMAppRAMUsed(void)
Returns the amount of available application memory consumed.
void * STB_NVMOpenDirectory(U8BIT *dir_name)
Opens a directory in order to read the entries.
void STB_MEMInitialiseRAM(void)
Initialises the heap.
U8BIT STB_MEMSysRAMUsed(void)
Returns the amount of available system memory consumed.
void * STB_MEMGetSysRAM(U32BIT bytes)
Allocates a new block of memory for system use.
U32BIT STB_MEMGetNVMOffset(void)
Returns any offset required in NVM to avoid private data.
U8BIT STB_MEMGetNVMAlign(void)
Returns the word alignment size of the NVM device.
void * STB_MEMGetAppRAM(U32BIT bytes)
Allocates a new block of memory for application use.
void STB_MEMFreeSysRAM(void *block)
Releases a previously allocated block of system memory.
U32BIT STB_NVMWriteFile(void *file, U8BIT *data, U32BIT size)
Writes data to an open file.
U32BIT STB_MEMGetNVMSize(void)
Returns the size (capacity) of the NVM.
const void * STB_MEMReadSecureConstant(U8BIT key, U32BIT *len)
Read constant defined by the given key from secure NVM. The data must not be released (it is managed ...
System Wide Global Technical Data Type Definitions.
BOOLEAN STB_NVMReadDirectory(void *dir, U8BIT *filename, U16BIT filename_len, E_STB_DIR_ENTRY_TYPE *entry_type)
Reads the next entry from the directory, returning the name of the entry and the type of the entry...
U32BIT STB_NVMReadFile(void *file, U8BIT *data, U32BIT size)
Reads data from an open file.
void * STB_MEMResizeSysRAM(void *ptr, U32BIT new_num_bytes)
Changes the size of the given block of memory ensuring data contained within the original memory bloc...
BOOLEAN STB_NVMMoveFile(U8BIT *oldname, U8BIT *newname)
Move file or directory (and it's children).
BOOLEAN STB_NVMFileSize(U8BIT *filename, U32BIT *filesize)
Returns the size in KB of the given file.
Function prototypes for disk functions.
BOOLEAN STB_MEMReadNVM(U32BIT addr, U32BIT bytes, U8BIT *dst_addr)
Read data from the NVM.
void STB_MEMFreeAppRAM(void *block)
Releases a previously allocated block of system memory.
void STB_NVMCloseDirectory(void *dir)
Closes the directory for reading.