Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Side by Side Diff: include/linux/chromeos_platform.h

Issue 6690023: CHROMIUMOS: chromeos_acpi: Introduce ability to handle buffers. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/kernel.git@master
Patch Set: Address review comments Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « drivers/platform/x86/chromeos_acpi.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 */
OLDNEW
« no previous file with comments | « drivers/platform/x86/chromeos_acpi.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698