Ignore:
Timestamp:
Sep 27, 2008, 11:09:10 AM (17 years ago)
Author:
Paul Smedley
Message:

Add missing functions to load firmware + cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-2.0/include/linux/firmware.h

    r305 r381  
    11#ifndef _LINUX_FIRMWARE_H
    22#define _LINUX_FIRMWARE_H
    3 #define FIRMWARE_NAME_MAX 30
     3#include <linux/module.h>
     4#include <linux/types.h>
     5#define FIRMWARE_NAME_MAX 30
     6struct firmware {
     7        size_t size;
     8        u8 *data;
     9};
     10struct device;
     11int request_firmware(const struct firmware **fw, const char *name,
     12                     struct device *device);
     13int request_firmware_nowait(
     14        struct module *module,
     15        const char *name, struct device *device, void *context,
     16        void (*cont)(const struct firmware *fw, void *context));
    417
    5 struct firmware {
    6         unsigned int size;
    7         unsigned char *data;
    8 };
    9 
    10 int snd_compat_request_firmware(const struct firmware **fw, const char *name);
    11 void snd_compat_release_firmware(const struct firmware *fw);
    12 
    13 #define request_firmware(fw, name, device) snd_compat_request_firmware(fw, name)
    14 #define release_firmware(fw) snd_compat_release_firmware(fw)
    15 
    16 #define NEEDS_COMPAT_FW_LOADER
    17 
     18void release_firmware(const struct firmware *fw);
     19void register_firmware(const char *name, const u8 *data, size_t size);
    1820#endif
Note: See TracChangeset for help on using the changeset viewer.