Intel cPCI-7200 Switch User Manual


 
32
C/C++ Libraries
5.3 _7200_Initial
@ Description
A PCI-7200 card is initialized according to the card number.
Because the PCI-7200 is PCI bus architecture and meets the plug and play
design, the IRQ and base_address ( pass-through address) are assigned
by system BIOS directly. Every PCI-7200 card has to be initialized by this
function before calling other functions.
Note: Because configuration of PCI-7200 is handled by the system, there is
no jumpers or DMA selection on the PCI boards that need to be set up
by the users.
@ Syntax
Visual C++ (Windows 95)
int W_7200_Initial (U8 card_number, U16 *base_addresss, U8
*irq_no)
Visual Basic (Windows 95)
W_7200_Initial (ByVal card_number As Byte,
base_addresss As Integer, irq_no As Byte) As Long
C/C++ (DOS)
int _7200_Initial (U8 card_number, U16 *base_addresss,
U8 *irq_no)
@ Argument
card_number : the card number to be initialized, only four cards can be
initialized, the card number must be CARD_1, CARD_2, CARD_3 or
CARD_4.
base_address : the I/O port base address of the card, it is assigned by
system BIOS.
irq_no : system will give an available interrupt number to this card
automatically.
@ Return Code
ERR_NoError
ERR_InvalidBoardNumber
ERR_PCIBiosNotExist
ERR_PCICardNotExist
ERR_PCIIrqNotExist
ERR_BaseAddressError