Update of /cvsroot/blob/blob/include/blob
In directory usw-pr-cvs1:/tmp/cvs-serv31353/include/blob
Modified Files:
flash.h
Log Message:
Flesh out the lock/unlock and query lock functions.
Add some more comments to the header file.
Index: flash.h
===================================================================
RCS file: /cvsroot/blob/blob/include/blob/flash.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- flash.h 2001/12/28 01:06:12 1.8
+++ flash.h 2001/12/31 00:28:53 1.9
@@ -53,6 +53,8 @@
typedef struct {
+ /* the following functions should be implemented by all flash
+ * drivers*/
flash_erase_func_t erase;
flash_write_func_t write;
@@ -60,6 +62,9 @@
flash_unlock_block_func_t unlock_block;
flash_query_block_lock_func_t query_block_lock;
+ /* this is platform specific, so it should be implemented by
+ * the platform specific code. a flash driver can leave these
+ * functions unimplemented, blob will safely work around it */
flash_enable_vpp_func_t enable_vpp;
flash_disable_vpp_func_t disable_vpp;
} flash_driver_t;
@@ -87,6 +92,7 @@
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);
+int flash_query_region(u32 *start, u32 nwords);
#endif
|