2013-11-28 17:11:49 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the coreboot project.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This program 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; version 2 of the License.
|
|
|
|
*
|
|
|
|
* This program 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __BOOTMODE_H__
|
|
|
|
#define __BOOTMODE_H__
|
|
|
|
|
2014-05-03 09:45:28 +02:00
|
|
|
/* functions implemented per mainboard: */
|
|
|
|
void init_bootmode_straps(void);
|
2014-04-28 22:41:06 +02:00
|
|
|
int get_write_protect_state(void);
|
2013-11-28 17:11:49 +01:00
|
|
|
int get_recovery_mode_switch(void);
|
2016-11-06 07:52:08 +01:00
|
|
|
int get_recovery_mode_retrain_switch(void);
|
2014-05-01 00:46:45 +02:00
|
|
|
int clear_recovery_mode_switch(void);
|
2015-03-13 03:22:51 +01:00
|
|
|
int get_wipeout_mode_switch(void);
|
2015-05-28 11:59:33 +02:00
|
|
|
int get_lid_switch(void);
|
2014-05-01 00:46:45 +02:00
|
|
|
|
2015-09-02 16:21:36 +02:00
|
|
|
/* Return 1 if display initialization is required. 0 if not. */
|
|
|
|
int display_init_required(void);
|
2013-11-28 15:44:51 +01:00
|
|
|
int gfx_get_init_done(void);
|
|
|
|
void gfx_set_init_done(int done);
|
|
|
|
|
2020-02-24 16:08:35 +01:00
|
|
|
/*
|
|
|
|
* Determine if the platform is resuming from suspend. Returns 0 when
|
|
|
|
* not resuming, > 0 if resuming, and < 0 on error.
|
|
|
|
*/
|
|
|
|
int platform_is_resuming(void);
|
|
|
|
|
2013-11-28 17:11:49 +01:00
|
|
|
#endif /* __BOOTMODE_H__ */
|