stoneyridge: Enable legacy IO
[coreboot.git] / src / include / bootmode.h
blob5650b3d27170c95eea2a1682eb57e1e4594d31f5
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #ifndef __BOOTMODE_H__
17 #define __BOOTMODE_H__
19 /* functions implemented per mainboard: */
20 void init_bootmode_straps(void);
21 int get_write_protect_state(void);
22 int get_developer_mode_switch(void);
23 int get_recovery_mode_switch(void);
24 int get_recovery_mode_retrain_switch(void);
25 int clear_recovery_mode_switch(void);
26 void log_recovery_mode_switch(void);
27 int get_wipeout_mode_switch(void);
28 int get_lid_switch(void);
30 /* Return 1 if display initialization is required. 0 if not. */
31 int display_init_required(void);
32 int gfx_get_init_done(void);
33 void gfx_set_init_done(int done);
35 #endif /* __BOOTMODE_H__ */