Mercurial > flash_v2
comparison packages/devs/flash/synthv2/current/include/synth.h @ 1756:2f4e31c45a45
Update following changes to the flash device driver interface
| author | bartv |
|---|---|
| date | Mon, 22 Nov 2004 20:54:04 +0000 |
| parents | 80232dbac7fb |
| children | 96ec7e534d98 |
comparison
equal
deleted
inserted
replaced
| 1755:21fc12d67292 | 1756:2f4e31c45a45 |
|---|---|
| 52 // | 52 // |
| 53 //========================================================================== | 53 //========================================================================== |
| 54 | 54 |
| 55 #include <cyg/io/flash_priv.h> | 55 #include <cyg/io/flash_priv.h> |
| 56 | 56 |
| 57 // Structure of configuration parameters | 57 // Structure of data private to each flash device |
| 58 struct cyg_flash_synth_config | 58 struct cyg_flash_synth_priv |
| 59 { | 59 { |
| 60 size_t block_size; | 60 // Configuration parameters, |
| 61 cyg_uint32 blocks; | 61 size_t block_size; |
| 62 size_t boot_block_size; | 62 cyg_uint32 blocks; |
| 63 cyg_uint32 boot_blocks; | 63 size_t boot_block_size; |
| 64 cyg_bool boot_block_bottom; | 64 cyg_uint32 boot_blocks; |
| 65 char * filename; | 65 cyg_bool boot_block_bottom; |
| 66 char * filename; | |
| 67 // Run-time data | |
| 68 int flashfd; | |
| 69 // Space for the block layout | |
| 70 struct cyg_flash_block_info block_info[2]; | |
| 66 }; | 71 }; |
| 67 | 72 |
| 68 // Structure of data private to the drive | 73 extern const struct cyg_flash_dev_funs cyg_flash_synth_funs; |
| 69 struct cyg_flash_synth_priv | |
| 70 { | |
| 71 int flashfd; | |
| 72 struct cyg_flash_block_info block_info[2]; | |
| 73 }; | |
| 74 | |
| 75 extern struct cyg_flash_dev_funs cyg_flash_synth_funs; | |
| 76 | 74 |
| 77 #endif | 75 #endif |
| 78 | 76 |
| 79 | 77 |
