diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-04-14 11:55:08 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-04-14 11:55:08 +0100 |
commit | 6567511c3d2fe80a5fd8db28b75eadd81ef6316c (patch) | |
tree | 8e83479cf87999dd7a0ed80ca2d1b343014c272a /src/include | |
parent | eb2252fd7a580a625d426562b9498f28226a75e7 (diff) | |
download | ipxe-6567511c3d2fe80a5fd8db28b75eadd81ef6316c.tar.gz |
[efi] Add EFI time source
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ipxe/efi/efi_time.h | 20 | ||||
-rw-r--r-- | src/include/ipxe/errfile.h | 1 | ||||
-rw-r--r-- | src/include/ipxe/time.h | 1 |
3 files changed, 22 insertions, 0 deletions
diff --git a/src/include/ipxe/efi/efi_time.h b/src/include/ipxe/efi/efi_time.h new file mode 100644 index 00000000..099994b5 --- /dev/null +++ b/src/include/ipxe/efi/efi_time.h @@ -0,0 +1,20 @@ +#ifndef _IPXE_EFI_TIME_H +#define _IPXE_EFI_TIME_H + +/** @file + * + * EFI time source + * + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +#include <stdint.h> + +#ifdef TIME_EFI +#define TIME_PREFIX_efi +#else +#define TIME_PREFIX_efi __efi_ +#endif + +#endif /* _IPXE_EFI_TIME_H */ diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h index e43eec26..3b3efd2e 100644 --- a/src/include/ipxe/errfile.h +++ b/src/include/ipxe/errfile.h @@ -320,6 +320,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #define ERRFILE_efi_utils ( ERRFILE_OTHER | 0x00450000 ) #define ERRFILE_efi_wrap ( ERRFILE_OTHER | 0x00460000 ) #define ERRFILE_vmbus ( ERRFILE_OTHER | 0x00470000 ) +#define ERRFILE_efi_time ( ERRFILE_OTHER | 0x00480000 ) /** @} */ diff --git a/src/include/ipxe/time.h b/src/include/ipxe/time.h index 025280d8..4c5bb2a0 100644 --- a/src/include/ipxe/time.h +++ b/src/include/ipxe/time.h @@ -44,6 +44,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); /* Include all architecture-independent time API headers */ #include <ipxe/null_time.h> +#include <ipxe/efi/efi_time.h> #include <ipxe/linux/linux_time.h> /* Include all architecture-dependent time API headers */ |