plan 9 kernel history: overview | file list | diff list

2000/1211/bitsy/devflash.c (diff list | history)

2000/1209/sys/src/9/bitsy/devflash.c:653,6672000/1211/sys/src/9/bitsy/devflash.c:653,669 (short | long | prev | next)
2000/1209    
 *  the flash spec claimes writing goes faster if we use 
2000/1117    
 *  the write buffer.  We fill the write buffer and then 
 *  issue the write request.  After the write request, 
 *  subsequent reads will yield the status register or, 
 *  since error bits are sticky, another write buffer can 
 *  be filled and written. 
2000/1211    
 *  subsequent reads will yield the status register. 
2000/1117    
 * 
 *  On timeout, we issue a read status register request so 
 *  that the status register can be read no matter how we 
 *  exit. 
2000/1211    
 *  returns the status, even on timeouts. 
2000/1209    
 * 
 *  returns the status. 
2000/1211    
 *  NOTE: I tried starting back to back buffered writes 
 *	without reading the status in between, as the 
 *	flowchart in the intel data sheet suggests. 
 *	However, it always responded with an illegal 
 *	command sequence, so I must be missing something. 
 *	If someone learns better, please email me, though 
 *	I doubt it will be much faster. -  presotto@bell-labs.com 
2000/1117    
 */ 
2000/1209    
static ulong 
ise_wbwrite(ulong *p, int n, ulong off, ulong baddr, ulong *status) 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)