exprep.c (241973) | exprep.c (245582) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: exprep - ACPI AML (p-code) execution - field prep utilities 4 * 5 *****************************************************************************/ 6 7/* | 1/****************************************************************************** 2 * 3 * Module Name: exprep - ACPI AML (p-code) execution - field prep utilities 4 * 5 *****************************************************************************/ 6 7/* |
8 * Copyright (C) 2000 - 2012, Intel Corp. | 8 * Copyright (C) 2000 - 2013, Intel Corp. |
9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted provided that the following conditions 13 * are met: 14 * 1. Redistributions of source code must retain the above copyright 15 * notice, this list of conditions, and the following disclaimer, 16 * without modification. --- 270 unchanged lines hidden (view full) --- 287 break; 288 289 default: 290 /* Invalid field access type */ 291 292 ACPI_ERROR ((AE_INFO, 293 "Unknown field access type 0x%X", 294 Access)); | 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted provided that the following conditions 13 * are met: 14 * 1. Redistributions of source code must retain the above copyright 15 * notice, this list of conditions, and the following disclaimer, 16 * without modification. --- 270 unchanged lines hidden (view full) --- 287 break; 288 289 default: 290 /* Invalid field access type */ 291 292 ACPI_ERROR ((AE_INFO, 293 "Unknown field access type 0x%X", 294 Access)); |
295 return_UINT32 (0); | 295 return_VALUE (0); |
296 } 297 298 if (ObjDesc->Common.Type == ACPI_TYPE_BUFFER_FIELD) 299 { 300 /* 301 * BufferField access can be on any byte boundary, so the 302 * ByteAlignment is always 1 byte -- regardless of any ByteAlignment 303 * implied by the field access type. 304 */ 305 ByteAlignment = 1; 306 } 307 308 *ReturnByteAlignment = ByteAlignment; | 296 } 297 298 if (ObjDesc->Common.Type == ACPI_TYPE_BUFFER_FIELD) 299 { 300 /* 301 * BufferField access can be on any byte boundary, so the 302 * ByteAlignment is always 1 byte -- regardless of any ByteAlignment 303 * implied by the field access type. 304 */ 305 ByteAlignment = 1; 306 } 307 308 *ReturnByteAlignment = ByteAlignment; |
309 return_UINT32 (BitLength); | 309 return_VALUE (BitLength); |
310} 311 312 313/******************************************************************************* 314 * 315 * FUNCTION: AcpiExPrepCommonFieldObject 316 * 317 * PARAMETERS: ObjDesc - The field object --- 329 unchanged lines hidden --- | 310} 311 312 313/******************************************************************************* 314 * 315 * FUNCTION: AcpiExPrepCommonFieldObject 316 * 317 * PARAMETERS: ObjDesc - The field object --- 329 unchanged lines hidden --- |