2013-11-28 17:11:49 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the coreboot project.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
|
|
|
|
*
|
|
|
|
* 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);
|
2015-09-03 11:27:27 +02:00
|
|
|
int get_sw_write_protect_state(void);
|
2013-11-28 17:11:49 +01:00
|
|
|
int get_developer_mode_switch(void);
|
|
|
|
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);
|
2016-11-12 20:09:28 +01:00
|
|
|
void log_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);
|
|
|
|
|
2013-11-28 17:11:49 +01:00
|
|
|
#endif /* __BOOTMODE_H__ */
|