genwqe_card_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

genwqe_card_type β€” bestie, this is literally The Function that gets you the chip type from the SLU Configuration Register πŸŽ€

Quick context before we dive in: this whole page lives in the Kernel API Manual, and it's all about genwqe_card_type(9). K? K. Let's go. ✨


πŸ¦‹ SYNOPSIS

u8 genwqe_card_type (struct genwqe_dev *cd );

Yes the spicy space before the closing paren is exactly how the original writes it, don't come for me πŸ™ˆ Keep it verbatim, she's iconic like that.


πŸŽ€ ARGUMENTS

  • cd β€” pointer to the genwqe device descriptor. That's it. That's the whole argument list. One (1) pointer, zero drama, we love a low-maintenance signature πŸ’…

🌸 RETURN

You get back a u8, and the value tells you which chip you're dealing with. No cap, here's the full mapping:

  1. 0 β€” Altera Stratix-IV 230
  2. 1 β€” Altera Stratix-IV 530
  3. 2 β€” Altera Stratix-V A4
  4. 3 β€” Altera Stratix-V A7

Four chips, four numbers, zero chaos. Slay. πŸ‘‘

Heads up bestie: those are the only values the page documents, so don't go inventing a 4 and expecting me to validate it. 🫢

πŸ”₯ SEE ALSO

Okay so this is the part where I introduce you to the whole friend group. The kernel file in question is ./drivers/misc/genwqe/card_utils.c, and these are the siblings:

Twenty-one entries, all accounted for, nothing skipped β€” I told you I don't do half-finished πŸ’–


And that's the whole page, bestie!! Go forth and identify your chip with main character energy 🌈

Signed, sealed, delivered: ./drivers/misc/genwqe, dated October 2026 β€” mwah, see you in the next man page πŸ“πŸ’œ

πŸ“¦ where this page comes from