This source file includes following definitions.
- firmware_fallback_sysfs
- kill_pending_fw_fallback_reqs
- fw_fallback_set_cache_timeout
- fw_fallback_set_default_timeout
- register_sysfs_loader
- unregister_sysfs_loader
1
2 #ifndef __FIRMWARE_FALLBACK_H
3 #define __FIRMWARE_FALLBACK_H
4
5 #include <linux/firmware.h>
6 #include <linux/device.h>
7
8 #include "firmware.h"
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 struct firmware_fallback_config {
27 unsigned int force_sysfs_fallback;
28 unsigned int ignore_sysfs_fallback;
29 int old_timeout;
30 int loading_timeout;
31 };
32
33 #ifdef CONFIG_FW_LOADER_USER_HELPER
34 int firmware_fallback_sysfs(struct firmware *fw, const char *name,
35 struct device *device,
36 enum fw_opt opt_flags,
37 int ret);
38 void kill_pending_fw_fallback_reqs(bool only_kill_custom);
39
40 void fw_fallback_set_cache_timeout(void);
41 void fw_fallback_set_default_timeout(void);
42
43 int register_sysfs_loader(void);
44 void unregister_sysfs_loader(void);
45 #else
46 static inline int firmware_fallback_sysfs(struct firmware *fw, const char *name,
47 struct device *device,
48 enum fw_opt opt_flags,
49 int ret)
50 {
51
52 return ret;
53 }
54
55 static inline void kill_pending_fw_fallback_reqs(bool only_kill_custom) { }
56 static inline void fw_fallback_set_cache_timeout(void) { }
57 static inline void fw_fallback_set_default_timeout(void) { }
58
59 static inline int register_sysfs_loader(void)
60 {
61 return 0;
62 }
63
64 static inline void unregister_sysfs_loader(void)
65 {
66 }
67 #endif
68
69 #endif