aslmapenter.c (4b49587c3dd54aed8eb103d838a89ca79484a9b6) aslmapenter.c (6f1f1a6395c91c5a845727d7313921a6fe3d297b)
1/******************************************************************************
2 *
3 * Module Name: aslmapenter - Build resource descriptor/device maps
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

--- 190 unchanged lines hidden (view full) ---

199 char *DeviceName)
200{
201 ACPI_GPIO_INFO *Info;
202 UINT32 i;
203
204
205 /* Mapfile option enabled? */
206
1/******************************************************************************
2 *
3 * Module Name: aslmapenter - Build resource descriptor/device maps
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

--- 190 unchanged lines hidden (view full) ---

199 char *DeviceName)
200{
201 ACPI_GPIO_INFO *Info;
202 UINT32 i;
203
204
205 /* Mapfile option enabled? */
206
207 if (!Gbl_MapfileFlag)
207 if (!AslGbl_MapfileFlag)
208 {
209 return;
210 }
211
212 /* Create an info block for each pin defined in the descriptor */
213
214 for (i = 0; i < PinCount; i++)
215 {

--- 34 unchanged lines hidden (view full) ---

250{
251 ACPI_SERIAL_INFO *Info;
252 UINT16 Address;
253 UINT32 Speed;
254
255
256 /* Mapfile option enabled? */
257
208 {
209 return;
210 }
211
212 /* Create an info block for each pin defined in the descriptor */
213
214 for (i = 0; i < PinCount; i++)
215 {

--- 34 unchanged lines hidden (view full) ---

250{
251 ACPI_SERIAL_INFO *Info;
252 UINT16 Address;
253 UINT32 Speed;
254
255
256 /* Mapfile option enabled? */
257
258 if (!Gbl_MapfileFlag)
258 if (!AslGbl_MapfileFlag)
259 {
260 return;
261 }
262
263 if (Resource->DescriptorType != ACPI_RESOURCE_NAME_SERIAL_BUS)
264 {
265 return;
266 }

--- 63 unchanged lines hidden (view full) ---

330 /*
331 * Allocate a new info block and insert it into the global GPIO list
332 * sorted by both source device name and then the pin number. There is
333 * one block per pin.
334 */
335 Buffer = UtLocalCacheCalloc (sizeof (ACPI_GPIO_INFO));
336 Info = ACPI_CAST_PTR (ACPI_GPIO_INFO, Buffer);
337
259 {
260 return;
261 }
262
263 if (Resource->DescriptorType != ACPI_RESOURCE_NAME_SERIAL_BUS)
264 {
265 return;
266 }

--- 63 unchanged lines hidden (view full) ---

330 /*
331 * Allocate a new info block and insert it into the global GPIO list
332 * sorted by both source device name and then the pin number. There is
333 * one block per pin.
334 */
335 Buffer = UtLocalCacheCalloc (sizeof (ACPI_GPIO_INFO));
336 Info = ACPI_CAST_PTR (ACPI_GPIO_INFO, Buffer);
337
338 NextGpio = Gbl_GpioList;
338 NextGpio = AslGbl_GpioList;
339 PrevGpio = NULL;
339 PrevGpio = NULL;
340 if (!Gbl_GpioList)
340 if (!AslGbl_GpioList)
341 {
341 {
342 Gbl_GpioList = Info;
342 AslGbl_GpioList = Info;
343 Info->Next = NULL;
344 return (Info);
345 }
346
347 /* Sort on source DeviceName first */
348
349 while (NextGpio &&
350 (strcmp (DeviceName, NextGpio->DeviceName) > 0))

--- 15 unchanged lines hidden (view full) ---

366 /* Finish the list insertion */
367
368 if (PrevGpio)
369 {
370 PrevGpio->Next = Info;
371 }
372 else
373 {
343 Info->Next = NULL;
344 return (Info);
345 }
346
347 /* Sort on source DeviceName first */
348
349 while (NextGpio &&
350 (strcmp (DeviceName, NextGpio->DeviceName) > 0))

--- 15 unchanged lines hidden (view full) ---

366 /* Finish the list insertion */
367
368 if (PrevGpio)
369 {
370 PrevGpio->Next = Info;
371 }
372 else
373 {
374 Gbl_GpioList = Info;
374 AslGbl_GpioList = Info;
375 }
376
377 Info->Next = NextGpio;
378 return (Info);
379}
380
381
382/*******************************************************************************

--- 24 unchanged lines hidden (view full) ---

407
408 /*
409 * Allocate a new info block and insert it into the global Serial list
410 * sorted by both source device name and then the address.
411 */
412 Buffer = UtLocalCacheCalloc (sizeof (ACPI_SERIAL_INFO));
413 Info = ACPI_CAST_PTR (ACPI_SERIAL_INFO, Buffer);
414
375 }
376
377 Info->Next = NextGpio;
378 return (Info);
379}
380
381
382/*******************************************************************************

--- 24 unchanged lines hidden (view full) ---

407
408 /*
409 * Allocate a new info block and insert it into the global Serial list
410 * sorted by both source device name and then the address.
411 */
412 Buffer = UtLocalCacheCalloc (sizeof (ACPI_SERIAL_INFO));
413 Info = ACPI_CAST_PTR (ACPI_SERIAL_INFO, Buffer);
414
415 NextSerial = Gbl_SerialList;
415 NextSerial = AslGbl_SerialList;
416 PrevSerial = NULL;
416 PrevSerial = NULL;
417 if (!Gbl_SerialList)
417 if (!AslGbl_SerialList)
418 {
418 {
419 Gbl_SerialList = Info;
419 AslGbl_SerialList = Info;
420 Info->Next = NULL;
421 return (Info);
422 }
423
424 /* Sort on source DeviceName */
425
426 while (NextSerial &&
427 (strcmp (DeviceName, NextSerial->DeviceName) > 0))

--- 15 unchanged lines hidden (view full) ---

443 /* Finish the list insertion */
444
445 if (PrevSerial)
446 {
447 PrevSerial->Next = Info;
448 }
449 else
450 {
420 Info->Next = NULL;
421 return (Info);
422 }
423
424 /* Sort on source DeviceName */
425
426 while (NextSerial &&
427 (strcmp (DeviceName, NextSerial->DeviceName) > 0))

--- 15 unchanged lines hidden (view full) ---

443 /* Finish the list insertion */
444
445 if (PrevSerial)
446 {
447 PrevSerial->Next = Info;
448 }
449 else
450 {
451 Gbl_SerialList = Info;
451 AslGbl_SerialList = Info;
452 }
453
454 Info->Next = NextSerial;
455 return (Info);
456}
452 }
453
454 Info->Next = NextSerial;
455 return (Info);
456}