driver/ifc:Change accessor function to take care of endianness