blob: 8db095331c219ab0c64cd87663666504ec17ca86 [file] [log] [blame]
#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 */