firmware.h 589 B

12345678910111213141516171819202122
  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
  6. #define FW_ACTION_NOHOTPLUG 0
  7. #define FW_ACTION_HOTPLUG 1
  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. int request_firmware_nowait(
  16. struct module *module, int uevent,
  17. const char *name, struct device *device, void *context,
  18. void (*cont)(const struct firmware *fw, void *context));
  19. void release_firmware(const struct firmware *fw);
  20. #endif