OLD | NEW |
---|---|
1 #ifndef _LINUX_CHROMEOS_PLATFORM_H | 1 #ifndef _LINUX_CHROMEOS_PLATFORM_H |
2 #define _LINUX_CHROMEOS_PLATFORM_H | 2 #define _LINUX_CHROMEOS_PLATFORM_H |
3 | 3 |
4 #include <linux/types.h> | 4 #include <linux/types.h> |
5 | 5 |
6 #ifdef CONFIG_CHROMEOS | 6 #ifdef CONFIG_CHROMEOS |
7 /* | 7 /* |
8 * ChromeOS platform support code. Glue layer between higher level functions | 8 * ChromeOS platform support code. Glue layer between higher level functions |
9 * and per-platform firmware interfaces. | 9 * and per-platform firmware interfaces. |
10 */ | 10 */ |
11 | 11 |
12 /* Checks whether ChromeOS platform was detected and initialized */ | 12 /* Checks whether ChromeOS platform was detected and initialized */ |
13 extern bool chromeos_initialized(void); | 13 extern bool chromeos_initialized(void); |
14 | 14 |
15 /* Checks to see if the current device is in devmode */ | 15 /* Checks to see if the current device is in devmode */ |
16 extern bool chromeos_is_devmode(void); | 16 extern bool chromeos_is_devmode(void); |
17 | 17 |
18 /* | 18 /* |
19 * Set the taint bit telling firmware that the currently running side needs | 19 * Set the taint bit telling firmware that the currently running side needs |
20 * recovery (or reinstall). | 20 * recovery (or reinstall). |
21 */ | 21 */ |
22 extern int chromeos_set_need_recovery(void); | 22 extern int chromeos_set_need_recovery(void); |
23 | 23 |
24 #else | 24 #else |
25 | |
26 #include <linux/errno.h> | |
Olof Johansson
2011/03/15 17:05:09
All includes should be done at the top of the file
| |
27 | |
25 /* Stubbed-out versions so we can keep code common */ | 28 /* Stubbed-out versions so we can keep code common */ |
26 static inline bool chromeos_initialized(void) | 29 static inline bool chromeos_initialized(void) |
27 { | 30 { |
28 return false; | 31 return false; |
29 } | 32 } |
30 | 33 |
31 static inline bool chromeos_is_devmode(void) | 34 static inline bool chromeos_is_devmode(void) |
32 { | 35 { |
33 return true; | 36 return true; |
34 } | 37 } |
35 | 38 |
36 static inline int chromeos_set_need_recovery(void) | 39 static inline int chromeos_set_need_recovery(void) |
37 { | 40 { |
38 return -ENODEV; | 41 return -ENODEV; |
39 } | 42 } |
40 #endif /* CONFIG_CHROMEOS */ | 43 #endif /* CONFIG_CHROMEOS */ |
41 | 44 |
42 #endif /* _LINUX_CHROMEOS_PLATFORM_H */ | 45 #endif /* _LINUX_CHROMEOS_PLATFORM_H */ |
OLD | NEW |