1UART_GET_BAUD_RATE(9)          16x50 UART Driver         UART_GET_BAUD_RATE(9)
2
3
4

NAME

6       uart_get_baud_rate - return baud rate for a particular port
7

SYNOPSIS

9       unsigned int uart_get_baud_rate(struct uart_port * port,
10                                       struct ktermios * termios,
11                                       struct ktermios * old,
12                                       unsigned int min, unsigned int max);
13

ARGUMENTS

15       port
16           uart_port structure describing the port in question.
17
18       termios
19           desired termios settings.
20
21       old
22           old termios (or NULL)
23
24       min
25           minimum acceptable baud rate
26
27       max
28           maximum acceptable baud rate
29

DESCRIPTION

31       Decode the termios structure into a numeric baud rate, taking account
32       of the magic 38400 baud rate (with spd_* flags), and mapping the B0
33       rate to 9600 baud.
34
35       If the new baud rate is invalid, try the old termios setting. If it´s
36       still invalid, we try 9600 baud.
37
38       Update the termios structure to reflect the baud rate we´re actually
39       going to be using. Don´t do this for the case where B0 is requested
40       (“hang up”).
41
43Kernel Hackers Manual 2.6.         June 2019             UART_GET_BAUD_RATE(9)
Impressum