summaryrefslogtreecommitdiffstats
path: root/Src/osmocombb/src/target/firmware/include/flash/cfi_flash.h
diff options
context:
space:
mode:
authorTom2011-08-16 15:41:46 +0200
committerTom2011-08-16 15:41:46 +0200
commitf910171deda0933e506cf3ffc216ee8daa418c24 (patch)
treedddee7cdad41fc4f3d8c1de95148d0a2daac1193 /Src/osmocombb/src/target/firmware/include/flash/cfi_flash.h
parentanother system info 2 description (diff)
downloadimsi-catcher-detection-f910171deda0933e506cf3ffc216ee8daa418c24.tar.gz
imsi-catcher-detection-f910171deda0933e506cf3ffc216ee8daa418c24.tar.xz
imsi-catcher-detection-f910171deda0933e506cf3ffc216ee8daa418c24.zip
corrected spelling mistake and added 2 new papers for gsm specs
Diffstat (limited to 'Src/osmocombb/src/target/firmware/include/flash/cfi_flash.h')
-rw-r--r--Src/osmocombb/src/target/firmware/include/flash/cfi_flash.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/Src/osmocombb/src/target/firmware/include/flash/cfi_flash.h b/Src/osmocombb/src/target/firmware/include/flash/cfi_flash.h
deleted file mode 100644
index 9d8b33a..0000000
--- a/Src/osmocombb/src/target/firmware/include/flash/cfi_flash.h
+++ /dev/null
@@ -1,41 +0,0 @@
-
-#ifndef _CFI_FLASH_H
-#define _CFI_FLASH_H
-
-#include <stdint.h>
-
-#define FLASH_MAX_REGIONS 4
-
-typedef struct {
- void *fr_base;
- size_t fr_bnum;
- size_t fr_bsize;
-} flash_region_t;
-
-typedef struct {
- void *f_base;
- size_t f_size;
-
- size_t f_nregions;
- flash_region_t f_regions[FLASH_MAX_REGIONS];
-} flash_t;
-
-typedef enum {
- FLASH_UNLOCKED = 0,
- FLASH_LOCKED,
- FLASH_LOCKED_DOWN
-} flash_lock_t;
-
-int flash_init(flash_t *flash, void *base_addr);
-
-flash_lock_t flash_block_getlock(flash_t *flash, uint32_t block_offset);
-
-int flash_block_unlock(flash_t *flash, uint32_t block_offset);
-int flash_block_lock(flash_t *flash, uint32_t block_offset);
-int flash_block_lockdown(flash_t *flash, uint32_t block_offset);
-
-int flash_block_erase(flash_t *flash, uint32_t block_offset);
-
-int flash_program(flash_t *flash, uint32_t dst_offset, void *src, uint32_t nbytes);
-
-#endif