powerpc/powernv: Create OPAL sglist helper functions and fix endian issues