STRUCT SIFIVE_SERIAL_PORT(9)
π struct sifive_serial_port(9) π
okay so this is a page from the Kernel API Manual, and it's literally all about struct sifive_serial_port β bestie, it's the driver-specific data extension to struct uart_port. like, the uart_port gets to bring a whole extra little bag of snacks with it π
β¨ NAME β¨
struct sifive_serial_port β driver-specific data extension to struct uart_port π
πΈ SYNOPSIS πΈ
struct sifive_serial_port {
struct uart_port port;
struct device *dev;
unsigned char ier;
unsigned long baud_rate;
struct clk *clk;
struct notifier_block clk_notifier;
bool console_line_ended;
};
π¦ Members π¦
portβ thestruct uart_portthat lives embedded right inside this struct π«Άdevβ astruct device *, no capierβ a shadowed copy of the interrupt enable register β¨ (a shadow copy, like it's cosplaying the real register)baud_rateβ the UART serial line rate, e.g.115200baud π₯clkβ a reference to this device's clock βclk_notifierβ the clock rate change notifier, for when the upstream clock changes its whole vibe πconsole_line_endedβ tells you the console line is fully written, i.e. wrap it up, the line is done π
π Description π
Configuration data specific to this SiFive UART. that's it, that's the whole description β it's giving "confident, concise, main character energy" πβ¨
π SEE ALSO π
Kernel file ./drivers/tty/serial/sifive.c β and the whole friend group:
__ssp_early_writel(9)__ssp_early_readl(9)__ssp_writel(9)__ssp_readl(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)
and that's the whole page, bestie, you ate that ππ this gem came out of ./drivers/tty/serial and it's dated October 2026, so yeah β go forth and read your serial driver source, ily, mwah π
β¨π§
π¦ 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