diff options
author | Claudio Carvalho <cclaudio@linux.vnet.ibm.com> | 2017-12-09 02:52:27 -0200 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-12-18 21:30:57 -0600 |
commit | 21a7bd0e07f6d3c121eacb7f840857fc3f2dacaf (patch) | |
tree | d93d1a1133a3c7450bcc0f0f61daaa827e1a85be /hdata | |
parent | 5fdcc35fc1030638d17440507ef087d5da91e8bd (diff) | |
download | skiboot-21a7bd0e07f6d3c121eacb7f840857fc3f2dacaf.zip skiboot-21a7bd0e07f6d3c121eacb7f840857fc3f2dacaf.tar.gz skiboot-21a7bd0e07f6d3c121eacb7f840857fc3f2dacaf.tar.bz2 |
hdata: add secure and trusted boot ntuple to SPIRA-H/S
This adds to spira-h/s the overall tpmrel structure, which defines
secure and trusted boot related data. The internal data structures are
added in subsequent patches.
Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com>
Reviewed-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/spira.c | 1 | ||||
-rw-r--r-- | hdata/spira.h | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/hdata/spira.c b/hdata/spira.c index e13c504..532a50a 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -1556,6 +1556,7 @@ static void fixup_spira(void) spira.ntuples.proc_chip = spiras->ntuples.proc_chip; spira.ntuples.hs_data = spiras->ntuples.hs_data; spira.ntuples.ipmi_sensor = spiras->ntuples.ipmi_sensor; + spira.ntuples.node_stb_data = spiras->ntuples.node_stb_data; } int parse_hdat(bool is_opal) diff --git a/hdata/spira.h b/hdata/spira.h index 49acf5c..190afad 100644 --- a/hdata/spira.h +++ b/hdata/spira.h @@ -40,7 +40,7 @@ struct spira_ntuple { __be64 padding; } __packed; -#define SPIRA_NTUPLES_COUNT 0x18 +#define SPIRA_NTUPLES_COUNT 0x19 struct spira_ntuples { struct HDIF_array_hdr array_hdr; @@ -69,6 +69,7 @@ struct spira_ntuples { struct spira_ntuple proc_chip; /* 0x300 */ struct spira_ntuple hs_data; /* 0x320 */ struct spira_ntuple ipmi_sensor; /* 0x360 */ + struct spira_ntuple node_stb_data; /* 0x380 */ }; struct spira { @@ -82,7 +83,7 @@ struct spira { * * According to FSP engineers, this is an okay thing to do. */ - u8 reserved[0xa0]; + u8 reserved[0x80]; } __packed __align(0x100); extern struct spira spira; @@ -146,7 +147,7 @@ struct spiras_ntuples { struct spira_ntuple hs_data; /* 0x200 */ struct spira_ntuple hbrt_data; /* 0x220 */ struct spira_ntuple ipmi_sensor; /* 0x240 */ - struct spira_ntuple node_data; /* 0x260 */ + struct spira_ntuple node_stb_data; /* 0x260 */ }; struct spiras { |