sa11x0-serial.h 874 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Author: Nicolas Pitre
  4. *
  5. * Moved and changed lots, Russell King
  6. *
  7. * Low level machine dependent UART functions.
  8. */
  9. #ifndef SA11X0_SERIAL_H
  10. #define SA11X0_SERIAL_H
  11. struct uart_port;
  12. struct uart_info;
  13. /*
  14. * This is a temporary structure for registering these
  15. * functions; it is intended to be discarded after boot.
  16. */
  17. struct sa1100_port_fns {
  18. void (*set_mctrl)(struct uart_port *, u_int);
  19. u_int (*get_mctrl)(struct uart_port *);
  20. void (*pm)(struct uart_port *, u_int, u_int);
  21. int (*set_wake)(struct uart_port *, u_int);
  22. };
  23. #ifdef CONFIG_SERIAL_SA1100
  24. void sa1100_register_uart_fns(struct sa1100_port_fns *fns);
  25. void sa1100_register_uart(int idx, int port);
  26. #else
  27. static inline void sa1100_register_uart_fns(struct sa1100_port_fns *fns)
  28. {
  29. }
  30. static inline void sa1100_register_uart(int idx, int port)
  31. {
  32. }
  33. #endif
  34. #endif