diff options
author | codeworkx <codeworkx@cyanogenmod.com> | 2012-09-22 09:48:20 +0200 |
---|---|---|
committer | codeworkx <codeworkx@cyanogenmod.com> | 2012-09-22 14:02:16 +0200 |
commit | 2489007e7d740ccbc3e0a202914e243ad5178787 (patch) | |
tree | b8e6380ea7b1da63474ad68a5dba997e01146043 /drivers/net/wimax_cmc/firmware.h | |
parent | 5f67568eb31e3a813c7c52461dcf66ade15fc2e7 (diff) | |
download | kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.zip kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.tar.gz kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.tar.bz2 |
merge opensource jb u5
Change-Id: I1aaec157aa196f3448eff8636134fce89a814cf2
Diffstat (limited to 'drivers/net/wimax_cmc/firmware.h')
-rw-r--r-- | drivers/net/wimax_cmc/firmware.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/net/wimax_cmc/firmware.h b/drivers/net/wimax_cmc/firmware.h new file mode 100644 index 0000000..862d0d8 --- /dev/null +++ b/drivers/net/wimax_cmc/firmware.h @@ -0,0 +1,29 @@ +/* + * 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 <linux/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); +#endif /* _WIMAX_FIRMWARE_H */ |