set dev usb
[cascardo/linux.git] / include / linux / chromeos_platform.h
1 #ifndef _LINUX_CHROMEOS_PLATFORM_H
2 #define _LINUX_CHROMEOS_PLATFORM_H
3
4 #include <linux/errno.h>
5 #include <linux/types.h>
6
7 #ifdef CONFIG_CHROMEOS
8 /*
9  * ChromeOS platform support code. Glue layer between higher level functions
10  * and per-platform firmware interfaces.
11  */
12
13 /*
14  * Set the taint bit telling firmware that the currently running side needs
15  * recovery (or reinstall).
16  */
17 extern int chromeos_set_need_recovery(void);
18 extern int chromeos_set_dev_usb(void);
19
20 #else
21
22 static inline int chromeos_set_need_recovery(void)
23 {
24         return -ENODEV;
25 }
26
27 static inline int chromeos_set_dev_usb(void)
28 {
29         return -ENODEV;
30 }
31 #endif /* CONFIG_CHROMEOS */
32
33 #endif /* _LINUX_CHROMEOS_PLATFORM_H */