STRUCT XTPG_DEVICE(9)
β¨ NAME β¨
struct xtpg_device β bestie, this is the Xilinx Test Pattern Generator device structure π
and yes she's the main character of this page (manual section 9, Kernel API Manual, if you're keeping track π)
π¦ SYNOPSIS π¦
struct xtpg_device {
struct xvip_device xvip;
struct media_pad pads[2];
unsigned int npads;
bool has_input;
struct v4l2_mbus_framefmt formats[2];
struct v4l2_mbus_framefmt default_format;
const struct xvip_video_format *vip_format;
bool bayer;
struct v4l2_ctrl_handler ctrl_handler;
struct v4l2_ctrl *hblank;
struct v4l2_ctrl *vblank;
struct v4l2_ctrl *pattern;
bool streaming;
struct xvtc_device *vtc;
struct gpio_desc *vtmux_gpio;
};
Like, that's the whole struct laid out, no cap. Now let's meet the members one by one π«Ά
πΈ MEMBERS πΈ
xvipβ the Xilinx Video IP device, aka her ride-or-die β¨padsβ media pads, plural, she's got options πnpadsβ how many pads there actually are, and it's 1 or 2 (that's the whole range, bestie)has_inputβ a lil yes/no telling you whether an input is connected to the sink pad πformatsβ the active V4L2 media bus format for each pad (one per pad, obviously π)default_formatβ the default V4L2 media bus format, the fallback queen πvip_formatβ the format information that corresponds to the active format, iykyk πbayerβ boolean flag,truewhen TPG is set to any bayer format π§ctrl_handlerβ the control handler, holding it all together fr frhblankβ horizontal blanking control β¬ οΈβ‘οΈvblankβ vertical blanking control β¬οΈβ¬οΈpatternβ the test pattern control, the actual star of the show βstreamingβ is the video stream active? that's the vibe check πvtcβ the video timing controller, timing is everything πvtmux_gpioβ the video timing mux GPIO, lowkey the plug π
π SEE ALSO π
Kernel file ./drivers/media/platform/xilinx/xilinx-tpg.c β go read it, it's giving source code excellence π
ok that's the whole page, nothing skipped, nothing invented, we ate and left zero crumbs π β¨
big kiss, this page lives in ./drivers/media/platform/xilinx and it's dated October 2026 β see you there bestie π¦π
π¦ 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