⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 systffs.html

📁 vxworks相关论文
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/bsp/pc386/sysTffs.html - generated by refgen from sysTffs.i --> <title> sysTffs [pc386] </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>BSP Reference :  pc386</i></a></p></blockquote><h1>sysTffs [pc386]</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>sysTffs [pc386]</strong> - PC 386/486 system-dependent TrueFFS library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./sysTffs.html#flFitInSocketWindow">flFitInSocketWindow</a></i>(&nbsp;)</b>  -  check whether the flash array fits in the socket window<br><b><i><a href="./sysTffs.html#flDelayLoop">flDelayLoop</a></i>(&nbsp;)</b>  -  consume the specified time<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides board-specific hardware access routines for TrueFFS.  In effect, these routines comprise the socket component driver (or drivers)for your flash device hardware.  At socket registration time, TrueFFS stores pointers to the functions of this socket component driver in an <b>FLSocket</b> structure.  When TrueFFS needs to access the flash device, it uses these functions.  <p>Because this file is, for the most part, a device driver that exports its functionality by registering function pointers with TrueFFS, very few of the functions defined here are externally callable.  For the record, these external functions are <b><i><a href="./sysTffs.html#flFitInSocketWindow">flFitInSocketWindow</a></i>(&nbsp;)</b> and <b><i><a href="./sysTffs.html#flDelayLoop">flDelayLoop</a></i>(&nbsp;)</b>.  You should never have any need to call these functions.  <p>However, one of the most import functions defined in this file is neitherreferenced in an <b>FLSocket</b> structure, nor is it externally callable.  Thisfunction is <b><i>sysTffsInit</i>(&nbsp;)</b>.  TrueFFS calls this function at initialization time to register socket component drivers for all the flash devices attached to your target.  It is this call to <b><i>sysTffs</i>(&nbsp;)</b> that results in assigning drive numbers to the flash devices on your target hardware.  Drive numbers are assigned by the order in which the socket component drivers are registered.The first to be registered is drive 0, the second is drive 1, and so on up to 4.  As shipped, TrueFFS supports up to five flash drives.  <p>After registering socket component drivers for a flash device, you may format the flash medium even though there is not yet a block device driverassociated with the flash (see the reference entry for the <b><i><a href="../../ref/tffsDrv.html#tffsDevCreate" >tffsDevCreate</a></i>(&nbsp;)</b> routine).  To format the flash medium for use with TrueFFS, call <b><i><a href="../../ref/tffsDrv.html#tffsDevFormat" >tffsDevFormat</a></i>(&nbsp;)</b> or, for some BSPs, <b><i><a href="../ads860/sysTffs.html#sysTffsFormat" >sysTffsFormat</a></i>(&nbsp;)</b>.  <p>The <b><i><a href="../ads860/sysTffs.html#sysTffsFormat" >sysTffsFormat</a></i>(&nbsp;)</b> routine is an optional but BSP-specific externally callable helper function.  Internally, it calls <b><i><a href="../../ref/tffsDrv.html#tffsDevFormat" >tffsDevFormat</a></i>(&nbsp;)</b> with a pointer to a <b>FormatParams</b> structure initialized to values that leave a space on the flash device for a boot image. This space is outside the region managed by TrueFFS.  This special region is necessary for boot images because the normal translation and wear-leveling services of TrueFFS are incompatible with the needs of the boot program and the boot image it relies upon.  To write a boot image (or any other data) into this area, use <b><i><a href="../../ref/tffsConfig.html#tffsBootImagePut" >tffsBootImagePut</a></i>(&nbsp;)</b>.  <p>Finally, this file also contains define statements for symbolic constants that determine which MTDs, translation layer modules, and other utilities are ultimately included in TrueFFS.  These defines are as follows:<p><dl><dt><b>INCLUDE_TL_NFTL</b><dd>To include the NAND-based translation layer module.<p><dt><b>INCLUDE_TL_FTL</b><dd>To include the NOR-based translation layer module.<p><dt><b>INCLUDE_TL_SSFDC</b><dd>To include the SSFDC-appropriate translation layer module.<p><dt><b>INCLUDE_MTD_I28F016</b><dd>For Intel 28f016 flash devices.<p><dt><b>INCLUDE_MTD_I28F008</b><dd>For Intel 28f008 flash devices.<p><dt><b>INCLUDE_MTD_I28F008_BAJA</b><dd>For Intel 28f008 flash devices on the Heurikon Baja 4700.<p><dt><b>INCLUDE_MTD_AMD</b><dd>For AMD, Fujitsu: 29F0{40,80,16} 8-bit flash devices.<p><dt><b>INCLUDE_MTD_CDSN</b><dd>For Toshiba, Samsung: NAND CDSN flash devices.<p><dt><b>INCLUDE_MTD_DOC2</b><dd>For Toshiba, Samsung: NAND DOC flash devices.<p><dt><b>INCLUDE_MTD_CFISCS</b><dd>For CFI/SCS flash devices.<p><dt><b>INCLUDE_MTD_WAMD</b><dd>For AMD, Fujitsu 29F0{40,80,16} 16-bit flash devices.<p><dt><b>INCLUDE_TFFS_BOOT_IMAGE</b><dd>To include <b><i><a href="../../ref/tffsConfig.html#tffsBootImagePut" >tffsBootImagePut</a></i>(&nbsp;)</b> in TrueFFS for Tornado. </dl><p>To exclude any of the modules mentioned above, edit <b>sysTffs.c</b> and undefineits associated symbolic constant.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>flsocket.h</b><p></blockquote><h4>SEE ALSO </h4><blockquote><p>tffsDevFormat tffsRawio<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysTffs.html#top">sysTffs</a></b><hr><a name="flFitInSocketWindow"></a><p align=right><a href="rtnIndex.html"><i>pc386 :  Routines</i></a></p></blockquote><h1><i>flFitInSocketWindow</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>flFitInSocketWindow</i>(&nbsp;)</strong> - check whether the flash array fits in the socket window</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>long int flFitInSocketWindow    (    long int chipSize,     /* size of single physical chip in bytes */    int      interleaving, /* flash chip interleaving (1,2,4 etc) */    long int windowSize    /* socket window size in bytes */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine checks whether the flash array fits in the socket window.<p></blockquote><h4>RETURNS</h4><blockquote><p>A chip size guaranteed to fit in the socket window.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysTffs.html#top">sysTffs</a></b><hr><a name="flDelayLoop"></a><p align=right><a href="rtnIndex.html"><i>pc386 :  Routines</i></a></p></blockquote><h1><i>flDelayLoop</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>flDelayLoop</i>(&nbsp;)</strong> - consume the specified time</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void flDelayLoop    (    int cycles    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine consumes the specified time.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysTffs.html#top">sysTffs</a></b></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -