comparison gsm-fw/services/ffs/cfgffs.c @ 218:fee45482aa2a

FFS: hopefully-correct initialization for the FFS_IN_RAM configuration
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 06 Jan 2014 08:43:35 +0000
parents 1d87b335fc50
children 4d706a4134b0
comparison
equal deleted inserted replaced
217:30a173257f4a 218:fee45482aa2a
19 extern struct block_info_s ramffs_block_info[RAMFFS_NBLOCKS]; 19 extern struct block_info_s ramffs_block_info[RAMFFS_NBLOCKS];
20 20
21 struct dev_s dev = { 21 struct dev_s dev = {
22 .base = _RAMFFS_area, 22 .base = _RAMFFS_area,
23 .binfo = ramffs_block_info, 23 .binfo = ramffs_block_info,
24 .manufact = MANUFACT_RAM,
24 .blocksize = RAMFFS_BLKSIZE_BYTES, 25 .blocksize = RAMFFS_BLKSIZE_BYTES,
25 .blocksize_ld = RAMFFS_BLKSIZE_LOG2, 26 .blocksize_ld = RAMFFS_BLKSIZE_LOG2,
26 .driver = FFS_DRIVER_RAM, 27 .driver = FFS_DRIVER_RAM,
27 .numblocks = RAMFFS_NBLOCKS, 28 .numblocks = RAMFFS_NBLOCKS,
28 }; 29 };
40 }; 41 };
41 42
42 struct dev_s dev = { 43 struct dev_s dev = {
43 .base = (char *) 0x380000, 44 .base = (char *) 0x380000,
44 .binfo = mokoffs_blocks, 45 .binfo = mokoffs_blocks,
46 .manufact = MANUFACT_SAMSUNG,
47 .device = 0x22A0,
45 .blocksize = 0x10000, 48 .blocksize = 0x10000,
46 .blocksize_ld = 16, 49 .blocksize_ld = 16,
47 .driver = FFS_DRIVER_AMD, 50 .driver = FFS_DRIVER_AMD,
48 .numblocks = 7, 51 .numblocks = 7,
49 }; 52 };
63 }; 66 };
64 67
65 struct dev_s dev = { 68 struct dev_s dev = {
66 .base = (char *) FLASH2_BASE_ADDR, 69 .base = (char *) FLASH2_BASE_ADDR,
67 .binfo = pirhack_ffs_blocks, 70 .binfo = pirhack_ffs_blocks,
71 .manufact = MANUFACT_AMD,
68 .blocksize = 0x40000, 72 .blocksize = 0x40000,
69 .blocksize_ld = 18, 73 .blocksize_ld = 18,
70 .driver = FFS_DRIVER_AMD, 74 .driver = FFS_DRIVER_AMD,
71 .numblocks = 7, 75 .numblocks = 7,
72 }; 76 };