Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _LINUX_FIRMWARE_H |
| 2 | #define _LINUX_FIRMWARE_H |
| 3 | #include <linux/module.h> |
| 4 | #include <linux/types.h> |
| 5 | #define FIRMWARE_NAME_MAX 30 |
Abhay Salunke | 6e3eaab | 2005-09-06 15:17:13 -0700 | [diff] [blame^] | 6 | #define FW_ACTION_NOHOTPLUG 0 |
| 7 | #define FW_ACTION_HOTPLUG 1 |
| 8 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | struct firmware { |
| 10 | size_t size; |
| 11 | u8 *data; |
| 12 | }; |
| 13 | struct device; |
| 14 | int request_firmware(const struct firmware **fw, const char *name, |
| 15 | struct device *device); |
| 16 | int request_firmware_nowait( |
Abhay Salunke | 6e3eaab | 2005-09-06 15:17:13 -0700 | [diff] [blame^] | 17 | struct module *module, int hotplug, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | const char *name, struct device *device, void *context, |
| 19 | void (*cont)(const struct firmware *fw, void *context)); |
| 20 | |
| 21 | void release_firmware(const struct firmware *fw); |
| 22 | void register_firmware(const char *name, const u8 *data, size_t size); |
| 23 | #endif |