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
|
---|
8 | struct firmware {
|
---|
9 | size_t size;
|
---|
10 | u8 *data;
|
---|
11 | };
|
---|
12 | struct device;
|
---|
13 | int request_firmware(const struct firmware **fw, const char *name,
|
---|
14 | struct device *device);
|
---|
15 | static 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 |
|
---|
23 | void release_firmware(const struct firmware *fw);
|
---|
24 | void register_firmware(const char *name, const u8 *data, size_t size);
|
---|
25 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.