| /****************************************************************************** |
| * |
| * (C)Copyright 2014 Marvell Hefei Branch. All Rights Reserved. |
| * |
| * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF MARVELL. |
| * The copyright notice above does not evidence any actual or intended |
| * publication of such source code. |
| * This Module contains Proprietary Information of Marvell and should be |
| * treated as Confidential. |
| * The information in this file is provided for the exclusive use of the |
| * licensees of Marvell. |
| * Such users have the right to use, modify, and incorporate this code into |
| * products for purposes authorized by the license agreement provided they |
| * include this notice and the associated copyright notice with any such |
| * product. |
| * The information in this file is provided "AS IS" without warranty. |
| * |
| ******************************************************************************/ |
| |
| #ifndef __SERIAL_H__ |
| #define __SERIAL_H__ |
| // For UART Debug Msg |
| int serial_get_quiet(void); |
| void serial_set_quiet(int on); |
| |
| #if USE_SERIAL_DEBUG |
| void serial_init(void); |
| int serial_poll(void); |
| int serial_read(void); |
| int serial_write(int c); |
| #else |
| #define serial_init() do{}while(0) |
| #define serial_poll() do{}while(0) |
| #define serial_read() do{0;}while(0) |
| #define serial_write(c) do{}while(0) |
| #endif |
| #endif |
| |