bios_parser...pio_pin_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the GpioPin information 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:

  1. get the GPIO_ID from other object table, see GetHPDInfo.
  2. in DATA_TABLE.GPIO_Pin_LUT, search all records, to get the registerA offset/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 🧚

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