Jungo WinDriver  
Official Documentation
wdc_defs.h File Reference
#include "wdc_lib.h"

Go to the source code of this file.

Data Structures

struct  WDC_ADDR_DESC
 Address space information struct. More...
 
struct  WDC_DEVICE
 Device information struct. More...
 

Macros

#define WDC_MEM_DIRECT_ADDR(pAddrDesc)   (pAddrDesc)->pUserDirectMemAddr
 Get direct memory address pointer.
 
#define WDC_ADDR_IS_MEM(pAddrDesc)   (pAddrDesc)->fIsMemory
 Check if memory or I/O address.
 
#define WDC_GET_KP_HANDLE(pDev)    ((WDC_DEVICE *)((PWDC_DEVICE)(pDev)))->kerPlug.hKernelPlugIn
 Get Kernel PlugIn handle.
 
#define WDC_IS_KP(pDev)   (BOOL)(WDC_GET_KP_HANDLE(pDev))
 Does the device use a Kernel PlugIn driver.
 
#define WDC_GET_PCARD(pDev)   (&(((PWDC_DEVICE)(pDev))->cardReg.Card))
 Get pointer to device's resources struct (WD_CARD) from device information struct pointer.
 
#define WDC_GET_CARD_HANDLE(pDev)   (((PWDC_DEVICE)(pDev))->cardReg.hCard)
 Get card handle from device information struct pointer.
 
#define WDC_GET_PPCI_SLOT(pDev)   (&(((PWDC_DEVICE)(pDev))->slot))
 Get pointer to WD PCI slot from device information struct pointer.
 
#define WDC_GET_PPCI_ID(pDev)   (&(((PWDC_DEVICE)(pDev))->id))
 Get pointer to WD id from device information struct pointer.
 
#define WDC_GET_ADDR_DESC(pDev, dwAddrSpace)    (&(((PWDC_DEVICE)(pDev))->pAddrDesc[dwAddrSpace]))
 Get address space descriptor from device information struct pointer.
 
#define WDC_GET_ADDR_SPACE_SIZE(pDev, dwAddrSpace)    ((((PWDC_DEVICE)(pDev))->pAddrDesc[dwAddrSpace]).qwBytes)
 Get address space descriptor size from device information struct pointer.
 
#define WDC_GET_ENABLED_INT_TYPE(pDev)    ((PWDC_DEVICE)pDev)->Int.dwEnabledIntType
 Get type of enabled interrupt from device information struct pointer.
 
#define WDC_GET_INT_OPTIONS(pDev)   ((PWDC_DEVICE)pDev)->Int.dwOptions
 Get interrupt options field from device information struct pointer.
 
#define WDC_INT_IS_MSI(dwIntType)    (dwIntType & (INTERRUPT_MESSAGE | INTERRUPT_MESSAGE_X))
 Returns whether the MSI/MSI-X interrupt option is set.
 
#define WDC_GET_ENABLED_INT_LAST_MSG(pDev)
 Get the message data of the last received MSI/MSI-X interrupt.
 

Typedefs

typedef struct WDC_DEVICE WDC_DEVICE
 Device information struct.
 
typedef struct WDC_DEVICEPWDC_DEVICE