This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
V2 flash - strata_v2 driver update
- From: Bart Veer <bartv at ecoscentric dot com>
- To: ecos-patches at ecos dot sourceware dot org
- Date: Mon, 22 Nov 2004 20:16:51 +0000 (GMT)
- Subject: V2 flash - strata_v2 driver update
This updates the strata driver as per the device driver interface
changes. It appears that none of the targets currently use the V2
strata driver, and the driver works differently from the legacy one
so I could not easily tweak a target that uses the legacy driver.
Hence these changes are completely untested.
Bart
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/intel/stratav2/current/Attic/ChangeLog,v
retrieving revision 1.1.2.6
diff -u -r1.1.2.6 ChangeLog
--- ChangeLog 22 Nov 2004 12:06:08 -0000 1.1.2.6
+++ ChangeLog 22 Nov 2004 20:15:57 -0000
@@ -1,5 +1,7 @@
2004-11-22 Bart Veer <bartv@ecoscentric.com>
+ * include/flash_strata_v2.inl: adjust const parameters as per
+ change to generic flash package
* include/flash_strata_v2.inl: rename cyg_block_info to
cyg_flash_block_info
Index: include/flash_strata_v2.inl
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/intel/stratav2/current/include/Attic/flash_strata_v2.inl,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 flash_strata_v2.inl
--- include/flash_strata_v2.inl 22 Nov 2004 12:06:08 -0000 1.1.2.5
+++ include/flash_strata_v2.inl 22 Nov 2004 20:16:19 -0000
@@ -86,17 +86,17 @@
// in RAM.
static size_t
strata_query_hwr (struct cyg_flash_dev *dev, void * data,
- const size_t len)
+ size_t len)
__attribute__ ((section (".2ram.flash_query")));
static int strata_erase_block (struct cyg_flash_dev *dev,
- const cyg_flashaddr_t block)
+ cyg_flashaddr_t block)
__attribute__ ((section (".2ram.flash_erase_block")));
static int strata_program_buf (struct cyg_flash_dev *dev,
cyg_flashaddr_t base,
const void* data,
- const size_t len)
+ size_t len)
__attribute__ ((section (".2ram.flash_program_buf")));
#ifdef CYGOPT_DEVS_FLASH_STRATA_V2_LOCKING
@@ -232,7 +232,7 @@
#define CNT 20*1000*10 // Approx 20ms
static size_t
-strata_query_hwr (struct cyg_flash_dev *dev, void *data_dst, const size_t len)
+strata_query_hwr (struct cyg_flash_dev *dev, void *data_dst, size_t len)
{
volatile flash_t *ROM;
int i, cnt;
@@ -272,7 +272,7 @@
//----------------------------------------------------------------------------
static int strata_erase_block (struct cyg_flash_dev *dev,
- const cyg_flashaddr_t block_base)
+ cyg_flashaddr_t block_base)
{
volatile flash_t *ROM;
flash_t stat = 0;
@@ -335,7 +335,7 @@
strata_program_buf (struct cyg_flash_dev *dev,
cyg_flashaddr_t base_addr,
const void* data_addr,
- const size_t total_len)
+ size_t total_len)
{
struct cyg_flash_strata_v2_priv *priv = dev->priv;
volatile flash_t *ROM;