lib/sw_services/xilflash/src/xilflash_amd.c
int XFlashAmd_Reset(XFlash * InstancePtr)
{
	int Status = (int)XST_FAILURE;

	/*
	 * Verify inputs are valid.
	 */
	if(InstancePtr == NULL) {
		return XST_FAILURE;
	}

	/*
	 * Send reset for all region/bank(s) in the device.
	 */
	Status = XFlashAmd_ResetBank(InstancePtr, 0,
				InstancePtr->Geometry.DeviceSize);
	return Status;
}
/*****************************************************************************/
/**
*
* This function places the flash in the Read Array mode. In this mode the flash
* can be read as normal memory. All of the other functions leave the flash in
* the Read Array mode so this is not strictly necessary. It is provided for
* completeness and in case of problems.
*
* @param	None.
*
* @return
* 		- XST_SUCCESS if successful.
*		- XST_FAILURE if failed to reset device.
*
* @note		None.
*
******************************************************************************/
This function places the flash in the Read Array mode. In this mode the flash
can be read as normal memory. All of the other functions leave the flash in
the Read Array mode so this is not strictly necessary. It is provided for
completeness and in case of problems.
This function places the flash in the Read Array mode . In this mode the flash can be read as normal memory . All of the other functions leave the flash in the Read Array mode so this is not strictly necessary . It is provided for completeness and in case of problems .
int XFlashAmd_Reset(XFlash * InstancePtr)
{
	int Status = (int)XST_FAILURE;
	if(InstancePtr == NULL) {
		return XST_FAILURE;
	}
	Status = XFlashAmd_ResetBank(InstancePtr, 0,
				InstancePtr->Geometry.DeviceSize);
	return Status;
}
int XFlashAmd_Reset ( XFlash * InstancePtr ) { int Status = ( int ) XST_FAILURE ; if ( InstancePtr == NULL ) { return XST_FAILURE ; } Status = XFlashAmd_ResetBank ( InstancePtr , 0 , InstancePtr -> Geometry . DeviceSize ) ; return Status ; }
This function places the flash in the Read Array mode.
This function places the flash in the Read Array mode .
/*
	 * Verify inputs are valid.
	 */ /*
	 * Send reset for all region/bank(s) in the device.
	 */