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