diff mbox

[10/14] hdat: add new sppcrd_chip_info fields

Message ID 1484193253-25307-10-git-send-email-oohall@gmail.com
State Accepted
Headers show

Commit Message

Oliver O'Halloran Jan. 12, 2017, 3:54 a.m. UTC
A number of new fields have been defined over the last few HDAT versions
that we have not used up until this point. This patch adds them to the
structure.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
---
 hdata/spira.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Vasant Hegde Jan. 13, 2017, 8:45 a.m. UTC | #1
On 01/12/2017 09:24 AM, Oliver O'Halloran wrote:
> A number of new fields have been defined over the last few HDAT versions
> that we have not used up until this point. This patch adds them to the
> structure.
>
> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
> ---
>   hdata/spira.h | 13 +++++++++++++
>   1 file changed, 13 insertions(+)
>
> diff --git a/hdata/spira.h b/hdata/spira.h
> index d989c6b40625..aa58b5599e5d 100644
> --- a/hdata/spira.h
> +++ b/hdata/spira.h
> @@ -973,6 +973,19 @@ struct sppcrd_chip_info {
>   	__be32 reserved;
>   	__be32 dbob_id;
>   	__be32 occ_state;
> +	/* Version 0xC - none of these are used */
> +	__be32 processor_fru_id;
> +	__be32 chip_ec_level;
> +	__be32 hw_module_id;
> +	__be32 hw_card_id;
> +	__be32 internal_drawer_nid;
> +	__be32 ccm_nid;
> +	/* Version 0xD */
> +	__be32 capp0_func_state;
> +	/* Version 0xE */
> +	__be32 capp1_func_state;
> +	/* Version 0x20 */

Spec doesn't say that its added from v0x20. Otherwise patch looks good to me.

Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

-Vasant

> +	__be32 stop_levels;
>   } __packed;
>
>   /* Idata index 1 : Chip TOD */
>
diff mbox

Patch

diff --git a/hdata/spira.h b/hdata/spira.h
index d989c6b40625..aa58b5599e5d 100644
--- a/hdata/spira.h
+++ b/hdata/spira.h
@@ -973,6 +973,19 @@  struct sppcrd_chip_info {
 	__be32 reserved;
 	__be32 dbob_id;
 	__be32 occ_state;
+	/* Version 0xC - none of these are used */
+	__be32 processor_fru_id;
+	__be32 chip_ec_level;
+	__be32 hw_module_id;
+	__be32 hw_card_id;
+	__be32 internal_drawer_nid;
+	__be32 ccm_nid;
+	/* Version 0xD */
+	__be32 capp0_func_state;
+	/* Version 0xE */
+	__be32 capp1_func_state;
+	/* Version 0x20 */
+	__be32 stop_levels;
 } __packed;
 
 /* Idata index 1 : Chip TOD */