serial_sa1100.h 799 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * arch/arm/include/asm/mach/serial_sa1100.h
  3. *
  4. * Author: Nicolas Pitre
  5. *
  6. * Moved and changed lots, Russell King
  7. *
  8. * Low level machine dependent UART functions.
  9. */
  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