Jungo WinDriver  
Official Documentation

◆ WD_PciResetCard

#define WD_PciResetCard (   h,
  pPciSlot 
)
Value:
#define FALSE
Definition: kpstdlib.h:261
#define IOCTL_WD_PCI_RESET_CARD
Definition: windrvr.h:1700
#define WD_FUNCTION
Definition: windrvr.h:1870

Reset the PCI function without affecting other functions on the device.

This operation performs a Function Level Reset (FLR), if supported by the device. Note: The device must support this capability; otherwise, the operation will fail.

Parameters
[in]hHandle to WinDriver's kernel-mode driver as received from WD_Open()
[in]pPciSlotPointer to a PCI slot information structure
Returns
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise
DWORD dwStatus;
WD_PCI_SLOT pciSlot = { 0 };
pciSlot.dwDomain = dwDomain
pciSlot.dwBus = dwBus
pciSlot.dwSlot = dwSlot
pciSlot.dwFunction = dwFunction
dwStatus = WD_PciResetCard(ghWD, &pciSlot);
if (WD_STATUS_SUCCESS != dwStatus)
{
printf("Failed resetting the device. Error [0x%lx - %s]\n",
dwStatus, Stat2Str(dwStatus));
}
const char *DLLCALLCONV Stat2Str(_In_ DWORD dwStatus)
Retrieves the status string that corresponds to a status code.
DWORD dwBus
Bus number.
Definition: windrvr.h:875
DWORD dwFunction
Function number.
Definition: windrvr.h:877
DWORD dwSlot
Slot number.
Definition: windrvr.h:876
DWORD dwDomain
Domain number.
Definition: windrvr.h:873
#define WD_PciResetCard(h, pPciSlot)
Reset the PCI function without affecting other functions on the device.
Definition: windrvr.h:2546
@ WD_STATUS_SUCCESS
[0] Operation completed successfully
Definition: windrvr.h:1089

Definition at line 2546 of file windrvr.h.