genwqe_card_type(9)
π 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:
0β Altera Stratix-IV 2301β Altera Stratix-IV 5302β Altera Stratix-V A43β 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:
__genwqe_writeq(9)__genwqe_readq(9)__genwqe_writel(9)__genwqe_readl(9)genwqe_read_app_id(9)genwqe_init_crc32(9)genwqe_crc32(9)genwqe_free_sync_sgl(9)genwqe_user_vmap(9)genwqe_user_vunmap(9)genwqe_card_reset(9)genwqe_set_interrupt_capability(9)genwqe_reset_interrupt_capability(9)set_reg_idx(9)genwqe_ffdc_buff_size(9)genwqe_ffdc_buff_read(9)genwqe_write_vreg(9)genwqe_read_vreg(9)genwqe_base_clock_frequency(9)genwqe_stop_traps(9)genwqe_start_traps(9)
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
- 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