STRUCT CHAMELEON_BDD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

struct chameleon_bdd β€” the Chameleon Bridge Device Descriptor, bestie. It's a struct, it describes a bridge device, and yes the name is a whole mouthful. We stan anyway πŸ’…

This is a page from the Kernel API Manual, so like… kernel core, group chat, but make it C.


πŸŽ€ SYNOPSIS πŸŽ€

struct chameleon_bdd {
    unsigned int irq:6;
    unsigned int rev:6;
    unsigned int var:6;
    unsigned int dev:10;
    unsigned int dtype:4;
    unsigned int bar:3;
    unsigned int inst:6;
    unsigned int dbar:3;
    unsigned int group:6;
    unsigned int reserved:14;
    u32 chamoff;
    u32 offset;
    u32 size;
 };

Copy it exactly like that, bit-fields and all β€” the widths are literally the whole personality of this struct, do not touch them πŸ”₯


πŸ¦‹ Members πŸ¦‹

Okay so the members, one by one, in order, no skips (iykyk):

  • irq β€” where this thing sits in the FPGA's IRQ controller vector πŸ“
  • rev β€” the revision of this variant's implementation, like the vibe-check of which version got built
  • var β€” the variant of the IP core 🧚
  • dev β€” the device that the IP core is (identity! main character energy)
  • dtype β€” the device descriptor type πŸŽ€
  • bar β€” the BAR offset that you gotta add to the module offset
  • inst β€” the instance number of the device, and 0 is the first instance ⭐
  • dbar β€” destination bar from the bus _behind_ the bridge (yes, behind, like a secret passage πŸ™ˆ)
  • chamoff β€” offset within the BAR of the source bus
  • offset β€” (no description on this one, it's giving mysterious πŸ’€)
  • size β€” (also no description, matching mysterious energy 😭)
Ngl, offset and size are listed with nothing next to them in the original. I'm not gonna invent lore for them, that's not the move. 🫢

🌈 SEE ALSO 🌈

Kernel file ./drivers/mcb/mcb-internal.h struct

chameleon_fpga_header(9), struct chameleon_gdd(9)

Go read those too, bestie, they're the rest of the lore πŸ‘‘


πŸ’– That's the whole page! This one's comin' at you from ./drivers/mcb in the Kernel API Manual, dated October 2026 β€” go forth and describe your bridge devices, you absolute icon πŸ¦‹βœ¨

πŸ“¦ where this page comes from