/* Setup pointer to netX interrupt state register */ uint32_t u32DpmStatic = (DWORD)CreateStaticMapping((ptDrvDevInst->tDevInstance.ulPhysicalAddress >> 8), ptDrvDevInst->tDevInstance.ulDPMSize); RETAILMSG(1,(_T("HJWCFX (OS_EnableInterrupts): (fPCICard) Address to translate: %x size: %x \n"), (ptDrvDevInst->tDevInstance.ulPhysicalAddress >> 8), ptDrvDevInst->tDevInstance.ulDPMSize)); tGIISRInfo.CheckPort = TRUE; /* Our installable interrupt service routine, must be given a static, process independent, virtual mapped address to the device it will access in the interrupt context. So we need to create the address mapping here */ tGIISRInfo.PortAddr = u32DpmStatic + ptDrvDevInst->tDevInstance.ulDPMSize - sizeof(NETX_GLOBAL_REG_BLOCK) + offsetof(NETX_GLOBAL_REG_BLOCK, ulIRQState_0);