%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright(c) 2015 EZchip Technologies. */ #ifndef _PLAT_EZNPS_MTM_H #define _PLAT_EZNPS_MTM_H #include <plat/ctop.h> static inline void *nps_mtm_reg_addr(u32 cpu, u32 reg) { struct global_id gid; u32 core, blkid; gid.value = cpu; core = gid.core; blkid = (((core & 0x0C) << 2) | (core & 0x03)); return nps_host_reg(cpu, blkid, reg); } #ifdef CONFIG_EZNPS_MTM_EXT #define NPS_CPU_TO_THREAD_NUM(cpu) \ ({ struct global_id gid; gid.value = cpu; gid.thread; }) /* MTM registers */ #define MTM_CFG(cpu) nps_mtm_reg_addr(cpu, 0x81) #define MTM_THR_INIT(cpu) nps_mtm_reg_addr(cpu, 0x92) #define MTM_THR_INIT_STS(cpu) nps_mtm_reg_addr(cpu, 0x93) #define get_thread(map) map.thread #define eznps_max_cpus 4096 #define eznps_cpus_per_cluster 256 void mtm_enable_core(unsigned int cpu); int mtm_enable_thread(int cpu); #else /* !CONFIG_EZNPS_MTM_EXT */ #define get_thread(map) 0 #define eznps_max_cpus 256 #define eznps_cpus_per_cluster 16 #define mtm_enable_core(cpu) #define mtm_enable_thread(cpu) 1 #define NPS_CPU_TO_THREAD_NUM(cpu) 0 #endif /* CONFIG_EZNPS_MTM_EXT */ #endif /* _PLAT_EZNPS_MTM_H */