blob: aca63e3c4b5b6109b04fc5ab0173271064d678f3 [file] [log] [blame]
David Kilroy37a2e562009-02-04 23:05:52 +00001/* Firmware file reading and download helpers
2 *
3 * See copyright notice in main.c
4 */
5#ifndef _ORINOCO_FW_H_
6#define _ORINOCO_FW_H_
7
8/* Forward declations */
9struct orinoco_private;
10
11int orinoco_download(struct orinoco_private *priv);
12
Andrey Borzenkov2bfc5cb2009-02-28 23:09:09 +030013#if defined(CONFIG_HERMES_CACHE_FW_ON_INIT) || defined(CONFIG_PM_SLEEP)
David Kilroy37a2e562009-02-04 23:05:52 +000014void orinoco_cache_fw(struct orinoco_private *priv, int ap);
15void orinoco_uncache_fw(struct orinoco_private *priv);
Andrey Borzenkov2bfc5cb2009-02-28 23:09:09 +030016#else
Pavel Roskin933d5942011-07-13 11:19:57 -040017#define orinoco_cache_fw(priv, ap) do { } while (0)
Andrey Borzenkov2bfc5cb2009-02-28 23:09:09 +030018#define orinoco_uncache_fw(priv) do { } while (0)
19#endif
David Kilroy37a2e562009-02-04 23:05:52 +000020
21#endif /* _ORINOCO_FW_H_ */