?? syslib.html
字號:
<html><head><!-- /vobs/wpwr/docs/vxworks/bsp/pc486/sysLib.html - generated by refgen from sysLib.i --> <title> sysLib [pc486] </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>BSP Reference : pc486</i></a></p></blockquote><h1>sysLib [pc486]</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>sysLib [pc486]</strong> - PC 386/486/Pentium/Pentiumpro system-dependent library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./sysLib.html#sysNvRamGet">sysNvRamGet</a></i>( )</b> - get the contents of non-volatile RAM<br><b><i><a href="./sysLib.html#sysNvRamSet">sysNvRamSet</a></i>( )</b> - write to non-volatile RAM<br><b><i><a href="./sysLib.html#sysLocalToBusAdrs">sysLocalToBusAdrs</a></i>( )</b> - convert a local address to a bus address<br><b><i><a href="./sysLib.html#sysBusToLocalAdrs">sysBusToLocalAdrs</a></i>( )</b> - convert a bus address to a local address<br><b><i><a href="./sysLib.html#sysBusIntAck">sysBusIntAck</a></i>( )</b> - acknowledge a bus interrupt<br><b><i><a href="./sysLib.html#sysBusIntGen">sysBusIntGen</a></i>( )</b> - generate a bus interrupt<br><b><i><a href="./sysLib.html#sysMailboxConnect">sysMailboxConnect</a></i>( )</b> - connect a routine to the mailbox interrupt<br><b><i><a href="./sysLib.html#sysMailboxEnable">sysMailboxEnable</a></i>( )</b> - enable the mailbox interrupt<br><b><i><a href="./sysLib.html#sysBusTas">sysBusTas</a></i>( )</b> - test and set a location across the bus<br><b><i><a href="./sysLib.html#pcConDrv">pcConDrv</a></i>( )</b> - initialize the console driver <br><b><i><a href="./sysLib.html#pcConDevCreate">pcConDevCreate</a></i>( )</b> - create a device for the on-board ports<br><b><i><a href="./sysLib.html#kbdReset">kbdReset</a></i>( )</b> - reset a keyboard<br><b><i><a href="./sysLib.html#sysSerialHwInit">sysSerialHwInit</a></i>( )</b> - initialize the BSP serial devices to a quiescent state<br><b><i><a href="./sysLib.html#sysSerialHwInit2">sysSerialHwInit2</a></i>( )</b> - connect BSP serial device interrupts<br><b><i><a href="./sysLib.html#sysSerialChanGet">sysSerialChanGet</a></i>( )</b> - get the <b>SIO_CHAN</b> device associated with a serial channel<br><b><i><a href="./sysLib.html#sysClkConnect">sysClkConnect</a></i>( )</b> - connect a routine to the system clock interrupt<br><b><i><a href="./sysLib.html#sysClkDisable">sysClkDisable</a></i>( )</b> - turn off system clock interrupts<br><b><i><a href="./sysLib.html#sysClkEnable">sysClkEnable</a></i>( )</b> - turn on system clock interrupts<br><b><i><a href="./sysLib.html#sysClkRateGet">sysClkRateGet</a></i>( )</b> - get the system clock rate<br><b><i><a href="./sysLib.html#sysClkRateSet">sysClkRateSet</a></i>( )</b> - set the system clock rate<br><b><i><a href="./sysLib.html#sysAuxClkConnect">sysAuxClkConnect</a></i>( )</b> - connect a routine to the auxiliary clock interrupt<br><b><i><a href="./sysLib.html#sysAuxClkDisable">sysAuxClkDisable</a></i>( )</b> - turn off auxiliary clock interrupts<br><b><i><a href="./sysLib.html#sysAuxClkEnable">sysAuxClkEnable</a></i>( )</b> - turn on auxiliary clock interrupts<br><b><i><a href="./sysLib.html#sysAuxClkRateGet">sysAuxClkRateGet</a></i>( )</b> - get the auxiliary clock rate<br><b><i><a href="./sysLib.html#sysAuxClkRateSet">sysAuxClkRateSet</a></i>( )</b> - set the auxiliary clock rate<br><b><i><a href="./sysLib.html#pciConfigLibInit">pciConfigLibInit</a></i>( )</b> - initialize the configuration access-method and addresses<br><b><i><a href="./sysLib.html#pciFindDevice">pciFindDevice</a></i>( )</b> - find the nth device with the given device & vendor ID<br><b><i><a href="./sysLib.html#pciFindClass">pciFindClass</a></i>( )</b> - find the nth occurence of a device by PCI class code.<br><b><i><a href="./sysLib.html#pciDevConfig">pciDevConfig</a></i>( )</b> - configure a device on a PCI bus<br><b><i><a href="./sysLib.html#pciConfigBdfPack">pciConfigBdfPack</a></i>( )</b> - pack parameters for the Configuration Address Register<br><b><i><a href="./sysLib.html#pciConfigInByte">pciConfigInByte</a></i>( )</b> - read one byte from the PCI configuration space<br><b><i><a href="./sysLib.html#pciConfigInWord">pciConfigInWord</a></i>( )</b> - read one word from the PCI configuration space<br><b><i><a href="./sysLib.html#pciConfigInLong">pciConfigInLong</a></i>( )</b> - read one longword from the PCI configuration space<br><b><i><a href="./sysLib.html#pciConfigOutByte">pciConfigOutByte</a></i>( )</b> - write one byte to the PCI configuration space<br><b><i><a href="./sysLib.html#pciConfigOutWord">pciConfigOutWord</a></i>( )</b> - write one 16-bit word to the PCI configuration space<br><b><i><a href="./sysLib.html#pciConfigOutLong">pciConfigOutLong</a></i>( )</b> - write one longword to the PCI configuration space<br><b><i><a href="./sysLib.html#pciConfigModifyLong">pciConfigModifyLong</a></i>( )</b> - Perform a masked longword register update<br><b><i><a href="./sysLib.html#pciConfigModifyWord">pciConfigModifyWord</a></i>( )</b> - Perform a masked longword register update<br><b><i><a href="./sysLib.html#pciConfigModifyByte">pciConfigModifyByte</a></i>( )</b> - Perform a masked longword register update<br><b><i><a href="./sysLib.html#pciSpecialCycle">pciSpecialCycle</a></i>( )</b> - generate a special cycle with a message<br><b><i><a href="./sysLib.html#pciIntLibInit">pciIntLibInit</a></i>( )</b> - <br><b><i><a href="./sysLib.html#pciInt">pciInt</a></i>( )</b> - interrupt handler for shared PCI interrupt.<br><b><i><a href="./sysLib.html#pciIntConnect">pciIntConnect</a></i>( )</b> - connect the interrupt handler to the PCI interrupt.<br><b><i><a href="./sysLib.html#pciIntDisconnect">pciIntDisconnect</a></i>( )</b> - disconnect the interrupt handler from the PCI interrupt.<br><b><i><a href="./sysLib.html#pciDeviceShow">pciDeviceShow</a></i>( )</b> - print information about PCI devices<br><b><i><a href="./sysLib.html#pciHeaderShow">pciHeaderShow</a></i>( )</b> - print a header of the specified PCI device<br><b><i><a href="./sysLib.html#pciFindDeviceShow">pciFindDeviceShow</a></i>( )</b> - find a device by deviceId, then print an information.<br><b><i><a href="./sysLib.html#pciFindClassShow">pciFindClassShow</a></i>( )</b> - find a device by 24-bit class code<br><b><i><a href="./sysLib.html#sys557PciInit">sys557PciInit</a></i>( )</b> - prepare LAN adapter for 82557 initialization<br><b><i><a href="./sysLib.html#sys557Init">sys557Init</a></i>( )</b> - prepare LAN adapter for 82557 initialization<br><b><i><a href="./sysLib.html#sys557Show">sys557Show</a></i>( )</b> - shows 82557 configuration <br><b><i><a href="./sysLib.html#sysEnetAddrGet">sysEnetAddrGet</a></i>( )</b> - retrieve net unit's Ethernet address<br><b><i><a href="./sysLib.html#sys596Init">sys596Init</a></i>( )</b> - prepare a LAN board for Ethernet initialization<br><b><i><a href="./sysLib.html#sys596IntAck">sys596IntAck</a></i>( )</b> - acknowledge an Ethernet chip interrupt <br><b><i><a href="./sysLib.html#sys596IntEnable">sys596IntEnable</a></i>( )</b> - enable an interrupt from an Intel 82596 Ethernet chip<br><b><i><a href="./sysLib.html#sys596IntDisable">sys596IntDisable</a></i>( )</b> - disable an interrupt from an Intel 82596 Ethernet chip<br><b><i><a href="./sysLib.html#sys596Port">sys596Port</a></i>( )</b> - issue PORT command to 82596<br><b><i><a href="./sysLib.html#sys596ChanAtn">sys596ChanAtn</a></i>( )</b> - assert channel attention signal to an Intel 82596<br><b><i><a href="./sysLib.html#sysScsiInit">sysScsiInit</a></i>( )</b> - initialize the SCSI system<br><b><i><a href="./sysLib.html#sysScsiConfig">sysScsiConfig</a></i>( )</b> - system SCSI configuration<br><b><i><a href="./sysLib.html#sysModel">sysModel</a></i>( )</b> - return the model name of the CPU board<br><b><i><a href="./sysLib.html#sysBspRev">sysBspRev</a></i>( )</b> - return the BSP version and revision number<br><b><i><a href="./sysLib.html#sysHwInit">sysHwInit</a></i>( )</b> - initialize the system hardware<br><b><i><a href="./sysLib.html#sysHwInit2">sysHwInit2</a></i>( )</b> - additional system configuration and initialization<br><b><i><a href="./sysLib.html#sysPhysMemTop">sysPhysMemTop</a></i>( )</b> - get the address of the top of physical memory<br><b><i><a href="./sysLib.html#sysMemTop">sysMemTop</a></i>( )</b> - get the address of the top of VxWorks memory<br><b><i><a href="./sysLib.html#sysToMonitor">sysToMonitor</a></i>( )</b> - transfer control to the ROM monitor<br><b><i><a href="./sysLib.html#sysIntLock">sysIntLock</a></i>( )</b> - lock out all interrupts<br><b><i><a href="./sysLib.html#sysIntUnlock">sysIntUnlock</a></i>( )</b> - unlock the PIC interrupts<br><b><i><a href="./sysLib.html#sysIntDisablePIC">sysIntDisablePIC</a></i>( )</b> - disable a bus interrupt level<br><b><i><a href="./sysLib.html#sysIntEnablePIC">sysIntEnablePIC</a></i>( )</b> - enable a bus interrupt level<br><b><i><a href="./sysLib.html#sysIntLevel">sysIntLevel</a></i>( )</b> - get an IRQ(PIC) or INTIN(APIC) number in service<br><b><i><a href="./sysLib.html#sysProcNumGet">sysProcNumGet</a></i>( )</b> - get the processor number<br><b><i><a href="./sysLib.html#sysProcNumSet">sysProcNumSet</a></i>( )</b> - set the processor number<br><b><i><a href="./sysLib.html#sysDelay">sysDelay</a></i>( )</b> - allow recovery time for port accesses<br><b><i><a href="./sysLib.html#sysMmuMapAdd">sysMmuMapAdd</a></i>( )</b> - insert a new mmu mapping<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides board-specific routines. The chip drivers included are:<p> <b>i8250Sio.c</b> - Intel 8250 UART tty driver<br> <b>i8253Timer.c</b> - Intel 8253 timer driver<br> <b>i8259Intr.c</b> - Intel 8259 Programmable Interrupt Controller (PIC) library<br> <b>nullNvRam.c</b> - null NVRAM library<br> <b>nullVme.c</b> - null VMEbus library<br> <b>if_eex32.c</b> - Intel Ether Express (EISA) Ethernet network interface driver<br> <b>pciConfigLib.c</b> - PCI configuration space access support for PCI drivers<br> <b>pciIntLib.c</b> - PCI shared interrupt support<br> <b>pciConfigShow.c</b> - Show routines for PCI configuration library<br> <b>if_fei.c</b> - Intel 82557 Ethernet network interface driver<br> <b>aic7880Lib.c</b> - Adaptec 7880 SCSI Host Adapter Library<br> <b>sysEl3c90xEnd.c</b> - system configuration module for el3c90xEnd driver<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>sysLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <i>VxWorks Programmer's Guide: Configuration</i><hr><a name="sysNvRamGet"></a><p align=right><a href="rtnIndex.html"><i>pc486 : Routines</i></a></p></blockquote><h1><i>sysNvRamGet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysNvRamGet</i>( )</strong> - get the contents of non-volatile RAM</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysNvRamGet ( char * string, /* where to copy non-volatile RAM */ int strLen, /* maximum number of bytes to copy */ int offset /* byte offset into non-volatile RAM */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine copies the contents of non-volatile memory into a specifiedstring. The string is terminated with an EOS.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since there is no non-volatile RAM.<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#sysNvRamSet">sysNvRamSet</a></i>( )</b><hr><a name="sysNvRamSet"></a><p align=right><a href="rtnIndex.html"><i>pc486 : Routines</i></a></p></blockquote><h1><i>sysNvRamSet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysNvRamSet</i>( )</strong> - write to non-volatile RAM</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysNvRamSet ( char * string, /* string to be copied into non-volatile RAM */ int strLen, /* maximum number of bytes to copy */ int offset /* byte offset into non-volatile RAM */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine copies a specified string into non-volatile RAM.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since there is no non-volatile RAM.<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#sysNvRamGet">sysNvRamGet</a></i>( )</b><hr><a name="sysLocalToBusAdrs"></a><p align=right><a href="rtnIndex.html"><i>pc486 : Routines</i></a></p></blockquote><h1><i>sysLocalToBusAdrs</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysLocalToBusAdrs</i>( )</strong> - convert a local address to a bus address</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysLocalToBusAdrs ( int adrsSpace, /* bus address space in which busAdrs resides, use */ /* modifier codes defined in vme.h, such as */ char * localAdrs, /* local address to convert */ char * *pBusAdrs /* where to return bus address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine gets the VMEbus address that accesses a specified localmemory address.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since there is no VMEbus.<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#sysBusToLocalAdrs">sysBusToLocalAdrs</a></i>( )</b><hr><a name="sysBusToLocalAdrs"></a><p align=right><a href="rtnIndex.html"><i>pc486 : Routines</i></a></p></blockquote><h1><i>sysBusToLocalAdrs</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysBusToLocalAdrs</i>( )</strong> - convert a bus address to a local address</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysBusToLocalAdrs ( int adrsSpace, /* bus address space in which busAdrs resides, use */ /* modifier codes defined in vme.h, such as */ char * busAdrs, /* bus address to convert */ char * *pLocalAdrs /* where to return local address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine gets the local address that accesses a specified VMEbusaddress.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since there is no VMEbus.<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#sysLocalToBusAdrs">sysLocalToBusAdrs</a></i>( )</b><hr><a name="sysBusIntAck"></a><p align=right><a href="rtnIndex.html"><i>pc486 : Routines</i></a></p></blockquote><h1><i>sysBusIntAck</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysBusIntAck</i>( )</strong> - acknowledge a bus interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int sysBusIntAck ( int intLevel /* interrupt level to acknowledge */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine acknowledges a specified VMEbus interrupt level.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since there is no VMEbus.<p></blockquote><h4>RETURNS</h4><blockquote><p>NULL.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b><hr><a name="sysBusIntGen"></a><p align=right><a href="rtnIndex.html"><i>pc486 : Routines</i></a></p></blockquote><h1><i>sysBusIntGen</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysBusIntGen</i>( )</strong> - generate a bus interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysBusIntGen ( int level, /* bus interrupt level to generate */ int vector /* interrupt vector to return (0-255) */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine generates a VMEbus interrupt for a specified level with aspecified vector.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since there is no VMEbus.<p></blockquote><h4>RETURNS</h4><blockquote><p>ERROR, always.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b><hr><a name="sysMailboxConnect"></a><p align=right><a href="rtnIndex.html"><i>pc486 : Routines</i></a></p></blockquote><h1><i>sysMailboxConnect</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysMailboxConnect</i>( )</strong> - connect a routine to the mailbox interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysMailboxConnect ( FUNCPTR routine, /* routine called at each mailbox 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 eachmailbox 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#sysMailboxEnable">sysMailboxEnable</a></i>( )</b><hr><a name="sysMailboxEnable"></a>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -