Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/libfdt/libfdt_internal.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
*/ | */ | ||||
#include <fdt.h> | #include <fdt.h> | ||||
#define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) | #define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) | ||||
#define FDT_TAGALIGN(x) (FDT_ALIGN((x), FDT_TAGSIZE)) | #define FDT_TAGALIGN(x) (FDT_ALIGN((x), FDT_TAGSIZE)) | ||||
#define FDT_CHECK_HEADER(fdt) \ | int fdt_ro_probe_(const void *fdt); | ||||
#define FDT_RO_PROBE(fdt) \ | |||||
{ \ | { \ | ||||
int err_; \ | int err_; \ | ||||
if ((err_ = fdt_check_header(fdt)) != 0) \ | if ((err_ = fdt_ro_probe_(fdt)) != 0) \ | ||||
return err_; \ | return err_; \ | ||||
} | } | ||||
int fdt_check_node_offset_(const void *fdt, int offset); | int fdt_check_node_offset_(const void *fdt, int offset); | ||||
int fdt_check_prop_offset_(const void *fdt, int offset); | int fdt_check_prop_offset_(const void *fdt, int offset); | ||||
const char *fdt_find_string_(const char *strtab, int tabsize, const char *s); | const char *fdt_find_string_(const char *strtab, int tabsize, const char *s); | ||||
int fdt_node_end_offset_(void *fdt, int nodeoffset); | int fdt_node_end_offset_(void *fdt, int nodeoffset); | ||||
Show All 26 Lines |