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

📄 pcmcialib.html

📁 vxworks相关论文
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/pcmciaLib.html - generated by refgen from pcmciaLib.c --> <title> pcmciaLib </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>pcmciaLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>pcmciaLib</strong> - generic PCMCIA event-handling facilities </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./pcmciaLib.html#pcmciaInit">pcmciaInit</a></i>(&nbsp;)</b>  -  initialize the PCMCIA event-handling package<br><b><i><a href="./pcmciaLib.html#pcmciad">pcmciad</a></i>(&nbsp;)</b>  -  handle task-level PCMCIA events<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides generic facilities for handling PCMCIA events.<p></blockquote><h4>USER-CALLABLE ROUTINES</h4><blockquote><p>Before the driver can be used, it must be initialized by calling <b><i><a href="./pcmciaLib.html#pcmciaInit">pcmciaInit</a></i>(&nbsp;)</b>.This routine should be called exactly once, before any PC card device driveris used.  Normally, it is called from <b><i><a href="./usrConfig.html#usrRoot">usrRoot</a></i>(&nbsp;)</b> in <b>usrConfig.c</b>.<p>The <b><i><a href="./pcmciaLib.html#pcmciaInit">pcmciaInit</a></i>(&nbsp;)</b> routine performs the following actions:<ul><li>Creates a message queue.</li><li>Spawns a PCMCIA daemon, which handles jobs in the message queue.</li><li>Finds out which PCMCIA chip is installed and fills out the<b>PCMCIA_CHIP</b> structure.</li><li>Connects the CSC (Card Status Change) interrupt handler.</li><li>Searches all sockets for a PC card.  If a card is found, it:<p>&nbsp;&nbsp;&nbsp;&nbsp;gets&nbsp;CIS&nbsp;(Card&nbsp;Information&nbsp;Structure)&nbsp;information&nbsp;from&nbsp;a&nbsp;card<p>&nbsp;&nbsp;&nbsp;&nbsp;determines&nbsp;what&nbsp;type&nbsp;of&nbsp;PC&nbsp;card&nbsp;is&nbsp;in&nbsp;the&nbsp;socket<p>&nbsp;&nbsp;&nbsp;&nbsp;allocates&nbsp;a&nbsp;resource&nbsp;for&nbsp;the&nbsp;card&nbsp;if&nbsp;the&nbsp;card&nbsp;is&nbsp;supported<p>&nbsp;&nbsp;&nbsp;&nbsp;enables&nbsp;the&nbsp;card</li><li>Enables the CSC interrupt. </ul><p><p>The CSC interrupt handler performs the following actions:<ul><li>Searches all sockets for CSC events.</li><li>Calls the PC card's CSC interrupt handler, if there is a PC card in the socket.</li><li>If the CSC event is a hot insertion, it asks the PCMCIA daemon to call <b><i><a href="./cisLib.html#cisGet">cisGet</a></i>(&nbsp;)</b>at task level.  This call reads the CIS, determines the type of PC card, andinitializes a device driver for the card.</li><li>If the CSC event is a hot removal, it asks the PCMCIA daemon to call <b><i><a href="./cisLib.html#cisFree">cisFree</a></i>(&nbsp;)</b>at task level.  This call de-allocates resources.</ul><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pcmciaLib.html#top">pcmciaLib</a></b><hr><a name="pcmciaInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>pcmciaInit</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>pcmciaInit</i>(&nbsp;)</strong> - initialize the PCMCIA event-handling package</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS pcmciaInit (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine installs the PCMCIA event-handling facilities and spawns<b><i><a href="./pcmciaLib.html#pcmciad">pcmciad</a></i>(&nbsp;)</b>, which performs special PCMCIA event-handling functions thatneed to be done at task level.  It also creates the message queue used tocommunicate with <b><i><a href="./pcmciaLib.html#pcmciad">pcmciad</a></i>(&nbsp;)</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p><p>OK, or ERROR if a message queue cannot be created or <b><i><a href="./pcmciaLib.html#pcmciad">pcmciad</a></i>(&nbsp;)</b> cannot bespawned.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pcmciaLib.html#top">pcmciaLib</a></b>, <b><i><a href="./pcmciaLib.html#pcmciad">pcmciad</a></i>(&nbsp;)</b><hr><a name="pcmciad"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>pcmciad</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>pcmciad</i>(&nbsp;)</strong> - handle task-level PCMCIA events</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void pcmciad (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine is spawned as a task by <b><i><a href="./pcmciaLib.html#pcmciaInit">pcmciaInit</a></i>(&nbsp;)</b> to perform functionsthat cannot be performed at interrupt or trap level.  It has a priority of 0.Do not suspend, delete, or change the priority of this task.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pcmciaLib.html#top">pcmciaLib</a></b>, <b><i><a href="./pcmciaLib.html#pcmciaInit">pcmciaInit</a></i>(&nbsp;)</b></body></html>

⌨️ 快捷键说明

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