aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax_cmc/firmware.h
blob: 96293442dce73cdb45ce2d059af7e523b82ee88c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * firmware.h
 *
 * functions for Linux filesystem access
 * Firmware binary file is on the filesystem, read fild and send it through SDIO
 */
#ifndef _WIMAX_FIRMWARE_H
#define _WIMAX_FIRMWARE_H

#include <linux/fs.h>
#include <linux/file.h>
#include <asm/uaccess.h>

#define SEEK_SET	0
#define SEEK_CUR	1
#define SEEK_END	2

/******************************************************************************
 *                          Function Prototypes
 ******************************************************************************/
struct file *klib_fopen (const char *filename, int flags, int mode);
void klib_fclose (struct file *filp);
int klib_fseek (struct file *filp, int offset, int whence);
int klib_fread (char *buf, int len, struct file *filp);
int klib_fgetc (struct file *filp);
int klib_flength (struct file *filp);
int klib_flen_fcopy (char *buf, int len, struct file *filp);
int klib_fwrite (char *buf, int len, struct file *filp);

void s3c_bat_use_wimax(int onoff);
#endif	/* _WIMAX_FIRMWARE_H */