mirror of
https://github.com/szehl/ath9k-hmac.git
synced 2025-03-22 12:05:53 +00:00
30 lines
889 B
C
Executable File
30 lines
889 B
C
Executable File
#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 */
|