hwicap_get_...ion_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hwicap_get_configuration_register(9)

okay so bestie, welcome to the Kernel API Manual ✨ this one's about hwicap_get_configuration_register and honestly? it's giving "small function, big job." let's get into it 🫢


🌸 NAME 🌸

hwicap_get_configuration_register β€” literally just queries a configuration register. that's the whole vibe check πŸ’…


✨ SYNOPSIS ✨

int hwicap_get_configuration_register (struct hwicap_drvdata *drvdata ,
u32 reg , u32 *reg_data );

three args, one int coming back at you. slay.


πŸŽ€ ARGUMENTS πŸŽ€

  • drvdata β€” a pointer to the drvdata. iconic. it's the driver data, she's the main character here πŸ‘‘
  • reg β€” a constant that represents the configuration register value to be returned. so like, you tell it which register you want, and it goes and gets it πŸ”₯
  • reg_data β€” returns the value of the register. this is the output param, she's carrying the answer back to you πŸ¦‹

πŸ“ EXAMPLES πŸ“

XHI_IDCODE, XHI_FLR.

(those are the ones the page shouts out, no cap πŸ’–)


πŸ’« RETURN πŸ’«

soooo the original hits the RETURN heading and then just... moves straight on into the description. no return value deets listed here, bestie β€” that's just how the page is written πŸ™ˆ


🌈 DESCRIPTION 🌈

So what does it actually do? It sends a query packet to the ICAP, and then it receives the response. that's the whole loop, simple as πŸŽ€

and the important bit: the icap is left in Synched state. keep that in mind, iykyk ⭐


πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/char/xilinx_hwicap/xilinx_hwicap.c β€” go read the source, it's literally right there πŸ“–
  • hwicap_command_desync(9) β€” the desync sibling, the other half of the story 🧚

okay that's the whole page!! go query those registers, you're gonna ate πŸ’…βœ¨

sign-off time: this little cutie lives in ./drivers/char/xilinx_hwicap, and the source/version stamp says October 2026 β€” so mark your calendars, bestie πŸ’œπŸ¦‹

πŸ“¦ where this page comes from