SOURCES: xorg-driver-video-fglrx-2.6.29.patch (NEW) - init

shadzik shadzik at pld-linux.org
Fri Apr 10 17:48:07 CEST 2009


Author: shadzik                      Date: Fri Apr 10 15:48:06 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- init

---- Files affected:
SOURCES:
   xorg-driver-video-fglrx-2.6.29.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/xorg-driver-video-fglrx-2.6.29.patch
diff -u /dev/null SOURCES/xorg-driver-video-fglrx-2.6.29.patch:1.1
--- /dev/null	Fri Apr 10 17:48:07 2009
+++ SOURCES/xorg-driver-video-fglrx-2.6.29.patch	Fri Apr 10 17:48:01 2009
@@ -0,0 +1,1753 @@
+  patch fglrx 9-2 aka 8.582 to work with linux 2.6.29
+	**** new version ****
+   
+   contains files from acpica.org
+
+	USE AT YOUR OWN RISK
+
+diff -Naurp a/common/lib/modules/fglrx/build_mod/common/lib/common/lib/modules/fglrx/build_mod/modules/fglrx/build_mod/2.6.x/Makefile b/common/lib/modules/fglrx/build_mod/2.6.x/Makefile
+--- a/common/lib/modules/fglrx/build_mod/2.6.x/Makefile	2009-02-28 21:53:58.000000000 +0100
++++ b/common/lib/modules/fglrx/build_mod/2.6.x/Makefile	2009-02-28 22:24:38.000000000 +0100
+@@ -55,7 +55,10 @@ fglrx-hdrs      += firegl_public.h      
+                    kcl_pci.h            \
+                    kcl_str.h            \
+                    kcl_type.h           \
+-                   kcl_wait.h
++                   kcl_wait.h		\
++		   acpica-acconfig.h    \
++		   acpica-aclocal.h     \
++		   acpica-acobject.h    
+                    
+ drm-hdrs        += drm.h drmP.h drm_os_linux.h drm_proc.h drm_compat.h
+ 
+diff -Naurp a/common/lib/modules/fglrx/build_mod/common/lib/common/lib/modules/fglrx/build_mod/modules/fglrx/build_mod/acpica-acconfig.h b/common/lib/modules/fglrx/build_mod/acpica-acconfig.h
+--- a/common/lib/modules/fglrx/build_mod/acpica-acconfig.h	1970-01-01 01:00:00.000000000 +0100
++++ b/common/lib/modules/fglrx/build_mod/acpica-acconfig.h	2009-02-28 22:24:01.000000000 +0100
+@@ -0,0 +1,217 @@
++/******************************************************************************
++ *
++ * Name: acconfig.h - Global configuration constants
++ *
++ *****************************************************************************/
++
++/*
++ * Copyright (C) 2000 - 2008, Intel Corp.
++ * All rights reserved.
++ *
++ * Redistribution and use in source and binary forms, with or without
++ * modification, are permitted provided that the following conditions
++ * are met:
++ * 1. Redistributions of source code must retain the above copyright
++ *    notice, this list of conditions, and the following disclaimer,
++ *    without modification.
++ * 2. Redistributions in binary form must reproduce at minimum a disclaimer
++ *    substantially similar to the "NO WARRANTY" disclaimer below
++ *    ("Disclaimer") and any redistribution must be conditioned upon
++ *    including a substantially similar Disclaimer requirement for further
++ *    binary redistribution.
++ * 3. Neither the names of the above-listed copyright holders nor the names
++ *    of any contributors may be used to endorse or promote products derived
++ *    from this software without specific prior written permission.
++ *
++ * Alternatively, this software may be distributed under the terms of the
++ * GNU General Public License ("GPL") version 2 as published by the Free
++ * Software Foundation.
++ *
++ * NO WARRANTY
++ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
++ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
++ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
++ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
++ * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
++ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
++ * POSSIBILITY OF SUCH DAMAGES.
++ */
++
++#ifndef _ACCONFIG_H
++#define _ACCONFIG_H
++
++/******************************************************************************
++ *
++ * Configuration options
++ *
++ *****************************************************************************/
++
++/*
++ * ACPI_DEBUG_OUTPUT    - This switch enables all the debug facilities of the
++ *                        ACPI subsystem.  This includes the DEBUG_PRINT output
++ *                        statements.  When disabled, all DEBUG_PRINT
++ *                        statements are compiled out.
++ *
++ * ACPI_APPLICATION     - Use this switch if the subsystem is going to be run
++ *                        at the application level.
++ *
++ */
++
++/*
++ * OS name, used for the _OS object.  The _OS object is essentially obsolete,
++ * but there is a large base of ASL/AML code in existing machines that check
++ * for the string below.  The use of this string usually guarantees that
++ * the ASL will execute down the most tested code path.  Also, there is some
++ * code that will not execute the _OSI method unless _OS matches the string
++ * below.  Therefore, change this string at your own risk.
++ */
++#define ACPI_OS_NAME                    "Microsoft Windows NT"
++
++/* Maximum objects in the various object caches */
++
++#define ACPI_MAX_STATE_CACHE_DEPTH      96	/* State objects */
++#define ACPI_MAX_PARSE_CACHE_DEPTH      96	/* Parse tree objects */
++#define ACPI_MAX_EXTPARSE_CACHE_DEPTH   96	/* Parse tree objects */
++#define ACPI_MAX_OBJECT_CACHE_DEPTH     96	/* Interpreter operand objects */
++#define ACPI_MAX_NAMESPACE_CACHE_DEPTH  96	/* Namespace objects */
++
++/*
++ * Should the subsystem abort the loading of an ACPI table if the
++ * table checksum is incorrect?
++ */
++#define ACPI_CHECKSUM_ABORT             FALSE
++
++/******************************************************************************
++ *
++ * Subsystem Constants
++ *
++ *****************************************************************************/
++
++/* Version of ACPI supported */
++
++#define ACPI_CA_SUPPORT_LEVEL           3
++
++/* Maximum count for a semaphore object */
++
++#define ACPI_MAX_SEMAPHORE_COUNT        256
++
++/* Maximum object reference count (detects object deletion issues) */
++
++#define ACPI_MAX_REFERENCE_COUNT        0x1000
++
++/* Size of cached memory mapping for system memory operation region */
++
++#define ACPI_SYSMEM_REGION_WINDOW_SIZE  4096
++
++/* owner_id tracking. 8 entries allows for 255 owner_ids */
++
++#define ACPI_NUM_OWNERID_MASKS          8
++
++/* Size of the root table array is increased by this increment */
++
++#define ACPI_ROOT_TABLE_SIZE_INCREMENT  4
++
++/* Maximum number of While() loop iterations before forced abort */
++
++#define ACPI_MAX_LOOP_ITERATIONS        0xFFFF
++
++/******************************************************************************
++ *
++ * ACPI Specification constants (Do not change unless the specification changes)
++ *
++ *****************************************************************************/
++
++/* Number of distinct GPE register blocks and register width */
++
++#define ACPI_MAX_GPE_BLOCKS             2
++#define ACPI_GPE_REGISTER_WIDTH         8
++
++/* Method info (in WALK_STATE), containing local variables and argumetns */
++
++#define ACPI_METHOD_NUM_LOCALS          8
++#define ACPI_METHOD_MAX_LOCAL           7
++
++#define ACPI_METHOD_NUM_ARGS            7
++#define ACPI_METHOD_MAX_ARG             6
++
++/* Length of _HID, _UID, _CID, and UUID values */
++
++#define ACPI_DEVICE_ID_LENGTH           0x09
++#define ACPI_MAX_CID_LENGTH             48
++#define ACPI_UUID_LENGTH                16
++
++/*
++ * Operand Stack (in WALK_STATE), Must be large enough to contain METHOD_MAX_ARG
++ */
++#define ACPI_OBJ_NUM_OPERANDS           8
++#define ACPI_OBJ_MAX_OPERAND            7
++
++/* Number of elements in the Result Stack frame, can be an arbitrary value */
++
++#define ACPI_RESULTS_FRAME_OBJ_NUM      8
++
++/*
++ * Maximal number of elements the Result Stack can contain,
++ * it may be an arbitray value not exceeding the types of
++ * result_size and result_count (now u8).
++ */
++#define ACPI_RESULTS_OBJ_NUM_MAX        255
++
++/* Names within the namespace are 4 bytes long */
++
++#define ACPI_NAME_SIZE                  4
++#define ACPI_PATH_SEGMENT_LENGTH        5	/* 4 chars for name + 1 char for separator */
++#define ACPI_PATH_SEPARATOR             '.'
++
++/* Sizes for ACPI table headers */
++
++#define ACPI_OEM_ID_SIZE                6
++#define ACPI_OEM_TABLE_ID_SIZE          8
++
++/* Constants used in searching for the RSDP in low memory */
++
++#define ACPI_EBDA_PTR_LOCATION          0x0000040E	/* Physical Address */
++#define ACPI_EBDA_PTR_LENGTH            2
++#define ACPI_EBDA_WINDOW_SIZE           1024
++#define ACPI_HI_RSDP_WINDOW_BASE        0x000E0000	/* Physical Address */
++#define ACPI_HI_RSDP_WINDOW_SIZE        0x00020000
++#define ACPI_RSDP_SCAN_STEP             16
++
++/* Operation regions */
++
++#define ACPI_NUM_PREDEFINED_REGIONS     8
++#define ACPI_USER_REGION_BEGIN          0x80
++
++/* Maximum space_ids for Operation Regions */
++
++#define ACPI_MAX_ADDRESS_SPACE          255
++
++/* Array sizes.  Used for range checking also */
++
++#define ACPI_MAX_MATCH_OPCODE           5
++
++/* RSDP checksums */
++
++#define ACPI_RSDP_CHECKSUM_LENGTH       20
++#define ACPI_RSDP_XCHECKSUM_LENGTH      36
++
++/* SMBus bidirectional buffer size */
++
++#define ACPI_SMBUS_BUFFER_SIZE          34
++
++/******************************************************************************
++ *
++ * ACPI AML Debugger
++ *
++ *****************************************************************************/
++
++#define ACPI_DEBUGGER_MAX_ARGS          8	/* Must be max method args + 1 */
++
++#define ACPI_DEBUGGER_COMMAND_PROMPT    '-'
++#define ACPI_DEBUGGER_EXECUTE_PROMPT    '%'
++
++#endif				/* _ACCONFIG_H */
+diff -Naurp a/common/lib/modules/fglrx/build_mod/common/lib/common/lib/modules/fglrx/build_mod/modules/fglrx/build_mod/acpica-aclocal.h b/common/lib/modules/fglrx/build_mod/acpica-aclocal.h
+--- a/common/lib/modules/fglrx/build_mod/acpica-aclocal.h	1970-01-01 01:00:00.000000000 +0100
++++ b/common/lib/modules/fglrx/build_mod/acpica-aclocal.h	2009-02-28 21:35:32.000000000 +0100
+@@ -0,0 +1,990 @@
++/******************************************************************************
++ *
++ * Name: aclocal.h - Internal data types used across the ACPI subsystem
++ *
++ *****************************************************************************/
++
++/*
++ * Copyright (C) 2000 - 2008, Intel Corp.
++ * All rights reserved.
++ *
++ * Redistribution and use in source and binary forms, with or without
++ * modification, are permitted provided that the following conditions
++ * are met:
++ * 1. Redistributions of source code must retain the above copyright
++ *    notice, this list of conditions, and the following disclaimer,
++ *    without modification.
++ * 2. Redistributions in binary form must reproduce at minimum a disclaimer
++ *    substantially similar to the "NO WARRANTY" disclaimer below
++ *    ("Disclaimer") and any redistribution must be conditioned upon
++ *    including a substantially similar Disclaimer requirement for further
++ *    binary redistribution.
++ * 3. Neither the names of the above-listed copyright holders nor the names
++ *    of any contributors may be used to endorse or promote products derived
++ *    from this software without specific prior written permission.
++ *
++ * Alternatively, this software may be distributed under the terms of the
++ * GNU General Public License ("GPL") version 2 as published by the Free
++ * Software Foundation.
++ *
++ * NO WARRANTY
++ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
++ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
++ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
++ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
++ * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
++ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
++ * POSSIBILITY OF SUCH DAMAGES.
++ */
++
++#ifndef __ACLOCAL_H__
++#define __ACLOCAL_H__
++
++/* acpisrc:struct_defs -- for acpisrc conversion */
++
++#define ACPI_SERIALIZED                 0xFF
++
++typedef u32 acpi_mutex_handle;
++#define ACPI_GLOBAL_LOCK                (acpi_semaphore) (-1)
++
++/* Total number of aml opcodes defined */
++
++#define AML_NUM_OPCODES                 0x7F
++
++/* Forward declarations */
++
++struct acpi_walk_state;
++struct acpi_obj_mutex;
++union acpi_parse_object;
++
++/*****************************************************************************
++ *
++ * Mutex typedefs and structs
++ *
++ ****************************************************************************/
++
++/*
++ * Predefined handles for the mutex objects used within the subsystem
++ * All mutex objects are automatically created by acpi_ut_mutex_initialize.
++ *
++ * The acquire/release ordering protocol is implied via this list. Mutexes
++ * with a lower value must be acquired before mutexes with a higher value.
++ *
++ * NOTE: any changes here must be reflected in the acpi_gbl_mutex_names
++ * table below also!
++ */
++#define ACPI_MTX_INTERPRETER            0	/* AML Interpreter, main lock */
++#define ACPI_MTX_NAMESPACE              1	/* ACPI Namespace */
++#define ACPI_MTX_TABLES                 2	/* Data for ACPI tables */
++#define ACPI_MTX_EVENTS                 3	/* Data for ACPI events */
++#define ACPI_MTX_CACHES                 4	/* Internal caches, general purposes */
++#define ACPI_MTX_MEMORY                 5	/* Debug memory tracking lists */
++#define ACPI_MTX_DEBUG_CMD_COMPLETE     6	/* AML debugger */
++#define ACPI_MTX_DEBUG_CMD_READY        7	/* AML debugger */
++
++#define ACPI_MAX_MUTEX                  7
++#define ACPI_NUM_MUTEX                  ACPI_MAX_MUTEX+1
++
++#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
++#ifdef DEFINE_ACPI_GLOBALS
++
++/* Debug names for the mutexes above */
++
++static char *acpi_gbl_mutex_names[ACPI_NUM_MUTEX] = {
++	"ACPI_MTX_Interpreter",
++	"ACPI_MTX_Namespace",
++	"ACPI_MTX_Tables",
++	"ACPI_MTX_Events",
++	"ACPI_MTX_Caches",
++	"ACPI_MTX_Memory",
++	"ACPI_MTX_CommandComplete",
++	"ACPI_MTX_CommandReady"
++};
++
++#endif
++#endif
++
++/*
++ * Predefined handles for spinlocks used within the subsystem.
++ * These spinlocks are created by acpi_ut_mutex_initialize
++ */
++#define ACPI_LOCK_GPES                  0
++#define ACPI_LOCK_HARDWARE              1
++
++#define ACPI_MAX_LOCK                   1
++#define ACPI_NUM_LOCK                   ACPI_MAX_LOCK+1
++
++/* This Thread ID means that the mutex is not in use (unlocked) */
++
++#define ACPI_MUTEX_NOT_ACQUIRED         (acpi_thread_id) 0
++
++/* Table for the global mutexes */
++
++struct acpi_mutex_info {
++	acpi_mutex mutex;
++	u32 use_count;
++	acpi_thread_id thread_id;
++};
++
++/* Lock flag parameter for various interfaces */
++
++#define ACPI_MTX_DO_NOT_LOCK            0
++#define ACPI_MTX_LOCK                   1
++
++/* Field access granularities */
++
++#define ACPI_FIELD_BYTE_GRANULARITY     1
++#define ACPI_FIELD_WORD_GRANULARITY     2
++#define ACPI_FIELD_DWORD_GRANULARITY    4
++#define ACPI_FIELD_QWORD_GRANULARITY    8
++
++#define ACPI_ENTRY_NOT_FOUND            NULL
++
++/*****************************************************************************
++ *
++ * Namespace typedefs and structs
++ *
++ ****************************************************************************/
++
++/* Operational modes of the AML interpreter/scanner */
++
++typedef enum {
++	ACPI_IMODE_LOAD_PASS1 = 0x01,
++	ACPI_IMODE_LOAD_PASS2 = 0x02,
++	ACPI_IMODE_EXECUTE = 0x03
++} acpi_interpreter_mode;
++
++/*
++ * The Namespace Node describes a named object that appears in the AML.
++ * descriptor_type is used to differentiate between internal descriptors.
++ *
++ * The node is optimized for both 32-bit and 64-bit platforms:
++ * 20 bytes for the 32-bit case, 32 bytes for the 64-bit case.
++ *
++ * Note: The descriptor_type and Type fields must appear in the identical
++ * position in both the struct acpi_namespace_node and union acpi_operand_object
++ * structures.
++ */
++struct acpi_namespace_node {
++	union acpi_operand_object *object;	/* Interpreter object */
++	u8 descriptor_type;	/* Differentiate object descriptor types */
++	u8 type;		/* ACPI Type associated with this name */
++	u8 flags;		/* Miscellaneous flags */
++	acpi_owner_id owner_id;	/* Node creator */
++	union acpi_name_union name;	/* ACPI Name, always 4 chars per ACPI spec */
++	struct acpi_namespace_node *child;	/* First child */
++	struct acpi_namespace_node *peer;	/* Peer. Parent if ANOBJ_END_OF_PEER_LIST set */
++
++	/*
++	 * The following fields are used by the ASL compiler and disassembler only
++	 */
++#ifdef ACPI_LARGE_NAMESPACE_NODE
++	union acpi_parse_object *op;
++	u32 value;
++	u32 length;
++#endif
++};
++
++/* Namespace Node flags */
++
++#define ANOBJ_END_OF_PEER_LIST          0x01	/* End-of-list, Peer field points to parent */
++#define ANOBJ_TEMPORARY                 0x02	/* Node is create by a method and is temporary */
++#define ANOBJ_METHOD_ARG                0x04	/* Node is a method argument */
++#define ANOBJ_METHOD_LOCAL              0x08	/* Node is a method local */
++#define ANOBJ_SUBTREE_HAS_INI           0x10	/* Used to optimize device initialization */
++#define ANOBJ_EVALUATED                 0x20	/* Set on first evaluation of node */
++
++#define ANOBJ_IS_EXTERNAL               0x08	/* i_aSL only: This object created via External() */
++#define ANOBJ_METHOD_NO_RETVAL          0x10	/* i_aSL only: Method has no return value */
++#define ANOBJ_METHOD_SOME_NO_RETVAL     0x20	/* i_aSL only: Method has at least one return value */
++#define ANOBJ_IS_BIT_OFFSET             0x40	/* i_aSL only: Reference is a bit offset */
++#define ANOBJ_IS_REFERENCED             0x80	/* i_aSL only: Object was referenced */
++
++/* One internal RSDT for table management */
++
++struct acpi_internal_rsdt {
++	struct acpi_table_desc *tables;
++	u32 count;
++	u32 size;
++	u8 flags;
++};
++
++/* Flags for above */
++
++#define ACPI_ROOT_ORIGIN_UNKNOWN        (0)	/* ~ORIGIN_ALLOCATED */
++#define ACPI_ROOT_ORIGIN_ALLOCATED      (1)
++#define ACPI_ROOT_ALLOW_RESIZE          (2)
++
++/* Predefined (fixed) table indexes */
++
++#define ACPI_TABLE_INDEX_DSDT           (0)
++#define ACPI_TABLE_INDEX_FACS           (1)
++
++struct acpi_find_context {
++	char *search_for;
++	acpi_handle *list;
++	u32 *count;
++};
++
++struct acpi_ns_search_data {
++	struct acpi_namespace_node *node;
++};
++
++/* Object types used during package copies */
++
++#define ACPI_COPY_TYPE_SIMPLE           0
++#define ACPI_COPY_TYPE_PACKAGE          1
++
++/* Info structure used to convert external<->internal namestrings */
++
++struct acpi_namestring_info {
++	const char *external_name;
++	const char *next_external_char;
++	char *internal_name;
++	u32 length;
++	u32 num_segments;
++	u32 num_carats;
++	u8 fully_qualified;
++};
++
++/* Field creation info */
++
++struct acpi_create_field_info {
++	struct acpi_namespace_node *region_node;
++	struct acpi_namespace_node *field_node;
++	struct acpi_namespace_node *register_node;
++	struct acpi_namespace_node *data_register_node;
++	u32 bank_value;
++	u32 field_bit_position;
++	u32 field_bit_length;
++	u8 field_flags;
++	u8 attribute;
++	u8 field_type;
++};
++
++typedef
++acpi_status(*ACPI_INTERNAL_METHOD) (struct acpi_walk_state * walk_state);
++
++/*
++ * Bitmapped ACPI types.  Used internally only
++ */
++#define ACPI_BTYPE_ANY                  0x00000000
++#define ACPI_BTYPE_INTEGER              0x00000001
++#define ACPI_BTYPE_STRING               0x00000002
++#define ACPI_BTYPE_BUFFER               0x00000004
++#define ACPI_BTYPE_PACKAGE              0x00000008
++#define ACPI_BTYPE_FIELD_UNIT           0x00000010
++#define ACPI_BTYPE_DEVICE               0x00000020
++#define ACPI_BTYPE_EVENT                0x00000040
++#define ACPI_BTYPE_METHOD               0x00000080
++#define ACPI_BTYPE_MUTEX                0x00000100
++#define ACPI_BTYPE_REGION               0x00000200
++#define ACPI_BTYPE_POWER                0x00000400
++#define ACPI_BTYPE_PROCESSOR            0x00000800
++#define ACPI_BTYPE_THERMAL              0x00001000
++#define ACPI_BTYPE_BUFFER_FIELD         0x00002000
++#define ACPI_BTYPE_DDB_HANDLE           0x00004000
++#define ACPI_BTYPE_DEBUG_OBJECT         0x00008000
++#define ACPI_BTYPE_REFERENCE            0x00010000
++#define ACPI_BTYPE_RESOURCE             0x00020000
++
++#define ACPI_BTYPE_COMPUTE_DATA         (ACPI_BTYPE_INTEGER | ACPI_BTYPE_STRING | ACPI_BTYPE_BUFFER)
++
++#define ACPI_BTYPE_DATA                 (ACPI_BTYPE_COMPUTE_DATA  | ACPI_BTYPE_PACKAGE)
++#define ACPI_BTYPE_DATA_REFERENCE       (ACPI_BTYPE_DATA | ACPI_BTYPE_REFERENCE | ACPI_BTYPE_DDB_HANDLE)
++#define ACPI_BTYPE_DEVICE_OBJECTS       (ACPI_BTYPE_DEVICE | ACPI_BTYPE_THERMAL | ACPI_BTYPE_PROCESSOR)
++#define ACPI_BTYPE_OBJECTS_AND_REFS     0x0001FFFF	/* ARG or LOCAL */
++#define ACPI_BTYPE_ALL_OBJECTS          0x0000FFFF
++
++/*
++ * Information structure for ACPI predefined names.
++ * Each entry in the table contains the following items:
++ *
++ * Name                 - The ACPI reserved name
++ * param_count          - Number of arguments to the method
++ * expected_return_btypes - Allowed type(s) for the return value
++ */
++struct acpi_name_info {
++	char name[ACPI_NAME_SIZE];
++	u8 param_count;
++	u8 expected_btypes;
++};
++
++/*
++ * Secondary information structures for ACPI predefined objects that return
++ * package objects. This structure appears as the next entry in the table
++ * after the NAME_INFO structure above.
++ *
++ * The reason for this is to minimize the size of the predefined name table.
++ */
++
++/*
++ * Used for ACPI_PTYPE1_FIXED, ACPI_PTYPE1_VAR, ACPI_PTYPE2,
++ * ACPI_PTYPE2_MIN, ACPI_PTYPE2_PKG_COUNT, ACPI_PTYPE2_COUNT
++ */
++struct acpi_package_info {
++	u8 type;
++	u8 object_type1;
++	u8 count1;
++	u8 object_type2;
++	u8 count2;
++	u8 reserved;
++};
++
++/* Used for ACPI_PTYPE2_FIXED */
++
++struct acpi_package_info2 {
++	u8 type;
++	u8 count;
++	u8 object_type[4];
++};
<<Diff was trimmed, longer than 597 lines>>


More information about the pld-cvs-commit mailing list