int sm_get_card_info(struct sm_card_info_parms *cardinfop)
typedef struct sm_card_info_parms {
tSMCardId card; /* in */
enum kSMCarrierCardType {
kSMCarrierCardTypeYetUnknown,
kSMCarrierCardTypeISAS2,
kSMCarrierCardTypeBR4,
kSMCarrierCardTypeBR8,
kSMCarrierCardTypePCIP1,
kSMCarrierCardTypePCIC1,
kSMCarrierCardTypePS,
kSMCarrierCardTypePX,
} card_type; /* out */
tSM_INT card_detected; /* out */
tSM_INT module_count; /* out */
tSM_UT32 physical_address; /* out */
tSM_UT32 io_address; /* out */
tSM_UT32 physical_irq; /* out */
char serial_no[kSMMaxSerialNoText]; /* out */
} SM_CARD_INFO_PARMS;
Retrieves information about card hosting Prosody modules installed in system.
On return, card_type will be set to one of the following values:
| Card Type | Use |
|---|---|
| kSMCarrierCardTypeYetUnknown | Card type not yet determined by driver. |
| kSMCarrierCardTypeISAS2 | Card is ISA (S2) Prosody carrier card. |
| kSMCarrierCardTypeBR4 | Card is 4 port Basic Rate card. |
| kSMCarrierCardTypeBR8 | Card is 8 port Basic Rate card. |
| kSMCarrierCardTypePCIP1 | Prosody PCI card |
| kSMCarrierCardTypePCIC1 | Prosody cPCI card |
| kSMCarrierCardTypePS | Prosody S software 'card' |
| kSMCarrierCardTypePX | Prosody X card |
If the physical card presence has being established by the driver, card_detected will be set to a non-zero value.
The number of modules detected on the card is returned in module_count.
The 32 bit physical memory window that has been configured to address the card is returned in physical_address, the card's i/o address in io_address, and the interrupt invoked by the card in physical_irq. Only on Prosody version 2 (TiNG): These values are for indication only and may not be meaningful on every operating system. For PCI cards the io_address parameter contains the PCI device number for the card in the lower 8 bits, and the PCI bus number in the upper 8 bits.
Some carrier cards have a machine readable serial number. For such cards the serial number is returned as a zero terminated text string in the character array serial_no.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody generic API.