flashchange.c
1021 Bytes
/*---------------------------------------------------------------------
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: flashchange.c,v 1.2 2003/03/26 02:00:13 blythe Exp $
---------------------------------------------------------------------*/
/**************************************************************************
*
* $Revision: 1.2 $
* $Date: 2003/03/26 02:00:13 $
* $Source:
*
**************************************************************************/
#include <ultra64.h>
#include "osint_flash.h"
void osFlashChange(u32 flash_num)
{
/*XXXblythe support 1 device on bb player for now */
#ifndef BBPLAYER
__osFlashHandler.baseAddress = PHYS_TO_K1(FLASH_START_ADDR+
flash_num*FLASH_SIZE);
__osFlashHandler.type = DEVICE_TYPE_FLASH + flash_num;
return;
#endif
}