📄 usrata.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/usrAta.html - generated by refgen from /vobs/wpwr/target/src/config/usrAta.c --> <title> usrAta </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual : Libraries</i></a></p></blockquote><h1>usrAta</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>usrAta</strong> - ATA initialization </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./usrAta.html#usrAtaConfig">usrAtaConfig</a></i>( )</b> - mount a DOS file system from an ATA hard disk<br><b><i><a href="./usrAta.html#usrAtaPartition">usrAtaPartition</a></i>( )</b> - get an offset to the first partition of the drive<br><hr><a name="usrAtaConfig"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>usrAtaConfig</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>usrAtaConfig</i>( )</strong> - mount a DOS file system from an ATA hard disk</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS usrAtaConfig ( int ctrl, /* 0: primary address, 1: secondary address */ int drive, /* drive number of hard disk (0 or 1) */ char * fileName /* mount point */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine mounts a DOS file system from an ATA hard disk. Parameters:<p><dl><dt><i>drive</i><dd>the drive number of the hard disk; 0 is <b>C:</b> and 1 is <b>D:</b>.<p><dt><i>fileName</i><dd> the mount point, for example, <b>/ata0/</b>. </dl><p></blockquote><h4>NOTE</h4><blockquote><p>Because VxWorks does not support partitioning, hard disks formattedand initialized on VxWorks are not compatible with DOS machines. Thisroutine does not refuse to mount a hard disk that was initialized onVxWorks. The hard disk is assumed to have only one partition with apartition record in sector 0.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b>src/config/usrAta.c</b>, <i>VxWorks Programmer's Guide: I/O System, Local File Systems, Intel i386/i486/Pentium</i><hr><a name="usrAtaPartition"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>usrAtaPartition</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>usrAtaPartition</i>( )</strong> - get an offset to the first partition of the drive</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int usrAtaPartition ( int ctrl, /* 0: primary address, 1: secondary address */ int drive, /* drive number of hard disk (0 or 1) */ DOS_PART_TBL * pPart /* pointer to the partition table */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine gets an offset to the first partition of the drive.The value of offset is passed to the macro <b>ATA_SWAP</b> for endianess adjustment.For the <i>drive</i> parameter, 0 is <b>C:</b> and 1 is <b>D:</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>The offset to the partition</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrAta.html#top">usrAta</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -