mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
[linux] Add timer
Add linux timer API. Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
18d3c12b01
commit
01a4c244db
18
src/include/ipxe/linux/linux_timer.h
Normal file
18
src/include/ipxe/linux/linux_timer.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _IPXE_LINUX_TIMER_H
|
||||
#define _IPXE_LINUX_TIMER_H
|
||||
|
||||
/** @file
|
||||
*
|
||||
* iPXE timer API for Linux
|
||||
*
|
||||
*/
|
||||
|
||||
FILE_LICENCE ( GPL2_OR_LATER );
|
||||
|
||||
#ifdef TIMER_LINUX
|
||||
#define TIMER_PREFIX_linux
|
||||
#else
|
||||
#define TIMER_PREFIX_linux __linux_
|
||||
#endif
|
||||
|
||||
#endif /* _IPXE_LINUX_TIMER_H */
|
||||
@@ -45,6 +45,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
|
||||
/* Include all architecture-independent I/O API headers */
|
||||
#include <ipxe/efi/efi_timer.h>
|
||||
#include <ipxe/linux/linux_timer.h>
|
||||
|
||||
/* Include all architecture-dependent I/O API headers */
|
||||
#include <bits/timer.h>
|
||||
|
||||
Reference in New Issue
Block a user