STRUCT MIPI_DBI_DEV(9)
π struct mipi_dbi_dev(9) π
okay bestie, welcome to the Kernel API Manual β¨ β today's main character is struct mipi_dbi_dev, aka the MIPI DBI device struct itself. yes it's a struct, yes it's iconic, let's get into it π
β¨ NAME β¨
struct mipi_dbi_dev β the MIPI DBI device π
β¨ SYNOPSIS β¨
struct mipi_dbi_dev {
struct drm_device drm;
struct drm_display_mode mode;
u32 pixel_format;
u16 *tx_buf;
unsigned int rotation;
unsigned int left_offset;
unsigned int top_offset;
struct backlight_device *backlight;
struct regulator *regulator;
struct regulator *io_regulator;
struct mipi_dbi dbi;
void *driver_private;
};
πΈ Members πΈ
like, every single field, no skips, we're doing all of them π«Ά
drmβ the DRM device πmodeβ the fixed display mode. it's giving "locked in" β¨pixel_formatβ the native pixel format (DRM_FORMAT_) π¨tx_bufβ the buffer used for transfer (it copies the clip rect area, fyi) π¦rotationβ the initial rotation, in degrees, Counter Clock Wise πleft_offsetβ the horizontal offset of the display relative to the controller's driver array βοΈtop_offsetβ the vertical offset of the display relative to the controller's driver array βοΈbacklightβ the backlight device (optional) π‘regulatorβ the power regulator (Vdd) (optional) β‘io_regulatorβ the I/O power regulator (Vddi) (optional) πdbiβ the MIPI DBI interface π¦driver_privateβ driver private data. and ngl, this one's necessary for drivers with private data, becausedevm_drm_dev_allocliterally can't allocate structures that embed a structure which then again embedsdrm_deviceπ like the nesting is real, iykyk
π SEE ALSO π
- the kernel file
./include/drm/drm_mipi_dbi.h struct mipi_dbi(9)mipi_dbi_command(9)
go read those next bestie, slay π§
and that's the whole page fr fr π β brought to you by ./include/drm, dated October 2026, from the Kernel API Manual, all about struct mipi_dbi_dev(9). ate and left no crumbs πβπ
π¦ 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