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
|
Rev | Line | |
---|
[111] | 1 | #ifndef _LINUX_FIRMWARE_H
|
---|
| 2 | #define _LINUX_FIRMWARE_H
|
---|
[381] | 3 | #include <linux/module.h>
|
---|
| 4 | #include <linux/types.h>
|
---|
[679] | 5 | #include <linux/errno.h>
|
---|
| 6 |
|
---|
[381] | 7 | #define FIRMWARE_NAME_MAX 30
|
---|
[111] | 8 | struct firmware {
|
---|
[381] | 9 | size_t size;
|
---|
| 10 | u8 *data;
|
---|
[111] | 11 | };
|
---|
[381] | 12 | struct device;
|
---|
| 13 | int request_firmware(const struct firmware **fw, const char *name,
|
---|
| 14 | struct device *device);
|
---|
[679] | 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 | }
|
---|
[111] | 22 |
|
---|
[381] | 23 | void release_firmware(const struct firmware *fw);
|
---|
| 24 | void register_firmware(const char *name, const u8 *data, size_t size);
|
---|
[111] | 25 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.