comparison packages/io/flash/current/include/flash_priv.h @ 1749:80232dbac7fb

Flash API clean-ups
author bartv
date Mon, 22 Nov 2004 12:05:55 +0000
parents a221170fac3d
children fac0499dabd6
comparison
equal deleted inserted replaced
1748:6588c38f09cf 1749:80232dbac7fb
54 #ifndef _IO_FLASH_PRIV_H_ 54 #ifndef _IO_FLASH_PRIV_H_
55 #define _IO_FLASH_PRIV_H_ 55 #define _IO_FLASH_PRIV_H_
56 56
57 #include <pkgconf/system.h> 57 #include <pkgconf/system.h>
58 #include <pkgconf/io_flash.h> 58 #include <pkgconf/io_flash.h>
59 #include <cyg/hal/hal_cache.h>
60 #include <cyg/hal/hal_tables.h>
59 61
60 // Forward reference of the device structure 62 // Forward reference of the device structure
61 struct cyg_flash_dev; 63 struct cyg_flash_dev;
62 64
63 // Structure of pointers to functions in the device driver 65 // Structure of pointers to functions in the device driver
84 struct cyg_flash_dev { 86 struct cyg_flash_dev {
85 struct cyg_flash_dev_funs *funs; // Function pointers 87 struct cyg_flash_dev_funs *funs; // Function pointers
86 cyg_flashaddr_t start; // First address 88 cyg_flashaddr_t start; // First address
87 cyg_flashaddr_t end; // Last address 89 cyg_flashaddr_t end; // Last address
88 cyg_uint32 num_block_infos; // Number of entries 90 cyg_uint32 num_block_infos; // Number of entries
89 cyg_block_info_t *block_info; // Info about one block size 91 cyg_flash_block_info_t *block_info; // Info about one block size
90 92
91 void *priv; // Devices private data 93 void *priv; // Devices private data
92 void *config; // Configuration info 94 void *config; // Configuration info
93 95
94 // The following are only written to by the FLASH IO layer. 96 // The following are only written to by the FLASH IO layer.