Release 4.7 include/linux/firmware.h
#ifndef _LINUX_FIRMWARE_H
#define _LINUX_FIRMWARE_H
#include <linux/types.h>
#include <linux/compiler.h>
#include <linux/gfp.h>
#define FW_ACTION_NOHOTPLUG 0
#define FW_ACTION_HOTPLUG 1
struct firmware {
size_t size;
const u8 *data;
struct page **pages;
/* firmware loader private fields */
void *priv;
};
struct module;
struct device;
struct builtin_fw {
char *name;
void *data;
unsigned long size;
};
/* We have to play tricks here much like stringify() to get the
__COUNTER__ macro to be expanded as we want it */
#define __fw_concat1(x, y) x##y
#define __fw_concat(x, y) __fw_concat1(x, y)
#define DECLARE_BUILTIN_FIRMWARE(name, blob) \
DECLARE_BUILTIN_FIRMWARE_SIZE(name, &(blob), sizeof(blob))
#define DECLARE_BUILTIN_FIRMWARE_SIZE(name, blob, size) \
static const struct builtin_fw __fw_concat(__builtin_fw,__COUNTER__) \
__used __section(.builtin_fw) = { name, blob, size }
#if defined(CONFIG_FW_LOADER) || (defined(CONFIG_FW_LOADER_MODULE) && defined(MODULE))
int request_firmware(const struct firmware **fw, const char *name,
struct device *device);
int request_firmware_nowait(
struct module *module, bool uevent,
const char *name, struct device *device, gfp_t gfp, void *context,
void (*cont)(const struct firmware *fw, void *context));
int request_firmware_direct(const struct firmware **fw, const char *name,
struct device *device);
void release_firmware(const struct firmware *fw);
#else
static inline int request_firmware(const struct firmware **fw,
const char *name,
struct device *device)
{
return -EINVAL;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
james bottomley | james bottomley | 28 | 100.00% | 1 | 100.00% |
| Total | 28 | 100.00% | 1 | 100.00% |
static inline int request_firmware_nowait(
struct module *module, bool uevent,
const char *name, struct device *device, gfp_t gfp, void *context,
void (*cont)(const struct firmware *fw, void *context))
{
return -EINVAL;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
james bottomley | james bottomley | 49 | 92.45% | 1 | 33.33% |
johannes berg | johannes berg | 3 | 5.66% | 1 | 33.33% |
bob liu | bob liu | 1 | 1.89% | 1 | 33.33% |
| Total | 53 | 100.00% | 3 | 100.00% |
static inline void release_firmware(const struct firmware *fw)
{
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
james bottomley | james bottomley | 12 | 100.00% | 1 | 100.00% |
| Total | 12 | 100.00% | 1 | 100.00% |
static inline int request_firmware_direct(const struct firmware **fw,
const char *name,
struct device *device)
{
return -EINVAL;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
takashi iwai | takashi iwai | 20 | 71.43% | 1 | 50.00% |
luis r. rodriguez | luis r. rodriguez | 8 | 28.57% | 1 | 50.00% |
| Total | 28 | 100.00% | 2 | 100.00% |
#endif
#endif
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
james bottomley | james bottomley | 109 | 30.79% | 2 | 13.33% |
manuel estrada sainz | manuel estrada sainz | 94 | 26.55% | 1 | 6.67% |
david woodhouse | david woodhouse | 68 | 19.21% | 3 | 20.00% |
luis r. rodriguez | luis r. rodriguez | 29 | 8.19% | 1 | 6.67% |
takashi iwai | takashi iwai | 22 | 6.21% | 1 | 6.67% |
abhay salunke | abhay salunke | 9 | 2.54% | 1 | 6.67% |
johannes berg | johannes berg | 9 | 2.54% | 1 | 6.67% |
ming lei | ming lei | 5 | 1.41% | 1 | 6.67% |
al viro | al viro | 3 | 0.85% | 1 | 6.67% |
paul gortmaker | paul gortmaker | 3 | 0.85% | 1 | 6.67% |
bob liu | bob liu | 2 | 0.56% | 1 | 6.67% |
kay sievers | kay sievers | 1 | 0.28% | 1 | 6.67% |
| Total | 354 | 100.00% | 15 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.