1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #ifndef __BOOTMODE_H__ 4 #define __BOOTMODE_H__ 5 6 #include <stdbool.h> 7 8 /* functions implemented per mainboard: */ 9 int get_write_protect_state(void); 10 int get_recovery_mode_switch(void); 11 int get_recovery_mode_retrain_switch(void); 12 int clear_recovery_mode_switch(void); 13 int get_wipeout_mode_switch(void); 14 int get_lid_switch(void); 15 int get_ec_is_trusted(void); 16 17 /* Return 1 if display initialization is required. 0 if not. */ 18 int display_init_required(void); 19 int gfx_get_init_done(void); 20 void gfx_set_init_done(int done); 21 22 /* 23 * Determine if the platform is resuming from suspend. Returns 0 when 24 * not resuming, > 0 if resuming, and < 0 on error. 25 */ 26 int platform_is_resuming(void); 27 28 #endif /* __BOOTMODE_H__ */ 29