STRUCT EXAR8250_BOARD(9)
π struct exar8250_board(9) β board information
okay bestie, so this is a page straight outta the Kernel API Manual, and it's all about struct exar8250_board β the little info blob that tells the Exar 8250 driver what kind of board it's dealing with. board information, that's the whole vibe. π«Ά
β¨ SYNOPSIS β¨
struct exar8250_board {
unsigned int num_ports;
unsigned int reg_shift;
int (*setup)(struct exar8250 *priv, struct pci_dev *pcidev, struct
uart_8250_port *port, int idx);
void (*exit)(struct pci_dev *pcidev);
};
like, that's the whole struct, no notes. π
(yes, unsigned int num_ports; β shoutout to unsigned int for always showing up.)
πΈ Members πΈ
num_portsβ literally the number of serial ports. that's it. that's the field. count 'em. π’reg_shiftβ this one describes the UART register mapping in PCI memory. it's giving "how do I find my registers in this PCI blob" energy. πΊοΈsetupβ a quirk that gets run at the->probestage, for each port. it's a function pointer shaped likeint (*)(struct exar8250 *priv, struct pci_dev *pcidev, struct uart_8250_port *port, int idx)β so yeah, it takespriv,pcidev,port, andidx, and returns anint. main character of the probe phase fr. πexitβ the quirk that runs at the->removestage. signature isvoid (*)(struct pci_dev *pcidev)βvoid, takespcidev, says bye. π clean up after yourself queen.
π¦ SEE ALSO π¦
- Kernel file
./drivers/tty/serial/8250/8250_exar.cβ go read the source, iykyk π exar_mpio_config_output(9)_exar_mpio_set(9)cti_tristate_disable(9)cti_plx_int_enable(9)cti_read_osc_freq(9)cti_get_port_type_xr17c15x_xr17v25x(9)cti_get_port_type_fpga(9)cti_get_port_type_xr17v35x(9)
like. that's a whole friend group of cti_* functions and honestly they ate. π₯
ngl the vibes here are very "hardware driver internals" and that's iconic of you to be reading. no cap, this is the good stuff. π§
anyway, that's the page! π it lives under ./drivers/tty/serial/8250, dated October 2026, and yes the title is struct exar8250_board(9) β slay, periodt. ππβ
π¦ 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