示例#1
0
//called when entering sh4 thread , from the new thread context (for any thread speciacific init)
s32 FASTCALL edInit(ext_device_init_params* p)
{
	params=*p;
	if (settings.mode!=0)
	{
		int nd=pcap_io_get_dev_num();
		printf("%d adapters\n",nd);
		for(int i=0;i<nd;i++)
		{
			printf("%d : %s :",i,pcap_io_get_dev_name(i));
			printf("\t%s\n",pcap_io_get_dev_desc(i));
		}

		printf("using :%d : %s :",settings.adapter,pcap_io_get_dev_name(settings.adapter));
		printf("\t%s\n",pcap_io_get_dev_desc(settings.adapter));
		pcap_io_init(pcap_io_get_dev_name(settings.adapter));
	}
	if (settings.mode==3)
		bba_init();

	return rv_ok;
}
示例#2
0
int hardware_periph_init() {
	/* Init sound */
	spu_init();
	spu_dma_init();

	/* Init CD-ROM.. NOTE: NO GD-ROM SUPPORT. ONLY CDs/CDRs. */
	cdrom_init();

	/* Setup maple bus */
	maple_init();

	/* Init video */
	vid_init(DEFAULT_VID_MODE, DEFAULT_PIXEL_MODE);

	/* Setup network (this won't do anything unless we enable netcore) */
	bba_init();
	la_init();

	initted = 2;

	return 0;
}
示例#3
0
int driver_init()
{
  return bba_init();
}