aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2021-10-03 11:22:09 +1000
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2021-10-19 12:08:19 +0530
commit4abe8137c82af48a565be3823d0f6006b4b00163 (patch)
tree82be0a8447d00c8b0bbb2bac5b101d5a2f710d64 /include
parentc5424f683ee3f8d07faeb87f41f4572c6afd67b1 (diff)
downloadskiboot-4abe8137c82af48a565be3823d0f6006b4b00163.zip
skiboot-4abe8137c82af48a565be3823d0f6006b4b00163.tar.gz
skiboot-4abe8137c82af48a565be3823d0f6006b4b00163.tar.bz2
phb3: make endian-clean
Convert phb3 dt construction and in-memory hardware tables to use explicit endian conversions. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/phb3.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/phb3.h b/include/phb3.h
index 447e667..be9f4cb 100644
--- a/include/phb3.h
+++ b/include/phb3.h
@@ -214,10 +214,10 @@ struct phb3 {
uint32_t base_lsi;
/* SkiBoot owned in-memory tables */
- uint64_t tbl_rtt;
- uint64_t tbl_peltv;
- uint64_t tbl_pest;
- uint64_t tbl_ivt;
+ __be16 *tbl_rtt;
+ uint8_t *tbl_peltv;
+ __be64 *tbl_pest;
+ __be64 *tbl_ivt;
bool skip_perst; /* Skip first perst */
bool has_link;
@@ -227,10 +227,10 @@ struct phb3 {
unsigned int max_link_speed;
uint32_t no_ecrc_devs;
- uint16_t rte_cache[RTT_TABLE_ENTRIES];
+ __be16 rte_cache[RTT_TABLE_ENTRIES];
uint8_t peltv_cache[PELTV_TABLE_SIZE];
uint64_t lxive_cache[8];
- uint64_t ive_cache[IVT_TABLE_ENTRIES];
+ __be64 ive_cache[IVT_TABLE_ENTRIES];
uint64_t tve_cache[512];
uint64_t m32d_cache[256];
uint64_t m64b_cache[16];