Jungo WinDriver  
Official Documentation

◆ WD_PciGetCardInfo

#define WD_PciGetCardInfo (   h,
  pPciCard 
)
Value:
#define FALSE
Definition: kpstdlib.h:260
#define IOCTL_WD_PCI_GET_CARD_INFO
Definition: windrvr.h:1620
#define WD_FUNCTION
Definition: windrvr.h:1843

Retrieves PCI device's resource information (i.e., Memory ranges, I/O ranges, Interrupt lines).

Parameters
[in]hHandle to WinDriver's kernel-mode driver as received from WD_Open()
[in,out]pPciCardPointer to a PCI card information structure
Returns
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise
WD_PCI_CARD_INFO pciCardInfo;
WD_CARD Card;
BZERO(pciCardInfo);
pciCardInfo.pciSlot = pciSlot;
WD_PciGetCardInfo(hWD, &pciCardInfo);
if (pciCardInfo.Card.dwItems!=0) /* At least one item was found */
{
Card = pciCardInfo.Card;
}
else
{
printf("Failed fetching PCI card information\n");
}
DWORD dwItems
Definition: windrvr.h:771
WD_CARD Card
Card information.
Definition: windrvr.h:926
WD_PCI_SLOT pciSlot
PCI slot information.
Definition: windrvr.h:925
#define BZERO(buf)
Definition: windrvr.h:1553
#define WD_PciGetCardInfo(h, pPciCard)
Retrieves PCI device's resource information (i.e., Memory ranges, I/O ranges, Interrupt lines).
Definition: windrvr.h:2481

Definition at line 2481 of file windrvr.h.