Lines Matching refs:pCfg
1725 PI8042CFGINF pCfg = &pInit->DevExt.Cfg;
1726 PKEYBOARD_ID keyboardId = &pCfg->KbdAttr.KeyboardIdentifier;
1728 pCfg->PollingIterations = pCfg->PollingIterationsMaximum;
1730 pCfg->KbdAttr.NumberOfFunctionKeys = s_aKeybType[keyboardId->Type-1].cFunctionKeys;
1731 pCfg->KbdAttr.NumberOfIndicators = s_aKeybType[keyboardId->Type-1].cIndicators;
1732 pCfg->KbdAttr.NumberOfKeysTotal = s_aKeybType[keyboardId->Type-1].cKeysTotal;
1733 pCfg->KbdAttr.KeyboardMode = 1;
1734 pCfg->KbdAttr.KeyRepeatMinimum.Rate = 2;
1735 pCfg->KbdAttr.KeyRepeatMinimum.Delay = 250;
1736 pCfg->KbdAttr.KeyRepeatMaximum.Rate = 30;
1737 pCfg->KbdAttr.KeyRepeatMaximum.Delay = 1000;
1738 pCfg->KeyRepeatCurrent.Rate = 30;
1739 pCfg->KeyRepeatCurrent.Delay = 250;
2707 PI8042CFGINF pCfg = &pInit->DevExt.Cfg;
2710 pCfg->StallMicroseconds = 50;
2763 aQuery[3].EntryContext = &pCfg->KbdAttr.InputDataQueueLength;
2770 aQuery[4].EntryContext = &pCfg->MouAttr.InputDataQueueLength;
2852 pCfg->iResend = defaultResendIterations;
2853 pCfg->PollingIterations = defaultPollingIterations;
2854 pCfg->PollingIterationsMaximum = defaultPollingIterationsMaximum;
2855 pCfg->PollStatusIterations = defaultPollStatusIterations;
2856 pCfg->KbdAttr.InputDataQueueLength = defaultDataQueueSize;
2857 pCfg->MouAttr.InputDataQueueLength = defaultDataQueueSize;
2858 pCfg->EnableWheelDetection = defaultEnableWheelDetection;
2865 pCfg->iResend = (USHORT)iResend;
2866 pCfg->PollingIterations = (USHORT) pollingIterations;
2867 pCfg->PollingIterationsMaximum = (USHORT) pollingIterationsMaximum;
2868 pCfg->PollStatusIterations = (USHORT) pollStatusIterations;
2869 pCfg->EnableWheelDetection = (ULONG) ((enableWheelDetection) ? 1 : 0);
2872 if (pCfg->KbdAttr.InputDataQueueLength == 0)
2873 pCfg->KbdAttr.InputDataQueueLength = defaultDataQueueSize;
2874 pCfg->KbdAttr.InputDataQueueLength *= sizeof(KEYBOARD_INPUT_DATA);
2876 if (pCfg->MouAttr.InputDataQueueLength == 0)
2877 pCfg->MouAttr.InputDataQueueLength = defaultDataQueueSize;
2878 pCfg->MouAttr.InputDataQueueLength *= sizeof(MOUSE_INPUT_DATA);
2880 pCfg->MouAttr.NumberOfButtons = (USHORT)cButtons;
2881 pCfg->MouAttr.SampleRate = (USHORT)sampleRate;
2882 pCfg->MouseResolution = (USHORT)mouseResolution;
2887 pCfg->KbdAttr.KeyboardIdentifier.Type = (UCHAR) overrideKeyboardType;
2891 pCfg->KbdAttr.KeyboardIdentifier.Subtype = (UCHAR) overrideKeyboardSubtype;
2944 PI8042CFGINF pCfg = &pDevExt->Cfg;
2945 pCfg->KbdAttr.KeyboardIdentifier.Type = 0;
2946 pCfg->KbdAttr.KeyboardIdentifier.Subtype = 0;
2962 pCfg->KbdAttr.KeyboardIdentifier.Type = KbdData->Type;
2963 pCfg->KbdAttr.KeyboardIdentifier.Subtype = KbdData->Subtype;
2964 pCfg->KbdInd.LedFlags = (KbdData->KeyboardFlags >> 4) & 7;
2973 if (pCfg->KbdAttr.KeyboardIdentifier.Type == 0)
2975 pCfg->KbdAttr.KeyboardIdentifier.Type = 4;
2976 pCfg->KbdInd.LedFlags = 0;
2979 pCfg->InterfaceType = BusType;
2980 pCfg->uBusNr = uBusNr;
2981 pCfg->fFloatSave = FALSE;
3006 ASSERT(pCfg->cPorts < i8042MaxPorts);
3007 pCfg->aPorts[pCfg->cPorts] = *pResDesc;
3008 pCfg->aPorts[pCfg->cPorts].ShareDisposition = CmResourceShareDriverExclusive;
3009 pCfg->cPorts++;
3013 pCfg->KbdInt = *pResDesc;
3014 pCfg->KbdInt.ShareDisposition = fDefIntShare ? CmResourceShareShared
3027 if (!(pCfg->KbdInt.Type & CmResourceTypeInterrupt))
3029 pCfg->KbdInt.Type = CmResourceTypeInterrupt;
3030 pCfg->KbdInt.ShareDisposition = fDefIntShare ? CmResourceShareShared
3032 pCfg->KbdInt.Flags = (DefIntMode == Latched) ? CM_RESOURCE_INTERRUPT_LATCHED
3034 pCfg->KbdInt.u.Interrupt.Level = 1;
3035 pCfg->KbdInt.u.Interrupt.Vector = 1;
3038 if (pCfg->cPorts == 0)
3040 pCfg->aPorts[i8042Dat].Type = CmResourceTypePort;
3041 pCfg->aPorts[i8042Dat].Flags = CM_RESOURCE_PORT_IO;
3042 pCfg->aPorts[i8042Dat].ShareDisposition = CmResourceShareDriverExclusive;
3043 pCfg->aPorts[i8042Dat].u.Port.Start.LowPart = 0x60;
3044 pCfg->aPorts[i8042Dat].u.Port.Start.HighPart = 0;
3045 pCfg->aPorts[i8042Dat].u.Port.Length = 1;
3047 pCfg->aPorts[i8042Cmd].Type = CmResourceTypePort;
3048 pCfg->aPorts[i8042Cmd].Flags = CM_RESOURCE_PORT_IO;
3049 pCfg->aPorts[i8042Cmd].ShareDisposition = CmResourceShareDriverExclusive;
3050 pCfg->aPorts[i8042Cmd].u.Port.Start.LowPart = 0x64;
3051 pCfg->aPorts[i8042Cmd].u.Port.Start.HighPart = 0;
3052 pCfg->aPorts[i8042Cmd].u.Port.Length = 1;
3054 pCfg->cPorts = 2;
3056 else if (pCfg->cPorts == 1)
3058 pCfg->aPorts[i8042Dat].u.Port.Length = 1;
3059 pCfg->aPorts[i8042Cmd] = pCfg->aPorts[i8042Dat];
3060 pCfg->aPorts[i8042Cmd].u.Port.Start.LowPart += 4;
3061 pCfg->cPorts++;
3065 if (pCfg->aPorts[i8042Cmd].u.Port.Start.LowPart < pCfg->aPorts[i8042Dat].u.Port.Start.LowPart)
3067 CM_PARTIAL_RESOURCE_DESCRIPTOR Desc = pCfg->aPorts[i8042Dat];
3068 pCfg->aPorts[i8042Dat] = pCfg->aPorts[i8042Cmd];
3069 pCfg->aPorts[i8042Cmd] = Desc;
3110 PI8042CFGINF pCfg = &pDevExt->Cfg;
3113 pCfg->InterfaceType = BusType;
3114 pCfg->uBusNr = uBusNr;
3115 pCfg->fFloatSave = FALSE;
3120 if (pCfg->InterfaceType == MicroChannel)
3136 BOOLEAN fPortInfoNeeded = pCfg->cPorts ? FALSE : TRUE;
3145 pCfg->aPorts[pCfg->cPorts] = *pResDesc;
3146 pCfg->aPorts[pCfg->cPorts].ShareDisposition = CmResourceShareDriverExclusive;
3147 pCfg->cPorts++;
3152 pCfg->MouInt = *pResDesc;
3153 pCfg->MouInt.ShareDisposition = fDefIntShare ? CmResourceShareShared
3163 if (!(pCfg->MouInt.Type & CmResourceTypeInterrupt))
3165 pCfg->MouInt.Type = CmResourceTypeInterrupt;
3166 pCfg->MouInt.ShareDisposition = fDefIntShare ? CmResourceShareShared
3168 pCfg->MouInt.Flags = (DefIntMode == Latched) ? CM_RESOURCE_INTERRUPT_LATCHED
3170 pCfg->MouInt.u.Interrupt.Level = 12;
3171 pCfg->MouInt.u.Interrupt.Vector = 12;
3174 if (pCfg->cPorts == 0)
3176 pCfg->aPorts[i8042Dat].Type = CmResourceTypePort;
3177 pCfg->aPorts[i8042Dat].Flags = CM_RESOURCE_PORT_IO;
3178 pCfg->aPorts[i8042Dat].ShareDisposition = CmResourceShareDriverExclusive;
3179 pCfg->aPorts[i8042Dat].u.Port.Start.LowPart = 0x60;
3180 pCfg->aPorts[i8042Dat].u.Port.Start.HighPart = 0;
3181 pCfg->aPorts[i8042Dat].u.Port.Length = 1;
3183 pCfg->aPorts[i8042Cmd].Type = CmResourceTypePort;
3184 pCfg->aPorts[i8042Cmd].Flags = CM_RESOURCE_PORT_IO;
3185 pCfg->aPorts[i8042Cmd].ShareDisposition = CmResourceShareDriverExclusive;
3186 pCfg->aPorts[i8042Cmd].u.Port.Start.LowPart = 0x64;
3187 pCfg->aPorts[i8042Cmd].u.Port.Start.HighPart = 0;
3188 pCfg->aPorts[i8042Cmd].u.Port.Length = 1;
3190 pCfg->cPorts = 2;
3192 else if (pCfg->cPorts == 1)
3194 pCfg->aPorts[i8042Cmd] = pCfg->aPorts[i8042Dat];
3195 pCfg->aPorts[i8042Cmd].u.Port.Start.LowPart += 4;
3196 pCfg->cPorts++;
3200 if (pCfg->aPorts[i8042Cmd].u.Port.Start.LowPart < pCfg->aPorts[i8042Dat].u.Port.Start.LowPart)
3202 CM_PARTIAL_RESOURCE_DESCRIPTOR Desc = pCfg->aPorts[i8042Dat];
3203 pCfg->aPorts[i8042Dat] = pCfg->aPorts[i8042Cmd];
3204 pCfg->aPorts[i8042Cmd] = Desc;