drv_uart_intf.h 1007 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright 2013 Tilera Corporation. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation, version 2.
  7. *
  8. * This program is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
  11. * NON INFRINGEMENT. See the GNU General Public License for
  12. * more details.
  13. */
  14. /**
  15. * Interface definitions for the UART driver.
  16. */
  17. #ifndef _SYS_HV_DRV_UART_INTF_H
  18. #define _SYS_HV_DRV_UART_INTF_H
  19. #include <arch/uart.h>
  20. /** Number of UART ports supported. */
  21. #define TILEGX_UART_NR 2
  22. /** The mmap file offset (PA) of the UART MMIO region. */
  23. #define HV_UART_MMIO_OFFSET 0
  24. /** The maximum size of the UARTs MMIO region (64K Bytes). */
  25. #define HV_UART_MMIO_SIZE (1UL << 16)
  26. #endif /* _SYS_HV_DRV_UART_INTF_H */