aboutsummaryrefslogtreecommitdiff
path: root/include/spcn.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/spcn.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/spcn.h')
-rw-r--r--include/spcn.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/spcn.h b/include/spcn.h
index bec7134..3a99eac 100644
--- a/include/spcn.h
+++ b/include/spcn.h
@@ -78,8 +78,8 @@ enum {
* Common to all PRS modifiers (subcommands)
*/
struct sensor_header {
- uint16_t frc; /* Frame resource class */
- uint16_t rid; /* Resource ID */
+ __be16 frc; /* Frame resource class */
+ __be16 rid; /* Resource ID */
} __packed;
/*
@@ -87,8 +87,8 @@ struct sensor_header {
*/
struct sensor_prs {
struct sensor_header header;
- uint16_t src; /* unused */
- uint16_t status;
+ __be16 src; /* unused */
+ __be16 status;
} __packed;
#define PRS_STATUS_ON_SUPPORTED 0x0010
@@ -104,8 +104,8 @@ struct sensor_param {
struct sensor_header header;
char location[4];
char __reserved[4];
- uint16_t threshold;
- uint16_t status;
+ __be16 threshold;
+ __be16 status;
} __packed;
/*
@@ -113,8 +113,8 @@ struct sensor_param {
*/
struct sensor_data {
struct sensor_header header;
- uint16_t data;
- uint16_t status;
+ __be16 data;
+ __be16 status;
} __packed;
#define SENSOR_STATUS_EM_ALERT 0x0004
@@ -156,7 +156,7 @@ struct sensor_data {
struct sensor_power_supply {
uint8_t rid; /* Power supply ID */
- uint32_t milliwatts;
+ __be32 milliwatts;
} __packed;
struct sensor_power {