include: types: Add typedefs for endianness
authorRahul Pathak <rpathak@ventanamicro.com>
Thu, 2 Feb 2023 04:44:27 +0000 (10:14 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 8 Feb 2023 12:54:13 +0000 (18:24 +0530)
commitb224ddb41fe1f9cbdfb246ebf22036ae1fe3f40f
treec875280283578fcfab7922de495633075d066b89
parent680bea02bf47e04594ed8810bfee7e9088cd1ca7
include: types: Add typedefs for endianness

If any variable/memory-location follows certain
endianness then its important to annotate it properly
so that proper conversion can be done before read/write
from that variable/memory.

Also, use these new typedefs in libfdt_env.h for deriving
its own custom fdtX_t types

Signed-off-by: Rahul Pathak <rpathak@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/sbi_types.h
lib/utils/libfdt/libfdt_env.h