Update of /cvsroot/blob/blob/include/blob
In directory usw-pr-cvs1:/tmp/cvs-serv15022/include/blob
Modified Files:
flash.h
Log Message:
Flash update from Chris Hoover. This part only applies the mechanisms.
Also updated the AMD and null flash drivers.
Index: flash.h
===================================================================
RCS file: /cvsroot/blob/blob/include/blob/flash.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- flash.h 2001/10/31 16:38:20 1.7
+++ flash.h 2001/12/28 01:06:12 1.8
@@ -45,8 +45,9 @@
typedef int (*flash_erase_func_t)(u32 *);
typedef int (*flash_write_func_t)(u32 *, const u32 *);
-typedef int (*flash_lock_func_t)(u32 *);
-typedef int (*flash_unlock_func_t)(u32 *);
+typedef int (*flash_lock_block_func_t)(u32 *);
+typedef int (*flash_unlock_block_func_t)(u32 *);
+typedef int (*flash_query_block_lock_func_t)(u32 *);
typedef int (*flash_enable_vpp_func_t)(void);
typedef int (*flash_disable_vpp_func_t)(void);
@@ -55,8 +56,9 @@
flash_erase_func_t erase;
flash_write_func_t write;
- flash_lock_func_t lock;
- flash_unlock_func_t unlock;
+ flash_lock_block_func_t lock_block;
+ flash_unlock_block_func_t unlock_block;
+ flash_query_block_lock_func_t query_block_lock;
flash_enable_vpp_func_t enable_vpp;
flash_disable_vpp_func_t disable_vpp;
@@ -83,6 +85,8 @@
/* exported functions */
int flash_erase_region(u32 *start, u32 nwords);
int flash_write_region(u32 *dst, const u32 *src, u32 nwords);
+int flash_lock_region(u32 *start, u32 nwords);
+int flash_unlock_region(u32 *start, u32 nwords);
#endif
|