SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
Classes | Enumerations | Functions | Variables
sys-sid.c File Reference
#include <barrier.h>
#include <io.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <types.h>
#include <log.h>
#include <common.h>
#include "sys-sid.h"
Include dependency graph for sys-sid.c:

Classes

struct  sid_section_t
 

Enumerations

enum  { SID_PRCTL = SUNXI_SID_BASE + 0x040 , SID_PRKEY = SUNXI_SID_BASE + 0x050 , SID_RDKEY = SUNXI_SID_BASE + 0x060 , EFUSE_HV_SWITCH = SUNXI_RTC_BASE + 0x204 }
 

Functions

uint32_t syter_efuse_read (uint32_t offset)
 Read a value from the eFuse memory.
 
void syter_efuse_write (uint32_t offset, uint32_t value)
 Write a value to the eFuse memory.
 
void syter_efuse_dump (void)
 Dump the contents of the eFuse memory.
 

Variables

const struct sid_section_t sids []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SID_PRCTL 
SID_PRKEY 
SID_RDKEY 
EFUSE_HV_SWITCH 

Function Documentation

◆ syter_efuse_dump()

void syter_efuse_dump ( void  )

Dump the contents of the eFuse memory.

This function outputs the current contents of the eFuse memory for diagnostic purposes. The format of the output is implementation-dependent.

◆ syter_efuse_read()

uint32_t syter_efuse_read ( uint32_t  offset)

Read a value from the eFuse memory.

This function reads a 32-bit value from the specified eFuse offset.

Parameters
offsetThe offset in the eFuse memory from which to read the value.
Returns
The 32-bit value read from the specified eFuse offset.

◆ syter_efuse_write()

void syter_efuse_write ( uint32_t  offset,
uint32_t  value 
)

Write a value to the eFuse memory.

This function writes a 32-bit value to the specified eFuse offset.

Parameters
offsetThe offset in the eFuse memory to which the value will be written.
valueThe 32-bit value to be written to the eFuse memory.

Variable Documentation

◆ sids

const struct sid_section_t sids[]
Initial value:
= {
{"chipid", 0x0000, 128},
{"brom-conf-try", 0x0010, 32},
{"thermal-sensor", 0x0014, 64},
{"ft-zone", 0x001c, 128},
{"tvout", 0x002c, 32},
{"tvout-gamma", 0x0030, 64},
{"oem-program", 0x0038, 64},
{"write-protect", 0x0040, 32},
{"read-protect", 0x0044, 32},
{"reserved1", 0x0048, 64},
{"huk", 0x0050, 192},
{"reserved2", 0x0068, 64},
{"rotpk", 0x0070, 256},
{"ssk", 0x0090, 256},
{"rssk", 0x00b0, 128},
{"hdcp-hash", 0x00c0, 128},
{"nv1", 0x00d0, 32},
{"nv2", 0x00d4, 32},
{"reserved3", 0x00d8, 96},
{"oem-program-secure", 0x00e4, 224},
}