mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 21:11:03 +03:00
[efi] Add EFI time source
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
20
src/include/ipxe/efi/efi_time.h
Normal file
20
src/include/ipxe/efi/efi_time.h
Normal file
@@ -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 */
|
||||
@@ -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 )
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user