STRUCT CHAMELEON_FPGA_HEADER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ struct chameleon_fpga_header(9)

okay so bestie, welcome to the Kernel API Manual ✨ and today's main character is struct chameleon_fpga_header β€” like, the actual header struct at the top of a Chameleon table. it's giving "small struct, big responsibilities" and honestly? iconic. let's get into it 🫢


πŸŽ€ NAME πŸŽ€

struct chameleon_fpga_header β€” that's it, that's the name, no cap πŸ’…


✨ SYNOPSIS ✨

here's the whole thing laid out, bestie, every field exactly as it lives:

struct chameleon_fpga_header {
    u8 revision;
    char model;
    u8 minor;
    u8 bus_type;
    u16 magic;
    u16 reserved;
    char filename[CHAMELEON_FILENAME_LEN];
 };

like... look at her. seven fields. flawless. πŸ”₯


🌸 Members 🌸

okay so every single one of these fields, explained, no skips:

  • revision β€” the revision of the Chameleon table in the FPGA. yes, that's what it's for. it's the version tag of the table itself πŸ’–
  • model β€” the Chameleon table model, as an ASCII char. one single character of personality ✨
  • minor β€” the minor revision. so if revision is the big vibe, minor is the little vibe check that comes with it πŸŽ€
  • bus_type β€” the bus type, and usually it's CHAMELEON_BUS_WISHBONE πŸ¦‹
  • magic β€” the Chameleon header magic number, and it's 0xabce for version 2. magic number!! she has a literal magic number, we stan a mystical queen πŸ‘‘βœ¨
  • reserved β€” reserved. she's reserved. she's sitting there holding space for the future, we love a forward-thinking icon πŸ™ˆ
  • filename β€” the filename of the FPGA bitstream, stored in filename[CHAMELEON_FILENAME_LEN] (that's the declared length, keep it in mind bestie πŸ’€)

πŸ¦‹ SEE ALSO πŸ¦‹

go read these too, they're all in the same kernel file ./drivers/mcb/mcb-internal.h and honestly they're a whole friend group:

  • struct chameleon_gdd(9)
  • struct chameleon_bdd(9)

lowkey reminder: this all lives under ./drivers/mcb in the kernel tree, so if you're lost, that's your address 🧚

and that's the page!! πŸ’œ shipped from ./drivers/mcb, dated October 2026, same as the original footer said β€” so go read your structs and slay, bestie. periodt. πŸŒˆπŸ“

πŸ“¦ where this page comes from