191{
195 ULONG FirstFixedDescriptors, LastFixedDescriptors;
197 BOOLEAN IsFirstAltList, IsFirstDescriptor;
200
202
203
205 FirstFixedDescriptors = 0;
206 LastFixedDescriptors = 0;
208 AltListCount = 1;
211 {
213 {
215 {
217 ++AltListCount;
218
220 break;
221 }
222
224 {
226 break;
227 }
228
231 {
234
236 {
239 }
240 else
241 {
244 }
246
248 switch (DfState)
249 {
251 FirstFixedDescriptors += BitCount;
252 break;
253
256 break;
257
259 LastFixedDescriptors += BitCount;
260 break;
261
263 }
264
265 break;
266 }
267
271 {
272 switch (DfState)
273 {
275 ++FirstFixedDescriptors;
276 break;
277
280 break;
281
283 ++LastFixedDescriptors;
284 break;
285
287 }
288 break;
289 }
290
291 default:
294 break;
295 }
296
298 }
299
300
301 if ((
ResourceCount == 0) && (FirstFixedDescriptors == 0) && (LastFixedDescriptors == 0))
303
304
309 (FirstFixedDescriptors + LastFixedDescriptors);
313
317
320
321
322 IsFirstAltList =
TRUE;
327 {
329 {
331 {
332 if (!IsFirstAltList)
333 {
334
335 AltList->
Count += LastFixedDescriptors;
336
337
341
342
346 AltList->
Count += FirstFixedDescriptors;
347
349 }
350
351 IsFirstAltList =
FALSE;
352 break;
353 }
354
356 break;
357
359 {
361
363 break;
364 }
365
367 {
368 IsFirstDescriptor =
TRUE;
369
371 {
372 if (!(
Resource->IrqDescription.Mask & (1 <<
i)))
373 continue;
374
378 IsFirstDescriptor);
380
381 IsFirstDescriptor =
FALSE;
382 }
383
384 break;
385 }
386
388 {
389 IsFirstDescriptor =
TRUE;
390
392 {
393 if (!(
Resource->DmaDescription.Mask & (1 <<
i)))
394 continue;
395
399 IsFirstDescriptor);
401
402 IsFirstDescriptor =
FALSE;
403 }
404
405 break;
406 }
407
409 {
411
413 break;
414 }
415
417 {
419
421 break;
422 }
423
424 default:
427 break;
428 }
429
431 }
432
433
434 if (LastFixedDescriptors)
435 {
437
438
440
441
443 for (
i = 0;
i < AltListCount;
i++)
444 {
448
450 }
451 }
452
455}
#define RtlInitializeBitMap
#define RtlNumberOfSetBits
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static ULONG BitmapBuffer[(XMS_BLOCKS+31)/32]
static ULONG ResourceCount
static VOID IsaConvertIrqRequirement(_Out_ PIO_RESOURCE_DESCRIPTOR Descriptor, _In_ PISAPNP_IRQ_DESCRIPTION Description, _In_ ULONG Vector, _In_ BOOLEAN FirstDescriptor)
static VOID IsaConvertMemRange32Requirement(_Out_ PIO_RESOURCE_DESCRIPTOR Descriptor, _In_ PISAPNP_MEMRANGE32_DESCRIPTION Description)
static VOID IsaConvertMemRangeRequirement(_Out_ PIO_RESOURCE_DESCRIPTOR Descriptor, _In_ PISAPNP_MEMRANGE_DESCRIPTION Description)
static VOID IsaConvertDmaRequirement(_Out_ PIO_RESOURCE_DESCRIPTOR Descriptor, _In_ PISAPNP_DMA_DESCRIPTION Description, _In_ ULONG Channel, _In_ BOOLEAN FirstDescriptor)
ISAPNP_DEPENDENT_FUNCTION_STATE
#define ISAPNP_RESOURCE_TYPE_START_DEPENDENT
#define ISAPNP_RESOURCE_TYPE_END_DEPENDENT
FORCEINLINE PVOID ExAllocatePoolZero(ULONG PoolType, SIZE_T NumberOfBytes, ULONG Tag)
#define DEFAULT_UNREACHABLE
#define RTL_BITS_OF(sizeOfArg)
struct _IO_RESOURCE_DESCRIPTOR IO_RESOURCE_DESCRIPTOR
IO_RESOURCE_DESCRIPTOR Descriptors[1]
#define FIELD_OFFSET(t, f)
#define RtlCopyMemory(Destination, Source, Length)
PUSBHUB_PORT_PDO_EXTENSION NTAPI PdoExt(IN PDEVICE_OBJECT DeviceObject)
_In_ WDFIORESREQLIST RequirementsList
_Must_inspect_result_ _In_ WDFCMRESLIST List
struct _IO_RESOURCE_LIST * PIO_RESOURCE_LIST