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

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 and presubmit warning. 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/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 */
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