Exemplo n.º 1
0
static void __init ps3_setup_arch(void)
{

    DBG(" -> %s:%d\n", __func__, __LINE__);

    lv1_get_version_info(&ps3_firmware_version.raw);
    printk(KERN_INFO "PS3 firmware version %u.%u.%u\n",
           ps3_firmware_version.major, ps3_firmware_version.minor,
           ps3_firmware_version.rev);

    ps3_spu_set_platform();

#ifdef CONFIG_SMP
    smp_init_ps3();
#endif

#ifdef CONFIG_DUMMY_CONSOLE
    conswitchp = &dummy_con;
#endif

    prealloc_ps3fb_videomemory();
    prealloc_ps3flash_bounce_buffer();

    ppc_md.power_save = ps3_power_save;
    ps3_os_area_init();

    DBG(" <- %s:%d\n", __func__, __LINE__);
}
Exemplo n.º 2
0
int ps3_get_firmware_version(union ps3_firmware_version *v)
{
	int result = lv1_get_version_info(&v->raw);

	if (result) {
		v->raw = 0;
		return -1;
	}

	return result;
}