/* * VAS_EBOOT -- GRand Unified Bootloader * Copyright (C) 2020 Free Software Foundation, Inc. * * VAS_EBOOT is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VAS_EBOOT is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with VAS_EBOOT. If not, see . */ #ifndef VAS_EBOOT_LOCKDOWN_H #define VAS_EBOOT_LOCKDOWN_H 1 #include #define VAS_EBOOT_LOCKDOWN_DISABLED 0 #define VAS_EBOOT_LOCKDOWN_ENABLED 1 #if defined(VAS_EBOOT_MACHINE_EFI) || \ (defined(__powerpc__) && defined(VAS_EBOOT_MACHINE_IEEE1275)) extern void EXPORT_FUNC (VasEBoot_lockdown) (void); extern int EXPORT_FUNC (VasEBoot_is_lockdown) (void); #else static inline void VasEBoot_lockdown (void) { } static inline int VasEBoot_is_lockdown (void) { return VAS_EBOOT_LOCKDOWN_DISABLED; } #endif #endif /* ! VAS_EBOOT_LOCKDOWN_H */