timbuart.h 922 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * timbuart.c timberdale FPGA GPIO driver
  4. * Copyright (c) 2009 Intel Corporation
  5. */
  6. /* Supports:
  7. * Timberdale FPGA UART
  8. */
  9. #ifndef _TIMBUART_H
  10. #define _TIMBUART_H
  11. #define TIMBUART_FIFO_SIZE 2048
  12. #define TIMBUART_RXFIFO 0x08
  13. #define TIMBUART_TXFIFO 0x0c
  14. #define TIMBUART_IER 0x10
  15. #define TIMBUART_IPR 0x14
  16. #define TIMBUART_ISR 0x18
  17. #define TIMBUART_CTRL 0x1c
  18. #define TIMBUART_BAUDRATE 0x20
  19. #define TIMBUART_CTRL_RTS 0x01
  20. #define TIMBUART_CTRL_CTS 0x02
  21. #define TIMBUART_CTRL_FLSHTX 0x40
  22. #define TIMBUART_CTRL_FLSHRX 0x80
  23. #define TXBF 0x01
  24. #define TXBAE 0x02
  25. #define CTS_DELTA 0x04
  26. #define RXDP 0x08
  27. #define RXBAF 0x10
  28. #define RXBF 0x20
  29. #define RXTT 0x40
  30. #define RXBNAE 0x80
  31. #define TXBE 0x100
  32. #define RXFLAGS (RXDP | RXBAF | RXBF | RXTT | RXBNAE)
  33. #define TXFLAGS (TXBF | TXBAE)
  34. #define TIMBUART_MAJOR 204
  35. #define TIMBUART_MINOR 192
  36. #endif /* _TIMBUART_H */