diff options
author | mbroyles <mbroyles@us.ibm.com> | 2017-08-06 19:08:00 -0500 |
---|---|---|
committer | William A. Bryan <wilbryan@us.ibm.com> | 2017-08-14 15:18:26 -0400 |
commit | 8a335d83ed938f05f95ca1cfdbbb5292053ed51f (patch) | |
tree | bd2b38c6df596f3d3bf9f70f8a54a8a205e4e2e1 /src/occ_405/incl | |
parent | 71b5f68da8b725f9c5251261b41fd824e652e491 (diff) | |
download | talos-occ-8a335d83ed938f05f95ca1cfdbbb5292053ed51f.tar.gz talos-occ-8a335d83ed938f05f95ca1cfdbbb5292053ed51f.zip |
Initial 405 GPU support
Change-Id: I6e957ca1aa643d257274e99957df5b15ac8c889b
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44254
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Diffstat (limited to 'src/occ_405/incl')
-rwxr-xr-x | src/occ_405/incl/comp_ids.h | 4 | ||||
-rwxr-xr-x | src/occ_405/incl/occ_common.h | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/occ_405/incl/comp_ids.h b/src/occ_405/incl/comp_ids.h index e6270d6..b6e61a7 100755 --- a/src/occ_405/incl/comp_ids.h +++ b/src/occ_405/incl/comp_ids.h @@ -96,5 +96,9 @@ #define PGPE_COMP_ID 0x1200 #define PGPE_COMP_NAME "PGPE" +// GPU Interface +#define GPU_COMP_ID 0x1300 +#define GPU_COMP_NAME "GPU" + #endif diff --git a/src/occ_405/incl/occ_common.h b/src/occ_405/incl/occ_common.h index 626b744..d646442 100755 --- a/src/occ_405/incl/occ_common.h +++ b/src/occ_405/incl/occ_common.h @@ -5,7 +5,7 @@ /* */ /* OpenPOWER OnChipController Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2016 */ +/* Contributors Listed Below - COPYRIGHT 2011,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -320,6 +320,10 @@ enum #define DURATION_IN_MS_UNTIL_NOW_FROM(start_time) \ (uint32_t) ((ssx_timebase_get() - (SsxTimebase) start_time) / ( SSX_TIMEBASE_FREQUENCY_HZ / 1000 )) +// Convert duration based in SsxTimestamps to seconds. +#define DURATION_IN_S_UNTIL_NOW_FROM(start_time) \ + (uint32_t) ((ssx_timebase_get() - (SsxTimebase) start_time) / SSX_TIMEBASE_FREQUENCY_HZ ) + // Skip this typedef in x86 environment #ifndef OCC_X86_PARSER typedef uint32_t size_t ; |