diff options
author | root <root@artemis.panaceas.org> | 2015-12-25 15:00:15 +0000 |
---|---|---|
committer | root <root@artemis.panaceas.org> | 2015-12-25 15:00:15 +0000 |
commit | ddd86436f4e3643c04b797f858dab95d5f2e4de9 (patch) | |
tree | bfe7a780cf9a2f4fc33aec32c82e625e79dece1f /backport-include/linux/firmware.h | |
download | backports-3.10.19-1-master.tar.gz backports-3.10.19-1-master.tar.bz2 backports-3.10.19-1-master.zip |
Diffstat (limited to 'backport-include/linux/firmware.h')
-rw-r--r-- | backport-include/linux/firmware.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/backport-include/linux/firmware.h b/backport-include/linux/firmware.h new file mode 100644 index 0000000..8db0953 --- /dev/null +++ b/backport-include/linux/firmware.h @@ -0,0 +1,29 @@ +#ifndef __BACKPORT_LINUX_FIRMWARE_H +#define __BACKPORT_LINUX_FIRMWARE_H +#include_next <linux/firmware.h> +#include <linux/version.h> + +#if defined(CPTCFG_BACKPORT_BUILD_FW_LOADER_MODULE) +#define request_firmware_nowait LINUX_BACKPORT(request_firmware_nowait) +#define request_firmware LINUX_BACKPORT(request_firmware) +#define release_firmware LINUX_BACKPORT(release_firmware) + +int request_firmware(const struct firmware **fw, const char *name, + struct device *device); +int request_firmware_nowait( + struct module *module, int uevent, + const char *name, struct device *device, gfp_t gfp, void *context, + void (*cont)(const struct firmware *fw, void *context)); + +void release_firmware(const struct firmware *fw); +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27) +struct builtin_fw { + char *name; + void *data; + unsigned long size; +}; +#endif + +#endif /* __BACKPORT_LINUX_FIRMWARE_H */ |