1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>FS_Init</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">FS_Init <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/fs.h></CODE><BR> <BR> <CODE>void FS_Init( u32 default_dma_no );</CODE><br> <br> 20 </dd> 21</dl> 22<h2>Arguments</h2> 23<p> 24<TABLE border="1" width="100%"> 25 <TBODY> 26 <TR> 27<TD width="13%"><EM><STRONG>default_dma_no</STRONG></EM></TD> 28<TD width="87%">This is the DMA channel used by the <A href="../archive_rom_spec.html">ROM archive</A> inside the file system.<BR> Settings can be used as an argument to the <code><a href="../../card/rom/CARD_ReadRomAsync.html">CARD_ReadRomAsync</a></code> function, which is called by the FS library.<BR><FONT color="#800000">When a valid DMA channel is specified, this DMA channel cannot be used until the setting is changed with the <code><a href="FS_SetDefaultDMA.html">FS_SetDefaultDMA</a></code> function.</FONT><font color="#800000">The card access transfer source is an I/O register, so DMA channel 0 cannot be specified.</font> 29 </TD> 30 </TR> 31 </TBODY> 32</TABLE> 33</p> 34 35<h2>Return Values</h2> 36<p>None.</p> 37 38<H2>Description</H2> 39<P> 40This function initializes the ROM file system. The following processes are performed. 41</P> 42<ul> 43<li>Initializes the CARD library by calling the <code><a href="../../card/common/CARD_Init.html">CARD_Init</a></code> function. 44<li>Sets the current directory to ROM archive root ("<code>rom:/</code>"). 45<li>Initializes the DMA channel that the <A href="../archive_rom_spec.html">ROM archive</A> uses. 46</ul> 47<P> 48For more information on internal operations when allocating a DMA channel to the <A href="../archive_rom_spec.html"><code>ROM archive</code></A>, refer to the description for the <a href="../../card/rom/CARD_ReadRomAsync.html"><code>CARD_ReadRomAsync</code></a> function. 49</P> 50<H2>Note</H2> 51<P> 52When a valid DMA channel is specified with this function, this DMA channel cannot be used until the setting is changed with the <code><a href="FS_SetDefaultDMA.html">FS_SetDefaultDMA</a></code> function. The FS library uses this DMA channel to access the ROM file system on the card. Refer to the description on the <code><a href="../../card/rom/CARD_ReadRom.html">CARD_ReadRom</a></code> function and <code><a href="../../card/rom/CARD_ReadRomAsync.html">CARD_ReadRomAsync</a></code> functions. 53</P> 54<h2>See Also</h2> 55<p><CODE><A href="../fs_dma_not_use_const.html">FS_DMA_NOT_USE</A><BR> <A href="FS_IsAvailable.html">FS_IsAvailable</A><BR> <A href="FS_SetDefaultDMA.html">FS_SetDefaultDMA</A><BR> <A href="../../card/rom/CARD_ReadRom.html">CARD_ReadRom</A><BR> <A href="../../card/rom/CARD_ReadRomAsync.html">CARD_ReadRomAsync</A></CODE></P> 56<H2>Revision History</H2> 57<P> 582008/01/24 Made slight revisions to the description of the DMA channel<br /> 2005/08/28 Added a link to the <code>CARD_ReadRomAsync</code> function under Description.<br> 2005/04/28 Added the fact that DMA Channel 0 cannot be specified.<br> 2005/04/11 Added a description of the fact that <code>CARD_Init()</code> is called.<br> 2004/09/24 Revised links.<br> 2004/07/23 Added a note about the ROM archive and DMA channel.<BR> 2004/05/14 Added a description of <CODE>FS_DMA_NOT_USE</CODE>.<BR> 2004/04/13 Added a link to the <code>FS_IsAvailable</code> function.<BR> 2004/04/08 Revised descriptions in line with the addition of the DMA number specification.<BR> 2004/04/02 Changed "file system" to "ROM file system".<BR> 2004/04/01 Initial version.<BR> 59</P> 60<hr><p>CONFIDENTIAL</p></body> 61</html> 62