aboutsummaryrefslogtreecommitdiff
path: root/include/fsp-leds.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-12-08 22:23:01 +1000
committerOliver O'Halloran <oohall@gmail.com>2019-12-16 14:50:56 +1100
commite3934d8c3f948300d346902467a8862a701a00bf (patch)
tree7684def4c143e86bce4593e9a4ff4a1b01e9e5c3 /include/fsp-leds.h
parent390c4f5e7b3e24a2a015aa5ce99ed019f0087caa (diff)
downloadskiboot-e3934d8c3f948300d346902467a8862a701a00bf.zip
skiboot-e3934d8c3f948300d346902467a8862a701a00bf.tar.gz
skiboot-e3934d8c3f948300d346902467a8862a701a00bf.tar.bz2
fsp: endian conversions
Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include/fsp-leds.h')
-rw-r--r--include/fsp-leds.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/fsp-leds.h b/include/fsp-leds.h
index 57b3d1f..d62505f 100644
--- a/include/fsp-leds.h
+++ b/include/fsp-leds.h
@@ -34,9 +34,9 @@ enum spcn_cmd_src {
/* SPCN set LED */
struct spcn_led_data {
u8 lc_len;
- u16 state;
+ __be16 state;
char lc_code[LOC_CODE_SIZE];
-};
+} __packed;
/* LED data */
struct fsp_led_data {
@@ -51,17 +51,17 @@ struct fsp_led_data {
/* FSP location code request */
struct fsp_loc_code_req {
- u16 len;
- u16 req_type;
+ __be16 len;
+ __be16 req_type;
u8 raw_len;
u8 lc_sz;
char loc_code[LOC_CODE_SIZE];
-};
+} __packed;
/* FSP location code data */
struct fsp_loc_code_data {
- u16 size;
- u32 ccin;
+ __be16 size;
+ __be32 ccin;
u8 status;
u8 ind_state;
u8 raw_len;
@@ -81,22 +81,22 @@ struct fsp_loc_code_data {
/* Get indicator state request */
struct fsp_get_ind_state_req {
- u16 size;
+ __be16 size;
u8 lc_len;
u8 fld_sz;
char loc_code[LOC_CODE_SIZE];
-};
+} __packed;
/* Set indicator state request */
struct fsp_set_ind_state_req {
- u16 size;
- u16 req_type;
+ __be16 size;
+ __be16 req_type;
u8 reserved[3];
u8 ind_state;
u8 lc_len;
u8 fld_sz;
char loc_code[LOC_CODE_SIZE];
-};
+} __packed;
/* LED set SPCN command */
struct led_set_cmd {