Распечатка 5.2 Структуры данных MY_UART |
Предыдущая Содержание Следующая |
Распечатка 5.2.
static struct uart_ops my_uart_ops= { .tx_empty = my_uart_tx_empty, .get_mctrl = my_uart_get_mctrl, .set_mctrl = my_uart_set_mctrl, .stop_tx = my_uart_stop_tx, .start_tx = my_uart_start_tx, .stop_rx = my_uart_stop_rx, .enable_ms = my_uart_enable_ms, .break_ctl = my_uart_break_ctl, .startup = my_uart_startup, .shutdown = my_uart_shutdown, .set_termios = my_uart_set_termios, .type = my_uart_type, .release_port = my_uart_release_port, .request_port = my_uart_request_port, .config_port = my_uart_config_port, .verify_port = my_uart_verify_port, };
static struct uart_driver my_uart_driver = { .owner = THIS_MODULE, .driver_name = “serial”, .dev_name = “ttyS%d”, .major = TTY_MAJOR, .minor = MY_UART_MINOR, .nr = 1 };
static struct uart_port my_uart_port = { .membase = MY_UART_MEMBASE, .iotype = SERIAL_IO_MEM, .irq = MY_UART_IRQ, .fifosize = 1, .line = 0, .ops = &my_uart_ops }
|
Предыдущая Содержание Следующая |