2020-04-16 09:15:26 +02:00
|
|
|
/*
|
|
|
|
* Console.h
|
|
|
|
*
|
|
|
|
* Created on: 16 Apr 2020
|
|
|
|
* Author: jief
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PLATFORM_EVENTS_H_
|
|
|
|
#define PLATFORM_EVENTS_H_
|
|
|
|
|
|
|
|
extern EFI_EVENT mVirtualAddressChangeEvent;
|
|
|
|
extern EFI_EVENT OnReadyToBootEvent;
|
|
|
|
extern EFI_EVENT ExitBootServiceEvent;
|
|
|
|
extern EFI_EVENT mSimpleFileSystemChangeEvent;
|
|
|
|
|
2020-02-29 08:30:21 +01:00
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EventsInitialize (
|
|
|
|
IN LOADER_ENTRY *Entry
|
|
|
|
);
|
2020-04-16 09:15:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
GuiEventsInitialize (VOID);
|
|
|
|
|
|
|
|
|
2020-08-09 17:55:30 +02:00
|
|
|
// timeout will be in ms here, as small as 1ms and up
|
|
|
|
EFI_STATUS
|
|
|
|
WaitFor2EventWithTsc (
|
|
|
|
IN EFI_EVENT Event1,
|
|
|
|
IN EFI_EVENT Event2,
|
|
|
|
IN UINT64 Timeout OPTIONAL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2020-04-16 09:15:26 +02:00
|
|
|
EFI_STATUS
|
|
|
|
EjectVolume (
|
|
|
|
IN REFIT_VOLUME *Volume
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif /* PLATFORM_EVENTS_H_ */
|