/*-----------------------------------------------------------------------------
//     $Date: 2004/08/19 17:01:31 $
//     $RCSfile: strataflash.h,v $
//-----------------------------------------------------------------------------
//
//     XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS"
//     SOLELY FOR USE IN DEVELOPING PROGRAMS AND SOLUTIONS FOR
//     XILINX DEVICES.  BY PROVIDING THIS DESIGN, CODE, OR INFORMATION
//     AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION
//     OR STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS
//     IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT,
//     AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE
//     FOR YOUR IMPLEMENTATION.  XILINX EXPRESSLY DISCLAIMS ANY
//     WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE
//     IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR
//     REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF
//     INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
//     FOR A PARTICULAR PURPOSE.
//     
//     (c) Copyright 2004 Xilinx, Inc.
//     All rights reserved.
//
//---------------------------------------------------------------------------*/

#ifndef STRATAFLASH_H
#define STRATAFLASH_H

extern unsigned int strataflash_BaseAdr;
extern unsigned int strataflash_Size;

int strataflash_AddressToBlock(unsigned int adr, unsigned int *block);
int strataflash_BlockToAddress(unsigned int block, unsigned int *adr);
int strataflash_Write(unsigned int adr, unsigned char *buf, unsigned int len);
int strataflash_EraseBlock(unsigned int block);
int strataflash_LockBlock(unsigned int block);
int strataflash_UnlockBlock(unsigned int block);

#endif
