📄 pcmcialib.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>( )</b> - initialize the PCMCIA event-handling package<br><b><i><a href="./pcmciaLib.html#pcmciad">pcmciad</a></i>( )</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>( )</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>( )</b> in <b>usrConfig.c</b>.<p>The <b><i><a href="./pcmciaLib.html#pcmciaInit">pcmciaInit</a></i>( )</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> gets CIS (Card Information Structure) information from a card<p> determines what type of PC card is in the socket<p> allocates a resource for the card if the card is supported<p> enables the 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>( )</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>( )</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>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>pcmciaInit</i>( )</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>( )</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>( )</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>( )</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>( )</b><hr><a name="pcmciad"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>pcmciad</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>pcmciad</i>( )</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>( )</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>( )</b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -