bios_parser...pio_pin_info(9)
β¨ bios_parser_get_gpio_pin_info β¨
okay so bestie, this is a Kernel API Manual situation and the function is bios_parser_get_gpio_pin_info β say that five times fast, i literally dare you π
it lives in the bios_parser...pio_pin_info(9) section and it's giving "niche but crucial," no cap.
πΈ SYNOPSIS πΈ
enum bp_result bios_parser_get_gpio_pin_info (struct dc_bios *dcb ,
uint32_t gpio_id , struct gpio_pin_info *info );
like, that's the whole vibe right there β three parameters, one return, let's get into it π
π ARGUMENTS π
dcbβ pointer to the DC BIOS. it's literally the BIOS baddie you're handing over, main character energy fr.gpio_idβ the GPIO ID. yes bestie, this is the id you're asking about π¦.infoβ theGpioPininformation structure. this is where the tea gets stored when all is said and done π .
π¦ DESCRIPTION π¦
Get GpioPin information of input gpio id. that's it, that's the whole plot β you give it an id, it goes and fetches the pin info for you. lowkey iconic, highkey useful π«Ά
β RETURN β
Bios parser result code. so yeah, you get a result code back β read it, don't ignore it, that's the vibe check of this whole function ngl π
π₯ NOTE π₯
okay so this is the part where you gotta pay attention, bestie, because getting the GPIO PIN INFO is a whole two-step situation:
- get the
GPIO_IDfrom other object table, seeGetHPDInfo. - in
DATA_TABLE.GPIO_Pin_LUT, search all records, to get theregisterAoffset/mask.
like literally do both steps or you're gonna be lost in the sauce π step one gives you the id, step two digs through the lookup table for that registerA offset/mask. no shortcuts, periodt.
π§ SEE ALSO π§
- Kernel file
./drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c bios_parser_get_spread_spectrum_info(9)bios_parser_set_scratch_critical_state(9)
go read those too, they're all in the same friend group π
and that's the page, bestie π shoutout to the kernel file ./drivers/gpu/drm/amd/display/... β the source of all this wisdom β dated October 2026, and filed under bios_parser...pio_pin_info(9) in the Kernel API Manual. slay, go forth, and parse those bios pins πβ¨
π¦ 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