flashallerasethrough.c
1.01 KB
/*---------------------------------------------------------------------
Copyright (C) 1998 Nintendo.
File flash.c
Coded by Atushi Watanabe. Dec 1, 1998.
Modified by Atushi Watanabe. Apr 4, 2000.
Comments 1M Flash ROM access functions(Ver.7.6)
$Id: flashallerasethrough.c,v 1.1.1.1 2002/10/29 08:06:43 blythe Exp $
---------------------------------------------------------------------*/
/**************************************************************************
*
* $Revision: 1.1.1.1 $
* $Date: 2002/10/29 08:06:43 $
* $Source:
*
**************************************************************************/
#include <ultra64.h>
#include "osint_flash.h"
/* ALL ERASE Through*/
void osFlashAllEraseThrough(void)
{
/* All Erase Reserve */
osEPiWriteIo(&__osFlashHandler,(__osFlashHandler.baseAddress|0x10000),0x3c000000);
/* Erase Start */
osEPiWriteIo(&__osFlashHandler,(__osFlashHandler.baseAddress|0x10000),0x78000000);
}