Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[wrt350n-kernel.git] / include / linux / firmware.h
blob4a183e35509433cfba90c362ce245b67e83da1de
1 #ifndef _LINUX_FIRMWARE_H
2 #define _LINUX_FIRMWARE_H
3 #include <linux/module.h>
4 #include <linux/types.h>
5 #define FIRMWARE_NAME_MAX 30
6 #define FW_ACTION_NOHOTPLUG 0
7 #define FW_ACTION_HOTPLUG 1
9 struct firmware {
10 size_t size;
11 u8 *data;
13 <<<<<<< HEAD:include/linux/firmware.h
14 =======
16 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:include/linux/firmware.h
17 struct device;
18 <<<<<<< HEAD:include/linux/firmware.h
19 =======
21 #if defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE)
22 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:include/linux/firmware.h
23 int request_firmware(const struct firmware **fw, const char *name,
24 struct device *device);
25 int request_firmware_nowait(
26 struct module *module, int uevent,
27 const char *name, struct device *device, void *context,
28 void (*cont)(const struct firmware *fw, void *context));
30 void release_firmware(const struct firmware *fw);
31 <<<<<<< HEAD:include/linux/firmware.h
32 =======
33 #else
34 static inline int request_firmware(const struct firmware **fw,
35 const char *name,
36 struct device *device)
38 return -EINVAL;
40 static inline int request_firmware_nowait(
41 struct module *module, int uevent,
42 const char *name, struct device *device, void *context,
43 void (*cont)(const struct firmware *fw, void *context))
45 return -EINVAL;
48 static inline void release_firmware(const struct firmware *fw)
51 #endif
53 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:include/linux/firmware.h
54 #endif