sa11x0-serial.h 806 B

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