/* ':':':':':':':':':'@' '@':':':':':':':':':'@' '@':':':':':':':':':'| */
/* :':':':':':':':':':'@'@':':':':':':':':':':'@'@':':':':':':':':':':| */
/* ':':':': : :':':':':'@':':':':': : :':':':':'@':':':':': : :':':':'| */
/*  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
/*		Name:		flash.h					*/
/*		Version:	1.3.0					*/
/*		Date:		12/8/2002				*/
/*  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */

#ifndef FLASH_H
#define	FLASH_H

#define uchar unsigned char

#define TABLE           0x00004000


#define MAGIC_NUMBER    0
#define FLAGS           4
#define RAM_START       8
#define RAM_LENGTH      12
#define ROM_START       16
#define ROM_LENGTH      20
#define START_OFFSET    24
#define CPSR            28
#define SPARTAN_START   32
#define SPARTAN_LENGTH  36
#define VIRTEX_START    40
#define VIRTEX_LENGTH   44
#define LCD_LINE1       48
#define LCD_LINE2       64
#define USER_TEXT       80



typedef enum
{
  SERIAL,
  EMULATOR,
  FAKE
}
target_type;

target_type board_type;
void printtable (uchar * tabledata);
int chararr2int (uchar * arr);

#endif

/*									*/
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 	*/
/*                     end of flash.h				*/
/************************************************************************/

