VxWorks BSP Reference : evb403
sysLib [evb403] - IBM 403 EVB system-dependent routines
sysFlashGet( ) - get the contents of flash memory
sysFlashDelay( ) - create a delay for a specified number of microseconds
sysFlashDataPoll( ) - wait for a flash device operation to complete
sysSectorErase( ) - erase the contents of a sector
sysFlashErase( ) - erase the contents of flash memory
sysFlashWrite( ) - write data to flash memory
sysFlashTypeGet( ) - determine the device type of on-board flash memory
sysFlashSet( ) - write to flash memory
sysNvRamGet( ) - get the contents of non-volatile RAM
sysNvRamSet( ) - write to non-volatile RAM
sysLocalToBusAdrs( ) - convert a local address to a bus address
sysBusToLocalAdrs( ) - convert a bus address to a local address
sysBusIntAck( ) - acknowledge a bus interrupt
sysBusIntGen( ) - generate a bus interrupt
sysMailboxConnect( ) - connect a routine to the mailbox interrupt
sysMailboxEnable( ) - enable the mailbox interrupt
sysBusTas( ) - test and set a location across the bus
sysPpc403IntrInit( ) - initialize the PPC403GA interrupt facility
sysPpc403IntHandler( ) - PPC403GA external interrupt handler
sysClkConnect( ) - connect a routine to the system clock interrupt
sysClkEnable( ) - turn on system clock interrupts
sysClkDisable( ) - turn off system clock interrupts
sysClkRateGet( ) - get the system clock rate
sysClkRateSet( ) - set the system clock rate
sysAuxClkConnect( ) - connect a routine to the auxiliary clock interrupt
sysAuxClkEnable( ) - turn on auxiliary clock interrupts
sysAuxClkDisable( ) - turn off auxiliary clock interrupts
sysAuxClkRateGet( ) - get the auxiliary clock rate
sysAuxClkRateSet( ) - set the auxiliary clock rate
sysWdtConnect( ) - connect a routine to the watchdog interrupt
sysWdtEnable( ) - turn on watchdog interrupts
sysWdtDisable( ) - turn off watchdog interrupts
sysWdtRateGet( ) - get the watchdog timer rate
sysWdtRateSet( ) - set the watchdog timer rate
sysTimestampConnect( ) - connect a user routine to a timestamp timer interrupt
sysTimestampEnable( ) - initialize and enable a timestamp timer
sysTimestampDisable( ) - disable a timestamp timer
sysTimestampPeriod( ) - get a timestamp timer period
sysTimestampFreq( ) - get a timestamp timer clock frequency
sysTimestamp( ) - get a timestamp timer tick count
sysTimestampLock( ) - lock an interrupt and get a timestamp timer tick count
sysSerialHwInit( ) - initialize the BSP serial devices to a quiescent state
sysSerialHwInit2( ) - connect BSP serial device interrupts
sysSerialChanGet( ) - get the SIO_CHAN device associated with a serial channel
sysModel( ) - return the model name of the CPU board
sysBspRev( ) - return the BSP version and revision number
sysHwInit( ) - initialize the system hardware
sysHwInit2( ) - initialize additional system hardware
sysPhysMemTop( ) - get the address of the top of physical memory
sysMemTop( ) - get the address of the top of VxWorks memory
sysToMonitor( ) - transfer control to the ROM monitor
sysProcNumGet( ) - get the processor number
sysProcNumSet( ) - set the processor number
sysEnetAddrGet( ) - get the hardware Ethernet address
sysIntLockLevelSet( ) - set the current interrupt lock-out level
sysLanIntEnable( ) - enable the LAN interrupt
sysLanIntDisable( ) - disable the LAN interrupt
sysInByte( ) - read one byte from an I/O address
sysOutByte( ) - write one byte to an I/O address
This library provides board-specific routines. The chip drivers included are:
ppc403Sio.c - PPC403GA embedded serial controller library (S1)
evbNs16550Sio.c - National Semiconductor 16550 UART library (S2)
ppc403Timer.c - on-chip timer library
flashMem.c - generic flash memory library
nvRamToFlash.c - non-volatile RAM-to-flash memory library
ppc403Intr.c - on-chip programmable interrupt controller library
if_nicEvb - NS 83902A ST-NIC chip network interface library (nicEvb)
sysLib.h
VxWorks Programmer's Guide: Configuration
sysFlashGet( ) - get the contents of flash memory
STATUS sysFlashGet ( char * string, /* where to copy flash memory */ int strLen, /* maximum number of bytes to copy */ int offset /* byte offset into flash memory */ )
This routine copies the contents of flash memory into a specified string. The string is terminated with an EOS.
OK, or ERROR if access is outside the flash memory range.
sysLib, sysFlashSet( )
sysFlashDelay( ) - create a delay for a specified number of microseconds
void sysFlashDelay ( int delayCount /* number of uSec to delay */ )
This routine implements a busy wait for a specified number of microseconds. The timing loop can be adjusted on a board-dependent basis by defining values for the following macros:
The values SYS_FLASH_DELAY_SHIFT and SYS_FLASH_DELAY_ADJ convert microseconds into a board-dependent tick-count. This routine can call a user-defined hook, sysFlashBoardDelay( ), which creates a delay for a number of board-dependent ticks as specified by SYS_FLASH_DELAY_INCR. To use sysFlashBoardDelay( ), define SYS_FLASH_BOARD_DELAY in config.h.
- SYS_FLASH_DELAY_SHIFT
- SYS_FLASH_DELAY_ADJ
- SYS_FLASH_DELAY_INCR
N/A
sysLib, sysFlashErase( ), sysFlashWrite( )
sysFlashDataPoll( ) - wait for a flash device operation to complete
STATUS sysFlashDataPoll ( volatile UINT8 * pFA, /* programmed address to poll */ UINT8 value /* data programmed to poll address */ )
This routine polls a specified address on a 29Fxxx flash device until the device operation at that location completes or times out.
While a flash operation is in progress, a read on the device returns on Q7 (data bit 7) the complement of the previous value of Q7. Once the flash operation has completed, the Q7 bit returns the true data of the last write. Subsequent reads return the correct data in Q0-7.
The Q5 bit implements a timeout functionality. When a currently executing flash operation exceeds specified limits, the Q5 bit is set (to 1).
OK, or ERROR if the timeout (!Q5) occurs before the device operation completes.
sysLib, sysFlashErase( ), sysFlashWrite( )
sysSectorErase( ) - erase the contents of a sector
STATUS sysSectorErase ( UINT8 * pFA, /* Sector start address */ UINT8 flashType /* type of flash memory on-board */ )
This routine clears the contents of one sector in the flash memory.
Flash 29Fxxx devices are erased by writing the six-byte erase code into specific address locations, which sets all byte locations to a high value (0xFF).
OK, or ERROR if the contents of sector cannot be erased.
sysFlashErase( ) - erase the contents of flash memory
STATUS sysFlashErase ( UINT8 flashType /* type of flash memory on-board */ )
This routine clears the contents of flash memory.
Flash 28Fxxx devices are erased by writing a flash erase command to the device and verifying that each flash location is set to a high value (0xFF).
Flash 29Fxxx devices are erased by writing the six-byte erase code into specific address locations, which sets all byte locations to a high value (0xFF).
OK, or ERROR if the contents of flash memory cannot be erased.
sysFlashWrite( ) - write data to flash memory
STATUS sysFlashWrite ( UINT8 * pFB, /* string to be copied; use value if NULL */ int size, /* size to program in bytes */ int offset, /* byte offset into flash memory */ UINT8 flashType, /* type of flash memory on-board */ UINT8 value /* value to program */ )
This routine copies specified data of a specified length, size, into a specified offset, offset, in the flash memory. Data is passed as a string, pFB, if not NULL. If NULL, data is taken as a repeated sequence of value. The parameter flashType should be set to the flash device code. The parameter offset must be appropriately aligned for the width of the Flash devices in use.
Flash 28Fxxx devices are programmed by a sequence of operations:
- set up device to write
- perform write
- verify the write
Flash 29Fxxx devices are programmed by a sequence of operations:
- set up device to write
- perform write
- wait for the write to complete
OK, or ERROR if the write operation fails.
sysLib, sysFlashSet( )
sysFlashTypeGet( ) - determine the device type of on-board flash memory
UINT8 sysFlashTypeGet (void)
This routine uses the autoselect command to determine the device type of on-board flash memory for flash 29Fxxx devices.
An integer indicating the device type of on-board flash memory.
sysFlashSet( ) - write to flash memory
STATUS sysFlashSet ( char * string, /* string to be copied into flash memory */ int strLen, /* maximum number of bytes to copy */ int offset /* byte offset into flash memory */ )
This routine copies a specified string into flash memory after calling sysFlashErase( ) and clearing flash memory.
If FLASH_NO_OVERLAY is defined, the parameter offset must be appropriately aligned for the Flash devices in use (device width, sector size etc.).
If the specified string must be overlaid on the contents of flash memory, undefine FLASH_NO_OVERLAY.
OK, or ERROR if the write fails or the input parameters are out of range.
sysLib, sysFlashErase( ), sysFlashGet( ), sysFlashTypeGet( ), sysFlashWrite( )
sysNvRamGet( ) - get the contents of non-volatile RAM
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 */ )
This routine calls sysFlashGet( ) to copy the contents of flash memory into a specified string. The string is terminated with an EOS.
This routine uses flash memory, since there is no NVRAM on the IBM 403 EVB.
The return value of sysFlashGet( ).
sysLib, sysNvRamSet( ), sysFlashGet( )
sysNvRamSet( ) - write to non-volatile RAM
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 */ )
This routine calls sysFlashSet( ) to copy a specified string into flash memory.
This routine uses flash memory, since there is no NVRAM on the IBM 403 EVB.
The return value of sysFlashSet( ).
sysLib, sysNvRamGet( ), sysFlashSet( )
sysLocalToBusAdrs( ) - convert a local address to a bus address
STATUS sysLocalToBusAdrs ( int adrsSpace, /* bus address space in which busAdrs */ /* resides, use address modifier codes defined */ /* in vme.h, such as VME_AM_STD_SUP_DATA */ char * localAdrs, /* local address to convert */ char * *pBusAdrs /* where to return bus address */ )
This routine gets the VMEbus address that accesses a specified local memory address.
This routine has no effect, since there is no VMEbus.
ERROR, always.
sysBusToLocalAdrs( ) - convert a bus address to a local address
STATUS sysBusToLocalAdrs ( int adrsSpace, /* bus address space in which busAdrs */ /* resides, use address modifier codes defined */ /* in vme.h, such as VME_AM_STD_SUP_DATA */ char * busAdrs, /* bus address to convert */ char * *pLocalAdrs /* where to return local address */ )
This routine gets the local address that accesses a specified VMEbus address.
This routine has no effect, since there is no VMEbus.
ERROR, always.
sysBusIntAck( ) - acknowledge a bus interrupt
int sysBusIntAck ( int intLevel /* interrupt level to acknowledge */ )
This routine acknowledges a specified VMEbus interrupt level.
This routine has no effect, since there is no VMEbus.
NULL.
sysBusIntGen( ) - generate a bus interrupt
STATUS sysBusIntGen ( int level, /* bus interrupt level to generate */ int vector /* interrupt vector to return (0-255) */ )
This routine generates a VMEbus interrupt for a specified level with a specified vector.
This routine has no effect, since there is no VMEbus.
ERROR, always.
sysMailboxConnect( ) - connect a routine to the mailbox interrupt
STATUS sysMailboxConnect ( FUNCPTR routine, /* routine called at each mailbox interrupt */ int arg /* argument with which to call routine */ )
This routine specifies the interrupt service routine to be called at each mailbox interrupt.
This routine has no effect, since the hardware does not support mailbox interrupts.
ERROR, always.
sysMailboxEnable( ) - enable the mailbox interrupt
STATUS sysMailboxEnable ( INT8 * mailboxAdrs /* mailbox address */ )
This routine enables the mailbox interrupt.
This routine has no effect, since the hardware does not support mailbox interrupts.
ERROR, always.
sysBusTas( ) - test and set a location across the bus
BOOL sysBusTas ( INT8 * addr /* address to be tested and set */ )
This routine performs a test-and-set (TAS) instruction across the backplane.
This routine is equivalent to vxTas( ), since there is no VMEbus.
TRUE if the value had not been set but is now, or FALSE if the value was set already.
sysPpc403IntrInit( ) - initialize the PPC403GA interrupt facility
STATUS sysPpc403IntrInit (void)
This routine initializes the interrupt facility for the PPC403GA Embedded Controller.
OK, always.
sysPpc403IntHandler( ) - PPC403GA external interrupt handler
void sysPpc403IntHandler (void)
This is the external interrupt handler for the PPC403GA Embedded Controller. In case of DMA interrupts, the DMA Status register is always passed to the ISR, that was connected to the DMA interrupt via intConnect( ), as an argument.
N/A
sysClkConnect( ) - connect a routine to the system clock interrupt
STATUS sysClkConnect ( FUNCPTR routine, /* routine to connect */ int arg /* argument with which to call the routine */ )
This routine specifies the interrupt service routine to be called at each clock interrupt. Normally, it is called from usrRoot( ) in usrConfig.c to connect usrClock( ) to the system clock interrupt. It also connects the clock error interrupt service routine.
OK, or ERROR if the routine cannot be connected to the interrupt.
sysLib, usrClock( ), sysClkEnable( )
sysClkEnable( ) - turn on system clock interrupts
void sysClkEnable (void)
This routine enables system clock interrupts.
N/A
sysLib, sysClkConnect( ), sysClkDisable( ), sysClkRateSet( )
sysClkDisable( ) - turn off system clock interrupts
void sysClkDisable (void)
This routine disables system clock interrupts.
N/A
sysLib, sysClkEnable( )
sysClkRateGet( ) - get the system clock rate
int sysClkRateGet (void)
This routine returns the system clock rate.
The number of ticks per second of the system clock.
sysLib, sysClkEnable( ), sysClkRateSet( )
sysClkRateSet( ) - set the system clock rate
STATUS sysClkRateSet ( int ticksPerSecond /* number of clock interrupts per second */ )
This routine sets the interrupt rate of the system clock. It does not enable system clock interrupts. It is called by usrRoot( ) in usrConfig.c.
OK, or ERROR if the tick rate is invalid or the timer cannot be set.
sysLib, sysClkEnable( ), sysClkRateGet( )
sysAuxClkConnect( ) - connect a routine to the auxiliary clock interrupt
STATUS sysAuxClkConnect ( FUNCPTR routine, /* routine called at each aux. clock interrupt */ int arg /* argument to auxiliary clock interrupt */ )
This routine specifies the interrupt service routine to be called at each auxiliary clock interrupt. It does not enable auxiliary clock interrupts.
OK, or ERROR if the routine cannot be connected to the interrupt.
sysLib, excIntConnectTimer( ), sysAuxClkEnable( )
sysAuxClkEnable( ) - turn on auxiliary clock interrupts
void sysAuxClkEnable (void)
This routine enables auxiliary clock interrupts.
N/A
sysLib, sysAuxClkConnect( ), sysAuxClkDisable( ), sysAuxClkRateSet( )
sysAuxClkDisable( ) - turn off auxiliary clock interrupts
void sysAuxClkDisable (void)
This routine disables auxiliary clock interrupts.
N/A
sysAuxClkRateGet( ) - get the auxiliary clock rate
int sysAuxClkRateGet (void)
This routine returns the interrupt rate of the auxiliary clock.
The number of ticks per second of the auxiliary clock.
sysLib, sysAuxClkEnable( ), sysAuxClkRateSet( )
sysAuxClkRateSet( ) - set the auxiliary clock rate
STATUS sysAuxClkRateSet ( int ticksPerSecond /* number of clock interrupts per second */ )
This routine sets the interrupt rate of the auxiliary clock. It does not enable auxiliary clock interrupts.
OK, or ERROR if the tick rate is invalid or the timer cannot be set.
sysLib, sysAuxClkEnable( ), sysAuxClkRateGet( )
sysWdtConnect( ) - connect a routine to the watchdog interrupt
STATUS sysWdtConnect ( FUNCPTR routine, /* routine called at each watchdog interrupt */ int arg /* argument with which to call routine */ )
This routine specifies the interrupt service routine to be called at each watchdog interrupt. It does not enable watchdog interrupts.
OK, or ERROR if the routine cannot be connected to the watchdog interrupt.
sysLib, excIntCrtConnect( ), sysWdtEnable( )
sysWdtEnable( ) - turn on watchdog interrupts
void sysWdtEnable (void)
This routine enables watchdog interrupts.
N/A
sysLib, sysWdtConnect( ), sysWdtDisable( ), sysWdtRateSet( )
sysWdtDisable( ) - turn off watchdog interrupts
void sysWdtDisable (void)
This routine disables watchdog interrupts. This routine does not disable critical interrupts.
N/A
sysLib, sysWdtEnable( )
sysWdtRateGet( ) - get the watchdog timer rate
int sysWdtRateGet (void)
This routine returns the interrupt rate of the watchdog timer.
The number of watchdog interrupts per second.
sysLib, sysWdtEnable( ), sysWdtRateSet( )
sysWdtRateSet( ) - set the watchdog timer rate
STATUS sysWdtRateSet ( int ticksPerSecond /* number of clock interrupts per second */ )
This routine sets the interrupt rate of the watchdog timer. It does not enable watchdog interrupts.
OK, or ERROR if the tick rate is invalid or the timer cannot be set.
sysLib, sysWdtEnable( ), sysWdtRateGet( )
sysTimestampConnect( ) - connect a user routine to a timestamp timer interrupt
STATUS sysTimestampConnect ( FUNCPTR routine, /* routine called at each timestamp timer */ /* interrupt */ int arg /* argument with which to call routine */ )
This routine specifies the user interrupt routine to be called at each timestamp timer interrupt. In this case, however, the timestamp timer interrupt is not used since the on-chip timer is also used by the system clock.
OK, or ERROR if sysTimestampInt( ) interrupt handler is not used.
sysTimestampEnable( ) - initialize and enable a timestamp timer
STATUS sysTimestampEnable (void)
This routine disables the timestamp timer interrupt and initializes the counter registers. If the timestamp timer is already running, this routine merely resets the timer counter.
This routine does not intialize the timer rate. The rate of the timestamp timer should be set explicitly in the BSP by sysHwInit( ).
OK, or ERROR if the timestamp timer cannot be enabled.
sysTimestampDisable( ) - disable a timestamp timer
STATUS sysTimestampDisable (void)
This routine disables the timestamp timer. Interrupts are not disabled; however, because the tick counter does not increment after the timestamp timer is disabled, interrupts no longer are generated.
OK, or ERROR if the timestamp timer cannot be disabled.
sysTimestampPeriod( ) - get a timestamp timer period
UINT32 sysTimestampPeriod (void)
This routine specifies the period of the timestamp timer, in ticks. The period, or terminal count, is the number of ticks to which the timestamp timer counts before rolling over and restarting the counting process.
The period of the timestamp timer in counter ticks.
sysTimestampFreq( ) - get a timestamp timer clock frequency
UINT32 sysTimestampFreq (void)
This routine specifies the frequency of the timer clock, in ticks per second. The rate of the timestamp timer should be set explicitly in the BSP by sysHwInit( ).
The timestamp timer clock frequency, in ticks per second.
sysTimestamp( ) - get a timestamp timer tick count
UINT32 sysTimestamp (void)
This routine returns the current value of the timestamp timer tick counter. The tick count can be converted to seconds by dividing by the return of sysTimestampFreq( ).
This routine should be called with interrupts locked. If interrupts are not locked, sysTimestampLock( ) should be used instead.
The current timestamp timer tick count.
sysLib, sysTimestampFreq( ), sysTimestampLock( )
sysTimestampLock( ) - lock an interrupt and get a timestamp timer tick count
UINT32 sysTimestampLock (void)
This routine locks interrupts when stop the tick counter must be stopped in order to read it or when two independent counters must be read. It then returns the current value of the timestamp timer tick counter.
The tick count can be converted to seconds by dividing by the return of sysTimestampFreq( ).
If interrupts are already locked, sysTimestamp( ) should be used instead.
The current timestamp timer tick count.
sysLib, sysTimestamp( )
sysSerialHwInit( ) - initialize the BSP serial devices to a quiescent state
void sysSerialHwInit (void)
This routine initializes the BSP serial device descriptors and puts the devices in a quiescent state. It is called from sysHwInit( ) with interrupts locked.
N/A
sysSerialHwInit2( ) - connect BSP serial device interrupts
void sysSerialHwInit2 (void)
This routine connects the BSP serial device interrupts. It is called from sysHwInit2( ).
Serial device interrupts cannot be connected in sysSerialHwInit( ) because the kernel memory allocator is not initialized at that point, and intConnect( ) calls malloc( ).
N/A
sysLib, sysHwInit2( )
sysSerialChanGet( ) - get the SIO_CHAN device associated with a serial channel
SIO_CHAN * sysSerialChanGet ( int channel /* serial channel */ )
This routine returns a pointer to the SIO_CHAN device associated with a specified serial channel. It is called by usrRoot( ) to obtain pointers when creating the system serial devices, /tyCo/x. It is also used by the WDB agent to locate its serial channel.
A pointer to the SIO_CHAN structure for the channel, or ERROR if the channel is invalid.
sysModel( ) - return the model name of the CPU board
char * sysModel (void)
This routine returns the model name of the CPU board.
A pointer to the string "IBM EVB403 - PowerPC 403XX". Where XX is either GA, GC, or GCX.
sysBspRev( ) - return the BSP version and revision number
char * sysBspRev (void)
This routine returns a pointer to a BSP version and revision number, for example, 1.1/0. BSP_REV is concatenated to BSP_VERSION and returned.
A pointer to the BSP version/revision string.
sysHwInit( ) - initialize the system hardware
void sysHwInit (void)
This routine initializes various features of the IBM 403 EVB board. This routine clears and turns off the external interrupts. It is called from usrInit( ) in usrConfig.c.
This routine should not be called directly by the user application.
N/A
sysHwInit2( ) - initialize additional system hardware
void sysHwInit2 (void)
This routine connects system interrupts and configures any required features not configured by sysHwInit( ).
N/A
sysPhysMemTop( ) - get the address of the top of physical memory
char * sysPhysMemTop (void)
This routine returns the address of the first missing byte of memory, which indicates the top of memory.
Normally, the user specifies the amount of physical memory with the macro LOCAL_MEM_SIZE in config.h. BSPs that support run-time memory sizing do so only if the macro LOCAL_MEM_AUTOSIZE is defined. If not defined, then LOCAL_MEM_SIZE is assumed to be, and must be, the true size of physical memory.
Do not adjust LOCAL_MEM_SIZE to reserve memory for application use. See sysMemTop( ) for more information on reserving memory.
The address of the top of physical memory.
sysMemTop( ) - get the address of the top of VxWorks memory
char * sysMemTop (void)
This routine returns a pointer to the first byte of memory not controlled or used by VxWorks.
The user can reserve memory space by defining the macro USER_RESERVED_MEM in config.h. This routine returns the address of the reserved memory area. The value of USER_RESERVED_MEM is in bytes.
The address of the top of VxWorks memory.
sysToMonitor( ) - transfer control to the ROM monitor
STATUS sysToMonitor ( int startType /* parameter passed to ROM to tell it how */ /* to boot */ )
This routine transfers control to the ROM monitor. Normally, it is called only by reboot( )--which services ^X--and by bus errors at interrupt level. However, in special circumstances, the user may wish to introduce a startType to enable special boot ROM facilities.
Does not return.
sysProcNumGet( ) - get the processor number
int sysProcNumGet (void)
This routine returns the processor number for the CPU board, which is set with sysProcNumSet( ).
The processor number for the CPU board, always 0 (zero).
sysLib, sysProcNumSet( )
sysProcNumSet( ) - set the processor number
void sysProcNumSet ( int procNum /* processor number (ignored 403 EVB) */ )
This routine sets the processor number for the CPU board. Processor numbers should be unique on a single backplane.
This routine has no effect, since there is no VMEbus.
N/A
sysLib, sysProcNumGet( ),
sysEnetAddrGet( ) - get the hardware Ethernet address
STATUS sysEnetAddrGet ( int unit, UINT8 * addr )
This routine determines the unique Ethernet address for the CPU board and copies it to addr, such that the low-order byte is addr[0] and the high-order byte is addr[5]. The memory area pointed to by addr is six bytes.
OK, or ERROR if the Ethernet address cannot be returned.
sysIntLockLevelSet( ) - set the current interrupt lock-out level
int sysIntLockLevelSet ( int newLvl /* new interrupt level */ )
This routine sets the current interrupt lock-out level.
This routine has no effect, since the facility is currently not implemented.
ERROR, always.
sysLanIntEnable( ) - enable the LAN interrupt
STATUS sysLanIntEnable ( int intLevel /* interrupt level to enable */ )
This routine enables interrupts at a specified level for the on-board LAN chip. LAN interrupts are controlled by the ISA Bridge Control (IBC) chip. The LANCE chip on this board is on the Peripheral Component Interconnect (PCI) bus. The PCI interrupts should be routed through the IBC to the processor. The LANCE chip asserts PCI IRQ0 which is routed to the IBC. The IBC must be programmed to generate an ISA IRQ10.
OK, or ERROR if network support not included.
sysLanIntDisable( ) - disable the LAN interrupt
STATUS sysLanIntDisable ( int intLevel /* interrupt level to enable */ )
This routine disables interrupts for the on-board LAN chip.
OK, or ERROR if network support not included.
sysInByte( ) - read one byte from an I/O address
UCHAR sysInByte ( ULONG address /* I/O address to read the byte from */ )
This routine reads a single byte from a specified I/O address.
The byte from the specified address.
sysOutByte( ) - write one byte to an I/O address
void sysOutByte ( ULONG address, /* I/O address to write the byte to */ UCHAR data /* byte to write */ )
This routine writes a single byte to a specified I/O address.
N/A