Release 4.12 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);
int request_firmware_into_buf(const struct firmware **firmware_p,
const char *name, struct device *device, void *buf, size_t size);
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 | 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 | 49 | 92.45% | 1 | 33.33% |
Johannes Berg | 3 | 5.66% | 1 | 33.33% |
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 | 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 | 20 | 71.43% | 1 | 50.00% |
Luis R. Rodriguez | 8 | 28.57% | 1 | 50.00% |
Total | 28 | 100.00% | 2 | 100.00% |
static inline int request_firmware_into_buf(const struct firmware **firmware_p,
const char *name, struct device *device, void *buf, size_t size)
{
return -EINVAL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Stephen Boyd | 35 | 100.00% | 1 | 100.00% |
Total | 35 | 100.00% | 1 | 100.00% |
#endif
#endif
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
James Bottomley | 109 | 26.14% | 2 | 12.50% |
Manuel Estrada Sainz | 94 | 22.54% | 1 | 6.25% |
David Woodhouse | 68 | 16.31% | 3 | 18.75% |
Stephen Boyd | 63 | 15.11% | 1 | 6.25% |
Luis R. Rodriguez | 29 | 6.95% | 1 | 6.25% |
Takashi Iwai | 22 | 5.28% | 1 | 6.25% |
Abhay Salunke | 9 | 2.16% | 1 | 6.25% |
Johannes Berg | 9 | 2.16% | 1 | 6.25% |
Ming Lei | 5 | 1.20% | 1 | 6.25% |
Al Viro | 3 | 0.72% | 1 | 6.25% |
Paul Gortmaker | 3 | 0.72% | 1 | 6.25% |
Bob Liu | 2 | 0.48% | 1 | 6.25% |
Kay Sievers | 1 | 0.24% | 1 | 6.25% |
Total | 417 | 100.00% | 16 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.