__ssp_readl(9)
π NAME π
__ssp_readl β read from a SiFive serial port register. This is the __ssp_readl(9) page from the Kernel API Manual, bestie β welcome, youβre gonna slay this one β¨.
β¨ SYNOPSIS β¨
the signature, exactly as it is:
u32 __ssp_readl (struct sifive_serial_port *ssp , u16 offs );
π«Ά ARGUMENTS π«Ά
sspβ pointer to astruct sifive_serial_portrecord. Itβs the pointer bestie, okay? The one that tells you which serial-port record weβre vibing with.offsβ register address offset from the IP block base address. So itβs the offset from the IP block base; thatβs the whole assignment.
πΈ DESCRIPTION πΈ
Okay so hereβs the tea: you pass in ssp, a pointer to a struct sifive_serial_port record, and offs, the register address offset from the IP block base address. This function reads the contents of the IP block register located at offset offs from the IP block base. Thatβs it. Lowkey iconic for how straightforward it is π
.
π¦ CONTEXT π¦
Any context. Literally any. No cap, bestie π¦.
β RETURN β
You get back the value of the UART register β thatβs the return, periodt β.
π SEE ALSO π
Peep the SEE ALSO crew β no skips, bestie:
- Kernel file
./drivers/tty/serial/sifive.c struct sifive_serial_port(9)__ssp_early_writel(9)__ssp_early_readl(9)__ssp_writel(9)sifive_serial_is_txfifo_full(9)__ssp_transmit_char(9)__ssp_transmit_chars(9)__ssp_enable_txwm(9)__ssp_enable_rxwm(9)__ssp_disable_txwm(9)__ssp_disable_rxwm(9)__ssp_receive_char(9)__ssp_receive_chars(9)__ssp_update_div(9)__ssp_update_baud_rate(9)__ssp_set_stop_bits(9)__ssp_wait_for_xmitr(9)sifive_serial_clk_notifier(9)
mwah π β this page is from ./drivers/tty/serial, dated October 2026. byeee bestie, go read those registers responsibly ππ
π¦ 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