acmacros.h (db2bae30) acmacros.h (aa2aa9a6)
1/******************************************************************************
2 *
3 * Name: acmacros.h - C macros for the entire subsystem.
1/******************************************************************************
2 *
3 * Name: acmacros.h - C macros for the entire subsystem.
4 * $Revision: 1.199 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *
9 * 1. Copyright Notice
10 *
12 * Some or all of this work - Copyright (c) 1999 - 2008, Intel Corp.
11 * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
13 * All rights reserved.
14 *
15 * 2. License
16 *
17 * 2.1. This is your license from Intel Corp. under its intellectual property
18 * rights. You may have additional license terms from the party that provided
19 * you this software, covering your right to use that party's intellectual
20 * property rights.

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

114 *
115 *****************************************************************************/
116
117#ifndef __ACMACROS_H__
118#define __ACMACROS_H__
119
120
121/*
12 * All rights reserved.
13 *
14 * 2. License
15 *
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
19 * property rights.

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

113 *
114 *****************************************************************************/
115
116#ifndef __ACMACROS_H__
117#define __ACMACROS_H__
118
119
120/*
122 * Data manipulation macros
123 */
124#define ACPI_LOWORD(l) ((UINT16)(UINT32)(l))
125#define ACPI_HIWORD(l) ((UINT16)((((UINT32)(l)) >> 16) & 0xFFFF))
126#define ACPI_LOBYTE(l) ((UINT8)(UINT16)(l))
127#define ACPI_HIBYTE(l) ((UINT8)((((UINT16)(l)) >> 8) & 0xFF))
128
129#define ACPI_SET_BIT(target,bit) ((target) |= (bit))
130#define ACPI_CLEAR_BIT(target,bit) ((target) &= ~(bit))
131#define ACPI_MIN(a,b) (((a)<(b))?(a):(b))
132#define ACPI_MAX(a,b) (((a)>(b))?(a):(b))
133
134/* Size calculation */
135
136#define ACPI_ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0]))
137
138
139/*
140 * Extract data using a pointer. Any more than a byte and we
141 * get into potential aligment issues -- see the STORE macros below.
142 * Use with care.
143 */
144#define ACPI_GET8(ptr) *ACPI_CAST_PTR (UINT8, ptr)
145#define ACPI_GET16(ptr) *ACPI_CAST_PTR (UINT16, ptr)
146#define ACPI_GET32(ptr) *ACPI_CAST_PTR (UINT32, ptr)
147#define ACPI_GET64(ptr) *ACPI_CAST_PTR (UINT64, ptr)
148#define ACPI_SET8(ptr) *ACPI_CAST_PTR (UINT8, ptr)
149#define ACPI_SET16(ptr) *ACPI_CAST_PTR (UINT16, ptr)
150#define ACPI_SET32(ptr) *ACPI_CAST_PTR (UINT32, ptr)
151#define ACPI_SET64(ptr) *ACPI_CAST_PTR (UINT64, ptr)
152
153/*
121 * Extract data using a pointer. Any more than a byte and we
122 * get into potential aligment issues -- see the STORE macros below.
123 * Use with care.
124 */
125#define ACPI_GET8(ptr) *ACPI_CAST_PTR (UINT8, ptr)
126#define ACPI_GET16(ptr) *ACPI_CAST_PTR (UINT16, ptr)
127#define ACPI_GET32(ptr) *ACPI_CAST_PTR (UINT32, ptr)
128#define ACPI_GET64(ptr) *ACPI_CAST_PTR (UINT64, ptr)
129#define ACPI_SET8(ptr) *ACPI_CAST_PTR (UINT8, ptr)
130#define ACPI_SET16(ptr) *ACPI_CAST_PTR (UINT16, ptr)
131#define ACPI_SET32(ptr) *ACPI_CAST_PTR (UINT32, ptr)
132#define ACPI_SET64(ptr) *ACPI_CAST_PTR (UINT64, ptr)
133
134/*
154 * Pointer manipulation
155 */
156#define ACPI_CAST_PTR(t, p) ((t *) (ACPI_UINTPTR_T) (p))
157#define ACPI_CAST_INDIRECT_PTR(t, p) ((t **) (ACPI_UINTPTR_T) (p))
158#define ACPI_ADD_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (UINT8, (a)) + (ACPI_SIZE)(b)))
159#define ACPI_PTR_DIFF(a, b) (ACPI_SIZE) (ACPI_CAST_PTR (UINT8, (a)) - ACPI_CAST_PTR (UINT8, (b)))
160
161/* Pointer/Integer type conversions */
162
163#define ACPI_TO_POINTER(i) ACPI_ADD_PTR (void, (void *) NULL,(ACPI_SIZE) i)
164#define ACPI_TO_INTEGER(p) ACPI_PTR_DIFF (p, (void *) NULL)
165#define ACPI_OFFSET(d, f) (ACPI_SIZE) ACPI_PTR_DIFF (&(((d *)0)->f), (void *) NULL)
166#define ACPI_PHYSADDR_TO_PTR(i) ACPI_TO_POINTER(i)
167#define ACPI_PTR_TO_PHYSADDR(i) ACPI_TO_INTEGER(i)
168
169#ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED
170#define ACPI_COMPARE_NAME(a,b) (*ACPI_CAST_PTR (UINT32, (a)) == *ACPI_CAST_PTR (UINT32, (b)))
171#else
172#define ACPI_COMPARE_NAME(a,b) (!ACPI_STRNCMP (ACPI_CAST_PTR (char, (a)), ACPI_CAST_PTR (char, (b)), ACPI_NAME_SIZE))
173#endif
174
175/*
176 * Full 64-bit integer must be available on both 32-bit and 64-bit platforms
177 */
178typedef struct acpi_integer_overlay
179{
180 UINT32 LoDword;
181 UINT32 HiDword;
182
183} ACPI_INTEGER_OVERLAY;
184
185#define ACPI_LODWORD(Integer) (ACPI_CAST_PTR (ACPI_INTEGER_OVERLAY, &Integer)->LoDword)
186#define ACPI_HIDWORD(Integer) (ACPI_CAST_PTR (ACPI_INTEGER_OVERLAY, &Integer)->HiDword)
187
188/*
189 * printf() format helpers
190 */
191
192/* Split 64-bit integer into two 32-bit values. Use with %8.8X%8.8X */
193
194#define ACPI_FORMAT_UINT64(i) ACPI_HIDWORD(i), ACPI_LODWORD(i)
195
196#if ACPI_MACHINE_WIDTH == 64

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

282#define ACPI_MOVE_64_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */
283#define ACPI_MOVE_64_TO_32(d, s) ACPI_MOVE_32_TO_32(d, s) /* Truncate to 32 */
284#define ACPI_MOVE_64_TO_64(d, s) *(UINT64 *)(void *)(d) = *(UINT64 *)(void *)(s)
285
286#else
287/*
288 * The hardware does not support unaligned transfers. We must move the
289 * data one byte at a time. These macros work whether the source or
135 * printf() format helpers
136 */
137
138/* Split 64-bit integer into two 32-bit values. Use with %8.8X%8.8X */
139
140#define ACPI_FORMAT_UINT64(i) ACPI_HIDWORD(i), ACPI_LODWORD(i)
141
142#if ACPI_MACHINE_WIDTH == 64

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

228#define ACPI_MOVE_64_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */
229#define ACPI_MOVE_64_TO_32(d, s) ACPI_MOVE_32_TO_32(d, s) /* Truncate to 32 */
230#define ACPI_MOVE_64_TO_64(d, s) *(UINT64 *)(void *)(d) = *(UINT64 *)(void *)(s)
231
232#else
233/*
234 * The hardware does not support unaligned transfers. We must move the
235 * data one byte at a time. These macros work whether the source or
290 * the destination (or both) is/are unaligned. (Little-endian move)
236 * the destination (or both) is/are unaligned. (Little-endian move)
291 */
292
293/* 16-bit source, 16/32/64 destination */
294
295#define ACPI_MOVE_16_TO_16(d, s) {(( UINT8 *)(void *)(d))[0] = ((UINT8 *)(void *)(s))[0];\
296 (( UINT8 *)(void *)(d))[1] = ((UINT8 *)(void *)(s))[1];}
297
298#define ACPI_MOVE_16_TO_32(d, s) {(*(UINT32 *)(void *)(d)) = 0; ACPI_MOVE_16_TO_16(d, s);}

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

404 * where a pointer to an ACPI_OPERAND_OBJECT can also
405 * appear. This macro is used to distinguish them.
406 *
407 * The "Descriptor" field is the first field in both structures.
408 */
409#define ACPI_GET_DESCRIPTOR_TYPE(d) (((ACPI_DESCRIPTOR *)(void *)(d))->Common.DescriptorType)
410#define ACPI_SET_DESCRIPTOR_TYPE(d, t) (((ACPI_DESCRIPTOR *)(void *)(d))->Common.DescriptorType = t)
411
237 */
238
239/* 16-bit source, 16/32/64 destination */
240
241#define ACPI_MOVE_16_TO_16(d, s) {(( UINT8 *)(void *)(d))[0] = ((UINT8 *)(void *)(s))[0];\
242 (( UINT8 *)(void *)(d))[1] = ((UINT8 *)(void *)(s))[1];}
243
244#define ACPI_MOVE_16_TO_32(d, s) {(*(UINT32 *)(void *)(d)) = 0; ACPI_MOVE_16_TO_16(d, s);}

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

350 * where a pointer to an ACPI_OPERAND_OBJECT can also
351 * appear. This macro is used to distinguish them.
352 *
353 * The "Descriptor" field is the first field in both structures.
354 */
355#define ACPI_GET_DESCRIPTOR_TYPE(d) (((ACPI_DESCRIPTOR *)(void *)(d))->Common.DescriptorType)
356#define ACPI_SET_DESCRIPTOR_TYPE(d, t) (((ACPI_DESCRIPTOR *)(void *)(d))->Common.DescriptorType = t)
357
412/* Macro to test the object type */
413
414#define ACPI_GET_OBJECT_TYPE(d) (((ACPI_OPERAND_OBJECT *)(void *)(d))->Common.Type)
415
416/*
417 * Macros for the master AML opcode table
418 */
419#if defined (ACPI_DISASSEMBLER) || defined (ACPI_DEBUG_OUTPUT)
420#define ACPI_OP(Name, PArgs, IArgs, ObjType, Class, Type, Flags) \
421 {Name, (UINT32)(PArgs), (UINT32)(IArgs), (UINT32)(Flags), ObjType, Class, Type}
422#else
423#define ACPI_OP(Name, PArgs, IArgs, ObjType, Class, Type, Flags) \
424 {(UINT32)(PArgs), (UINT32)(IArgs), (UINT32)(Flags), ObjType, Class, Type}
425#endif
426
358/*
359 * Macros for the master AML opcode table
360 */
361#if defined (ACPI_DISASSEMBLER) || defined (ACPI_DEBUG_OUTPUT)
362#define ACPI_OP(Name, PArgs, IArgs, ObjType, Class, Type, Flags) \
363 {Name, (UINT32)(PArgs), (UINT32)(IArgs), (UINT32)(Flags), ObjType, Class, Type}
364#else
365#define ACPI_OP(Name, PArgs, IArgs, ObjType, Class, Type, Flags) \
366 {(UINT32)(PArgs), (UINT32)(IArgs), (UINT32)(Flags), ObjType, Class, Type}
367#endif
368
427#ifdef ACPI_DISASSEMBLER
428#define ACPI_DISASM_ONLY_MEMBERS(a) a;
429#else
430#define ACPI_DISASM_ONLY_MEMBERS(a)
431#endif
432
433#define ARG_TYPE_WIDTH 5
434#define ARG_1(x) ((UINT32)(x))
435#define ARG_2(x) ((UINT32)(x) << (1 * ARG_TYPE_WIDTH))
436#define ARG_3(x) ((UINT32)(x) << (2 * ARG_TYPE_WIDTH))
437#define ARG_4(x) ((UINT32)(x) << (3 * ARG_TYPE_WIDTH))
438#define ARG_5(x) ((UINT32)(x) << (4 * ARG_TYPE_WIDTH))
439#define ARG_6(x) ((UINT32)(x) << (5 * ARG_TYPE_WIDTH))
440

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

450#define ARGP_LIST3(a, b, c) (ARG_1(a)|ARG_2(b)|ARG_3(c))
451#define ARGP_LIST4(a, b, c, d) (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d))
452#define ARGP_LIST5(a, b, c, d, e) (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e))
453#define ARGP_LIST6(a, b, c, d, e, f) (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e)|ARG_6(f))
454
455#define GET_CURRENT_ARG_TYPE(List) (List & ((UINT32) 0x1F))
456#define INCREMENT_ARG_LIST(List) (List >>= ((UINT32) ARG_TYPE_WIDTH))
457
369#define ARG_TYPE_WIDTH 5
370#define ARG_1(x) ((UINT32)(x))
371#define ARG_2(x) ((UINT32)(x) << (1 * ARG_TYPE_WIDTH))
372#define ARG_3(x) ((UINT32)(x) << (2 * ARG_TYPE_WIDTH))
373#define ARG_4(x) ((UINT32)(x) << (3 * ARG_TYPE_WIDTH))
374#define ARG_5(x) ((UINT32)(x) << (4 * ARG_TYPE_WIDTH))
375#define ARG_6(x) ((UINT32)(x) << (5 * ARG_TYPE_WIDTH))
376

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

386#define ARGP_LIST3(a, b, c) (ARG_1(a)|ARG_2(b)|ARG_3(c))
387#define ARGP_LIST4(a, b, c, d) (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d))
388#define ARGP_LIST5(a, b, c, d, e) (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e))
389#define ARGP_LIST6(a, b, c, d, e, f) (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e)|ARG_6(f))
390
391#define GET_CURRENT_ARG_TYPE(List) (List & ((UINT32) 0x1F))
392#define INCREMENT_ARG_LIST(List) (List >>= ((UINT32) ARG_TYPE_WIDTH))
393
458
459#if defined (ACPI_DEBUG_OUTPUT) || !defined (ACPI_NO_ERROR_MESSAGES)
460/*
394/*
461 * Module name is include in both debug and non-debug versions primarily for
462 * error messages. The __FILE__ macro is not very useful for this, because it
463 * often includes the entire pathname to the module
464 */
465#define ACPI_MODULE_NAME(Name) static const char ACPI_UNUSED_VAR _AcpiModuleName[] = Name;
466#else
467#define ACPI_MODULE_NAME(Name)
468#endif
469
470/*
471 * Ascii error messages can be configured out
472 */
473#ifndef ACPI_NO_ERROR_MESSAGES
395 * Ascii error messages can be configured out
396 */
397#ifndef ACPI_NO_ERROR_MESSAGES
474#define AE_INFO _AcpiModuleName, __LINE__
475
476/*
477 * Error reporting. Callers module and line number are inserted by AE_INFO,
478 * the plist contains a set of parens to allow variable-length lists.
479 * These macros are used for both the debug and non-debug versions of the code.
480 */
398/*
399 * Error reporting. Callers module and line number are inserted by AE_INFO,
400 * the plist contains a set of parens to allow variable-length lists.
401 * These macros are used for both the debug and non-debug versions of the code.
402 */
481#define ACPI_INFO(plist) AcpiUtInfo plist
482#define ACPI_WARNING(plist) AcpiUtWarning plist
483#define ACPI_EXCEPTION(plist) AcpiUtException plist
484#define ACPI_ERROR(plist) AcpiUtError plist
485#define ACPI_ERROR_NAMESPACE(s, e) AcpiNsReportError (AE_INFO, s, e);
486#define ACPI_ERROR_METHOD(s, n, p, e) AcpiNsReportMethodError (AE_INFO, s, n, p, e);
487
488#else
489
490/* No error messages */
491
403#define ACPI_ERROR_NAMESPACE(s, e) AcpiNsReportError (AE_INFO, s, e);
404#define ACPI_ERROR_METHOD(s, n, p, e) AcpiNsReportMethodError (AE_INFO, s, n, p, e);
405
406#else
407
408/* No error messages */
409
492#define ACPI_INFO(plist)
493#define ACPI_WARNING(plist)
494#define ACPI_EXCEPTION(plist)
495#define ACPI_ERROR(plist)
496#define ACPI_ERROR_NAMESPACE(s, e)
497#define ACPI_ERROR_METHOD(s, n, p, e)
410#define ACPI_ERROR_NAMESPACE(s, e)
411#define ACPI_ERROR_METHOD(s, n, p, e)
498#endif
499
412
413#endif /* ACPI_NO_ERROR_MESSAGES */
414
500/*
501 * Debug macros that are conditionally compiled
502 */
503#ifdef ACPI_DEBUG_OUTPUT
415/*
416 * Debug macros that are conditionally compiled
417 */
418#ifdef ACPI_DEBUG_OUTPUT
504
505/*
419/*
506 * Common parameters used for debug output functions:
507 * line number, function name, module(file) name, component ID
508 */
509#define ACPI_DEBUG_PARAMETERS __LINE__, ACPI_GET_FUNCTION_NAME, _AcpiModuleName, _COMPONENT
510
511/*
512 * Function entry tracing
513 */
420 * Function entry tracing
421 */
514
515/*
516 * If ACPI_GET_FUNCTION_NAME was not defined in the compiler-dependent header,
517 * define it now. This is the case where there the compiler does not support
518 * a __FUNCTION__ macro or equivalent.
519 */
520#ifndef ACPI_GET_FUNCTION_NAME
521#define ACPI_GET_FUNCTION_NAME _AcpiFunctionName
522/*
523 * The Name parameter should be the procedure name as a quoted string.
524 * The function name is also used by the function exit macros below.
525 * Note: (const char) is used to be compatible with the debug interfaces
526 * and macros such as __FUNCTION__.
527 */
528#define ACPI_FUNCTION_NAME(Name) static const char _AcpiFunctionName[] = #Name;
529
530#else
531/* Compiler supports __FUNCTION__ (or equivalent) -- Ignore this macro */
532
533#define ACPI_FUNCTION_NAME(Name)
534#endif
535
536#define ACPI_FUNCTION_TRACE(a) ACPI_FUNCTION_NAME(a) \
537 AcpiUtTrace(ACPI_DEBUG_PARAMETERS)
538#define ACPI_FUNCTION_TRACE_PTR(a, b) ACPI_FUNCTION_NAME(a) \
539 AcpiUtTracePtr(ACPI_DEBUG_PARAMETERS, (void *)b)
540#define ACPI_FUNCTION_TRACE_U32(a, b) ACPI_FUNCTION_NAME(a) \
541 AcpiUtTraceU32(ACPI_DEBUG_PARAMETERS, (UINT32)b)
542#define ACPI_FUNCTION_TRACE_STR(a, b) ACPI_FUNCTION_NAME(a) \
543 AcpiUtTraceStr(ACPI_DEBUG_PARAMETERS, (char *)b)

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

621/* Various object display routines for debug */
622
623#define ACPI_DUMP_STACK_ENTRY(a) AcpiExDumpOperand((a), 0)
624#define ACPI_DUMP_OPERANDS(a, b ,c) AcpiExDumpOperands(a, b, c)
625#define ACPI_DUMP_ENTRY(a, b) AcpiNsDumpEntry (a, b)
626#define ACPI_DUMP_PATHNAME(a, b, c, d) AcpiNsDumpPathname(a, b, c, d)
627#define ACPI_DUMP_BUFFER(a, b) AcpiUtDumpBuffer((UINT8 *) a, b, DB_BYTE_DISPLAY, _COMPONENT)
628
422#define ACPI_FUNCTION_TRACE(a) ACPI_FUNCTION_NAME(a) \
423 AcpiUtTrace(ACPI_DEBUG_PARAMETERS)
424#define ACPI_FUNCTION_TRACE_PTR(a, b) ACPI_FUNCTION_NAME(a) \
425 AcpiUtTracePtr(ACPI_DEBUG_PARAMETERS, (void *)b)
426#define ACPI_FUNCTION_TRACE_U32(a, b) ACPI_FUNCTION_NAME(a) \
427 AcpiUtTraceU32(ACPI_DEBUG_PARAMETERS, (UINT32)b)
428#define ACPI_FUNCTION_TRACE_STR(a, b) ACPI_FUNCTION_NAME(a) \
429 AcpiUtTraceStr(ACPI_DEBUG_PARAMETERS, (char *)b)

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

507/* Various object display routines for debug */
508
509#define ACPI_DUMP_STACK_ENTRY(a) AcpiExDumpOperand((a), 0)
510#define ACPI_DUMP_OPERANDS(a, b ,c) AcpiExDumpOperands(a, b, c)
511#define ACPI_DUMP_ENTRY(a, b) AcpiNsDumpEntry (a, b)
512#define ACPI_DUMP_PATHNAME(a, b, c, d) AcpiNsDumpPathname(a, b, c, d)
513#define ACPI_DUMP_BUFFER(a, b) AcpiUtDumpBuffer((UINT8 *) a, b, DB_BYTE_DISPLAY, _COMPONENT)
514
629/*
630 * Master debug print macros
631 * Print iff:
632 * 1) Debug print for the current component is enabled
633 * 2) Debug error level or trace level for the print statement is enabled
634 */
635#define ACPI_DEBUG_PRINT(plist) AcpiUtDebugPrint plist
636#define ACPI_DEBUG_PRINT_RAW(plist) AcpiUtDebugPrintRaw plist
637
638
639#else
640/*
641 * This is the non-debug case -- make everything go away,
642 * leaving no executable debug code!
643 */
644#define ACPI_DEBUG_EXEC(a)
645#define ACPI_DEBUG_ONLY_MEMBERS(a)
515#else
516/*
517 * This is the non-debug case -- make everything go away,
518 * leaving no executable debug code!
519 */
520#define ACPI_DEBUG_EXEC(a)
521#define ACPI_DEBUG_ONLY_MEMBERS(a)
646#define ACPI_FUNCTION_NAME(a)
647#define ACPI_FUNCTION_TRACE(a)
648#define ACPI_FUNCTION_TRACE_PTR(a, b)
649#define ACPI_FUNCTION_TRACE_U32(a, b)
650#define ACPI_FUNCTION_TRACE_STR(a, b)
651#define ACPI_FUNCTION_EXIT
652#define ACPI_FUNCTION_STATUS_EXIT(s)
653#define ACPI_FUNCTION_VALUE_EXIT(s)
654#define ACPI_FUNCTION_ENTRY()

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

663
664#define return_VOID return
665#define return_ACPI_STATUS(s) return(s)
666#define return_VALUE(s) return(s)
667#define return_UINT8(s) return(s)
668#define return_UINT32(s) return(s)
669#define return_PTR(s) return(s)
670
522#define ACPI_FUNCTION_TRACE(a)
523#define ACPI_FUNCTION_TRACE_PTR(a, b)
524#define ACPI_FUNCTION_TRACE_U32(a, b)
525#define ACPI_FUNCTION_TRACE_STR(a, b)
526#define ACPI_FUNCTION_EXIT
527#define ACPI_FUNCTION_STATUS_EXIT(s)
528#define ACPI_FUNCTION_VALUE_EXIT(s)
529#define ACPI_FUNCTION_ENTRY()

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

538
539#define return_VOID return
540#define return_ACPI_STATUS(s) return(s)
541#define return_VALUE(s) return(s)
542#define return_UINT8(s) return(s)
543#define return_UINT32(s) return(s)
544#define return_PTR(s) return(s)
545
671#endif
546#endif /* ACPI_DEBUG_OUTPUT */
672
673/*
674 * Some code only gets executed when the debugger is built in.
675 * Note that this is entirely independent of whether the
676 * DEBUG_PRINT stuff (set by ACPI_DEBUG_OUTPUT) is on, or not.
677 */
678#ifdef ACPI_DEBUGGER
679#define ACPI_DEBUGGER_EXEC(a) a

--- 47 unchanged lines hidden ---
547
548/*
549 * Some code only gets executed when the debugger is built in.
550 * Note that this is entirely independent of whether the
551 * DEBUG_PRINT stuff (set by ACPI_DEBUG_OUTPUT) is on, or not.
552 */
553#ifdef ACPI_DEBUGGER
554#define ACPI_DEBUGGER_EXEC(a) a

--- 47 unchanged lines hidden ---