M7350/kernel/arch/tile/include/hv/drv_uart_intf.h

34 lines
1007 B
C
Raw Permalink Normal View History

2024-09-09 08:52:07 +00:00
/*
2024-09-09 08:57:42 +00:00
* Copyright 2013 Tilera Corporation. All Rights Reserved.
2024-09-09 08:52:07 +00:00
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, version 2.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
* NON INFRINGEMENT. See the GNU General Public License for
* more details.
*/
2024-09-09 08:57:42 +00:00
/**
* Interface definitions for the UART driver.
*/
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
#ifndef _SYS_HV_DRV_UART_INTF_H
#define _SYS_HV_DRV_UART_INTF_H
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
#include <arch/uart.h>
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
/** Number of UART ports supported. */
#define TILEGX_UART_NR 2
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
/** The mmap file offset (PA) of the UART MMIO region. */
#define HV_UART_MMIO_OFFSET 0
/** The maximum size of the UARTs MMIO region (64K Bytes). */
#define HV_UART_MMIO_SIZE (1UL << 16)
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
#endif /* _SYS_HV_DRV_UART_INTF_H */