vga_set_legacy_decoding(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

vga_set_legacy_decoding(9) β€” okay bestie, this is the Kernel API Manual page for vga_set_legacy_decoding. It's giving "tell the arbiter what's up with legacy decoding," and honestly? Iconic. πŸ’…

✨ SYNOPSIS ✨

       void vga_set_legacy_decoding (struct pci_dev *pdev , unsigned int
       decodes );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pdev β€” PCI device of the VGA card. That's the card we're talking about, no cap. πŸŽ€
  • decodes β€” bit mask of what legacy regions the card decodes. Like, which legacy regions are getting a yes from this card. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

Okay so the whole point is indicating to the arbiter if the card decodes legacy VGA IOs, legacy VGA Memory, both, or none. Literally the legacy-decoding vibe check. ✨

All cards default to both. So the card driver (fbdev for example) should tell the arbiter if it has disabled legacy decoding β€” that way the card can be left out of the arbitration process, and can be safe to take interrupts at any time. 🫢

🌈 SEE ALSO 🌈

Kernel file ./drivers/pci/vgaarb.c β€” plus these iconic references: vga_default_device(9), vga_remove_vgacon(9), vga_get(9), vga_tryget(9), vga_put(9), vga_client_register(9). 🧚


Mwah πŸ’‹ β€” the source/version line is ./drivers/pci, dated October 2026. Stay iconic, bestie. πŸ’œ

πŸ“¦ where this page comes from