FreeCalypso > hg > fc-magnetite
annotate src/cs/drivers/drv_app/ffs/ffs_pool_size.h @ 606:de936aea260a
FFS: added Multi-ID support for Samsung flash chips
needed for GTM900 target support
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 17 Jun 2019 19:23:57 +0000 |
parents | 92dbfa906f66 |
children |
rev | line source |
---|---|
0
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /** |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * @file ffs_pool_size.h |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 * Declarations of: |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 * - the memory bank sizes and their watermark |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 * - the SWE stack size |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 * - the pool size needed (generally the sum of memory bank and stack sizes) |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 * |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 * @author Vincent Oberle |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 * @version 0.1 |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 */ |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 /* |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 * History: |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 * |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 * Date Author Modification |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 * ------------------------------------------------------------------- |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 * 07/08/2003 Vincent Oberle Extracted from rvf_pool_size.h |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 * 09/03/2004 Tommy Jensen Split pool size into several defines |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 * |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 * (C) Copyright 2003 by Texas Instruments Incorporated, All Rights Reserved |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 */ |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 #ifndef __FFS_POOL_SIZE_H_ |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 #define __FFS_POOL_SIZE_H_ |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 #ifndef _WINDOWS |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 #include "config/swconfig.cfg" |
602
92dbfa906f66
fc-target.cfg config header renamed to more sensible fc-target.h
Mychaela Falconia <falcon@freecalypso.org>
parents:
224
diff
changeset
|
30 #include "config/fc-target.h" |
0
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 #endif |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 #include "rv/rv_defined_swe.h" |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 /* |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 * Values used in ffs_env.h |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 */ |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 #define FFS_STACK_SIZE (1024) |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 #define FFS_MAILBUF_SIZE (1024) // Default: Max 20 pending FFS mails. |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 #define FFS_TESTBUF_SIZE (0) // Must be set to zero |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 |
224
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
42 #if defined(CONFIG_TARGET_FCFAM) || defined(CONFIG_TARGET_PIRELLI) |
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
43 |
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
44 /* large flash, large FFS */ |
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
45 |
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
46 #ifdef RVM_MSFE_SWE |
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
47 #define FFS_STREAMBUF_SIZE (163840) |
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
48 #else |
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
49 #define FFS_STREAMBUF_SIZE (32768) |
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
50 #endif // RVM_MSFE_SWE |
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
51 |
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
52 #else |
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
53 |
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
54 /* traditional small FFS */ |
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
55 |
0
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 #ifdef RVM_MSFE_SWE |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 #define FFS_STREAMBUF_SIZE (40960) |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 #else |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 #define FFS_STREAMBUF_SIZE (8192) |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 #endif // RVM_MSFE_SWE |
224
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
61 |
08543d6806b0
FFS RVF pool size has to be increased for targets with large FFS
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
62 #endif |
0
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 #define FFS_MB1_SIZE (FFS_STREAMBUF_SIZE + FFS_MAILBUF_SIZE + FFS_TESTBUF_SIZE) |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 #define FFS_POOL_SIZE (FFS_STACK_SIZE + FFS_MB1_SIZE) |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 |
945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 #endif /*__FFS_POOL_SIZE_H_*/ |