aboutsummaryrefslogtreecommitdiff
path: root/hdata/hdif.h
AgeCommit message (Collapse)AuthorFilesLines
2018-01-05hdata: Add an idata array iteratorOliver O'Halloran1-0/+18
Adds HDIF_get_iarray() which retrieves and validates an internal array header and HDIF_iarray_for_each() for walking the individual array entries. This reduces the amount of get-then-check boilerplate that we have with the existing HDIF_get_iarray_item() method for iterating internal data arrays. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> (cherry picked from commit 0abc3af7e8f607aa2fe6bffda9bc072e86126bc9) [stewart: include fix for backtrace()] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-11-10sparse: fix missing endian conversion in hdif pointerStewart Smith1-1/+1
No code change for skiboot as skiboot is BE hdata/spira.c:43:21: warning: incorrect type in initializer (different base types) hdata/spira.c:43:21: expected restricted beint32_t [usertype] size hdata/spira.c:43:21: got int hdata/spira.c:57:20: warning: incorrect type in initializer (different base types) hdata/spira.c:57:20: expected restricted beint32_t [usertype] size hdata/spira.c:57:20: got unsigned long hdata/spira.c:108:24: warning: incorrect type in initializer (different base types) hdata/spira.c:108:24: expected restricted beint32_t [usertype] size hdata/spira.c:108:24: got unsigned long Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2014-07-02Initial commit of Open Source releaseBenjamin Herrenschmidt1-0/+141
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>