提交 70d6d9db 编写于 作者: R Rob Landley 提交者: Linus Torvalds

Add section IDs to mtdnand.tmpl

Add section IDs to mtdnand.tmpl
Signed-off-by: NRob Landley <rob@landley.net>
Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 90ad38b7
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
struct member has a short description which is marked with an [XXX] identifier. struct member has a short description which is marked with an [XXX] identifier.
The following chapters explain the meaning of those identifiers. The following chapters explain the meaning of those identifiers.
</para> </para>
<sect1> <sect1 id="Function_identifiers_XXX">
<title>Function identifiers [XXX]</title> <title>Function identifiers [XXX]</title>
<para> <para>
The functions are marked with [XXX] identifiers in the short The functions are marked with [XXX] identifiers in the short
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
</para></listitem> </para></listitem>
</itemizedlist> </itemizedlist>
</sect1> </sect1>
<sect1> <sect1 id="Struct_member_identifiers_XXX">
<title>Struct member identifiers [XXX]</title> <title>Struct member identifiers [XXX]</title>
<para> <para>
The struct members are marked with [XXX] identifiers in the The struct members are marked with [XXX] identifiers in the
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
basic functions and fill out some really board dependent basic functions and fill out some really board dependent
members in the nand chip description structure. members in the nand chip description structure.
</para> </para>
<sect1> <sect1 id="Basic_defines">
<title>Basic defines</title> <title>Basic defines</title>
<para> <para>
At least you have to provide a mtd structure and At least you have to provide a mtd structure and
...@@ -185,7 +185,7 @@ static struct nand_chip board_chip; ...@@ -185,7 +185,7 @@ static struct nand_chip board_chip;
static unsigned long baseaddr; static unsigned long baseaddr;
</programlisting> </programlisting>
</sect1> </sect1>
<sect1> <sect1 id="Partition_defines">
<title>Partition defines</title> <title>Partition defines</title>
<para> <para>
If you want to divide your device into partitions, then If you want to divide your device into partitions, then
...@@ -204,7 +204,7 @@ static struct mtd_partition partition_info[] = { ...@@ -204,7 +204,7 @@ static struct mtd_partition partition_info[] = {
}; };
</programlisting> </programlisting>
</sect1> </sect1>
<sect1> <sect1 id="Hardware_control_functions">
<title>Hardware control function</title> <title>Hardware control function</title>
<para> <para>
The hardware control function provides access to the The hardware control function provides access to the
...@@ -246,7 +246,7 @@ static void board_hwcontrol(struct mtd_info *mtd, int cmd) ...@@ -246,7 +246,7 @@ static void board_hwcontrol(struct mtd_info *mtd, int cmd)
} }
</programlisting> </programlisting>
</sect1> </sect1>
<sect1> <sect1 id="Device_ready_function">
<title>Device ready function</title> <title>Device ready function</title>
<para> <para>
If the hardware interface has the ready busy pin of the NAND chip connected to a If the hardware interface has the ready busy pin of the NAND chip connected to a
...@@ -257,7 +257,7 @@ static void board_hwcontrol(struct mtd_info *mtd, int cmd) ...@@ -257,7 +257,7 @@ static void board_hwcontrol(struct mtd_info *mtd, int cmd)
the function must not be defined and the function pointer this->dev_ready is set to NULL. the function must not be defined and the function pointer this->dev_ready is set to NULL.
</para> </para>
</sect1> </sect1>
<sect1> <sect1 id="Init_function">
<title>Init function</title> <title>Init function</title>
<para> <para>
The init function allocates memory and sets up all the board The init function allocates memory and sets up all the board
...@@ -325,7 +325,7 @@ out: ...@@ -325,7 +325,7 @@ out:
module_init(board_init); module_init(board_init);
</programlisting> </programlisting>
</sect1> </sect1>
<sect1> <sect1 id="Exit_function">
<title>Exit function</title> <title>Exit function</title>
<para> <para>
The exit function is only neccecary if the driver is The exit function is only neccecary if the driver is
...@@ -359,7 +359,7 @@ module_exit(board_cleanup); ...@@ -359,7 +359,7 @@ module_exit(board_cleanup);
driver. For a list of functions which can be overridden by the board driver. For a list of functions which can be overridden by the board
driver see the documentation of the nand_chip structure. driver see the documentation of the nand_chip structure.
</para> </para>
<sect1> <sect1 id="Multiple_chip_control">
<title>Multiple chip control</title> <title>Multiple chip control</title>
<para> <para>
The nand driver can control chip arrays. Therefor the The nand driver can control chip arrays. Therefor the
...@@ -419,9 +419,9 @@ static void board_select_chip (struct mtd_info *mtd, int chip) ...@@ -419,9 +419,9 @@ static void board_select_chip (struct mtd_info *mtd, int chip)
} }
</programlisting> </programlisting>
</sect1> </sect1>
<sect1> <sect1 id="Hardware_ECC_support">
<title>Hardware ECC support</title> <title>Hardware ECC support</title>
<sect2> <sect2 id="Functions_and_constants">
<title>Functions and constants</title> <title>Functions and constants</title>
<para> <para>
The nand driver supports three different types of The nand driver supports three different types of
...@@ -475,7 +475,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip) ...@@ -475,7 +475,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip)
</itemizedlist> </itemizedlist>
</para> </para>
</sect2> </sect2>
<sect2> <sect2 id="Hardware_ECC_with_syndrome_calculation">
<title>Hardware ECC with syndrome calculation</title> <title>Hardware ECC with syndrome calculation</title>
<para> <para>
Many hardware ECC implementations provide Reed-Solomon Many hardware ECC implementations provide Reed-Solomon
...@@ -500,7 +500,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip) ...@@ -500,7 +500,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip)
</para> </para>
</sect2> </sect2>
</sect1> </sect1>
<sect1> <sect1 id="Bad_Block_table_support">
<title>Bad block table support</title> <title>Bad block table support</title>
<para> <para>
Most NAND chips mark the bad blocks at a defined Most NAND chips mark the bad blocks at a defined
...@@ -552,7 +552,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip) ...@@ -552,7 +552,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip)
allows faster access than always checking the allows faster access than always checking the
bad block information on the flash chip itself. bad block information on the flash chip itself.
</para> </para>
<sect2> <sect2 id="Flash_based_tables">
<title>Flash based tables</title> <title>Flash based tables</title>
<para> <para>
It may be desired or neccecary to keep a bad block table in FLASH. It may be desired or neccecary to keep a bad block table in FLASH.
...@@ -587,7 +587,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip) ...@@ -587,7 +587,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip)
</itemizedlist> </itemizedlist>
</para> </para>
</sect2> </sect2>
<sect2> <sect2 id="User_defined_tables">
<title>User defined tables</title> <title>User defined tables</title>
<para> <para>
User defined tables are created by filling out a User defined tables are created by filling out a
...@@ -676,7 +676,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip) ...@@ -676,7 +676,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip)
</para> </para>
</sect2> </sect2>
</sect1> </sect1>
<sect1> <sect1 id="Spare_area_placement">
<title>Spare area (auto)placement</title> <title>Spare area (auto)placement</title>
<para> <para>
The nand driver implements different possibilities for The nand driver implements different possibilities for
...@@ -730,7 +730,7 @@ struct nand_oobinfo { ...@@ -730,7 +730,7 @@ struct nand_oobinfo {
</para></listitem> </para></listitem>
</itemizedlist> </itemizedlist>
</para> </para>
<sect2> <sect2 id="Placement_defined_by_fs_driver">
<title>Placement defined by fs driver</title> <title>Placement defined by fs driver</title>
<para> <para>
The calling function provides a pointer to a nand_oobinfo The calling function provides a pointer to a nand_oobinfo
...@@ -760,7 +760,7 @@ struct nand_oobinfo { ...@@ -760,7 +760,7 @@ struct nand_oobinfo {
done according to the given scheme in the nand_oobinfo structure. done according to the given scheme in the nand_oobinfo structure.
</para> </para>
</sect2> </sect2>
<sect2> <sect2 id="Automatic_placement">
<title>Automatic placement</title> <title>Automatic placement</title>
<para> <para>
Automatic placement uses the built in defaults to place the Automatic placement uses the built in defaults to place the
...@@ -774,7 +774,7 @@ struct nand_oobinfo { ...@@ -774,7 +774,7 @@ struct nand_oobinfo {
done according to the default builtin scheme. done according to the default builtin scheme.
</para> </para>
</sect2> </sect2>
<sect2> <sect2 id="User_space_placement_selection">
<title>User space placement selection</title> <title>User space placement selection</title>
<para> <para>
All non ecc functions like mtd->read and mtd->write use an internal All non ecc functions like mtd->read and mtd->write use an internal
...@@ -789,9 +789,9 @@ struct nand_oobinfo { ...@@ -789,9 +789,9 @@ struct nand_oobinfo {
</para> </para>
</sect2> </sect2>
</sect1> </sect1>
<sect1> <sect1 id="Spare_area_autoplacement_default">
<title>Spare area autoplacement default schemes</title> <title>Spare area autoplacement default schemes</title>
<sect2> <sect2 id="pagesize_256">
<title>256 byte pagesize</title> <title>256 byte pagesize</title>
<informaltable><tgroup cols="3"><tbody> <informaltable><tgroup cols="3"><tbody>
<row> <row>
...@@ -843,7 +843,7 @@ pages this byte is reserved</entry> ...@@ -843,7 +843,7 @@ pages this byte is reserved</entry>
</row> </row>
</tbody></tgroup></informaltable> </tbody></tgroup></informaltable>
</sect2> </sect2>
<sect2> <sect2 id="pagesize_512">
<title>512 byte pagesize</title> <title>512 byte pagesize</title>
<informaltable><tgroup cols="3"><tbody> <informaltable><tgroup cols="3"><tbody>
<row> <row>
...@@ -906,7 +906,7 @@ in this page</entry> ...@@ -906,7 +906,7 @@ in this page</entry>
</row> </row>
</tbody></tgroup></informaltable> </tbody></tgroup></informaltable>
</sect2> </sect2>
<sect2> <sect2 id="pagesize_2048">
<title>2048 byte pagesize</title> <title>2048 byte pagesize</title>
<informaltable><tgroup cols="3"><tbody> <informaltable><tgroup cols="3"><tbody>
<row> <row>
...@@ -1126,9 +1126,9 @@ in this page</entry> ...@@ -1126,9 +1126,9 @@ in this page</entry>
<para> <para>
This chapter describes the constants which might be relevant for a driver developer. This chapter describes the constants which might be relevant for a driver developer.
</para> </para>
<sect1> <sect1 id="Chip_option_constants">
<title>Chip option constants</title> <title>Chip option constants</title>
<sect2> <sect2 id="Constants_for_chip_id_table">
<title>Constants for chip id table</title> <title>Constants for chip id table</title>
<para> <para>
These constants are defined in nand.h. They are ored together to describe These constants are defined in nand.h. They are ored together to describe
...@@ -1153,7 +1153,7 @@ in this page</entry> ...@@ -1153,7 +1153,7 @@ in this page</entry>
</programlisting> </programlisting>
</para> </para>
</sect2> </sect2>
<sect2> <sect2 id="Constants_for_runtime_options">
<title>Constants for runtime options</title> <title>Constants for runtime options</title>
<para> <para>
These constants are defined in nand.h. They are ored together to describe These constants are defined in nand.h. They are ored together to describe
...@@ -1171,7 +1171,7 @@ in this page</entry> ...@@ -1171,7 +1171,7 @@ in this page</entry>
</sect2> </sect2>
</sect1> </sect1>
<sect1> <sect1 id="EEC_selection_constants">
<title>ECC selection constants</title> <title>ECC selection constants</title>
<para> <para>
Use these constants to select the ECC algorithm. Use these constants to select the ECC algorithm.
...@@ -1192,7 +1192,7 @@ in this page</entry> ...@@ -1192,7 +1192,7 @@ in this page</entry>
</para> </para>
</sect1> </sect1>
<sect1> <sect1 id="Hardware_control_related_constants">
<title>Hardware control related constants</title> <title>Hardware control related constants</title>
<para> <para>
These constants describe the requested hardware access function when These constants describe the requested hardware access function when
...@@ -1218,7 +1218,7 @@ in this page</entry> ...@@ -1218,7 +1218,7 @@ in this page</entry>
</para> </para>
</sect1> </sect1>
<sect1> <sect1 id="Bad_block_table_constants">
<title>Bad block table related constants</title> <title>Bad block table related constants</title>
<para> <para>
These constants describe the options used for bad block These constants describe the options used for bad block
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册