Deleted Added
full compact
actypes.h (254745) actypes.h (272444)
1/******************************************************************************
2 *
3 * Name: actypes.h - Common data types for the entire ACPI subsystem
4 *
5 *****************************************************************************/
6
7/*
1/******************************************************************************
2 *
3 * Name: actypes.h - Common data types for the entire ACPI subsystem
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2013, Intel Corp.
8 * Copyright (C) 2000 - 2014, 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.

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

50 * ACPI_MACHINE_WIDTH must be specified in an OS- or compiler-dependent header
51 * and must be either 32 or 64. 16-bit ACPICA is no longer supported, as of
52 * 12/2006.
53 */
54#ifndef ACPI_MACHINE_WIDTH
55#error ACPI_MACHINE_WIDTH not defined
56#endif
57
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.

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

50 * ACPI_MACHINE_WIDTH must be specified in an OS- or compiler-dependent header
51 * and must be either 32 or 64. 16-bit ACPICA is no longer supported, as of
52 * 12/2006.
53 */
54#ifndef ACPI_MACHINE_WIDTH
55#error ACPI_MACHINE_WIDTH not defined
56#endif
57
58/*! [Begin] no source code translation */
59
60/*
61 * Data type ranges
62 * Note: These macros are designed to be compiler independent as well as
63 * working around problems that some 32-bit compilers have with 64-bit
64 * constants.
65 */
66#define ACPI_UINT8_MAX (UINT8) (~((UINT8) 0)) /* 0xFF */
67#define ACPI_UINT16_MAX (UINT16)(~((UINT16) 0)) /* 0xFFFF */

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

119 */
120
121/*******************************************************************************
122 *
123 * Common types for all compilers, all targets
124 *
125 ******************************************************************************/
126
58/*
59 * Data type ranges
60 * Note: These macros are designed to be compiler independent as well as
61 * working around problems that some 32-bit compilers have with 64-bit
62 * constants.
63 */
64#define ACPI_UINT8_MAX (UINT8) (~((UINT8) 0)) /* 0xFF */
65#define ACPI_UINT16_MAX (UINT16)(~((UINT16) 0)) /* 0xFFFF */

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

117 */
118
119/*******************************************************************************
120 *
121 * Common types for all compilers, all targets
122 *
123 ******************************************************************************/
124
125#ifndef ACPI_USE_SYSTEM_INTTYPES
126
127typedef unsigned char BOOLEAN;
128typedef unsigned char UINT8;
129typedef unsigned short UINT16;
127typedef unsigned char BOOLEAN;
128typedef unsigned char UINT8;
129typedef unsigned short UINT16;
130typedef short INT16;
130typedef COMPILER_DEPENDENT_UINT64 UINT64;
131typedef COMPILER_DEPENDENT_INT64 INT64;
132
131typedef COMPILER_DEPENDENT_UINT64 UINT64;
132typedef COMPILER_DEPENDENT_INT64 INT64;
133
133/*! [End] no source code translation !*/
134#endif /* ACPI_USE_SYSTEM_INTTYPES */
134
135/*
136 * Value returned by AcpiOsGetThreadId. There is no standard "thread_id"
137 * across operating systems or even the various UNIX systems. Since ACPICA
138 * only needs the thread ID as a unique thread identifier, we use a UINT64
139 * as the only common data type - it will accommodate any type of pointer or
140 * any type of integer. It is up to the host-dependent OSL to cast the
141 * native thread ID type to a UINT64 (in AcpiOsGetThreadId).

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

146/*******************************************************************************
147 *
148 * Types specific to 64-bit targets
149 *
150 ******************************************************************************/
151
152#if ACPI_MACHINE_WIDTH == 64
153
135
136/*
137 * Value returned by AcpiOsGetThreadId. There is no standard "thread_id"
138 * across operating systems or even the various UNIX systems. Since ACPICA
139 * only needs the thread ID as a unique thread identifier, we use a UINT64
140 * as the only common data type - it will accommodate any type of pointer or
141 * any type of integer. It is up to the host-dependent OSL to cast the
142 * native thread ID type to a UINT64 (in AcpiOsGetThreadId).

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

147/*******************************************************************************
148 *
149 * Types specific to 64-bit targets
150 *
151 ******************************************************************************/
152
153#if ACPI_MACHINE_WIDTH == 64
154
154/*! [Begin] no source code translation (keep the typedefs as-is) */
155#ifndef ACPI_USE_SYSTEM_INTTYPES
155
156typedef unsigned int UINT32;
157typedef int INT32;
158
156
157typedef unsigned int UINT32;
158typedef int INT32;
159
159/*! [End] no source code translation !*/
160#endif /* ACPI_USE_SYSTEM_INTTYPES */
160
161
162typedef INT64 ACPI_NATIVE_INT;
163typedef UINT64 ACPI_SIZE;
164typedef UINT64 ACPI_IO_ADDRESS;
165typedef UINT64 ACPI_PHYSICAL_ADDRESS;
166
167#define ACPI_MAX_PTR ACPI_UINT64_MAX

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

185/*******************************************************************************
186 *
187 * Types specific to 32-bit targets
188 *
189 ******************************************************************************/
190
191#elif ACPI_MACHINE_WIDTH == 32
192
161
162
163typedef INT64 ACPI_NATIVE_INT;
164typedef UINT64 ACPI_SIZE;
165typedef UINT64 ACPI_IO_ADDRESS;
166typedef UINT64 ACPI_PHYSICAL_ADDRESS;
167
168#define ACPI_MAX_PTR ACPI_UINT64_MAX

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

186/*******************************************************************************
187 *
188 * Types specific to 32-bit targets
189 *
190 ******************************************************************************/
191
192#elif ACPI_MACHINE_WIDTH == 32
193
193/*! [Begin] no source code translation (keep the typedefs as-is) */
194#ifndef ACPI_USE_SYSTEM_INTTYPES
194
195typedef unsigned int UINT32;
196typedef int INT32;
197
195
196typedef unsigned int UINT32;
197typedef int INT32;
198
198/*! [End] no source code translation !*/
199#endif /* ACPI_USE_SYSTEM_INTTYPES */
199
200
201typedef INT32 ACPI_NATIVE_INT;
202typedef UINT32 ACPI_SIZE;
203typedef UINT32 ACPI_IO_ADDRESS;
204typedef UINT32 ACPI_PHYSICAL_ADDRESS;
205
206#define ACPI_MAX_PTR ACPI_UINT32_MAX

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

298 * to tell the compiler in a per-variable manner that a variable
299 * is unused
300 */
301#ifndef ACPI_UNUSED_VAR
302#define ACPI_UNUSED_VAR
303#endif
304
305/*
200
201
202typedef INT32 ACPI_NATIVE_INT;
203typedef UINT32 ACPI_SIZE;
204typedef UINT32 ACPI_IO_ADDRESS;
205typedef UINT32 ACPI_PHYSICAL_ADDRESS;
206
207#define ACPI_MAX_PTR ACPI_UINT32_MAX

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

299 * to tell the compiler in a per-variable manner that a variable
300 * is unused
301 */
302#ifndef ACPI_UNUSED_VAR
303#define ACPI_UNUSED_VAR
304#endif
305
306/*
306 * All ACPICA functions that are available to the rest of the kernel are
307 * tagged with this macro which can be defined as appropriate for the host.
307 * All ACPICA external functions that are available to the rest of the kernel
308 * are tagged with thes macros which can be defined as appropriate for the host.
309 *
310 * Notes:
311 * ACPI_EXPORT_SYMBOL_INIT is used for initialization and termination
312 * interfaces that may need special processing.
313 * ACPI_EXPORT_SYMBOL is used for all other public external functions.
308 */
314 */
315#ifndef ACPI_EXPORT_SYMBOL_INIT
316#define ACPI_EXPORT_SYMBOL_INIT(Symbol)
317#endif
318
309#ifndef ACPI_EXPORT_SYMBOL
310#define ACPI_EXPORT_SYMBOL(Symbol)
311#endif
312
313/*
314 * Compiler/Clibrary-dependent debug initialization. Used for ACPICA
315 * utilities only.
316 */
317#ifndef ACPI_DEBUG_INITIALIZE
318#define ACPI_DEBUG_INITIALIZE()
319#endif
320
321
319#ifndef ACPI_EXPORT_SYMBOL
320#define ACPI_EXPORT_SYMBOL(Symbol)
321#endif
322
323/*
324 * Compiler/Clibrary-dependent debug initialization. Used for ACPICA
325 * utilities only.
326 */
327#ifndef ACPI_DEBUG_INITIALIZE
328#define ACPI_DEBUG_INITIALIZE()
329#endif
330
331
332/*******************************************************************************
333 *
334 * Configuration
335 *
336 ******************************************************************************/
337
338#ifdef ACPI_NO_MEM_ALLOCATIONS
339
340#define ACPI_ALLOCATE(a) NULL
341#define ACPI_ALLOCATE_ZEROED(a) NULL
342#define ACPI_FREE(a)
343#define ACPI_MEM_TRACKING(a)
344
345#else /* ACPI_NO_MEM_ALLOCATIONS */
346
347#ifdef ACPI_DBG_TRACK_ALLOCATIONS
348/*
349 * Memory allocation tracking (used by AcpiExec to detect memory leaks)
350 */
351#define ACPI_MEM_PARAMETERS _COMPONENT, _AcpiModuleName, __LINE__
352#define ACPI_ALLOCATE(a) AcpiUtAllocateAndTrack ((ACPI_SIZE) (a), ACPI_MEM_PARAMETERS)
353#define ACPI_ALLOCATE_ZEROED(a) AcpiUtAllocateZeroedAndTrack ((ACPI_SIZE) (a), ACPI_MEM_PARAMETERS)
354#define ACPI_FREE(a) AcpiUtFreeAndTrack (a, ACPI_MEM_PARAMETERS)
355#define ACPI_MEM_TRACKING(a) a
356
357#else
358/*
359 * Normal memory allocation directly via the OS services layer
360 */
361#define ACPI_ALLOCATE(a) AcpiOsAllocate ((ACPI_SIZE) (a))
362#define ACPI_ALLOCATE_ZEROED(a) AcpiOsAllocateZeroed ((ACPI_SIZE) (a))
363#define ACPI_FREE(a) AcpiOsFree (a)
364#define ACPI_MEM_TRACKING(a)
365
366#endif /* ACPI_DBG_TRACK_ALLOCATIONS */
367
368#endif /* ACPI_NO_MEM_ALLOCATIONS */
369
370
322/******************************************************************************
323 *
324 * ACPI Specification constants (Do not change unless the specification changes)
325 *
326 *****************************************************************************/
327
328/* Number of distinct FADT-based GPE register blocks (GPE0 and GPE1) */
329
330#define ACPI_MAX_GPE_BLOCKS 2
331
332/* Default ACPI register widths */
333
334#define ACPI_GPE_REGISTER_WIDTH 8
335#define ACPI_PM1_REGISTER_WIDTH 16
336#define ACPI_PM2_REGISTER_WIDTH 8
337#define ACPI_PM_TIMER_WIDTH 32
371/******************************************************************************
372 *
373 * ACPI Specification constants (Do not change unless the specification changes)
374 *
375 *****************************************************************************/
376
377/* Number of distinct FADT-based GPE register blocks (GPE0 and GPE1) */
378
379#define ACPI_MAX_GPE_BLOCKS 2
380
381/* Default ACPI register widths */
382
383#define ACPI_GPE_REGISTER_WIDTH 8
384#define ACPI_PM1_REGISTER_WIDTH 16
385#define ACPI_PM2_REGISTER_WIDTH 8
386#define ACPI_PM_TIMER_WIDTH 32
387#define ACPI_RESET_REGISTER_WIDTH 8
338
339/* Names within the namespace are 4 bytes long */
340
341#define ACPI_NAME_SIZE 4
342#define ACPI_PATH_SEGMENT_LENGTH 5 /* 4 chars for name + 1 char for separator */
343#define ACPI_PATH_SEPARATOR '.'
344
345/* Sizes for ACPI table headers */

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

469#define ACPI_CAST_INDIRECT_PTR(t, p) ((t **) (ACPI_UINTPTR_T) (p))
470#define ACPI_ADD_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (UINT8, (a)) + (ACPI_SIZE)(b)))
471#define ACPI_PTR_DIFF(a, b) (ACPI_SIZE) (ACPI_CAST_PTR (UINT8, (a)) - ACPI_CAST_PTR (UINT8, (b)))
472
473/* Pointer/Integer type conversions */
474
475#define ACPI_TO_POINTER(i) ACPI_ADD_PTR (void, (void *) NULL,(ACPI_SIZE) i)
476#define ACPI_TO_INTEGER(p) ACPI_PTR_DIFF (p, (void *) NULL)
388
389/* Names within the namespace are 4 bytes long */
390
391#define ACPI_NAME_SIZE 4
392#define ACPI_PATH_SEGMENT_LENGTH 5 /* 4 chars for name + 1 char for separator */
393#define ACPI_PATH_SEPARATOR '.'
394
395/* Sizes for ACPI table headers */

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

519#define ACPI_CAST_INDIRECT_PTR(t, p) ((t **) (ACPI_UINTPTR_T) (p))
520#define ACPI_ADD_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (UINT8, (a)) + (ACPI_SIZE)(b)))
521#define ACPI_PTR_DIFF(a, b) (ACPI_SIZE) (ACPI_CAST_PTR (UINT8, (a)) - ACPI_CAST_PTR (UINT8, (b)))
522
523/* Pointer/Integer type conversions */
524
525#define ACPI_TO_POINTER(i) ACPI_ADD_PTR (void, (void *) NULL,(ACPI_SIZE) i)
526#define ACPI_TO_INTEGER(p) ACPI_PTR_DIFF (p, (void *) NULL)
477#define ACPI_OFFSET(d, f) (ACPI_SIZE) ACPI_PTR_DIFF (&(((d *)0)->f), (void *) NULL)
527#define ACPI_OFFSET(d, f) ACPI_PTR_DIFF (&(((d *) 0)->f), (void *) NULL)
478#define ACPI_PHYSADDR_TO_PTR(i) ACPI_TO_POINTER(i)
479#define ACPI_PTR_TO_PHYSADDR(i) ACPI_TO_INTEGER(i)
480
481/* Optimizations for 4-character (32-bit) ACPI_NAME manipulation */
482
483#ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED
484#define ACPI_COMPARE_NAME(a,b) (*ACPI_CAST_PTR (UINT32, (a)) == *ACPI_CAST_PTR (UINT32, (b)))
485#define ACPI_MOVE_NAME(dest,src) (*ACPI_CAST_PTR (UINT32, (dest)) = *ACPI_CAST_PTR (UINT32, (src)))

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

563#define ACPI_NOTIFY_FREQUENCY_MISMATCH (UINT8) 0x05
564#define ACPI_NOTIFY_BUS_MODE_MISMATCH (UINT8) 0x06
565#define ACPI_NOTIFY_POWER_FAULT (UINT8) 0x07
566#define ACPI_NOTIFY_CAPABILITIES_CHECK (UINT8) 0x08
567#define ACPI_NOTIFY_DEVICE_PLD_CHECK (UINT8) 0x09
568#define ACPI_NOTIFY_RESERVED (UINT8) 0x0A
569#define ACPI_NOTIFY_LOCALITY_UPDATE (UINT8) 0x0B
570#define ACPI_NOTIFY_SHUTDOWN_REQUEST (UINT8) 0x0C
528#define ACPI_PHYSADDR_TO_PTR(i) ACPI_TO_POINTER(i)
529#define ACPI_PTR_TO_PHYSADDR(i) ACPI_TO_INTEGER(i)
530
531/* Optimizations for 4-character (32-bit) ACPI_NAME manipulation */
532
533#ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED
534#define ACPI_COMPARE_NAME(a,b) (*ACPI_CAST_PTR (UINT32, (a)) == *ACPI_CAST_PTR (UINT32, (b)))
535#define ACPI_MOVE_NAME(dest,src) (*ACPI_CAST_PTR (UINT32, (dest)) = *ACPI_CAST_PTR (UINT32, (src)))

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

613#define ACPI_NOTIFY_FREQUENCY_MISMATCH (UINT8) 0x05
614#define ACPI_NOTIFY_BUS_MODE_MISMATCH (UINT8) 0x06
615#define ACPI_NOTIFY_POWER_FAULT (UINT8) 0x07
616#define ACPI_NOTIFY_CAPABILITIES_CHECK (UINT8) 0x08
617#define ACPI_NOTIFY_DEVICE_PLD_CHECK (UINT8) 0x09
618#define ACPI_NOTIFY_RESERVED (UINT8) 0x0A
619#define ACPI_NOTIFY_LOCALITY_UPDATE (UINT8) 0x0B
620#define ACPI_NOTIFY_SHUTDOWN_REQUEST (UINT8) 0x0C
621#define ACPI_NOTIFY_AFFINITY_UPDATE (UINT8) 0x0D
571
622
572#define ACPI_NOTIFY_MAX 0x0C
623#define ACPI_NOTIFY_MAX 0x0D
573
574/*
575 * Types associated with ACPI names and objects. The first group of
576 * values (up to ACPI_TYPE_EXTERNAL_MAX) correspond to the definition
577 * of the ACPI ObjectType() operator (See the ACPI Spec). Therefore,
578 * only add to the first group if the spec changes.
579 *
580 * NOTE: Types must be kept in sync with the global AcpiNsProperties

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

664#define ACPI_NUM_FIXED_EVENTS ACPI_EVENT_MAX + 1
665
666/*
667 * Event Status - Per event
668 * -------------
669 * The encoding of ACPI_EVENT_STATUS is illustrated below.
670 * Note that a set bit (1) indicates the property is TRUE
671 * (e.g. if bit 0 is set then the event is enabled).
624
625/*
626 * Types associated with ACPI names and objects. The first group of
627 * values (up to ACPI_TYPE_EXTERNAL_MAX) correspond to the definition
628 * of the ACPI ObjectType() operator (See the ACPI Spec). Therefore,
629 * only add to the first group if the spec changes.
630 *
631 * NOTE: Types must be kept in sync with the global AcpiNsProperties

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

715#define ACPI_NUM_FIXED_EVENTS ACPI_EVENT_MAX + 1
716
717/*
718 * Event Status - Per event
719 * -------------
720 * The encoding of ACPI_EVENT_STATUS is illustrated below.
721 * Note that a set bit (1) indicates the property is TRUE
722 * (e.g. if bit 0 is set then the event is enabled).
672 * +-------------+-+-+-+
673 * | Bits 31:3 |2|1|0|
674 * +-------------+-+-+-+
675 * | | | |
676 * | | | +- Enabled?
677 * | | +--- Enabled for wake?
678 * | +----- Set?
679 * +----------- <Reserved>
723 * +-------------+-+-+-+-+
724 * | Bits 31:4 |3|2|1|0|
725 * +-------------+-+-+-+-+
726 * | | | | |
727 * | | | | +- Enabled?
728 * | | | +--- Enabled for wake?
729 * | | +----- Set?
730 * | +------- Has a handler?
731 * +------------- <Reserved>
680 */
681typedef UINT32 ACPI_EVENT_STATUS;
682
683#define ACPI_EVENT_FLAG_DISABLED (ACPI_EVENT_STATUS) 0x00
684#define ACPI_EVENT_FLAG_ENABLED (ACPI_EVENT_STATUS) 0x01
685#define ACPI_EVENT_FLAG_WAKE_ENABLED (ACPI_EVENT_STATUS) 0x02
686#define ACPI_EVENT_FLAG_SET (ACPI_EVENT_STATUS) 0x04
732 */
733typedef UINT32 ACPI_EVENT_STATUS;
734
735#define ACPI_EVENT_FLAG_DISABLED (ACPI_EVENT_STATUS) 0x00
736#define ACPI_EVENT_FLAG_ENABLED (ACPI_EVENT_STATUS) 0x01
737#define ACPI_EVENT_FLAG_WAKE_ENABLED (ACPI_EVENT_STATUS) 0x02
738#define ACPI_EVENT_FLAG_SET (ACPI_EVENT_STATUS) 0x04
739#define ACPI_EVENT_FLAG_HAS_HANDLER (ACPI_EVENT_STATUS) 0x08
687
688/* Actions for AcpiSetGpe, AcpiGpeWakeup, AcpiHwLowSetGpe */
689
690#define ACPI_GPE_ENABLE 0
691#define ACPI_GPE_DISABLE 1
692#define ACPI_GPE_CONDITIONAL_ENABLE 2
693
694/*

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

911
912} ACPI_OBJECT_LIST;
913
914
915/*
916 * Miscellaneous common Data Structures used by the interfaces
917 */
918#define ACPI_NO_BUFFER 0
740
741/* Actions for AcpiSetGpe, AcpiGpeWakeup, AcpiHwLowSetGpe */
742
743#define ACPI_GPE_ENABLE 0
744#define ACPI_GPE_DISABLE 1
745#define ACPI_GPE_CONDITIONAL_ENABLE 2
746
747/*

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

964
965} ACPI_OBJECT_LIST;
966
967
968/*
969 * Miscellaneous common Data Structures used by the interfaces
970 */
971#define ACPI_NO_BUFFER 0
919#define ACPI_ALLOCATE_BUFFER (ACPI_SIZE) (-1)
920#define ACPI_ALLOCATE_LOCAL_BUFFER (ACPI_SIZE) (-2)
921
972
973#ifdef ACPI_NO_MEM_ALLOCATIONS
974
975#define ACPI_ALLOCATE_BUFFER (ACPI_SIZE) (0)
976#define ACPI_ALLOCATE_LOCAL_BUFFER (ACPI_SIZE) (0)
977
978#else /* ACPI_NO_MEM_ALLOCATIONS */
979
980#define ACPI_ALLOCATE_BUFFER (ACPI_SIZE) (-1) /* Let ACPICA allocate buffer */
981#define ACPI_ALLOCATE_LOCAL_BUFFER (ACPI_SIZE) (-2) /* For internal use only (enables tracking) */
982
983#endif /* ACPI_NO_MEM_ALLOCATIONS */
984
922typedef struct acpi_buffer
923{
924 ACPI_SIZE Length; /* Length in bytes of the buffer */
925 void *Pointer; /* pointer to buffer */
926
927} ACPI_BUFFER;
928
985typedef struct acpi_buffer
986{
987 ACPI_SIZE Length; /* Length in bytes of the buffer */
988 void *Pointer; /* pointer to buffer */
989
990} ACPI_BUFFER;
991
929/* Free a buffer created in an ACPI_BUFFER via ACPI_ALLOCATE_LOCAL_BUFFER */
930
992
931#define ACPI_FREE_BUFFER(b) ACPI_FREE(b.Pointer)
932
933
934/*
935 * NameType for AcpiGetName
936 */
937#define ACPI_FULL_PATHNAME 0
938#define ACPI_SINGLE_NAME 1
939#define ACPI_NAME_TYPE_MAX 1
940
941

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

1276#define ACPI_OSI_WIN_VISTA 0x07
1277#define ACPI_OSI_WINSRV_2008 0x08
1278#define ACPI_OSI_WIN_VISTA_SP1 0x09
1279#define ACPI_OSI_WIN_VISTA_SP2 0x0A
1280#define ACPI_OSI_WIN_7 0x0B
1281#define ACPI_OSI_WIN_8 0x0C
1282
1283
993/*
994 * NameType for AcpiGetName
995 */
996#define ACPI_FULL_PATHNAME 0
997#define ACPI_SINGLE_NAME 1
998#define ACPI_NAME_TYPE_MAX 1
999
1000

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

1335#define ACPI_OSI_WIN_VISTA 0x07
1336#define ACPI_OSI_WINSRV_2008 0x08
1337#define ACPI_OSI_WIN_VISTA_SP1 0x09
1338#define ACPI_OSI_WIN_VISTA_SP2 0x0A
1339#define ACPI_OSI_WIN_7 0x0B
1340#define ACPI_OSI_WIN_8 0x0C
1341
1342
1343/* Definitions of file IO */
1344
1345#define ACPI_FILE_READING 0x01
1346#define ACPI_FILE_WRITING 0x02
1347#define ACPI_FILE_BINARY 0x04
1348
1349#define ACPI_FILE_BEGIN 0x01
1350#define ACPI_FILE_END 0x02
1351
1352
1353/* Definitions of getopt */
1354
1355#define ACPI_OPT_END -1
1356
1357
1284#endif /* __ACTYPES_H__ */
1358#endif /* __ACTYPES_H__ */