Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
firmware.c File Reference
#include <linux/sched.h>
#include <linux/firmware.h>
#include <linux/module.h>
#include "dev.h"
#include "decl.h"

Go to the source code of this file.

Functions

void lbs_wait_for_firmware_load (struct lbs_private *priv)
 
int lbs_get_firmware_async (struct lbs_private *priv, struct device *device, u32 card_model, const struct lbs_fw_table *fw_table, lbs_fw_cb callback)
 
 EXPORT_SYMBOL_GPL (lbs_get_firmware_async)
 
int lbs_get_firmware (struct device *dev, u32 card_model, const struct lbs_fw_table *fw_table, const struct firmware **helper, const struct firmware **mainfw)
 
 EXPORT_SYMBOL_GPL (lbs_get_firmware)
 

Function Documentation

EXPORT_SYMBOL_GPL ( lbs_get_firmware_async  )
EXPORT_SYMBOL_GPL ( lbs_get_firmware  )
int lbs_get_firmware ( struct device dev,
u32  card_model,
const struct lbs_fw_table fw_table,
const struct firmware **  helper,
const struct firmware **  mainfw 
)

lbs_get_firmware - Retrieves two-stage firmware

: A pointer to &device structure : Bus-specific card model ID used to filter firmware table elements : Table of firmware file names and device model numbers terminated by an entry with a NULL helper name : On success, the helper firmware; caller must free : On success, the main firmware; caller must free

Deprecated: use lbs_get_firmware_async() instead.

returns: 0 on success, non-zero on failure

Definition at line 166 of file firmware.c.

int lbs_get_firmware_async ( struct lbs_private priv,
struct device device,
u32  card_model,
const struct lbs_fw_table fw_table,
lbs_fw_cb  callback 
)

lbs_get_firmware_async - Retrieves firmware asynchronously. Can load either a helper firmware and a main firmware (2-stage), or just the helper.

: Pointer to lbs_private instance : A pointer to &device structure : Bus-specific card model ID used to filter firmware table elements : Table of firmware file names and device model numbers terminated by an entry with a NULL helper name : User callback to invoke when firmware load succeeds or fails.

Definition at line 125 of file firmware.c.

void lbs_wait_for_firmware_load ( struct lbs_private priv)

Definition at line 108 of file firmware.c.