source: GPL/trunk/include/linux/firmware.h

Last change on this file was 679, checked in by David Azarewicz, 4 years ago

Merge changes from Paul's uniaud32next branch.

File size: 673 bytes
Line 
1#ifndef _LINUX_FIRMWARE_H
2#define _LINUX_FIRMWARE_H
3#include <linux/module.h>
4#include <linux/types.h>
5#include <linux/errno.h>
6
7#define FIRMWARE_NAME_MAX 30
8struct firmware {
9 size_t size;
10 u8 *data;
11};
12struct device;
13int request_firmware(const struct firmware **fw, const char *name,
14 struct device *device);
15static inline int request_firmware_nowait(
16 struct module *module, bool uevent,
17 const char *name, struct device *device, gfp_t gfp, void *context,
18 void (*cont)(const struct firmware *fw, void *context))
19{
20 return -EINVAL;
21}
22
23void release_firmware(const struct firmware *fw);
24void register_firmware(const char *name, const u8 *data, size_t size);
25#endif
Note: See TracBrowser for help on using the repository browser.