You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

efi_timer.h 595B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _IPXE_EFI_TIMER_H
  2. #define _IPXE_EFI_TIMER_H
  3. /** @file
  4. *
  5. * iPXE timer API for EFI
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  9. #ifdef TIMER_EFI
  10. #define TIMER_PREFIX_efi
  11. #else
  12. #define TIMER_PREFIX_efi __efi_
  13. #endif
  14. /**
  15. * Number of ticks per second
  16. *
  17. * This is a policy decision.
  18. */
  19. #define EFI_TICKS_PER_SEC 20
  20. /**
  21. * Get number of ticks per second
  22. *
  23. * @ret ticks_per_sec Number of ticks per second
  24. */
  25. static inline __attribute__ (( always_inline )) unsigned long
  26. TIMER_INLINE ( efi, ticks_per_sec ) ( void ) {
  27. return EFI_TICKS_PER_SEC;
  28. }
  29. #endif /* _IPXE_EFI_TIMER_H */