diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/shared/flash/flash.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/shared/flash/flash.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/flash/flash.c b/c/src/lib/libbsp/powerpc/shared/flash/flash.c index 02558dccb0..687c533489 100644 --- a/c/src/lib/libbsp/powerpc/shared/flash/flash.c +++ b/c/src/lib/libbsp/powerpc/shared/flash/flash.c @@ -28,19 +28,19 @@ * and other combinations are untested. */ -/* +/* * Authorship * ---------- * This software was created by * Till Straumann <strauman@slac.stanford.edu>, 2005-2007, * Stanford Linear Accelerator Center, Stanford University. - * + * * Acknowledgement of sponsorship * ------------------------------ * The software was produced by * the Stanford Linear Accelerator Center, Stanford University, * under Contract DE-AC03-76SFO0515 with the Department of Energy. - * + * * Government disclaimer of liability * ---------------------------------- * Neither the United States nor the United States Department of Energy, @@ -49,18 +49,18 @@ * completeness, or usefulness of any data, apparatus, product, or process * disclosed, or represents that its use would not infringe privately owned * rights. - * + * * Stanford disclaimer of liability * -------------------------------- * Stanford University makes no representations or warranties, express or * implied, nor assumes any liability for the use of this software. - * + * * Stanford disclaimer of copyright * -------------------------------- * Stanford University, owner of the copyright, hereby disclaims its * copyright and all other rights in this software. Hence, anyone may - * freely use it for any purpose without restriction. - * + * freely use it for any purpose without restriction. + * * Maintenance of notices * ---------------------- * In the interest of clarity regarding the origin and status of this @@ -69,9 +69,9 @@ * or distributed by the recipient and are to be affixed to any copy of * software made or distributed by the recipient that contains a copy or * derivative of this software. - * + * * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03 - */ + */ #ifndef TESTING #include <rtems.h> #include <bsp/flashPgm.h> @@ -331,7 +331,7 @@ bail: * This is not really clean since (until we implement CFI) * we already need to know what kind of device it is to * be able to read its ID... - * + * * NOTES: - device switched back to array mode on exit. * - 'addr' must be 32-bit aligned. */ @@ -390,7 +390,7 @@ struct devdesc *dd; /* Scan address range for flash devices and compute total size * of bank. - * + * * RETURNS: size in bytes. */ STATIC uint32_t @@ -573,7 +573,7 @@ uint32_t a,e; if ( quiet < 2 ) { printf("ERASING "); fflush(stdout); } - + if ( (i = BSP_flashErase(bank, a, e-a, quiet ? quiet : 1)) ) return i; @@ -719,7 +719,7 @@ int f; if ( quiet < 2 ) { f = flip(f); } - + a += b->fblksz; size -= b->fblksz; } @@ -787,7 +787,7 @@ unsigned f = 0; perror("Opening file"); return -1; } - + if ( sz ) break; |