blob: aa19a8083d21f41608862e7794a404c73144a22c [file] [log] [blame]
/********************************************************************************
* Marvell GPL License Option
*
* If you received this File from Marvell, you may opt to use, redistribute and/or
* modify this File in accordance with the terms and conditions of the General
* Public License Version 2, June 1991 (the "GPL License"), a copy of which is
* available along with the File in the license.txt file or by writing to the Free
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 or
* on the worldwide web at http://www.gnu.org/licenses/gpl.txt.
*
* THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE IMPLIED
* WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY
* DISCLAIMED. The GPL License provides additional details about this warranty
* disclaimer.
******************************************************************************/
#ifndef __COMMON_H__
#define __COMMON_H__
#include "io.h"
#include "string.h"
#include "lgpl_printf.h"
#include <util.h>
typedef long long loff_t;
#define MAGIC_NUMBER (0xD2ADA3F1)
#define COMMAND_SIZE 5
#define _RESERVED_ 0
#define IMAGE3_DDR_ADDR IMAGE3_DDR_ADDRESS
#define reg(addr) (*((volatile int*)(addr)))
#undef DEBUG
#ifdef DEBUG
#define debug(fmt,args...) printf (fmt ,##args)
#define debugX(level,fmt,args...) if (DEBUG>=level) printf(fmt,##args);
#else
#define debug(fmt,args...)
#define debugX(level,fmt,args...)
#endif /* DEBUG */
#endif /* __COMMON_H__ */