secvar/backend: use endian-aware types in edk2.h
secvar/backend: use endian-aware types in edk2.h

Recently we had an issue where we did the following:

uint16_t year = le32_to_cpu(timestamp->year);

This is wrong and will break on BE. However, we didn't catch this
with sparse because there was a whole slew of warnings.

The reason for the slew of warnings is that we didn't annotate the
types that store little-endian specific data in edk2.h.

Provide the appropriate annotations.

We now get a single sparse warning for the file, which correctly
identifies the issue:

edk2-compat-process.c:374:46: warning: incorrect type in argument 1 (different base types)
edk2-compat-process.c:374:46:    expected restricted leint32_t [usertype] le_val
edk2-compat-process.c:374:46:    got restricted leint16_t const [usertype] year

We do lose the signedness of efi_time->timezone, but that's probably OK:
we never use the timezone anyway and the comment above the data structure
makes the signedness pretty clear.

Signed-off-by: Daniel Axtens <cf1af486034ab0119a20f38a060e40da25f4cea3@axtens.net>
Signed-off-by: Vasant Hegde <a6d753843573f7bfed5075c1e875b0be8007a0ab@linux.vnet.ibm.com>

qemu/skiboot,open-power/skiboot,open-power/skiboot,legoater/skiboot,shenki/skiboot,shenki/skiboot,qemu/skiboot,legoater/skiboot,legoater/skiboot,open-power/skiboot,qemu/skiboot,open-power/skiboot,legoater/skiboot,shenki/skiboot,shenki/skiboot,shenki/skiboot,open-power/skiboot,qemu/skiboot,qemu/skiboot,legoater/skiboot