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:1615
#define WD_FUNCTION
Definition: windrvr.h:1838

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:767
WD_CARD Card
Card information.
Definition: windrvr.h:922
WD_PCI_SLOT pciSlot
PCI slot information.
Definition: windrvr.h:921
#define BZERO(buf)
Definition: windrvr.h:1548
#define WD_PciGetCardInfo(h, pPciCard)
Retrieves PCI device's resource information (i.e., Memory ranges, I/O ranges, Interrupt lines).
Definition: windrvr.h:2476

Definition at line 2476 of file windrvr.h.