STRUCT FIMC_DRVDATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct fimc_drvdata(9) β€” per device type driver data 🌸

okay so this is a page from the Kernel API Manual, and bestie, it's literally the little data bundle that says "here's what this particular type of device can do." one struct per device type, holding all the deets the driver needs. let's get into it πŸ’…


✨ NAME ✨

struct fimc_drvdata β€” per device type driver data. that's it, that's the vibe. it's the per-device-type info stash πŸŽ€


✨ SYNOPSIS ✨

struct fimc_drvdata {
    const struct fimc_variant *variant[FIMC_MAX_DEVS];
    int num_entities;
    unsigned long lclk_frequency;
    u8 cistatus2;
    u8 dma_pix_hoff;
    u8 alpha_color;
    u8 out_buf_count;
 };

look at her. iconic. one array of variant pointers sized FIMC_MAX_DEVS, then a whole squad of little u8s doing their thing. no cap, she's compact 🫢


✨ Members ✨

so here's the member-by-member tour, and yes i'm giving each one its moment:

  • variant β€” variant information for this device πŸ’– like, which flavor of hardware are we even dealing with
  • num_entities β€” the number of fimc instances available in a SoC. count 'em, bestie
  • lclk_frequency β€” local bus clock frequency ⏰ the clock speed of the local bus, periodt
  • cistatus2 β€” 1 if the FIMC IPs have a CISTATUS2 register, otherwise not. that's the whole deal
  • dma_pix_hoff β€” the horizontal DMA offset unit: 1 means pixels, 0 means bytes. choose your fighter 😭
  • alpha_color β€” 1 if the alpha color component is supported. transparency girlies rise 🌈
  • out_buf_count β€” the maximum number of output DMA buffers supported. that's your ceiling, no going over πŸ”₯
quick vibe check: several of these are literally just 1/0 flags (cistatus2, dma_pix_hoff, alpha_color) β€” tiny fields, big responsibilities πŸ’€

🌈 SEE ALSO 🌈

the kernel file that lives and breathes this:

Kernel file ./drivers/media/platform/samsung/exynos4-is/fimc-core.h

and the whole friend group of structs and functions you should also go read (iykyk):


aaaaand that's the page!! πŸ¦‹ mwah. this lil rewrite came from the source ./drivers/media/platform/samsu... and it's dated October 2026 β€” so go forth and read the kernel headers, bestie, you've got this πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from