PebbleOS v4.47.0
Loading...
Searching...
No Matches
SiFli SF32LB AES and hash accelerator

AES and hash units of the SF32LB52 crypto engine, behind the pbl_crypto_hw_*() functions. More...

Data Structures

struct  pbl_crypto_sf32lb
 Crypto engine. More...
 

Macros

#define PBL_CRYPTO_SF32LB_DEFINE(sym, _name, _base, _clk)
 Define the crypto engine.
 

Detailed Description

AES and hash units of the SF32LB52 crypto engine, behind the pbl_crypto_hw_*() functions.


Data Structure Documentation

◆ pbl_crypto_sf32lb

struct pbl_crypto_sf32lb

Crypto engine.

Data Fields
uintptr_t base Registers.
struct pbl_clk clk Clock.
struct pbl_device dev Device.

Macro Definition Documentation

◆ PBL_CRYPTO_SF32LB_DEFINE

#define PBL_CRYPTO_SF32LB_DEFINE (   sym,
  _name,
  _base,
  _clk 
)
Value:
extern const struct pbl_crypto_sf32lb sym##_inst; \
PBL_DEVICE_REGISTER(sym##_inst, &sym##_inst.dev); \
PBL_DEVICE_ALIAS(sym, sym##_inst, struct pbl_crypto_sf32lb, struct pbl_device, dev); \
const struct pbl_crypto_sf32lb sym##_inst = { \
.dev = PBL_DEVICE_INIT(sym, _name, nullptr, nullptr, nullptr), \
.base = (_base), \
.clk = _clk, \
}
struct pbl_clk clk
Clock.
Definition sf32lb.h:25
struct pbl_device dev
Device.
Definition sf32lb.h:21
Crypto engine.
Definition sf32lb.h:19
#define PBL_DEVICE_STATE_DEFINE(sym)
Define the runtime state of device instance sym.
Definition device.h:131
#define PBL_DEVICE_INIT(sym, _name, _init, _parent, _deps)
Initializer for the struct pbl_device of device instance sym.
Definition device.h:164
A hardware device.
Definition device.h:89

Define the crypto engine.

Parameters
symSymbol of the device.
_nameName.
_baseRegisters.
_clkClock, from PBL_CLK().