This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Intel 28fxxxx flash: correct flash_program_buf prototype.


Hi,

This patch corrects the Intel 28fxxxx flash driver's flash_program_buf
function prototype.  It's the same as the AMD 29xxxxx driver's one now.
 I assume the API changed at some point and this driver didn't get updated.

David Vrabel
-- 
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/
%status
pending
%patch
Index: packages/devs/flash/intel/28fxxx/current/ChangeLog
===================================================================
--- packages/devs/flash/intel/28fxxx/current/ChangeLog.orig	2005-04-22 13:56:53.000000000 +0100
+++ packages/devs/flash/intel/28fxxx/current/ChangeLog	2005-04-22 14:41:08.000000000 +0100
@@ -1,3 +1,7 @@
+2005-04-22  David Vrabel  <dvrabel@arcom.com>
+
+	* include/flash_28fxxx.inl: Correct flash_program_buf prototype.
+
 2002-12-12  Gary Thomas  <gthomas@ecoscentric.com>
 2002-12-12  Patrick Doyle <wpd@delcomsys.com>
 
Index: packages/devs/flash/intel/28fxxx/current/include/flash_28fxxx.inl
===================================================================
--- packages/devs/flash/intel/28fxxx/current/include/flash_28fxxx.inl.orig	2005-04-22 13:56:53.000000000 +0100
+++ packages/devs/flash/intel/28fxxx/current/include/flash_28fxxx.inl	2005-04-22 14:08:47.000000000 +0100
@@ -161,8 +161,7 @@
 void flash_query(void* data) __attribute__ ((section (".2ram.flash_query")));
 int  flash_erase_block(void* block, unsigned int size) 
     __attribute__ ((section (".2ram.flash_erase_block")));
-int  flash_program_buf(void* addr, void* data, int len,
-                       unsigned long block_mask, int buffer_size)
+int  flash_program_buf(void* addr, void* data, int len)
     __attribute__ ((section (".2ram.flash_program_buf")));
 int  flash_lock_block(void* addr)
     __attribute__ ((section (".2ram.flash_lock_block")));
@@ -341,8 +340,7 @@
 //----------------------------------------------------------------------------
 // Program Buffer
 int
-flash_program_buf(void* addr, void* data, int len,
-                  unsigned long block_mask, int buffer_size)
+flash_program_buf(void* addr, void* data, int len)
 {
     flash_data_t stat = 0;
     int timeout;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]