Deleted Added
full compact
dttable.c (217365) dttable.c (218590)
1/******************************************************************************
2 *
3 * Module Name: dttable.c - handling for specific ACPI tables
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2011, Intel Corp.

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

1273 }
1274
1275 return (AE_OK);
1276}
1277
1278
1279/******************************************************************************
1280 *
1/******************************************************************************
2 *
3 * Module Name: dttable.c - handling for specific ACPI tables
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2011, Intel Corp.

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

1273 }
1274
1275 return (AE_OK);
1276}
1277
1278
1279/******************************************************************************
1280 *
1281 * FUNCTION: DtTableInfoGeneric
1281 * FUNCTION: DtGetGenericTableInfo
1282 *
1283 * PARAMETERS: Name - Generic type name
1284 *
1285 * RETURN: Info entry
1286 *
1287 * DESCRIPTION: Obtain table info for a generic name entry
1288 *
1289 *****************************************************************************/
1290
1282 *
1283 * PARAMETERS: Name - Generic type name
1284 *
1285 * RETURN: Info entry
1286 *
1287 * DESCRIPTION: Obtain table info for a generic name entry
1288 *
1289 *****************************************************************************/
1290
1291static ACPI_DMTABLE_INFO *
1292DtTableInfoGeneric (
1291ACPI_DMTABLE_INFO *
1292DtGetGenericTableInfo (
1293 char *Name)
1294{
1295 ACPI_DMTABLE_INFO *Info;
1296 UINT32 i;
1297
1298
1299 if (!Name)
1300 {

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

1341 ACPI_STATUS Status;
1342 DT_SUBTABLE *Subtable;
1343 DT_SUBTABLE *ParentTable;
1344 DT_FIELD **PFieldList = (DT_FIELD **) List;
1345 ACPI_DMTABLE_INFO *Info;
1346 UINT16 *DataOffset;
1347
1348
1293 char *Name)
1294{
1295 ACPI_DMTABLE_INFO *Info;
1296 UINT32 i;
1297
1298
1299 if (!Name)
1300 {

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

1341 ACPI_STATUS Status;
1342 DT_SUBTABLE *Subtable;
1343 DT_SUBTABLE *ParentTable;
1344 DT_FIELD **PFieldList = (DT_FIELD **) List;
1345 ACPI_DMTABLE_INFO *Info;
1346 UINT16 *DataOffset;
1347
1348
1349 /* Compile the predefined portion of the UEFI table */
1350
1349 Status = DtCompileTable (PFieldList, AcpiDmTableInfoUefi,
1350 &Subtable, TRUE);
1351 if (ACPI_FAILURE (Status))
1352 {
1353 return (Status);
1354 }
1355
1356 DataOffset = (UINT16 *) (Subtable->Buffer + 16);
1357 *DataOffset = sizeof (ACPI_TABLE_UEFI);
1358
1359 ParentTable = DtPeekSubtable ();
1360 DtInsertSubtable (ParentTable, Subtable);
1361
1351 Status = DtCompileTable (PFieldList, AcpiDmTableInfoUefi,
1352 &Subtable, TRUE);
1353 if (ACPI_FAILURE (Status))
1354 {
1355 return (Status);
1356 }
1357
1358 DataOffset = (UINT16 *) (Subtable->Buffer + 16);
1359 *DataOffset = sizeof (ACPI_TABLE_UEFI);
1360
1361 ParentTable = DtPeekSubtable ();
1362 DtInsertSubtable (ParentTable, Subtable);
1363
1364 /*
1365 * Compile the "generic" portion of the UEFI table. This
1366 * part of the table is not predefined and any of the generic
1367 * operators may be used.
1368 */
1369
1370 /* Find any and all labels in the entire generic portion */
1371
1372 DtDetectAllLabels (*PFieldList);
1373
1374 /* Now we can actually compile the parse tree */
1375
1362 while (*PFieldList)
1363 {
1376 while (*PFieldList)
1377 {
1364 Info = DtTableInfoGeneric ((*PFieldList)->Name);
1378 Info = DtGetGenericTableInfo ((*PFieldList)->Name);
1365 if (!Info)
1366 {
1367 sprintf (MsgBuffer, "Generic data type \"%s\" not found",
1368 (*PFieldList)->Name);
1369 DtNameError (ASL_ERROR, ASL_MSG_INVALID_FIELD_NAME,
1370 (*PFieldList), MsgBuffer);
1371
1372 *PFieldList = (*PFieldList)->Next;

--- 86 unchanged lines hidden ---
1379 if (!Info)
1380 {
1381 sprintf (MsgBuffer, "Generic data type \"%s\" not found",
1382 (*PFieldList)->Name);
1383 DtNameError (ASL_ERROR, ASL_MSG_INVALID_FIELD_NAME,
1384 (*PFieldList), MsgBuffer);
1385
1386 *PFieldList = (*PFieldList)->Next;

--- 86 unchanged lines hidden ---