/****************************************************************************** ** ** FILE NAME : ifxmips_asc_vr9.h ** PROJECT : IFX UEIP ** MODULES : ASC (UART) ** ** DATE : 27 May 2009 ** AUTHOR : Xu Liang ** DESCRIPTION : Global IFX ASC (UART) driver header file for VR9 ** COPYRIGHT : Copyright (c) 2009 ** Infineon Technologies AG ** Am Campeon 1-12, 85579 Neubiberg, Germany ** ** 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; either version 2 of the License, or ** (at your option) any later version. ** ** HISTORY ** $Date $Author $Comment ** 27 May 2009 Xu Liang The first UEIP release *******************************************************************************/ #ifndef IFX_ASC_VR9_H #define IFX_ASC_VR9_H #define UART_NR 1 #if defined(CONFIG_SERIAL_IFX_ASC_CONSOLE) # define IFX_ASC_CONSOLE_INDEX 0 #endif #if 0 static ifx_asc_port_priv_t ifx_asc_port_priv[UART_NR] = { {(ifx_asc_reg_t*)IFX_ASC1, 8, IFX_ASC1_TIR, IFX_ASC1_TBIR, IFX_ASC1_RIR, IFX_ASC1_EIR, "asc1_tx", "asc1_rx", "asc1_err", 0, 0, 0, 0, 0, 0} }; #else static ifx_asc_port_priv_t ifx_asc_port_priv[NR_UARTS] = { { .base /* Port base address */ = (ifx_asc_reg_t*)IFX_ASC1, .portwidth /* 8 or 32 */ = 8, .tir /* TX interrupt */ = IFX_ASC1_TIR, .tbir /* TX buffer interrupt */ = IFX_ASC1_TBIR, .rir /* RX interrupt */ = IFX_ASC1_RIR, .eir /* ERROR interrupt */ = IFX_ASC1_EIR, .tx_irq_name = "asc1_tx", .rx_irq_name = "asc1_rx", .err_irq_name = "asc1_err", } }; #endif #endif // IFX_ASC_VR9_H