2014-04-16 01:59:30 +00:00
|
|
|
#ifndef _ASM_EFI_H
|
|
|
|
#define _ASM_EFI_H
|
|
|
|
|
|
|
|
#include <asm/io.h>
|
2014-07-04 17:41:53 +00:00
|
|
|
#include <asm/neon.h>
|
2014-04-16 01:59:30 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_EFI
|
|
|
|
extern void efi_init(void);
|
|
|
|
extern void efi_idmap_init(void);
|
|
|
|
#else
|
|
|
|
#define efi_init()
|
|
|
|
#define efi_idmap_init()
|
|
|
|
#endif
|
|
|
|
|
2014-07-04 17:41:53 +00:00
|
|
|
#define efi_call_virt(f, ...) \
|
|
|
|
({ \
|
|
|
|
efi_##f##_t *__f = efi.systab->runtime->f; \
|
|
|
|
efi_status_t __s; \
|
|
|
|
\
|
|
|
|
kernel_neon_begin(); \
|
|
|
|
__s = __f(__VA_ARGS__); \
|
|
|
|
kernel_neon_end(); \
|
|
|
|
__s; \
|
|
|
|
})
|
|
|
|
|
|
|
|
#define __efi_call_virt(f, ...) \
|
|
|
|
({ \
|
|
|
|
efi_##f##_t *__f = efi.systab->runtime->f; \
|
|
|
|
\
|
|
|
|
kernel_neon_begin(); \
|
|
|
|
__f(__VA_ARGS__); \
|
|
|
|
kernel_neon_end(); \
|
|
|
|
})
|
|
|
|
|
2014-04-16 01:59:30 +00:00
|
|
|
#endif /* _ASM_EFI_H */
|