resource_34xx.h

来自「omap3 linux 2.6 用nocc去除了冗余代码」· C头文件 代码 · 共 595 行 · 第 1/2 页

H
595
字号
	.action = activate_pd_constraint,	.validate = validate_constraint,};#define ACCL_3D_NAME   "sgx"static char *lat_3d_linked_res[] = {ACCL_3D_NAME,};static struct shared_resource lat_3d = {	.name = "lat_3d",	.prcm_id = PRCM_3D_CONSTRAINT,	.res_type = RES_CLOCK_RAMPUP_CO,	.no_of_users = 0,	.curr_level = CO_UNUSED,	.max_levels = CO_MAXLEVEL,	.linked_res_num = sizeof(lat_3d_linked_res) /			  sizeof(lat_3d_linked_res[0]),	.linked_res_names = lat_3d_linked_res,	.action = activate_pd_constraint,	.validate = validate_constraint,};static char *lat_usbhost_linked_res[] = {"usb",};static struct shared_resource lat_usbhost = {	.name = "lat_usbhost",	.prcm_id = PRCM_USBHOST_CONSTRAINT,	.res_type = RES_CLOCK_RAMPUP_CO,	.no_of_users = 0,	.curr_level = CO_UNUSED,	.max_levels = CO_MAXLEVEL,	.linked_res_num = sizeof(lat_usbhost_linked_res) /			  sizeof(lat_usbhost_linked_res[0]),	.linked_res_names = lat_usbhost_linked_res,	.action = activate_pd_constraint,	.validate = validate_constraint,};static char *lat_per_linked_res[] = {"per",};static struct shared_resource lat_per = {	.name = "lat_per",	.prcm_id = PRCM_PER_CONSTRAINT,	.res_type = RES_CLOCK_RAMPUP_CO,	.no_of_users = 0,	.curr_level = CO_UNUSED,	.max_levels = CO_MAXLEVEL,	.linked_res_num = sizeof(lat_per_linked_res) /			  sizeof(lat_per_linked_res[0]),	.linked_res_names = lat_per_linked_res,	.action = activate_pd_constraint,	.validate = validate_constraint,};static char *lat_neon_linked_res[] = {"neon",};static struct shared_resource lat_neon = {	.name = "lat_neon",	.prcm_id = PRCM_NEON_CONSTRAINT,	.res_type = RES_CLOCK_RAMPUP_CO,	.no_of_users = 0,	.curr_level = CO_UNUSED,	.max_levels = CO_MAXLEVEL,	.linked_res_num = sizeof(lat_neon_linked_res) /			  sizeof(lat_neon_linked_res[0]),	.linked_res_names = lat_neon_linked_res,	.action = activate_pd_constraint,	.validate = validate_constraint,};static char *lat_core1_linked_res[] = {"core",};static struct shared_resource lat_core1 = {	.name = "lat_core1",	.prcm_id = PRCM_CORE1_CONSTRAINT,	.res_type = RES_CLOCK_RAMPUP_CO,	.no_of_users = 0,	.curr_level = CO_UNUSED,	.max_levels = CO_MAXLEVEL,	.linked_res_num = sizeof(lat_core1_linked_res) /			  sizeof(lat_core1_linked_res[0]),	.linked_res_names = lat_core1_linked_res,	.action = activate_pd_constraint,	.validate = validate_constraint,};/* Domain logic and memory resource */static struct shared_resource mpu_l2cacheon = {	.name = "mpu_l2cacheon",	.prcm_id = PRCM_MPU_L2CACHEON,	.res_type = RES_MEMORY_LOGIC,	.no_of_users = 0,	.curr_level = MEMORY_OFF,	.max_levels = MEMORY_MAXLEVEL_DOMAINON,	.linked_res_num = 0,	.action = activate_memory_logic,	.validate = validate_memory_logic,};static struct shared_resource mpu_l2cacheret = {	.name = "mpu_l2cacheret",	.prcm_id = PRCM_MPU_L2CACHERET,	.res_type = RES_MEMORY_LOGIC,	.no_of_users = 0,	.curr_level = MEMORY_OFF,	.max_levels = MEMORY_MAXLEVEL_DOMAINRET,	.linked_res_num = 0,	.action = activate_memory_logic,	.validate = validate_memory_logic,};static struct shared_resource mpu_logicl1cacheret = {	.name = "mpu_logicl1cacheret",	.prcm_id = PRCM_MPU_LOGICL1CACHERET,	.res_type = RES_MEMORY_LOGIC,	.no_of_users = 0,	.curr_level = LOGIC_OFF,	.max_levels = LOGIC_MAXLEVEL,	.linked_res_num = 0,	.action = activate_memory_logic,	.validate = validate_memory_logic,};static struct shared_resource core_mem2on = {	.name = "core_mem2on",	.prcm_id = PRCM_CORE_MEM2ON,	.res_type = RES_MEMORY_LOGIC,	.no_of_users = 0,	.curr_level = MEMORY_ON,	.max_levels = MEMORY_MAXLEVEL_DOMAINON,	.linked_res_num = 0,	.action = activate_memory_logic,	.validate = validate_memory_logic,};static struct shared_resource core_mem1on = {	.name = "core_mem1on",	.prcm_id = PRCM_CORE_MEM1ON,	.res_type = RES_MEMORY_LOGIC,	.no_of_users = 0,	.curr_level = MEMORY_ON,	.max_levels = MEMORY_MAXLEVEL_DOMAINON,	.linked_res_num = 0,	.action = activate_memory_logic,	.validate = validate_memory_logic,};static struct shared_resource core_mem2ret = {	.name = "core_mem2ret",	.prcm_id = PRCM_CORE_MEM2RET,	.res_type = RES_MEMORY_LOGIC,	.no_of_users = 0,	.curr_level = MEMORY_RET,	.max_levels = MEMORY_MAXLEVEL_DOMAINRET,	.linked_res_num = 0,	.action = activate_memory_logic,	.validate = validate_memory_logic,};static struct shared_resource core_mem1ret = {	.name = "core_mem1ret",	.prcm_id = PRCM_CORE_MEM1RET,	.res_type = RES_MEMORY_LOGIC,	.no_of_users = 0,	.curr_level = MEMORY_RET,	.max_levels = MEMORY_MAXLEVEL_DOMAINRET,	.linked_res_num = 0,	.action = activate_memory_logic,	.validate = validate_memory_logic,};static struct shared_resource core_logicret = {	.name = "core_logicret",	.prcm_id = PRCM_CORE_LOGICRET,	.res_type = RES_MEMORY_LOGIC,	.no_of_users = 0,	.curr_level = LOGIC_RET,	.max_levels = LOGIC_MAXLEVEL,	.linked_res_num = 0,	.action = activate_memory_logic,	.validate = validate_memory_logic,};static struct shared_resource per_logicret = {	.name = "per_logicret",	.prcm_id = PRCM_PER_LOGICRET,	.res_type = RES_MEMORY_LOGIC,	.no_of_users = 0,	.curr_level = LOGIC_OFF,	.max_levels = LOGIC_MAXLEVEL,	.linked_res_num = 0,	.action = activate_memory_logic,	.validate = validate_memory_logic,};static struct shared_resource per_autoidle_res = {	.name = "per_autoidle_res",	.prcm_id = DPLL4_PER ,	.res_type = RES_DPLL,	.no_of_users = 0,	.curr_level = DPLL_AUTOIDLE,	.max_levels = DPLL_RES_MAXLEVEL,	.linked_res_num = 0,	.action = activate_autoidle_resource,	.validate = validate_autoidle_resource,};static struct shared_resource mpu_autoidle_res = {	.name = "mpu_autoidle_res",	.prcm_id = DPLL1_MPU,	.res_type = RES_DPLL,	.no_of_users = 0,	.curr_level = DPLL_AUTOIDLE,	.max_levels = DPLL_RES_MAXLEVEL ,	.linked_res_num = 0,	.action = activate_autoidle_resource,	.validate = validate_autoidle_resource,};static struct shared_resource core_autoidle_res = {	.name = "core_autoidle_res",	.prcm_id = DPLL3_CORE,	.res_type = RES_DPLL,	.no_of_users = 0,	.curr_level = DPLL_AUTOIDLE,	.max_levels = DPLL_RES_CORE_MAXLEVEL,	.linked_res_num = 0,	.action = activate_autoidle_resource,	.validate = validate_autoidle_resource,};static struct shared_resource iva2_autoidle_res = {	.name = "iva2_autoidle_res",	.prcm_id = DPLL2_IVA2,	.res_type = RES_DPLL,	.no_of_users = 0,	.curr_level = DPLL_AUTOIDLE,	.max_levels = DPLL_RES_MAXLEVEL,	.linked_res_num = 0,	.action = activate_autoidle_resource,	.validate = validate_autoidle_resource,};static struct shared_resource per2_autoidle_res = {	.name = "per2_autoidle_res",	.prcm_id = DPLL5_PER2,	.res_type = RES_DPLL,	.no_of_users = 0,	.curr_level = DPLL_AUTOIDLE,	.max_levels = DPLL_RES_MAXLEVEL,	.linked_res_num = 0,	.action = activate_autoidle_resource,	.validate = validate_autoidle_resource,};static struct shared_resource *res_list[] = {	/* Power domain resources */	&dss,	&cam,	&iva2,	&sgx,	&usbhost,	&per,	&neon,	/* Logical resources */	&core,	/* Constraints */	&latency,	&arm_freq,	&dsp_freq,	&vdd1_opp,	&vdd2_opp,	&lat_dss,	&lat_cam,	&lat_iva2,	&lat_3d,	&lat_usbhost,	&lat_per,	&lat_neon,	&lat_core1,	/*memory and logic resource */	&mpu_l2cacheon,	&mpu_l2cacheret,	&mpu_logicl1cacheret,	&core_mem2on,	&core_mem1on,	&core_mem2ret,	&core_mem1ret,	&core_logicret,	&per_logicret,	&per_autoidle_res,	&mpu_autoidle_res,	&core_autoidle_res,	&iva2_autoidle_res,	&per2_autoidle_res};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?