📄 cislib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/cisLib.html - generated by refgen from cisLib.c --> <title> cisLib </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>cisLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>cisLib</strong> - PCMCIA CIS library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./cisLib.html#cisGet">cisGet</a></i>( )</b> - get information from a PC card's CIS<br><b><i><a href="./cisLib.html#cisFree">cisFree</a></i>( )</b> - free tuples from the linked list<br><b><i><a href="./cisLib.html#cisConfigregGet">cisConfigregGet</a></i>( )</b> - get the PCMCIA configuration register<br><b><i><a href="./cisLib.html#cisConfigregSet">cisConfigregSet</a></i>( )</b> - set the PCMCIA configuration register<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library contains routines to manipulate the CIS (ConfigurationInformation Structure) tuples and the card configuration registers.The library uses a memory window which is defined in <b>pcmciaMemwin</b>to access the CIS of a PC card.All CIS tuples in a PC card are read and stored in a linked list,<b>cisTupleList</b>. If there are configuration tuples, they are interpretedand stored in another link list, <b>cisConifigList</b>. After the CIS is read,the PC card's enabler routine allocates resources and initializes a devicedriver for the PC card.<p>If a PC card is inserted, the CSC (Card Status Change) interrupt handlergets a CSC event from the PCMCIA chip and adds a <b><i><a href="./cisLib.html#cisGet">cisGet</a></i>( )</b> job to thePCMCIA daemon. The PCMCIA daemon initiates the <b><i><a href="./cisLib.html#cisGet">cisGet</a></i>( )</b> work. The CISlibrary reads the CIS from the PC card and makes a linked list of CIStuples. It then enables the card.<p>If the PC card is removed, the CSC interrupt handler gets a CSC event fromthe PCMCIA chip and adds a <b><i><a href="./cisLib.html#cisFree">cisFree</a></i>( )</b> job to the PCMCIA daemon. The PCMCIAdaemon initiates the <b><i><a href="./cisLib.html#cisFree">cisFree</a></i>( )</b> work. The CIS library frees allocated memory for the linked list of CIS tuples.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cisLib.html#top">cisLib</a></b><hr><a name="cisGet"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cisGet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cisGet</i>( )</strong> - get information from a PC card's CIS</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cisGet ( int sock /* socket no. */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine gets information from a PC card's CIS, configures the PC card,and allocates resources for the PC card.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if it cannot get the CIS information,configure the PC card, or allocate resources.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cisLib.html#top">cisLib</a></b><hr><a name="cisFree"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cisFree</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cisFree</i>( )</strong> - free tuples from the linked list</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void cisFree ( int sock /* socket no. */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine free tuples from the linked list.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cisLib.html#top">cisLib</a></b><hr><a name="cisConfigregGet"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cisConfigregGet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cisConfigregGet</i>( )</strong> - get the PCMCIA configuration register</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cisConfigregGet ( int sock, /* socket no. */ int reg, /* configuration register no. */ int * pValue /* content of the register */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine gets that PCMCIA configuration register.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if it cannot set a value on the PCMCIA chip.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cisLib.html#top">cisLib</a></b><hr><a name="cisConfigregSet"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cisConfigregSet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cisConfigregSet</i>( )</strong> - set the PCMCIA configuration register</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cisConfigregSet ( int sock, /* socket no. */ int reg, /* register no. */ int value /* content of the register */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine sets the PCMCIA configuration register.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if it cannot set a value on the PCMCIA chip.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cisLib.html#top">cisLib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -