📄 yaffs_mtdif2.c
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"><!-- ViewCVS - http://viewcvs.sourceforge.net/by Greg Stein - mailto:gstein@lyra.org --><html><head><title>Aleph One CVS/SVN Repository - log - Development: yaffs2/yaffs_mtdif2.c</title><meta name="generator" content="ViewCVS 1.0-dev"><link rel="stylesheet" href="/viewcvs/styles.css" type="text/css"></head><body><div class="vc_navheader"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="left"><a href="/cgi-bin/viewcvs.cgi/#dirlist">[Development]</a> / <a href="/cgi-bin/viewcvs.cgi/yaffs2/#dirlist">yaffs2</a> / yaffs_mtdif2.c</td><td align="right"> </td></tr></table></div><h1>Development: yaffs2/yaffs_mtdif2.c</h1><hr noshade>Default branch: MAIN<br>Bookmark a link to HEAD:(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?view=markup">view</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c">download</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?content-type=text%2Fplain">as text</a>)<br> <hr size=1 noshade><a name="rev1.21"></a><a name="HEAD"></a>Revision <b>1.21</b> -(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.21&view=markup">view</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?rev=1.21">download</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?content-type=text%2Fplain&rev=1.21">as text</a>)(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?annotate=1.21">annotate</a>)- <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.21&r1=1.21&view=log">[select for diffs]</a><br><i>Wed Jul 23 03:35:12 2008 UTC</i> (6 weeks, 4 days ago) by <i>charles</i><br>Branch:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=MAIN"><b>MAIN</b></a><br>CVS Tags:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=HEAD"><b>HEAD</b></a><br>Changes since <b>1.20: +2 -2 lines</b><br>Diff to <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?r1=1.20&r2=1.21">previous 1.20</a><pre class="vc_log">Fix compilation on Linux 2.6.26, fix compilation warnings</pre><hr size=1 noshade><a name="rev1.20"></a>Revision <b>1.20</b> -(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.20&view=markup">view</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?rev=1.20">download</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?content-type=text%2Fplain&rev=1.20">as text</a>)(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?annotate=1.20">annotate</a>)- <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.21&r1=1.20&view=log">[select for diffs]</a><br><i>Mon May 5 07:58:58 2008 UTC</i> (4 months ago) by <i>charles</i><br>Branch:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=MAIN"><b>MAIN</b></a><br>Changes since <b>1.19: +73 -57 lines</b><br>Diff to <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?r1=1.19&r2=1.20">previous 1.19</a><pre class="vc_log">Check in inband tags, some extra yaffs direct functions and some other changes</pre><hr size=1 noshade><a name="rev1.19"></a><a name="pre-inbandtags-checkin"></a>Revision <b>1.19</b> -(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.19&view=markup">view</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?rev=1.19">download</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?content-type=text%2Fplain&rev=1.19">as text</a>)(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?annotate=1.19">annotate</a>)- <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.21&r1=1.19&view=log">[select for diffs]</a><br><i>Thu Dec 13 15:35:18 2007 UTC</i> (8 months, 3 weeks ago) by <i>wookey</i><br>Branch:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=MAIN"><b>MAIN</b></a><br>CVS Tags:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=pre-inbandtags-checkin"><b>pre-inbandtags-checkin</b></a><br>Changes since <b>1.18: +2 -2 lines</b><br>Diff to <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?r1=1.18&r2=1.19">previous 1.18</a><pre class="vc_log">Cleanup patch - Remove all trailing whitespace and fix a few typos.</pre><hr size=1 noshade><a name="rev1.18"></a>Revision <b>1.18</b> -(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.18&view=markup">view</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?rev=1.18">download</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?content-type=text%2Fplain&rev=1.18">as text</a>)(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?annotate=1.18">annotate</a>)- <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.21&r1=1.18&view=log">[select for diffs]</a><br><i>Wed Dec 12 18:08:15 2007 UTC</i> (8 months, 3 weeks ago) by <i>colin</i><br>Branch:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=MAIN"><b>MAIN</b></a><br>Changes since <b>1.17: +5 -5 lines</b><br>Diff to <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?r1=1.17&r2=1.18">previous 1.17</a><pre class="vc_log">Replace KERNEL_VERSION with MTD_VERSION so that builds which don't usea Linux Kernel still build correctly.Set MTD_VERSION_CODE either from the kernel or by hand.</pre><hr size=1 noshade><a name="rev1.17"></a><a name="pre_checkpoint_robustness"></a><a name="pre_Ians_changes"></a>Revision <b>1.17</b> -(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.17&view=markup">view</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?rev=1.17">download</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?content-type=text%2Fplain&rev=1.17">as text</a>)(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?annotate=1.17">annotate</a>)- <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.21&r1=1.17&view=log">[select for diffs]</a><br><i>Wed Feb 14 01:09:06 2007 UTC</i> (18 months, 3 weeks ago) by <i>wookey</i><br>Branch:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=MAIN"><b>MAIN</b></a><br>CVS Tags:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=pre_Ians_changes"><b>pre_Ians_changes</b></a>,<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=pre_checkpoint_robustness"><b>pre_checkpoint_robustness</b></a><br>Changes since <b>1.16: +1 -2 lines</b><br>Diff to <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?r1=1.16&r2=1.17">previous 1.16</a><pre class="vc_log">Updated headers so they really are the same</pre><hr size=1 noshade><a name="rev1.16"></a>Revision <b>1.16</b> -(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.16&view=markup">view</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?rev=1.16">download</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?content-type=text%2Fplain&rev=1.16">as text</a>)(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?annotate=1.16">annotate</a>)- <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.21&r1=1.16&view=log">[select for diffs]</a><br><i>Mon Feb 12 16:55:26 2007 UTC</i> (18 months, 3 weeks ago) by <i>wookey</i><br>Branch:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=MAIN"><b>MAIN</b></a><br>Changes since <b>1.15: +3 -4 lines</b><br>Diff to <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?r1=1.15&r2=1.16">previous 1.15</a><pre class="vc_log">normalise licence headers and attributions</pre><hr size=1 noshade><a name="rev1.15"></a>Revision <b>1.15</b> -(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.15&view=markup">view</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?rev=1.15">download</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?content-type=text%2Fplain&rev=1.15">as text</a>)(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?annotate=1.15">annotate</a>)- <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.21&r1=1.15&view=log">[select for diffs]</a><br><i>Wed Nov 8 06:24:34 2006 UTC</i> (22 months ago) by <i>charles</i><br>Branch:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=MAIN"><b>MAIN</b></a><br>Changes since <b>1.14: +4 -4 lines</b><br>Diff to <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?r1=1.14&r2=1.15">previous 1.14</a><pre class="vc_log">Change nBytesPerChunk to nDataBytesPerChunk</pre><hr size=1 noshade><a name="rev1.14"></a>Revision <b>1.14</b> -(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.14&view=markup">view</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?rev=1.14">download</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?content-type=text%2Fplain&rev=1.14">as text</a>)(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?annotate=1.14">annotate</a>)- <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.21&r1=1.14&view=log">[select for diffs]</a><br><i>Tue Oct 3 10:13:03 2006 UTC</i> (23 months ago) by <i>charles</i><br>Branch:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=MAIN"><b>MAIN</b></a><br>Changes since <b>1.13: +11 -11 lines</b><br>Diff to <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?r1=1.13&r2=1.14">previous 1.13</a><pre class="vc_log">Add large NAND support and improve retirement handling</pre><hr size=1 noshade><a name="rev1.13"></a><a name="pre-large-nand-changes"></a>Revision <b>1.13</b> -(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.13&view=markup">view</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?rev=1.13">download</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?content-type=text%2Fplain&rev=1.13">as text</a>)(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?annotate=1.13">annotate</a>)- <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.21&r1=1.13&view=log">[select for diffs]</a><br><i>Tue Sep 26 13:28:13 2006 UTC</i> (23 months, 1 week ago) by <i>vwool</i><br>Branch:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=MAIN"><b>MAIN</b></a><br>CVS Tags:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=pre-large-nand-changes"><b>pre-large-nand-changes</b></a><br>Changes since <b>1.12: +41 -1 lines</b><br>Diff to <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?r1=1.12&r2=1.13">previous 1.12</a><pre class="vc_log">Interworking with 2.6.18 kernel enabledNotable is that to enable it for yaffs1 compatibility mode, I introduceda workaround (translate_spare2oob/translate_oob2spare) which should beredesigned if possible. The thing is that yaffs1 presumes SmartMedia OOBlayout which might be not true for a lot of modern flash controllers, sothere has to be translation.Or, in case we get to tags inband, this workaround will become useless.</pre><hr size=1 noshade><a name="rev1.12"></a><a name="before_2_6_18_support"></a>Revision <b>1.12</b> -(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.12&view=markup">view</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?rev=1.12">download</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?content-type=text%2Fplain&rev=1.12">as text</a>)(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?annotate=1.12">annotate</a>)- <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.21&r1=1.12&view=log">[select for diffs]</a><br><i>Thu Sep 21 08:13:59 2006 UTC</i> (23 months, 2 weeks ago) by <i>charles</i><br>Branch:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=MAIN"><b>MAIN</b></a><br>CVS Tags:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=before_2_6_18_support"><b>before_2_6_18_support</b></a><br>Changes since <b>1.11: +4 -1 lines</b><br>Diff to <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?r1=1.11&r2=1.12">previous 1.11</a><pre class="vc_log">Better retirement and erasure checking.</pre><hr size=1 noshade><a name="rev1.11"></a><a name="Pre-retirement-changes"></a>Revision <b>1.11</b> -(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.11&view=markup">view</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?rev=1.11">download</a>)(<a href="/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/yaffs_mtdif2.c?content-type=text%2Fplain&rev=1.11">as text</a>)(<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?annotate=1.11">annotate</a>)- <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?rev=1.21&r1=1.11&view=log">[select for diffs]</a><br><i>Tue Apr 25 00:41:43 2006 UTC</i> (2 years, 4 months ago) by <i>wookey</i><br>Branch:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=MAIN"><b>MAIN</b></a><br>CVS Tags:<a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?only_with_tag=Pre-retirement-changes"><b>Pre-retirement-changes</b></a><br>Changes since <b>1.10: +1 -1 lines</b><br>Diff to <a href="/cgi-bin/viewcvs.cgi/yaffs2/yaffs_mtdif2.c?r1=1.10&r2=1.11">previous 1.10</a><pre class="vc_log">Fix a couple of mistakes in TRACE/Error messages. Update copyright date.</pre><hr size=1 noshade>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -