STRUCT PANTHOR_FW_BINARY_HDR(9)
π struct panthor_fw_binary_hdr(9) β Kernel API Manual, bestie edition π
okay so this page is from the Kernel API Manual, and it's literally all about struct panthor_fw_binary_hdr β the firmware binary header. iconic little struct, honestly. let's get into it π«Ά
β¨ NAME β¨
struct panthor_fw_binary_hdr β the Firmware binary header. that's it, that's the vibe. π
πΈ SYNOPSIS πΈ
the whole struct, laid out exactly, no cap:
struct panthor_fw_binary_hdr {
u32 magic;
#define CSF_FW_BINARY_HEADER_MAGIC 0xc3f13a6e;
u8 minor;
u8 major;
#define CSF_FW_BINARY_HEADER_MAJOR_MAX 0;
u16 padding1;
u32 version_hash;
u32 padding2;
u32 size;
};
likeβ¦ it's giving "small struct, big responsibilities" and i'm obsessed π
π§ Members π§
magicβ the magic value you check to make sure the binary is actually valid. it's the vibe check of the whole struct, fr fr. βminorβ the Minor FW version. the lil one. πmajorβ the Major FW version. the main character energy one. πpadding1β MBZ. (that's "must be zero", bestie β keep it clean π)version_hashβ the FW version hash. π₯padding2β MBZ again. same rules. πsizeβ the FW binary size. how big is the whole thing? this tells you. π
lowkey important:padding1andpadding2are both marked MBZ, so don't be putting random stuff in there, okay? π
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/panthor/panthor_fw.c - enum
panthor_fw_binary_entry_type(9) - struct
panthor_fw_binary_section_entry_hdr(9) - struct
panthor_fw_binary_iter(9) - struct
panthor_fw_section(9) - struct
panthor_fw_iface(9) - struct
panthor_fw(9) panthor_fw_get_glb_iface(9)panthor_fw_get_csg_iface(9)panthor_fw_get_cs_iface(9)panthor_fw_conv_timeout(9)panthor_fw_alloc_queue_iface_mem(9)panthor_fw_alloc_suspend_buf_mem(9)iface_fw_to_cpu_addr(9)panthor_fw_pre_reset(9)panthor_fw_post_reset(9)panthor_fw_unplug(9)panthor_fw_wait_acks(9)panthor_fw_glb_wait_acks(9)panthor_fw_csg_wait_acks(9)panthor_fw_ring_csg_doorbells(9)panthor_fw_init(9)
like yes that's a whole lot of cross-refs but every single one of them is here, slay β¨ go read them, iykyk.
okay and finally, the lil sign-off: this whole page lives under ./drivers/gpu/drm/panthor, and it's dated October 2026 π that's the source and the version/date, folded right in here at the end so you never have to scroll back down for it. periodt. ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms