STRUCT TEGRA_CSI_CHANNEL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct tegra_csi_channel β€” the Tegra CSI channel ✨

okay so this is struct tegra_csi_channel(9), straight out of the Kernel API Manual, and bestie it is literally the whole personality of one Tegra CSI channel. one channel. one struct. main character energy fr fr πŸ’…


🌸 NAME 🌸

struct tegra_csi_channel β€” Tegra CSI channel. that's it, that's the vibe check πŸŽ€


⭐ SYNOPSIS ⭐

struct tegra_csi_channel {
    struct list_head list;
    struct v4l2_subdev subdev;
    struct media_pad pads[TEGRA_CSI_PADS_NUM];
    unsigned int numpads;
    struct tegra_csi *csi;
    struct device_node *of_node;
    u8 numgangports;
    unsigned int numlanes;
    u8 csi_port_nums[GANG_PORTS_MAX];
    u8 pg_mode;
    struct v4l2_mbus_framefmt format;
    unsigned int framerate;
    unsigned int h_blank;
    unsigned int v_blank;
    struct tegra_mipi_device *mipi;
    unsigned int pixel_rate;
 };

no cap, copy it exactly, don't you dare "fix" the indentation on that last brace 😭


πŸ’– Members πŸ’–

  • list β€” the list head for this entry, keeping the whole squad linked up 🫢
  • subdev β€” the V4L2 subdevice that's associated with this channel. iconic.
  • pads β€” the media pads for the subdevice entity ✨
  • numpads β€” number of pads. yes with the period, we respect the period πŸŽ€
  • csi β€” the Tegra CSI device structure, aka the parent energy πŸ‘‘
  • of_node β€” the csi device tree node 🌈
  • numgangports β€” the number of immediate ports ganged up to meet the channel bus-width. gang gang πŸ’€
  • numlanes β€” number of lanes used per port πŸ¦‹
  • csi_port_nums β€” the CSI channel port numbers, all arrayed and ready πŸ“‹
  • pg_mode β€” test pattern generator mode for the channel. tpg bestie 🌸
  • format β€” the active format of the channel πŸ’…
  • framerate β€” active framerate for TPG πŸ”₯
  • h_blank β€” horizontal blanking for the TPG active format πŸ“
  • v_blank β€” vertical blanking for the TPG active format πŸ“
  • mipi β€” mipi device for the corresponding csi channel pads, or NULL if not applicable (TPG, error). so like... sometimes it's just not that girl πŸ™ˆ
  • pixel_rate β€” the active pixel rate from the sensor on this channel ⭐

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/staging/media/tegra-video/csi.h struct tpg_framerate(9), struct tegra_csi_ops(9), struct tegra_csi_soc(9), struct tegra_csi(9) β€” go read them, they're all in the same friend group fr fr πŸ«ΆπŸ’œ


ngl the source lives at ./drivers/staging/media/tegra-... and this page is dated October 2026, and the whole thing answers to struct tegra_csi_channel(9) πŸ’–

periodt. go read your kernel headers bestie, ily, slay πŸŒˆβœ¨πŸŽ€

πŸ“¦ where this page comes from