예제 #1
0
파일: asgba.cpp 프로젝트: zhenlw/asgba
bool AsgbaInit(AsgbaEvtHdlr hdlr, uint8_t *bios, uint8_t *rom, uint32_t romsz)
{
	PhyMemInit(bios, rom, romsz);
	InitCpu();
	Init_DMA();
	Init_INTR();
	Init_Display();
	Init_Timer();

	g_funcOutEvtHdlr = hdlr;
	return true;
}
예제 #2
0
static void Init_cl_Device_Api()
{
  static bool initialized = false;

  if(initialized == true)
    return;

  initialized = true;

  clInternalInitializeConfig("opencl_config.xml");

  if(clInternalConfigGetPresent("cpu_generic"))
    InitCpu();
  if(clInternalConfigGetPresent("accel_cell"))
    InitCell();
  if(clInternalConfigGetPresent("gpu_nvidia"))
    InitGpu();
}