Guest User

Untitled

a guest
Jan 17th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. /**
  2. * uart_get_baud_rate - return baud rate for a particular port
  3. * @port: uart_port structure describing the port in question.
  4. * @termios: desired termios settings.
  5. * @old: old termios (or NULL)
  6. * @min: minimum acceptable baud rate
  7. * @max: maximum acceptable baud rate
  8. *
  9. * Decode the termios structure into a numeric baud rate,
  10. * taking account of the magic 38400 baud rate (with spd_*
  11. * flags), and mapping the %B0 rate to 9600 baud.
  12. *
  13. * If the new baud rate is invalid, try the old termios setting.
  14. * If it's still invalid, we try 9600 baud.
  15. *
  16. * Update the @termios structure to reflect the baud rate
  17. * we're actually going to be using. Don't do this for the case
  18. * where B0 is requested ("hang up").
  19. */
Add Comment
Please, Sign In to add comment