STRUCT FSL_DIU_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct fsl_diu_data(9) πŸ’–

okay so this is a page from the Kernel API Manual and it's literally all about struct fsl_diu_data bestie, get comfy 🫢


✨ NAME ✨

struct fsl_diu_data β€” the per-DIU data structure. that's it, that's the whole vibe πŸ’…


🌸 SYNOPSIS 🌸

struct fsl_diu_data {
    dma_addr_t dma_addr;
    struct fb_info fsl_diu_info[NUM_AOIS];
    struct mfb_info mfb[NUM_AOIS];
    struct device_attribute dev_attr;
    unsigned int irq;
    enum fsl_diu_monitor_port monitor_port;
    struct diu __iomem *diu_reg;
    spinlock_t reg_lock;
    u8 dummy_aoi[4 * 4 * 4];
    struct diu_ad dummy_ad;
    struct diu_ad ad[NUM_AOIS];
    u8 gamma[256 * 3];
    __le16 cursor[MAX_CURS * MAX_CURS];
    __le16 blank_cursor[MAX_CURS * MAX_CURS];
    __le16 next_cursor[MAX_CURS * MAX_CURS];
    uint8_t edid_data[EDID_LENGTH];
    bool has_edid;
};

like, look at her. every field exactly where it belongs, no notes πŸ‘‘


πŸ¦‹ MEMBERS πŸ¦‹

  • dma_addr β€” the DMA address of this structure πŸŽ€
  • fsl_diu_info β€” the fb_info objects, one per AOI
  • dev_attr β€” the sysfs structure
  • irq β€” the IRQ ⚑
  • monitor_port β€” the monitor port this DIU is connected to
  • diu_reg β€” a pointer to the DIU hardware registers
  • reg_lock β€” the spinlock for register access πŸ”’
  • dummy_aoi β€” the video buffer for the 4x4 32-bit dummy AOI
  • dummy_ad β€” the DIU Area Descriptor for the dummy AOI
  • ad[] β€” the Area Descriptors for each real AOI
  • gamma β€” the gamma color table 🌈
  • cursor β€” the hardware cursor data
  • blank_cursor β€” the blank cursor, for hiding the cursor πŸ™ˆ
  • next_cursor β€” scratch space to build load cursor
  • edid_data β€” the EDID information buffer
  • has_edid β€” whether or not the EDID buffer is valid βœ…

πŸ’œ DESCRIPTION πŸ’œ

okay so the one thing you cannot miss: this data structure must be allocated with 32-byte alignment, so that the internal fields can be aligned properly. like fr fr, do not play with her alignment, it's giving structural integrity πŸ’€


🌟 SEE ALSO 🌟


and that's the whole page bestie, 10/10 no notes πŸŽ€ this lil cutie lives in ./drivers/video/fbdev, dated October 2026, and she signs off as struct fsl_diu_data(9) β€” slay, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from