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

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

232
233void
234MpEmitMappingInfo (
235 void)
236{
237
238 /* Mapfile option enabled? */
239
1/******************************************************************************
2 *
3 * Module Name: aslmapoutput - Output/emit the resource descriptor/device maps
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

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

232
233void
234MpEmitMappingInfo (
235 void)
236{
237
238 /* Mapfile option enabled? */
239
240 if (!Gbl_MapfileFlag)
240 if (!AslGbl_MapfileFlag)
241 {
242 return;
243 }
244
241 {
242 return;
243 }
244
245 if (!Gbl_GpioList)
245 if (!AslGbl_GpioList)
246 {
247 FlPrintFile (ASL_FILE_MAP_OUTPUT,
248 "\nNo GPIO devices found\n");
249 }
250
246 {
247 FlPrintFile (ASL_FILE_MAP_OUTPUT,
248 "\nNo GPIO devices found\n");
249 }
250
251 if (!Gbl_SerialList)
251 if (!AslGbl_SerialList)
252 {
253 FlPrintFile (ASL_FILE_MAP_OUTPUT,
254 "\nNo Serial devices found (I2C/SPI/UART)\n");
255 }
256
252 {
253 FlPrintFile (ASL_FILE_MAP_OUTPUT,
254 "\nNo Serial devices found (I2C/SPI/UART)\n");
255 }
256
257 if (!Gbl_GpioList && !Gbl_SerialList)
257 if (!AslGbl_GpioList && !AslGbl_SerialList)
258 {
259 return;
260 }
261
262 /* Headers */
263
264 FlPrintFile (ASL_FILE_MAP_OUTPUT, "\nResource Descriptor Connectivity Map\n");
265 FlPrintFile (ASL_FILE_MAP_OUTPUT, "------------------------------------\n");
266
267 /* Emit GPIO and Serial descriptors, then entire ACPI device tree */
268
269 MpEmitGpioInfo ();
270 MpEmitSerialInfo ();
271 MpEmitDeviceTree ();
272
273 /* Clear the lists - no need to free memory here */
274
258 {
259 return;
260 }
261
262 /* Headers */
263
264 FlPrintFile (ASL_FILE_MAP_OUTPUT, "\nResource Descriptor Connectivity Map\n");
265 FlPrintFile (ASL_FILE_MAP_OUTPUT, "------------------------------------\n");
266
267 /* Emit GPIO and Serial descriptors, then entire ACPI device tree */
268
269 MpEmitGpioInfo ();
270 MpEmitSerialInfo ();
271 MpEmitDeviceTree ();
272
273 /* Clear the lists - no need to free memory here */
274
275 Gbl_SerialList = NULL;
276 Gbl_GpioList = NULL;
275 AslGbl_SerialList = NULL;
276 AslGbl_GpioList = NULL;
277}
278
279
280/*******************************************************************************
281 *
282 * FUNCTION: MpEmitGpioInfo
283 *
284 * PARAMETERS: None

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

302 char *ParentPathname;
303 const char *Description;
304 char *HidString;
305 const AH_DEVICE_ID *HidInfo;
306
307
308 /* Walk the GPIO descriptor list */
309
277}
278
279
280/*******************************************************************************
281 *
282 * FUNCTION: MpEmitGpioInfo
283 *
284 * PARAMETERS: None

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

302 char *ParentPathname;
303 const char *Description;
304 char *HidString;
305 const AH_DEVICE_ID *HidInfo;
306
307
308 /* Walk the GPIO descriptor list */
309
310 Info = Gbl_GpioList;
310 Info = AslGbl_GpioList;
311 while (Info)
312 {
313 HidString = MpGetHidViaNamestring (Info->DeviceName);
314
315 /* Print header info for the controller itself */
316
317 if (!PrevDeviceName ||
318 strcmp (PrevDeviceName, Info->DeviceName))

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

435 char *HidString;
436 const AH_DEVICE_ID *HidInfo;
437 const char *Description;
438 AML_RESOURCE *Resource;
439
440
441 /* Walk the constructed serial descriptor list */
442
311 while (Info)
312 {
313 HidString = MpGetHidViaNamestring (Info->DeviceName);
314
315 /* Print header info for the controller itself */
316
317 if (!PrevDeviceName ||
318 strcmp (PrevDeviceName, Info->DeviceName))

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

435 char *HidString;
436 const AH_DEVICE_ID *HidInfo;
437 const char *Description;
438 AML_RESOURCE *Resource;
439
440
441 /* Walk the constructed serial descriptor list */
442
443 Info = Gbl_SerialList;
443 Info = AslGbl_SerialList;
444 while (Info)
445 {
446 Resource = Info->Resource;
447 switch (Resource->CommonSerialBus.Type)
448 {
449 case AML_RESOURCE_I2C_SERIALBUSTYPE:
450 Type = "I2C ";
451 break;

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

636
637static void
638MpXrefDevices (
639 ACPI_GPIO_INFO *Info)
640{
641
642 /* Walk the entire parse tree */
643
444 while (Info)
445 {
446 Resource = Info->Resource;
447 switch (Resource->CommonSerialBus.Type)
448 {
449 case AML_RESOURCE_I2C_SERIALBUSTYPE:
450 Type = "I2C ";
451 break;

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

636
637static void
638MpXrefDevices (
639 ACPI_GPIO_INFO *Info)
640{
641
642 /* Walk the entire parse tree */
643
644 TrWalkParseTree (Gbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD,
644 TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD,
645 MpNamespaceXrefBegin, NULL, Info);
646
647 if (!Info->References)
648 {
649 FlPrintFile (ASL_FILE_MAP_OUTPUT, " // **** No references in table");
650 }
651}
652

--- 98 unchanged lines hidden ---
645 MpNamespaceXrefBegin, NULL, Info);
646
647 if (!Info->References)
648 {
649 FlPrintFile (ASL_FILE_MAP_OUTPUT, " // **** No references in table");
650 }
651}
652

--- 98 unchanged lines hidden ---