Lines Matching defs:sflash
18 * $Id: sflash.c 345826 2012-07-19 06:34:55Z $
30 #include <sflash.h>
39 static struct sflash sflash;
52 struct sflash *
63 bzero(&sflash, sizeof(sflash));
65 sflash.type = sih->cccaps & CC_CAP_FLASH_MASK;
67 switch (sflash.type) {
75 sflash.blocksize = 64 * 1024;
79 sflash.numblocks = 4;
83 sflash.numblocks = 8;
90 sflash.blocksize = 4 * 1024;
91 sflash.numblocks = 16 * 16;
94 sflash.numblocks = 16;
99 sflash.numblocks = 32;
103 sflash.numblocks = 64;
107 sflash.numblocks = 128;
111 sflash.numblocks = 256;
120 sflash.blocksize = 4 * 1024;
127 sflash.numblocks = 16;
131 sflash.numblocks = 16;
135 sflash.numblocks = 32;
139 sflash.numblocks = 32;
143 sflash.numblocks = 64;
147 sflash.numblocks = 64;
151 sflash.numblocks = 128;
155 sflash.numblocks = 128;
159 sflash.numblocks = 128;
163 sflash.numblocks = 256;
167 sflash.numblocks = 256;
171 sflash.numblocks = 512;
175 sflash.numblocks = 1024;
179 sflash.numblocks = 2048;
194 sflash.blocksize = 256;
195 sflash.numblocks = 512;
199 sflash.blocksize = 256;
200 sflash.numblocks = 1024;
204 sflash.blocksize = 256;
205 sflash.numblocks = 2048;
209 sflash.blocksize = 256;
210 sflash.numblocks = 4096;
214 sflash.blocksize = 512;
215 sflash.numblocks = 4096;
219 sflash.blocksize = 512;
220 sflash.numblocks = 8192;
224 sflash.blocksize = 1024;
225 sflash.numblocks = 8192;
231 sflash.size = sflash.blocksize * sflash.numblocks;
232 sflash.phybase = SI_FLASH2;
236 name, sflash.numblocks, sflash.blocksize / 1024,
237 sflash.size / (1024 * 1024));
240 return sflash.size ? &sflash : NULL;
255 if ((offset + len) > sflash.size)
303 if (offset >= sflash.size)
306 switch (sflash.type) {
338 struct sflash *sfl;
354 sfl = &sflash;
430 SFL_MSG(("sflash: pp rejected, ntry: %d,"
455 SFL_MSG(("sflash: pp rejected, ntry: %d, off: %d/%d,"
506 struct sflash *sfl;
513 sfl = &sflash;
543 struct sflash *sfl;
558 sfl = &sflash;