struct uart_driver {
struct module *owner;
const char *driver_name;
const char *dev_name;
int major;
int minor;
int nr;
struct console *cons;
/*
* these are private; the low level driver should not
* touch these; they should be initialised to
本文详细介绍了Linux 8250串口驱动的流程,包括uart_register_driver在分配uart_state中的作用,以及如何通过uart_port->line区分不同uart_port。在注册过程中,涉及了serial8250_init、uart_add_one_port和uart_configure_port等关键步骤,其中config_port通过serial8250_config_port完成串口配置,并进行存在性检测。
struct uart_driver {
struct module *owner;
const char *driver_name;
const char *dev_name;
int major;
int minor;
int nr;
struct console *cons;
/*
* these are private; the low level driver should not
* touch these; they should be initialised to
5879
2407

被折叠的 条评论
为什么被折叠?