STRUCT FSL_DIU_DATA(9)
π 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β thefb_infoobjects, one per AOIdev_attrβ the sysfs structureirqβ the IRQ β‘monitor_portβ the monitor port this DIU is connected todiu_regβ a pointer to the DIU hardware registersreg_lockβ the spinlock for register access πdummy_aoiβ the video buffer for the 4x4 32-bit dummy AOIdummy_adβ the DIU Area Descriptor for the dummy AOIad[]β the Area Descriptors for each real AOIgammaβ the gamma color table πcursorβ the hardware cursor datablank_cursorβ the blank cursor, for hiding the cursor πnext_cursorβ scratch space to build load cursoredid_dataβ the EDID information bufferhas_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 π
- Kernel file
./drivers/video/fbdev/fsl-diu-fb.c fsl_diu_name_to_port(9)fsl_diu_get_pixel_format(9)
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
- 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