📄 syslib.html
字号:
<a name="sysMailboxEnable"></a><p align=right><a href="rtnIndex.html"><i>pcPentium : Routines</i></a></p></blockquote><h1><i>sysMailboxEnable</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysMailboxEnable</i>( )</strong> - enable the mailbox interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysMailboxEnable ( INT8 * mailboxAdrs /* mailbox address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine enables the mailbox interrupt.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since the hardware does not support mailboxinterrupts.<p></blockquote><h4>RETURNS</h4><blockquote><p>ERROR, always.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysMailboxConnect">sysMailboxConnect</a></i>( )</b><hr><a name="sysBusTas"></a><p align=right><a href="rtnIndex.html"><i>pcPentium : Routines</i></a></p></blockquote><h1><i>sysBusTas</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysBusTas</i>( )</strong> - test and set a location across the bus</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>BOOL sysBusTas ( INT8 * addr /* address to be tested and set */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine performs a test-and-set (TAS) instruction across the backplane.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine is equivalent to <b><i><a href="../hpux/sysLib.html#vxTas" >vxTas</a></i>( )</b>, since there is no VMEbus.<p></blockquote><h4>RETURNS</h4><blockquote><p>TRUE if the value had not been set but is now,or FALSE if the value was set already.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="../hpux/sysLib.html#vxTas" >vxTas</a></i>( )</b><hr><a name="pcConDrv"></a><p align=right><a href="rtnIndex.html"><i>pcPentium : Routines</i></a></p></blockquote><h1><i>pcConDrv</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>pcConDrv</i>( )</strong> - initialize the console driver </p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS pcConDrv (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the console driver, sets up interrupt vectors,and performs hardware initialization of the keybord and display.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the driver cannot be installed.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b><hr><a name="pcConDevCreate"></a><p align=right><a href="rtnIndex.html"><i>pcPentium : Routines</i></a></p></blockquote><h1><i>pcConDevCreate</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>pcConDevCreate</i>( )</strong> - create a device for the on-board ports</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS pcConDevCreate ( char * name, /* name to use for this device */ int channel, /* virtual console number */ int rdBufSize, /* read buffer size, in bytes */ int wrtBufSize /* write buffer size in bytes */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine creates a device on one of the pcConsole ports. Each portto be used should have only one device associated with it, by callingthis routine.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if there is no driver or one already exists for thespecified port.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b><hr><a name="kbdReset"></a><p align=right><a href="rtnIndex.html"><i>pcPentium : Routines</i></a></p></blockquote><h1><i>kbdReset</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>kbdReset</i>( )</strong> - reset a keyboard</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void kbdReset (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine resets the keyboard.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b><hr><a name="sysSerialHwInit"></a><p align=right><a href="rtnIndex.html"><i>pcPentium : Routines</i></a></p></blockquote><h1><i>sysSerialHwInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysSerialHwInit</i>( )</strong> - initialize the BSP serial devices to a quiescent state</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void sysSerialHwInit (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the BSP serial device descriptors and puts thedevices in a quiescent state. It is called from <b><i><a href="./sysLib.html#sysHwInit">sysHwInit</a></i>( )</b> withinterrupts locked.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysHwInit">sysHwInit</a></i>( )</b><hr><a name="sysSerialHwInit2"></a><p align=right><a href="rtnIndex.html"><i>pcPentium : Routines</i></a></p></blockquote><h1><i>sysSerialHwInit2</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysSerialHwInit2</i>( )</strong> - connect BSP serial device interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void sysSerialHwInit2 (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine connects the BSP serial device interrupts. It is called from<b><i><a href="./sysLib.html#sysHwInit2">sysHwInit2</a></i>( )</b>. <p>Serial device interrupts cannot be connected in <b><i><a href="./sysLib.html#sysSerialHwInit">sysSerialHwInit</a></i>( )</b> becausethe kernel memory allocator is not initialized at that point, and<b><i><a href="../../ref/intArchLib.html#intConnect" >intConnect</a></i>( )</b> calls <b><i><a href="../../ref/memPartLib.html#malloc" >malloc</a></i>( )</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysHwInit2">sysHwInit2</a></i>( )</b><hr><a name="sysSerialChanGet"></a><p align=right><a href="rtnIndex.html"><i>pcPentium : Routines</i></a></p></blockquote><h1><i>sysSerialChanGet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysSerialChanGet</i>( )</strong> - get the <b>SIO_CHAN</b> device associated with a serial channel</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>SIO_CHAN * sysSerialChanGet ( int channel /* serial channel */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine gets the <b>SIO_CHAN</b> device associated with a specified serialchannel.<p></blockquote><h4>RETURNS</h4><blockquote><p>A pointer to the <b>SIO_CHAN</b> structure for the channel, or ERRORif the channel is invalid.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b><hr><a name="sysClkConnect"></a><p align=right><a href="rtnIndex.html"><i>pcPentium : Routines</i></a></p></blockquote><h1><i>sysClkConnect</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysClkConnect</i>( )</strong> - connect a routine to the system clock interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysClkConnect ( FUNCPTR routine, /* routine to be called at each clock interrupt */ int arg /* argument with which to call routine */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine specifies the interrupt service routine to be called at eachclock interrupt. Normally, it is called from <b><i><a href="../../ref/usrConfig.html#usrRoot" >usrRoot</a></i>( )</b> in <b>usrConfig.c</b> to connect <b><i><a href="../../ref/usrConfig.html#usrClock" >usrClock</a></i>( )</b> to the system clock interrupt.<p></blockquote><h4>RETURN</h4><blockquote><p>OK, or ERROR if the routine cannot be connected to the interrupt.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="../../ref/intArchLib.html#intConnect" >intConnect</a></i>( )</b>, <b><i><a href="../../ref/usrConfig.html#usrClock" >usrClock</a></i>( )</b>, <b><i><a href="./sysLib.html#sysClkEnable">sysClkEnable</a></i>( )</b><hr><a name="sysClkDisable"></a><p align=right><a href="rtnIndex.html"><i>pcPentium : Routines</i></a></p></blockquote><h1><i>sysClkDisable</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysClkDisable</i>( )</strong> - turn off system clock interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void sysClkDisable (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine disables system clock interrupts.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysClkEnable">sysClkEnable</a></i>( )</b><hr><a name="sysClkEnable"></a><p align=right><a href="rtnIndex.html"><i>pcPentium : Routines</i></a></p></blockquote><h1><i>sysClkEnable</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysClkEnable</i>( )</strong> - turn on system clock interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void sysClkEnable (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine enables system clock interrupts.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysClkConnect">sysClkConnect</a></i>( )</b>, <b><i><a href="./sysLib.html#sysClkDisable">sysClkDisable</a></i>( )</b>, <b><i><a href="./sysLib.html#sysClkRateSet">sysClkRateSet</a></i>( )</b><hr><a name="sysClkRateGet"></a><p align=right><a href="rtnIndex.html"><i>pcPentium : Routines</i></a></p></blockquote><h1><i>sysClkRateGet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysClkRateGet</i>( )</strong> - get the system clock rate</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int sysClkRateGet (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the system clock rate.<p></blockquote><h4>RETURNS</h4><blockquote><p>The number of ticks per second of the system clock.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysClkEnable">sysClkEnable</a></i>( )</b>, <b><i><a href="./sysLib.html#sysClkRateSet">sysClkRateSet</a></i>( )</b><hr><a name="sysClkRateSet"></a><p align=right><a href="rtnIndex.html"><i>pcPentium : Routines</i></a></p></blockquote><h1><i>sysClkRateSet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysClkRateSet</i>( )</strong> - set the system clock rate</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysClkRateSet ( int ticksPerSecond /* number of clock interrupts per second */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine sets the interrupt rate of the system clock.It is called by <b><i><a href="../../ref/usrConfig.html#usrRoot" >usrRoot</a></i>( )</b> in <b>usrConfig.c</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the tick rate is invalid or the timer cannot be set.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysClkEnable">sysClkEnable</a></i>( )</b>, <b><i><a href="./sysLib.html#sysClkRateGet">sysClkRateGet</a></i>( )</b>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -