Firmware (Source)
Reference of the firmware source, generated from the documentation comments
in src/: every file’s purpose, and every function’s behaviour, arguments
and return value.
The comments are written in the Google style (Args: / Returns:) and
extracted with Hawkmoth, which
parses the sources with libclang using the firmware’s own flags
(freestanding GNU C23 for mipsel). Hawkmoth only reads the code;
the firmware itself is built with GCC.
The assembly files, boot.S and vectors.S of each BVNC, cannot be parsed; their
comments are extracted by a small directive in conf.py and shown on
the page boot.S and vectors.S — Assembly.
For how the pieces fit together, see Firmware (Overview).
Sources
main.c— Entry point and interrupt dispatchkccb.c— Kernel CCB and firmware CCBsched.c— Client CCB schedulerkick.c— Data-master kicksgeom.c— Geometry (TA) kicksfrag.c— Fragment (3D) kickspm.c— Parameter managermmu.c— MMU, caches and GPU memory accesspower.c— Power managementhwr.c— Hardware recoverystats.c— Statistics and time correlationgpu_init.c— GPU bring-uputil.c— Utilities and tracebvnc/<bvnc>/seq.c— Per-GPU sequencesboot.Sandvectors.S— Assembly
Headers
include/fw.h— Internal declarationsinclude/fwif.h— Host interface structuresinclude/kick.h— Kick declarationsinclude/pm.h— Parameter-manager declarationsinclude/layout.h— Memory layoutinclude/regs.h— Register offsetsinclude/mips.h— MIPS CP0 accessinclude/sfid.h— Trace string identifiersbvnc_seq.h— Per-BVNC hardware sequencesbvnc/36.29.52.182/bvnc.h— Per-GPU constants (BXE-2-32, K1)bvnc/36.56.104.183/bvnc.h— Per-GPU constants (BXM-4-64, K3)