ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_npu_loader.h
Go to the documentation of this file.
1
38
39#pragma once
40
41#include <stdint.h>
42
43#include "ra8_device.h"
44#include "ra8_err.h"
45
46#ifndef RA8_HAS_NPU
47#error "ra8_npu_loader.h included on a device without an NPU (RA8P1-only)."
48#endif
49
50#include "ra8_npu.h"
51
52#ifdef __cplusplus
53extern "C" {
54#endif
55
78typedef struct {
79 uint8_t* base;
80 uint32_t bytes;
82
124[[nodiscard]] ra8_err_t ra8_npu_load(const void* blob,
125 uint32_t blob_bytes,
126 const ra8_npu_arena_t* arena,
127 ra8_npu_job_t* out_job);
128
129#ifdef __cplusplus
130}
131#endif
Compile-time device selection for the RA8 multi-chip build (RA8D2 / RA8P1).
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
Arm Ethos-U55 NPU command/queue driver foundation (RA8P1-only).
ra8_err_t ra8_npu_load(const void *blob, uint32_t blob_bytes, const ra8_npu_arena_t *arena, ra8_npu_job_t *out_job)
Validate a .npub blob and map it into an ra8_npu_job_t.
Caller-provided runtime arena for a model's RUNTIME regions.
uint32_t bytes
Runtime arena capacity in bytes (0 if no runtime rgn).
uint8_t * base
Runtime arena base in NPU-visible SRAM (writable).
One Ethos-U55 inference job: a command stream plus its tensor arenas.
Definition ra8_npu.h:87