ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 Alpha Data


ADMXRC_CARD_INFO

Declaration

typedef struct _ADMXRC_CARD_INFO
{
    ADMXRC_DEVICE_NUM CardID;
    unsigned long     RAMBankFitted[4];
    ADMXRC_FPGA_TYPE  FPGAType;
    unsigned long     PhysicalMemoryBase;
    unsigned long*    MemoryBase;
    unsigned long     BoardRevision;
    unsigned long     LogicRevision;
    unsigned long     SerialNum;
    unsigned long     Timeout;
} ADMXRC_CARD_INFO;

Description

The ADMXRC_CARD_INFO structure is returned by ADMXRC_GetCardInfo and contains information about a card. Some applications may require this information in order, for example, to load the correct bitstream for the FPGA fitted to the card.

The CardID member, of type ADMXRC_DEVICE_NUM, is the ID of the card. This value returned is read from an EEPROM on the card.

Each element of the RAMBankFitted array bitmap indicates the size of particular RAM bank on the card, in words. A size of zero indicates that the bank is not fitted. The memory on an ADM-XRC or ADM-XRC-P card is 36 bit wide flow-through ZBT synchronous SRAM.

The FPGAType member, of the enumerated type ADMXRC_FPGATYPE, identifies the type of FPGA fitted to the card. The FPGA package is BG560 on ADM-XRC and ADM-XRC-P cards.

The PhysicalMemoryBase member is the address of the FPGA space in the physical address space of the bus on which the card resides. For example, an ADM-XRC card is a PCI Mezzanine Card so this value would represent the PCI address of the beginning of FPGA space.

The MemoryBase member is the address, in the application's address space, by which the FPGA may be accessed using pointers as a memory-mapped device.

The BoardRevision member is the revision of the board, as a two digit number 0xAB where A is the major revision and B is the minor revision.

The LogicRevision member is the revision of the control logic on the board, as a two digit number 0xAB where A is the major revision and B is the minor revision.

The SerialNum member is the serial number of the card.

The Timeout member should be ignored.

 


 Top of page