diff options
Diffstat (limited to 'src/import/chips/p9/procedures/utils/stopreg/p9_stop_section_defines.H')
-rwxr-xr-x | src/import/chips/p9/procedures/utils/stopreg/p9_stop_section_defines.H | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/src/import/chips/p9/procedures/utils/stopreg/p9_stop_section_defines.H b/src/import/chips/p9/procedures/utils/stopreg/p9_stop_section_defines.H index ed34d7544..d660e5fb7 100755 --- a/src/import/chips/p9/procedures/utils/stopreg/p9_stop_section_defines.H +++ b/src/import/chips/p9/procedures/utils/stopreg/p9_stop_section_defines.H @@ -44,57 +44,57 @@ namespace stopImageSection //basic constants enum { - ONE_KB = 1024, - ONE_MB = ONE_KB * ONE_KB, - TWO_MB = 2 * ONE_MB, - MAX_CORE_SCOM_ENTRIES = 15, - MAX_EQ_SCOM_ENTRIES = 15, - MAX_L2_SCOM_ENTRIES = 16, - MAX_L3_SCOM_ENTRIES = 16, - MAX_CORE_ID_SUPPORTED = 23, - MAX_THREAD_ID_SUPPORTED = 3, - MAX_CACHE_SECTN_SIZE_PER_CHIPLET = - MAX_EQ_SCOM_ENTRIES + MAX_L2_SCOM_ENTRIES + MAX_L3_SCOM_ENTRIES, +ONE_KB = 1024, +ONE_MB = ONE_KB * ONE_KB, +TWO_MB = 2 * ONE_MB, +MAX_CORE_SCOM_ENTRIES = 15, +MAX_EQ_SCOM_ENTRIES = 15, +MAX_L2_SCOM_ENTRIES = 16, +MAX_L3_SCOM_ENTRIES = 16, +MAX_CORE_ID_SUPPORTED = 23, +MAX_THREAD_ID_SUPPORTED = 3, +MAX_CACHE_SECTN_SIZE_PER_CHIPLET = + MAX_EQ_SCOM_ENTRIES + MAX_L2_SCOM_ENTRIES + MAX_L3_SCOM_ENTRIES, - // start offset for SPR register restore, core scom or cache scom register - // restore regions in homer image. - CORE_SCOM_SECTN_START = ( TWO_MB + ( 256 * ONE_KB )), //offset from start of chip HOMER - CACHE_SCOM_SECTN_START = ( ONE_MB + ( 128 * ONE_KB )), // start of cache section +// start offset for SPR register restore, core scom or cache scom register +// restore regions in homer image. +CORE_SCOM_SECTN_START = ( TWO_MB + ( 256 * ONE_KB )), //offset from start of chip HOMER +CACHE_SCOM_SECTN_START = ( ONE_MB + ( 128 * ONE_KB )), // start of cache section - //constants in HOMER's header area. - REGULAR_MODE = 0xAA, - FUSE_MODE = 0xBB, - HOMER_MAGIC_WORD = 0x484F4D4552312E30ll, - CACHE_CHIPLET_ID_MIN = 0x10, - CACHE_CHIPLET_ID_MAX = 0x15, - CORE_CHIPLET_ID_MIN = 0x20, - CORE_CHIPLET_ID_MAX = 0x37, - MAX_SPR_RESTORE_INST = 0x08, - SIZE_PER_SPR_RESTORE_INST = ((4 * sizeof(uint8_t)) / sizeof(uint32_t)), +//constants in HOMER's header area. +FUSED_MODE = 0xBB, +NONFUSED_MODE = 0xAA, +CPMR_MAGIC_WORD = 0x43504d525f312e30, +CACHE_CHIPLET_ID_MIN = 0x10, +CACHE_CHIPLET_ID_MAX = 0x15, +CORE_CHIPLET_ID_MIN = 0x20, +CORE_CHIPLET_ID_MAX = 0x37, +MAX_SPR_RESTORE_INST = 0x08, +SIZE_PER_SPR_RESTORE_INST = ((4 * sizeof(uint8_t)) / sizeof(uint32_t)), }; // all section sizes below are in bytes enum { - SCOM_ENTRY_SIZE = 16, - INTERRUPT_HANDLER_SIZE = 8 * ONE_KB, - THREAD_LAUNCHER_SIZE = 256, - THREAD_RESTORE_SECTN = 192, - THREAD_COMPLETION = 64, - THREAD_AREA_SIZE = ONE_KB, - THREAD_SECTN_SIZE = THREAD_RESTORE_SECTN + THREAD_COMPLETION, - CORE_SPR_SECTN_SIZE = ONE_KB, - L2_AREA = (SCOM_ENTRY_SIZE * MAX_L2_SCOM_ENTRIES), - L3_AREA = (SCOM_ENTRY_SIZE * MAX_L2_SCOM_ENTRIES ), - EQ_AREA = SCOM_ENTRY_SIZE * MAX_EQ_SCOM_ENTRIES, - MAX_SIZE_PER_CORE = 8 * ONE_KB, - SPR_RESTORE_PER_CHIP = ( MAX_SIZE_PER_CORE * - ( MAX_CORE_ID_SUPPORTED + 1)) + - ( INTERRUPT_HANDLER_SIZE + THREAD_LAUNCHER_SIZE), - SCOM_SIZE_PER_CORE = ( MAX_CORE_SCOM_ENTRIES + 1 ) * SCOM_ENTRY_SIZE, - SCOM_SIZE_PER_CHIP = SCOM_SIZE_PER_CORE * ( MAX_CORE_ID_SUPPORTED + 1), - SCOM_SIZE_PER_CACHE_CHIPLET = L2_AREA + L3_AREA + EQ_AREA - + SCOM_ENTRY_SIZE, +SCOM_ENTRY_SIZE = 16, +INTERRUPT_HANDLER_SIZE = 8 * ONE_KB, +THREAD_LAUNCHER_SIZE = 256, +THREAD_RESTORE_SECTN = 192, +THREAD_COMPLETION = 64, +THREAD_AREA_SIZE = ONE_KB, +THREAD_SECTN_SIZE = THREAD_RESTORE_SECTN + THREAD_COMPLETION, +CORE_SPR_SECTN_SIZE = ONE_KB, +L2_AREA = (SCOM_ENTRY_SIZE * MAX_L2_SCOM_ENTRIES), +L3_AREA = (SCOM_ENTRY_SIZE * MAX_L2_SCOM_ENTRIES ), +EQ_AREA = SCOM_ENTRY_SIZE * MAX_EQ_SCOM_ENTRIES, +MAX_SIZE_PER_CORE = 8 * ONE_KB, +SPR_RESTORE_PER_CHIP = ( MAX_SIZE_PER_CORE * + ( MAX_CORE_ID_SUPPORTED + 1)) + + ( INTERRUPT_HANDLER_SIZE + THREAD_LAUNCHER_SIZE), +SCOM_SIZE_PER_CORE = ( MAX_CORE_SCOM_ENTRIES + 1 ) * SCOM_ENTRY_SIZE, +SCOM_SIZE_PER_CHIP = SCOM_SIZE_PER_CORE * ( MAX_CORE_ID_SUPPORTED + 1), +SCOM_SIZE_PER_CACHE_CHIPLET = L2_AREA + L3_AREA + EQ_AREA + + SCOM_ENTRY_SIZE, //size in byte ends }; |