ACPICA patches for Linux-2.6.34-merge
Len Brown
reviewerThis batch of patches has been in acpi-test and linux-next waiting for 2.6.34 for some time. Let me know if you have any problems with them.
thanks,
-Len
Len Brown
reviewerPATCH 1/9 ACPICA: Update for new gcc-4 warning options
From: Bob Moore <[email protected]>
Added several new options for the gcc-4 generation, and updated the source accordingly. This includes some code restructuring to eliminate unreachable code, elimination of some gotos, elimination of unused return values, and some additional casting.
--- drivers/acpi/acpica/exconfig.c | 13 +++++-------- drivers/acpi/acpica/hwgpe.c | 6 ++---- drivers/acpi/acpica/nspredef.c | 24 +++++++++++------------- drivers/acpi/acpica/nsrepair2.c | 24 +++++++++--------------- drivers/acpi/acpica/utmutex.c | 16 +++------------- include/acpi/platform/acenv.h | 4 ++-- 6 files changed, 32 insertions(+), 55 deletions(-)
drivers/acpi/acpica/exconfig.c +5 -8
@@ -490,7 +490,11 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc, status =acpi_tb_add_table (&table_desc, &table_index);if (ACPI_FAILURE (status)) { - goto cleanup; + +/* Delete allocated table buffer */ + +acpi_tb_delete_table (&table_desc); +return_ACPI_STATUS (status); }/*
@@ -533,13 +537,6 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc, acpi_gbl_table_handler_context); } - cleanup: -if (ACPI_FAILURE (status)) { - -/* Delete allocated table buffer */ - -acpi_tb_delete_table (&table_desc); - }return_ACPI_STATUS (status); }
drivers/acpi/acpica/hwgpe.c +2 -4
@@ -224,7 +224,7 @@ acpi_hw_get_gpe_status(struct acpi_gpe_event_info * gpe_event_info, status =acpi_hw_read (&in_byte, &gpe_register_info->status_address);if (ACPI_FAILURE (status)) { - goto unlock_and_exit; +return (status); }if (register_bit & in_byte) {
@@ -234,9 +234,7 @@ acpi_hw_get_gpe_status(struct acpi_gpe_event_info * gpe_event_info,/* Set return value */ (*event_status) = local_event_status; - - unlock_and_exit: -return (status); +return (AE_OK ); }/******************************************************************************
drivers/acpi/acpica/nspredef.c +11 -13
@@ -1000,27 +1000,25 @@ acpi_ns_check_object_type(struct acpi_predefined_data *data,/* Is the object one of the expected types? */ -if (!(return_btype & expected_btypes)) { +if (return_btype & expected_btypes) { -/* Type mismatch -- attempt repair of the returned object */ +/* For reference objects, check that the reference type is correct */ - status =acpi_ns_repair_object (data, expected_btypes, - package_index, - return_object_ptr); -if (ACPI_SUCCESS (status)) { -return (AE_OK );/* Repair was successful */ +if (return_object->common.type ==ACPI_TYPE_LOCAL_REFERENCE ) { + status =acpi_ns_check_reference (data, return_object); } - goto type_error_exit; + +return (status); } -/* For reference objects, check that the reference type is correct */ +/* Type mismatch -- attempt repair of the returned object */ -if (return_object->common.type ==ACPI_TYPE_LOCAL_REFERENCE ) { - status =acpi_ns_check_reference (data, return_object); + status =acpi_ns_repair_object (data, expected_btypes, + package_index, return_object_ptr); +if (ACPI_SUCCESS (status)) { +return (AE_OK );/* Repair was successful */ } -return (status); - type_error_exit:/* Create a string with all expected types for this predefined object */
drivers/acpi/acpica/nsrepair2.c +9 -15
@@ -93,7 +93,7 @@ acpi_ns_check_sorted_list(struct acpi_predefined_data *data,u32 sort_index, u8 sort_direction, char *sort_key_name); -static acpi_status +static void acpi_ns_sort_list (union acpi_operand_object **elements,u32 count,u32 index,u8 sort_direction);
@@ -443,7 +443,6 @@ acpi_ns_check_sorted_list(struct acpi_predefined_data *data,union acpi_operand_object *obj_desc;u32 i;u32 previous_value; -acpi_status status;ACPI_FUNCTION_NAME (ns_check_sorted_list);
@@ -494,19 +493,15 @@ acpi_ns_check_sorted_list(struct acpi_predefined_data *data,/* * The list must be sorted in the specified order. If we detect a -* discrepancy, issue a warning and sort the entire list +* discrepancy, sort the entire list. */ if (((sort_direction ==ACPI_SORT_ASCENDING ) && (obj_desc->integer.value < previous_value)) || ((sort_direction ==ACPI_SORT_DESCENDING ) && (obj_desc->integer.value > previous_value))) { - status = -acpi_ns_sort_list (return_object->package.elements, - outer_element_count, sort_index, - sort_direction); -if (ACPI_FAILURE (status)) { -return (status); - } +acpi_ns_sort_list (return_object->package.elements, + outer_element_count, sort_index, + sort_direction); data->flags |=ACPI_OBJECT_REPAIRED ;
@@ -615,15 +610,16 @@ acpi_ns_remove_null_elements(struct acpi_predefined_data *data,* Index - Sort by which package element * sort_direction - Ascending or Descending sort * -* RETURN: Status +* RETURN: None * * DESCRIPTION: Sort the objects that are in a package element list. * -* NOTE: Assumes that all NULL elements have been removed from the package. +* NOTE: Assumes that all NULL elements have been removed from the package, +* and that all elements have been verified to be of type Integer. * *****************************************************************************/ -static acpi_status +static void acpi_ns_sort_list (union acpi_operand_object **elements,u32 count,u32 index,u8 sort_direction) {
@@ -652,6 +648,4 @@ acpi_ns_sort_list(union acpi_operand_object **elements, } } } - -return (AE_OK ); }
drivers/acpi/acpica/utmutex.c +3 -13
@@ -50,7 +50,7 @@ ACPI_MODULE_NAME("utmutex")/* Local prototypes */ static acpi_status acpi_ut_create_mutex (acpi_mutex_handle mutex_id); -static acpi_status acpi_ut_delete_mutex (acpi_mutex_handle mutex_id); +static void acpi_ut_delete_mutex (acpi_mutex_handle mutex_id);/******************************************************************************* *
@@ -114,7 +114,7 @@ void acpi_ut_mutex_terminate(void)/* Delete each predefined mutex object */ for (i =0 ; i <ACPI_NUM_MUTEX ; i++) { - (void )acpi_ut_delete_mutex (i); +acpi_ut_delete_mutex (i); }/* Delete the spinlocks */
@@ -146,10 +146,6 @@ static acpi_status acpi_ut_create_mutex(acpi_mutex_handle mutex_id)ACPI_FUNCTION_TRACE_U32 (ut_create_mutex, mutex_id); -if (mutex_id >ACPI_MAX_MUTEX ) { -return_ACPI_STATUS (AE_BAD_PARAMETER ); - } -if (!acpi_gbl_mutex_info[mutex_id].mutex) { status =acpi_os_create_mutex (&acpi_gbl_mutex_info[mutex_id].mutex);
@@ -173,21 +169,15 @@ static acpi_status acpi_ut_create_mutex(acpi_mutex_handle mutex_id)* ******************************************************************************/ -static acpi_status acpi_ut_delete_mutex (acpi_mutex_handle mutex_id) +static void acpi_ut_delete_mutex (acpi_mutex_handle mutex_id) {ACPI_FUNCTION_TRACE_U32 (ut_delete_mutex, mutex_id); -if (mutex_id >ACPI_MAX_MUTEX ) { -return_ACPI_STATUS (AE_BAD_PARAMETER ); - } -acpi_os_delete_mutex (acpi_gbl_mutex_info[mutex_id].mutex); acpi_gbl_mutex_info[mutex_id].mutex =NULL ; acpi_gbl_mutex_info[mutex_id].thread_id =ACPI_MUTEX_NOT_ACQUIRED ; - -return_ACPI_STATUS (AE_OK ); }/*******************************************************************************
include/acpi/platform/acenv.h +2 -2
@@ -311,8 +311,8 @@ typedef char *va_list;#define ACPI_MEMCMP (s1,s2,n) acpi_ut_memcmp((const char *)(s1), (const char *)(s2), (acpi_size)(n))#define ACPI_MEMCPY (d,s,n) (void) acpi_ut_memcpy ((d), (s), (acpi_size)(n))#define ACPI_MEMSET (d,v,n) (void) acpi_ut_memset ((d), (v), (acpi_size)(n)) -#define ACPI_TOUPPER acpi_ut_to_upper -#define ACPI_TOLOWER acpi_ut_to_lower +#define ACPI_TOUPPER (c) acpi_ut_to_upper ((int) (c)) +#define ACPI_TOLOWER (c) acpi_ut_to_lower ((int) (c))#endif /* ACPI_USE_SYSTEM_CLIBRARY */
Signature · 1 line
1.6.0.6
Len Brown
reviewerPATCH 2/9 ACPICA: Update all ACPICA copyrights and signons to 2010
In reply to Len BrownFrom: Bob Moore <[email protected]>
Add 2010 copyright to all module headers and signons, including the Linux header. This affects virtually every file in the ACPICA core subsystem, iASL compiler, and all utilities.
--- drivers/acpi/acpica/accommon.h | 2 +- drivers/acpi/acpica/acconfig.h | 2 +- drivers/acpi/acpica/acdebug.h | 2 +- drivers/acpi/acpica/acdispat.h | 2 +- drivers/acpi/acpica/acevents.h | 2 +- drivers/acpi/acpica/acglobal.h | 2 +- drivers/acpi/acpica/achware.h | 2 +- drivers/acpi/acpica/acinterp.h | 2 +- drivers/acpi/acpica/aclocal.h | 2 +- drivers/acpi/acpica/acmacros.h | 2 +- drivers/acpi/acpica/acnamesp.h | 2 +- drivers/acpi/acpica/acobject.h | 2 +- drivers/acpi/acpica/acopcode.h | 2 +- drivers/acpi/acpica/acparser.h | 2 +- drivers/acpi/acpica/acpredef.h | 2 +- drivers/acpi/acpica/acresrc.h | 2 +- drivers/acpi/acpica/acstruct.h | 2 +- drivers/acpi/acpica/actables.h | 2 +- drivers/acpi/acpica/acutils.h | 2 +- drivers/acpi/acpica/amlcode.h | 2 +- drivers/acpi/acpica/amlresrc.h | 2 +- drivers/acpi/acpica/dsfield.c | 2 +- drivers/acpi/acpica/dsinit.c | 2 +- drivers/acpi/acpica/dsmethod.c | 2 +- drivers/acpi/acpica/dsmthdat.c | 2 +- drivers/acpi/acpica/dsobject.c | 2 +- drivers/acpi/acpica/dsopcode.c | 2 +- drivers/acpi/acpica/dsutils.c | 2 +- drivers/acpi/acpica/dswexec.c | 2 +- drivers/acpi/acpica/dswload.c | 2 +- drivers/acpi/acpica/dswscope.c | 2 +- drivers/acpi/acpica/dswstate.c | 2 +- drivers/acpi/acpica/evevent.c | 2 +- drivers/acpi/acpica/evgpe.c | 2 +- drivers/acpi/acpica/evgpeblk.c | 2 +- drivers/acpi/acpica/evmisc.c | 2 +- drivers/acpi/acpica/evregion.c | 2 +- drivers/acpi/acpica/evrgnini.c | 2 +- drivers/acpi/acpica/evsci.c | 2 +- drivers/acpi/acpica/evxface.c | 2 +- drivers/acpi/acpica/evxfevnt.c | 2 +- drivers/acpi/acpica/evxfregn.c | 2 +- drivers/acpi/acpica/exconfig.c | 2 +- drivers/acpi/acpica/exconvrt.c | 2 +- drivers/acpi/acpica/excreate.c | 2 +- drivers/acpi/acpica/exdump.c | 2 +- drivers/acpi/acpica/exfield.c | 2 +- drivers/acpi/acpica/exfldio.c | 2 +- drivers/acpi/acpica/exmisc.c | 2 +- drivers/acpi/acpica/exmutex.c | 2 +- drivers/acpi/acpica/exnames.c | 2 +- drivers/acpi/acpica/exoparg1.c | 2 +- drivers/acpi/acpica/exoparg2.c | 2 +- drivers/acpi/acpica/exoparg3.c | 2 +- drivers/acpi/acpica/exoparg6.c | 2 +- drivers/acpi/acpica/exprep.c | 2 +- drivers/acpi/acpica/exregion.c | 2 +- drivers/acpi/acpica/exresnte.c | 2 +- drivers/acpi/acpica/exresolv.c | 2 +- drivers/acpi/acpica/exresop.c | 2 +- drivers/acpi/acpica/exstore.c | 2 +- drivers/acpi/acpica/exstoren.c | 2 +- drivers/acpi/acpica/exstorob.c | 2 +- drivers/acpi/acpica/exsystem.c | 2 +- drivers/acpi/acpica/exutils.c | 2 +- drivers/acpi/acpica/hwacpi.c | 2 +- drivers/acpi/acpica/hwgpe.c | 2 +- drivers/acpi/acpica/hwregs.c | 2 +- drivers/acpi/acpica/hwsleep.c | 2 +- drivers/acpi/acpica/hwtimer.c | 2 +- drivers/acpi/acpica/hwvalid.c | 2 +- drivers/acpi/acpica/hwxface.c | 2 +- drivers/acpi/acpica/nsaccess.c | 2 +- drivers/acpi/acpica/nsalloc.c | 2 +- drivers/acpi/acpica/nsdump.c | 2 +- drivers/acpi/acpica/nsdumpdv.c | 2 +- drivers/acpi/acpica/nseval.c | 2 +- drivers/acpi/acpica/nsinit.c | 2 +- drivers/acpi/acpica/nsload.c | 2 +- drivers/acpi/acpica/nsnames.c | 2 +- drivers/acpi/acpica/nsobject.c | 2 +- drivers/acpi/acpica/nsparse.c | 2 +- drivers/acpi/acpica/nspredef.c | 2 +- drivers/acpi/acpica/nsrepair.c | 2 +- drivers/acpi/acpica/nsrepair2.c | 2 +- drivers/acpi/acpica/nssearch.c | 2 +- drivers/acpi/acpica/nsutils.c | 2 +- drivers/acpi/acpica/nswalk.c | 2 +- drivers/acpi/acpica/nsxfeval.c | 2 +- drivers/acpi/acpica/nsxfname.c | 2 +- drivers/acpi/acpica/nsxfobj.c | 2 +- drivers/acpi/acpica/psargs.c | 2 +- drivers/acpi/acpica/psloop.c | 2 +- drivers/acpi/acpica/psopcode.c | 2 +- drivers/acpi/acpica/psparse.c | 2 +- drivers/acpi/acpica/psscope.c | 2 +- drivers/acpi/acpica/pstree.c | 2 +- drivers/acpi/acpica/psutils.c | 2 +- drivers/acpi/acpica/pswalk.c | 2 +- drivers/acpi/acpica/psxface.c | 2 +- drivers/acpi/acpica/rsaddr.c | 2 +- drivers/acpi/acpica/rscalc.c | 2 +- drivers/acpi/acpica/rscreate.c | 2 +- drivers/acpi/acpica/rsdump.c | 2 +- drivers/acpi/acpica/rsinfo.c | 2 +- drivers/acpi/acpica/rsio.c | 2 +- drivers/acpi/acpica/rsirq.c | 2 +- drivers/acpi/acpica/rslist.c | 2 +- drivers/acpi/acpica/rsmemory.c | 2 +- drivers/acpi/acpica/rsmisc.c | 2 +- drivers/acpi/acpica/rsutils.c | 2 +- drivers/acpi/acpica/rsxface.c | 2 +- drivers/acpi/acpica/tbfadt.c | 2 +- drivers/acpi/acpica/tbfind.c | 2 +- drivers/acpi/acpica/tbinstal.c | 2 +- drivers/acpi/acpica/tbutils.c | 2 +- drivers/acpi/acpica/tbxface.c | 2 +- drivers/acpi/acpica/tbxfroot.c | 2 +- drivers/acpi/acpica/utalloc.c | 2 +- drivers/acpi/acpica/utcopy.c | 2 +- drivers/acpi/acpica/utdebug.c | 2 +- drivers/acpi/acpica/utdelete.c | 2 +- drivers/acpi/acpica/uteval.c | 2 +- drivers/acpi/acpica/utglobal.c | 2 +- drivers/acpi/acpica/utids.c | 2 +- drivers/acpi/acpica/utinit.c | 2 +- drivers/acpi/acpica/utlock.c | 2 +- drivers/acpi/acpica/utmath.c | 2 +- drivers/acpi/acpica/utmisc.c | 2 +- drivers/acpi/acpica/utmutex.c | 2 +- drivers/acpi/acpica/utobject.c | 2 +- drivers/acpi/acpica/utresrc.c | 2 +- drivers/acpi/acpica/utstate.c | 2 +- drivers/acpi/acpica/utxface.c | 2 +- include/acpi/acexcep.h | 2 +- include/acpi/acnames.h | 2 +- include/acpi/acoutput.h | 2 +- include/acpi/acpi.h | 2 +- include/acpi/acpiosxf.h | 2 +- include/acpi/acpixf.h | 2 +- include/acpi/acrestyp.h | 2 +- include/acpi/actbl.h | 2 +- include/acpi/actbl1.h | 2 +- include/acpi/actbl2.h | 43 +++++++++++++++++++++++++++++++++++++++ include/acpi/actypes.h | 2 +- include/acpi/platform/acenv.h | 2 +- include/acpi/platform/acgcc.h | 2 +- include/acpi/platform/aclinux.h | 2 +- 148 files changed, 190 insertions(+), 147 deletions(-)
drivers/acpi/acpica/accommon.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acconfig.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acdebug.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acdispat.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acevents.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acglobal.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/achware.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acinterp.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/aclocal.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acmacros.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acnamesp.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acobject.h +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acopcode.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acparser.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acpredef.h +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acresrc.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acstruct.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/actables.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/acutils.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/amlcode.h +1 -1
@@ -7,7 +7,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/amlresrc.h +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/dsfield.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/dsinit.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/dsmethod.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/dsmthdat.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/dsobject.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/dsopcode.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/dsutils.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/dswexec.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/dswload.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/dswscope.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/dswstate.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/evevent.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/evgpe.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/evgpeblk.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/evmisc.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/evregion.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/evrgnini.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/evsci.c +1 -1
@@ -6,7 +6,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/evxface.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/evxfevnt.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/evxfregn.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exconfig.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exconvrt.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/excreate.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exdump.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exfield.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exfldio.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exmisc.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exmutex.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exnames.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exoparg1.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exoparg2.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exoparg3.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exoparg6.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exprep.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exregion.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exresnte.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exresolv.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exresop.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exstore.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exstoren.c +1 -1
@@ -7,7 +7,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exstorob.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exsystem.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/exutils.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/hwacpi.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/hwgpe.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/hwregs.c +1 -1
@@ -7,7 +7,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/hwsleep.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/hwtimer.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/hwvalid.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2009, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/hwxface.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsaccess.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsalloc.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsdump.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsdumpdv.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nseval.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsinit.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsload.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsnames.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsobject.c +1 -1
@@ -6,7 +6,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsparse.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nspredef.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsrepair.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2009, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsrepair2.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2009, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nssearch.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsutils.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nswalk.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsxfeval.c +1 -1
@@ -6,7 +6,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsxfname.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/nsxfobj.c +1 -1
@@ -6,7 +6,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/psargs.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/psloop.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/psopcode.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/psparse.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/psscope.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/pstree.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/psutils.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/pswalk.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/psxface.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/rsaddr.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/rscalc.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/rscreate.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/rsdump.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/rsinfo.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/rsio.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/rsirq.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/rslist.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/rsmemory.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/rsmisc.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/rsutils.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/rsxface.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/tbfadt.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/tbfind.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/tbinstal.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/tbutils.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/tbxface.c +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/tbxfroot.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utalloc.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utcopy.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utdebug.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utdelete.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/uteval.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utglobal.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utids.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2009, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utinit.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utlock.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2009, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utmath.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utmisc.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utmutex.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utobject.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utresrc.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utstate.c +1 -1
@@ -5,7 +5,7 @@******************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
drivers/acpi/acpica/utxface.c +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
include/acpi/acexcep.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
include/acpi/acnames.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
include/acpi/acoutput.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
include/acpi/acpi.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
include/acpi/acpiosxf.h +1 -1
@@ -8,7 +8,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
include/acpi/acpixf.h +1 -1
@@ -6,7 +6,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
include/acpi/acrestyp.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
include/acpi/actbl.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
include/acpi/actbl1.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
include/acpi/actbl2.h +43 -0
46 lines not on this page · raw message
include/acpi/actypes.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
include/acpi/platform/acenv.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
include/acpi/platform/acgcc.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2008, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
include/acpi/platform/aclinux.h +1 -1
@@ -5,7 +5,7 @@*****************************************************************************/ /* -* Copyright (C) 2000 - 2009, Intel Corp. +* Copyright (C) 2000 - 2010, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without
Signature · 1 line
1.6.0.6
Len Brown
reviewerPATCH 3/9 ACPICA: AcpiGetDevices: Eliminate unnecessary _STA calls
In reply to Len BrownFrom: Lin Ming <[email protected]>
In the case where a specific _HID is requested, do not run _STA until a _HID match is found. This eliminates potentially dozens of _STA calls during a search for a particular device/HID.
--- drivers/acpi/acpica/nsxfeval.c | 52 +++++++++++++++++++++++++-------------- 1 files changed, 33 insertions(+), 19 deletions(-)
drivers/acpi/acpica/nsxfeval.c +33 -19
@@ -562,25 +562,20 @@ acpi_ns_get_device_callback(acpi_handle obj_handle,return (AE_BAD_PARAMETER ); } -/* Run _STA to determine if device is present */ - - status =acpi_ut_execute_STA (node, &flags); -if (ACPI_FAILURE (status)) { -return (AE_CTRL_DEPTH ); - } - -if (!(flags &ACPI_STA_DEVICE_PRESENT ) && - !(flags &ACPI_STA_DEVICE_FUNCTIONING )) { -/* -* Don't examine the children of the device only when the -* device is neither present nor functional. See ACPI spec, -* description of _STA for more information. -*/ -return (AE_CTRL_DEPTH ); - } - -/* Filter based on device HID & CID */ - +/* +* First, filter based on the device HID and CID. +* +* 01/2010: For this case where a specific HID is requested, we don't +* want to run _STA until we have an actual HID match. Thus, we will +* not unnecessarily execute _STA on devices for which the caller +* doesn't care about. Previously, _STA was executed unconditionally +* on all devices found here. +* +* A side-effect of this change is that now we will continue to search +* for a matching HID even under device trees where the parent device +* would have returned a _STA that indicates it is not present or +* not functioning (thus aborting the search on that branch). +*/ if (info->hid !=NULL ) { status =acpi_ut_execute_HID (node, &hid);if (status ==AE_NOT_FOUND ) {
@@ -620,6 +615,25 @@ acpi_ns_get_device_callback(acpi_handle obj_handle, } } +/* Run _STA to determine if device is present */ + + status =acpi_ut_execute_STA (node, &flags); +if (ACPI_FAILURE (status)) { +return (AE_CTRL_DEPTH ); + } + +if (!(flags &ACPI_STA_DEVICE_PRESENT ) && + !(flags &ACPI_STA_DEVICE_FUNCTIONING )) { +/* +* Don't examine the children of the device only when the +* device is neither present nor functional. See ACPI spec, +* description of _STA for more information. +*/ +return (AE_CTRL_DEPTH ); + } + +/* We have a valid device, invoke the user function */ + status = info->user_function (obj_handle, nesting_level, info->context, return_value);return (status);
Signature · 1 line
1.6.0.6
Len Brown
reviewerPATCH 4/9 ACPICA: Predefined name repair: fix NULL package elements
In reply to Len BrownFrom: Bob Moore <[email protected]>
For the predefined methods that return fixed-length packages (or subpackages), attempt repair for a NULL element. Create an Integer of value 0, a NULL String, or a zero-length buffer as appropriate.
http://www.acpica.org/bugzilla/show_bug.cgi?id=818
--- drivers/acpi/acpica/aclocal.h | 1 + drivers/acpi/acpica/acnamesp.h | 16 +++- drivers/acpi/acpica/nspredef.c | 27 ++++++- drivers/acpi/acpica/nsrepair.c | 173 +++++++++++++++++++++++++++++++++++++++ drivers/acpi/acpica/nsrepair2.c | 84 ------------------- 5 files changed, 209 insertions(+), 92 deletions(-)
drivers/acpi/acpica/aclocal.h +1 -0
@@ -374,6 +374,7 @@ union acpi_predefined_info {struct acpi_predefined_data {char *pathname;const union acpi_predefined_info *predefined; +union acpi_operand_object *parent_package;u32 flags;u8 node_flags; };
drivers/acpi/acpica/acnamesp.h +11 -5
@@ -286,6 +286,17 @@ acpi_status acpi_ns_repair_package_list(struct acpi_predefined_data *data, union acpi_operand_object **obj_desc_ptr); +acpi_status +acpi_ns_repair_null_element (struct acpi_predefined_data *data, +u32 expected_btypes, +u32 package_index, +union acpi_operand_object **return_object_ptr); + +void +acpi_ns_remove_null_elements (struct acpi_predefined_data *data, +u8 package_type, +union acpi_operand_object *obj_desc); +/* * nsrepair2 - Return object repair for specific * predefined methods/objects
@@ -296,11 +307,6 @@ acpi_ns_complex_repairs(struct acpi_predefined_data *data,acpi_status validate_status, union acpi_operand_object **return_object_ptr); -void -acpi_ns_remove_null_elements (struct acpi_predefined_data *data, -u8 package_type, -union acpi_operand_object *obj_desc); -/* * nssearch - Namespace searching and entry */
drivers/acpi/acpica/nspredef.c +24 -3
@@ -231,6 +231,7 @@ acpi_ns_check_predefined_names(struct acpi_namespace_node *node,* Note: Package may have been newly created by call above. */ if ((*return_object_ptr)->common.type ==ACPI_TYPE_PACKAGE ) { + data->parent_package = *return_object_ptr; status =acpi_ns_check_package (data, return_object_ptr);if (ACPI_FAILURE (status)) { goto exit;
@@ -710,6 +711,7 @@ acpi_ns_check_package_list(struct acpi_predefined_data *data,for (i =0 ; i < count; i++) { sub_package = *elements; sub_elements = sub_package->package.elements; + data->parent_package = sub_package;/* Each sub-object must be of type Package */
@@ -721,6 +723,7 @@ acpi_ns_check_package_list(struct acpi_predefined_data *data,/* Examine the different types of expected sub-packages */ + data->parent_package = sub_package;switch (package->ret_info.type) {case ACPI_PTYPE2 :case ACPI_PTYPE2_PKG_COUNT :
@@ -800,7 +803,7 @@ acpi_ns_check_package_list(struct acpi_predefined_data *data,/* * First element is the (Integer) count of elements, including -* the count field. +* the count field (the ACPI name is num_elements) */ status = acpi_ns_check_object_type(data, sub_elements, ACPI_RTYPE_INTEGER,
@@ -822,6 +825,16 @@ acpi_ns_check_package_list(struct acpi_predefined_data *data, expected_count = package->ret_info.count1; goto package_too_small; } +if (expected_count ==0 ) { +/* +* Either the num_entries element was originally zero or it was +* a NULL element and repaired to an Integer of value zero. +* In either case, repair it by setting num_entries to be the +* actual size of the subpackage. +*/ + expected_count = sub_package->package.count; + (*sub_elements)->integer.value = expected_count; + }/* Check the type of each sub-package element */
@@ -945,10 +958,18 @@ acpi_ns_check_object_type(struct acpi_predefined_data *data,char type_buffer[48 ];/* Room for 5 types */ /* -* If we get a NULL return_object here, it is a NULL package element, -* and this is always an error. +* If we get a NULL return_object here, it is a NULL package element. +* Since all extraneous NULL package elements were removed earlier by a +* call to acpi_ns_remove_null_elements, this is an unexpected NULL element. +* We will attempt to repair it. */ if (!return_object) { + status =acpi_ns_repair_null_element (data, expected_btypes, + package_index, + return_object_ptr); +if (ACPI_SUCCESS (status)) { +return (AE_OK );/* Repair was successful */ + } goto type_error_exit; }
drivers/acpi/acpica/nsrepair.c +173 -0
191 lines not on this page · raw message
drivers/acpi/acpica/nsrepair2.c +0 -84
96 lines not on this page · raw message
Signature · 1 line
1.6.0.6
Len Brown
reviewerPATCH 5/9 ACPICA: Remove obsolete ACPI_INTEGER (acpi_integer) type
In reply to Len BrownFrom: Bob Moore <[email protected]>
This type was introduced as the code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 (with 64-bit integers). It is now obsolete and this change removes it from the ACPICA code base, replaced by u64. The original typedef has been retained for now for compatibility with existing device driver code.
--- drivers/acpi/acpica/acevents.h | 3 +- drivers/acpi/acpica/acinterp.h | 42 +++++++++++++---------------- drivers/acpi/acpica/aclocal.h | 2 +- drivers/acpi/acpica/acmacros.h | 12 ++++---- drivers/acpi/acpica/acobject.h | 2 +- drivers/acpi/acpica/acutils.h | 20 +++++-------- drivers/acpi/acpica/dsfield.c | 10 +++--- drivers/acpi/acpica/dsobject.c | 2 +- drivers/acpi/acpica/evregion.c | 5 +-- drivers/acpi/acpica/evrgnini.c | 2 +- drivers/acpi/acpica/exconfig.c | 2 +- drivers/acpi/acpica/exconvrt.c | 19 +++++------- drivers/acpi/acpica/exfield.c | 7 ++--- drivers/acpi/acpica/exfldio.c | 57 ++++++++++++++++++--------------------- drivers/acpi/acpica/exmisc.c | 10 +++---- drivers/acpi/acpica/exoparg1.c | 14 +++++----- drivers/acpi/acpica/exoparg2.c | 4 +- drivers/acpi/acpica/exoparg3.c | 2 +- drivers/acpi/acpica/exoparg6.c | 8 +++--- drivers/acpi/acpica/exregion.c | 33 ++++++++++------------ drivers/acpi/acpica/exsystem.c | 2 +- drivers/acpi/acpica/exutils.c | 22 +++++++------- drivers/acpi/acpica/hwtimer.c | 2 +- drivers/acpi/acpica/psargs.c | 2 +- drivers/acpi/acpica/rscreate.c | 2 +- drivers/acpi/acpica/utdebug.c | 3 +- drivers/acpi/acpica/uteval.c | 2 +- drivers/acpi/acpica/utglobal.c | 2 +- drivers/acpi/acpica/utmath.c | 25 +++++++---------- drivers/acpi/acpica/utmisc.c | 14 ++++----- include/acpi/acpiosxf.h | 4 +- include/acpi/acrestyp.h | 2 +- include/acpi/actypes.h | 27 +++++++++++------- 33 files changed, 169 insertions(+), 196 deletions(-)
drivers/acpi/acpica/acevents.h +1 -2
@@ -139,8 +139,7 @@ acpi_status acpi_ev_initialize_op_regions(void);acpi_status acpi_ev_address_space_dispatch (union acpi_operand_object *region_obj,u32 function, -u32 region_offset, -u32 bit_width,acpi_integer * value); +u32 region_offset,u32 bit_width,u64 *value); acpi_status acpi_ev_attach_region(union acpi_operand_object *handler_obj,
drivers/acpi/acpica/acinterp.h +19 -23
133 lines not on this page · raw message
drivers/acpi/acpica/aclocal.h +1 -1
@@ -650,7 +650,7 @@ struct acpi_opcode_info { };union acpi_parse_value { -acpi_integer integer;/* Integer constant (Up to 64 bits) */ +u64 integer;/* Integer constant (Up to 64 bits) */ struct uint64_struct integer64;/* Structure overlay for 2 32-bit Dwords */ u32 size;/* bytelist or field size */ char *string;/* NULL terminated string */
drivers/acpi/acpica/acmacros.h +6 -6
@@ -272,8 +272,8 @@* MASK_BITS_ABOVE creates a mask starting AT the position and above * MASK_BITS_BELOW creates a mask starting one bit BELOW the position */ -#define ACPI_MASK_BITS_ABOVE (position) (~((ACPI_INTEGER_MAX) << ((u32) (position)))) -#define ACPI_MASK_BITS_BELOW (position) ((ACPI_INTEGER_MAX) << ((u32) (position))) +#define ACPI_MASK_BITS_ABOVE (position) (~((ACPI_UINT64_MAX) << ((u32) (position)))) +#define ACPI_MASK_BITS_BELOW (position) ((ACPI_UINT64_MAX) << ((u32) (position)))/* Bitfields within ACPI registers */
@@ -414,16 +414,16 @@acpi_ut_ptr_exit (ACPI_DEBUG_PARAMETERS , (u8 *) _s); \ return (_s); })#define return_VALUE (s) ACPI_DO_WHILE0 ({ \ - register acpi_integer _s = (s); \ + register u64 _s = (s); \ acpi_ut_value_exit (ACPI_DEBUG_PARAMETERS, _s); \ return (_s); })#define return_UINT8 (s) ACPI_DO_WHILE0 ({ \ register u8 _s = (u8) (s); \ - acpi_ut_value_exit (ACPI_DEBUG_PARAMETERS, (acpi_integer) _s); \ + acpi_ut_value_exit (ACPI_DEBUG_PARAMETERS, (u64) _s); \ return (_s); })#define return_UINT32 (s) ACPI_DO_WHILE0 ({ \ register u32 _s = (u32) (s); \ - acpi_ut_value_exit (ACPI_DEBUG_PARAMETERS, (acpi_integer) _s); \ + acpi_ut_value_exit (ACPI_DEBUG_PARAMETERS, (u64) _s); \ return (_s); })#else /* Use original less-safe macros */
@@ -434,7 +434,7 @@acpi_ut_ptr_exit (ACPI_DEBUG_PARAMETERS , (u8 *) (s)); \ return((s)); })#define return_VALUE (s) ACPI_DO_WHILE0 ({ \ - acpi_ut_value_exit (ACPI_DEBUG_PARAMETERS, (acpi_integer) (s)); \ + acpi_ut_value_exit (ACPI_DEBUG_PARAMETERS, (u64) (s)); \ return((s)); })#define return_UINT8 (s) return_VALUE(s)#define return_UINT32 (s) return_VALUE(s)
drivers/acpi/acpica/acobject.h +1 -1
@@ -111,7 +111,7 @@ ACPI_OBJECT_COMMON_HEADER};struct acpi_object_integer { ACPI_OBJECT_COMMON_HEADER u8 fill[3]; /* Prevent warning on some compilers */ -acpi_integer value; +u64 value; };/*
drivers/acpi/acpica/acutils.h +8 -12
@@ -134,7 +134,7 @@ char *acpi_ut_get_region_name(u8 space_id);char *acpi_ut_get_event_name (u32 event_id); -char acpi_ut_hex_to_ascii_char (acpi_integer integer,u32 position); +char acpi_ut_hex_to_ascii_char (u64 integer,u32 position);u8 acpi_ut_valid_object_type (acpi_object_type type);
@@ -279,8 +279,7 @@ acpi_ut_status_exit(u32 line_number,void acpi_ut_value_exit (u32 line_number,const char *function_name, -const char *module_name, -u32 component_id,acpi_integer value); +const char *module_name,u32 component_id,u64 value); void acpi_ut_ptr_exit(u32 line_number,
@@ -324,7 +323,7 @@ acpi_ut_evaluate_object(struct acpi_namespace_node *prefix_node,acpi_status acpi_ut_evaluate_numeric_object (char *object_name,struct acpi_namespace_node *device_node, -acpi_integer *value); +u64 *value);acpi_status acpi_ut_execute_STA (struct acpi_namespace_node *device_node,u32 *status_flags);
@@ -437,14 +436,12 @@ void acpi_ut_delete_generic_state(union acpi_generic_state *state);* utmath */ acpi_status -acpi_ut_divide (acpi_integer in_dividend, -acpi_integer in_divisor, -acpi_integer * out_quotient,acpi_integer * out_remainder); +acpi_ut_divide (u64 in_dividend, +u64 in_divisor,u64 *out_quotient,u64 *out_remainder);acpi_status -acpi_ut_short_divide (acpi_integer in_dividend, -u32 divisor, -acpi_integer * out_quotient,u32 * out_remainder); +acpi_ut_short_divide (u64 in_dividend, +u32 divisor,u64 *out_quotient,u32 *out_remainder);/* * utmisc
@@ -474,8 +471,7 @@ acpi_name acpi_ut_repair_name(char *name);u8 acpi_ut_valid_acpi_char (char character,u32 position); -acpi_status -acpi_ut_strtoul64 (char *string,u32 base,acpi_integer * ret_integer); +acpi_status acpi_ut_strtoul64 (char *string,u32 base,u64 * ret_integer); void ACPI_INTERNAL_VAR_XFACE acpi_ut_predefined_warning(const char *module_name,
drivers/acpi/acpica/dsfield.c +5 -5
@@ -220,7 +220,7 @@ acpi_ds_get_field_names(struct acpi_create_field_info *info, union acpi_parse_object *arg) {acpi_status status; -acpi_integer position; +u64 position;ACPI_FUNCTION_TRACE_PTR (ds_get_field_names, info);
@@ -240,8 +240,8 @@ acpi_ds_get_field_names(struct acpi_create_field_info *info,switch (arg->common.aml_opcode) {case AML_INT_RESERVEDFIELD_OP : - position = (acpi_integer ) info->field_bit_position - + (acpi_integer ) arg->common.value.size; + position = (u64 ) info->field_bit_position + + (u64 ) arg->common.value.size;if (position >ACPI_UINT32_MAX ) { ACPI_ERROR((AE_INFO,
@@ -305,8 +305,8 @@ acpi_ds_get_field_names(struct acpi_create_field_info *info,/* Keep track of bit position for the next field */ - position = (acpi_integer ) info->field_bit_position - + (acpi_integer ) arg->common.value.size; + position = (u64 ) info->field_bit_position + + (u64 ) arg->common.value.size;if (position >ACPI_UINT32_MAX ) { ACPI_ERROR((AE_INFO,
drivers/acpi/acpica/dsobject.c +1 -1
@@ -684,7 +684,7 @@ acpi_ds_init_object_from_op(struct acpi_walk_state *walk_state,case AML_ONES_OP : - obj_desc->integer.value =ACPI_INTEGER_MAX ; + obj_desc->integer.value =ACPI_UINT64_MAX ;/* Truncate value if we are executing from a 32-bit ACPI table */
drivers/acpi/acpica/evregion.c +2 -3
@@ -329,7 +329,7 @@ acpi_ev_execute_reg_method(union acpi_operand_object *region_obj, u32 function)* region_offset - Where in the region to read or write * bit_width - Field width in bits (8, 16, 32, or 64) * Value - Pointer to in or out value, must be -* full 64-bit acpi_integer +* a full 64-bit integer * * RETURN: Status *
@@ -341,8 +341,7 @@ acpi_ev_execute_reg_method(union acpi_operand_object *region_obj, u32 function)acpi_status acpi_ev_address_space_dispatch (union acpi_operand_object *region_obj,u32 function, -u32 region_offset, -u32 bit_width,acpi_integer * value) +u32 region_offset,u32 bit_width,u64 *value) {acpi_status status;acpi_adr_space_handler handler;
drivers/acpi/acpica/evrgnini.c +1 -1
@@ -168,7 +168,7 @@ acpi_ev_pci_config_region_setup(acpi_handle handle, void *handler_context, void **region_context) { acpi_status status = AE_OK; -acpi_integer pci_value; +u64 pci_value;struct acpi_pci_id *pci_id = *region_context;union acpi_operand_object *handler_obj;struct acpi_namespace_node *parent_node;
drivers/acpi/acpica/exconfig.c +1 -1
@@ -284,7 +284,7 @@ static acpi_status acpi_ex_region_read(union acpi_operand_object *obj_desc, u32 length, u8 *buffer) { acpi_status status; -acpi_integer value; +u64 value;u32 region_offset =0 ;u32 i;
drivers/acpi/acpica/exconvrt.c +8 -11
@@ -51,8 +51,7 @@ ACPI_MODULE_NAME("exconvrt")/* Local prototypes */ static u32 -acpi_ex_convert_to_ascii (acpi_integer integer, -u16 base,u8 * string,u8 max_length); +acpi_ex_convert_to_ascii (u64 integer,u16 base,u8 *string,u8 max_length);/******************************************************************************* *
@@ -75,7 +74,7 @@ acpi_ex_convert_to_integer(union acpi_operand_object *obj_desc, {union acpi_operand_object *return_desc;u8 *pointer; -acpi_integer result; +u64 result;u32 i;u32 count;acpi_status status;
@@ -155,7 +154,7 @@ acpi_ex_convert_to_integer(union acpi_operand_object *obj_desc,* Little endian is used, meaning that the first byte of the buffer * is the LSB of the integer */ - result |= (((acpi_integer ) pointer[i]) << (i *8 )); + result |= (((u64 ) pointer[i]) << (i *8 )); }break ;
@@ -285,10 +284,9 @@ acpi_ex_convert_to_buffer(union acpi_operand_object *obj_desc,******************************************************************************/ static u32 -acpi_ex_convert_to_ascii (acpi_integer integer, -u16 base,u8 * string,u8 data_width) +acpi_ex_convert_to_ascii (u64 integer,u16 base,u8 *string,u8 data_width) { -acpi_integer digit; +u64 digit;u32 i;u32 j;u32 k =0 ;
@@ -531,10 +529,9 @@ acpi_ex_convert_to_string(union acpi_operand_object * obj_desc,* (separated by commas or spaces) */ for (i =0 ; i < obj_desc->buffer.length; i++) { - new_buf +=acpi_ex_convert_to_ascii ((acpi_integer ) - obj_desc->buffer. - pointer[i], base, - new_buf,1 ); + new_buf +=acpi_ex_convert_to_ascii ((u64 ) obj_desc-> + buffer.pointer[i], + base, new_buf,1 ); *new_buf++ = separator;/* each separated by a comma or space */ }
drivers/acpi/acpica/exfield.c +3 -4
@@ -130,7 +130,7 @@ acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,/* Call the region handler for the read */ status =acpi_ex_access_region (obj_desc,0 , -ACPI_CAST_PTR (acpi_integer, +ACPI_CAST_PTR (u64, buffer_desc-> buffer.pointer), function);
@@ -141,7 +141,7 @@ acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,/* * Allocate a buffer for the contents of the field. * -* If the field is larger than the size of an acpi_integer, create +* If the field is larger than the current integer width, create * a BUFFER to hold it. Otherwise, use an INTEGER. This allows * the use of arithmetic operators on the returned value if the * field size is equal or smaller than an Integer.
@@ -306,8 +306,7 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc,* same buffer) */ status =acpi_ex_access_region (obj_desc,0 , - (acpi_integer *) buffer, - function); + (u64 *) buffer, function);acpi_ex_release_global_lock (obj_desc->common_field.field_flags); *result_desc = buffer_desc;
drivers/acpi/acpica/exfldio.c +26 -31
153 lines not on this page · raw message
drivers/acpi/acpica/exmisc.c +4 -6
@@ -409,8 +409,7 @@ acpi_ex_do_concatenate(union acpi_operand_object *operand0,* ******************************************************************************/ -acpi_integer -acpi_ex_do_math_op (u16 opcode,acpi_integer integer0,acpi_integer integer1) +u64 acpi_ex_do_math_op (u16 opcode,u64 integer0,u64 integer1) {ACPI_FUNCTION_ENTRY ();
@@ -498,8 +497,7 @@ acpi_ex_do_math_op(u16 opcode, acpi_integer integer0, acpi_integer integer1)acpi_status acpi_ex_do_logical_numeric_op (u16 opcode, -acpi_integer integer0, -acpi_integer integer1,u8 * logical_result) +u64 integer0,u64 integer1,u8 *logical_result) {acpi_status status =AE_OK ;u8 local_result = FALSE;
@@ -564,8 +562,8 @@ acpi_ex_do_logical_op(u16 opcode, union acpi_operand_object *operand1, u8 * logical_result) { union acpi_operand_object *local_operand1 = operand1; -acpi_integer integer0; -acpi_integer integer1; +u64 integer0; +u64 integer1;u32 length0;u32 length1;acpi_status status =AE_OK ;
drivers/acpi/acpica/exoparg1.c +7 -7
@@ -261,8 +261,8 @@ acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state)union acpi_operand_object *return_desc2 =NULL ;u32 temp32;u32 i; -acpi_integer power_of_ten; -acpi_integer digit; +u64 power_of_ten; +u64 digit;ACPI_FUNCTION_TRACE_STR (ex_opcode_1A_1T_1R,acpi_ps_get_opcode_name (walk_state->opcode));
@@ -362,7 +362,7 @@ acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state)/* Sum the digit into the result with the current power of 10 */ return_desc->integer.value += - (((acpi_integer ) temp32) * power_of_ten); + (((u64 ) temp32) * power_of_ten);/* Shift to next BCD digit */
@@ -392,7 +392,7 @@ acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state)* remainder from above */ return_desc->integer.value |= - (((acpi_integer ) temp32) <<ACPI_MUL_4 (i)); + (((u64 ) temp32) <<ACPI_MUL_4 (i)); }/* Overflow if there is any data left in Digit */
@@ -439,7 +439,7 @@ acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state)/* The object exists in the namespace, return TRUE */ - return_desc->integer.value =ACPI_INTEGER_MAX ; + return_desc->integer.value =ACPI_UINT64_MAX ; goto cleanup;default :
@@ -589,7 +589,7 @@ acpi_status acpi_ex_opcode_1A_0T_1R(struct acpi_walk_state *walk_state)union acpi_operand_object *return_desc =NULL ;acpi_status status =AE_OK ;u32 type; -acpi_integer value; +u64 value;ACPI_FUNCTION_TRACE_STR (ex_opcode_1A_0T_1R,acpi_ps_get_opcode_name (walk_state->opcode));
@@ -610,7 +610,7 @@ acpi_status acpi_ex_opcode_1A_0T_1R(struct acpi_walk_state *walk_state)* return_desc->Integer.Value is initially == 0 (FALSE) from above. */ if (!operand[0 ]->integer.value) { - return_desc->integer.value =ACPI_INTEGER_MAX ; + return_desc->integer.value =ACPI_UINT64_MAX ; }break ;
drivers/acpi/acpica/exoparg2.c +2 -2
@@ -282,7 +282,7 @@ acpi_status acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state) {union acpi_operand_object **operand = &walk_state->operands[0 ];union acpi_operand_object *return_desc =NULL ; -acpi_integer index; +u64 index;acpi_status status =AE_OK ;acpi_size length;
@@ -584,7 +584,7 @@ acpi_status acpi_ex_opcode_2A_0T_1R(struct acpi_walk_state *walk_state)* Default is FALSE (zero) */ if (logical_result) { - return_desc->integer.value =ACPI_INTEGER_MAX ; + return_desc->integer.value =ACPI_UINT64_MAX ; } cleanup:
drivers/acpi/acpica/exoparg3.c +1 -1
@@ -148,7 +148,7 @@ acpi_status acpi_ex_opcode_3A_1T_1R(struct acpi_walk_state *walk_state)union acpi_operand_object *return_desc =NULL ;char *buffer =NULL ;acpi_status status =AE_OK ; -acpi_integer index; +u64 index;acpi_size length; ACPI_FUNCTION_TRACE_STR(ex_opcode_3A_1T_1R,
drivers/acpi/acpica/exoparg6.c +4 -4
@@ -218,7 +218,7 @@ acpi_status acpi_ex_opcode_6A_0T_1R(struct acpi_walk_state * walk_state)union acpi_operand_object **operand = &walk_state->operands[0 ];union acpi_operand_object *return_desc =NULL ;acpi_status status =AE_OK ; -acpi_integer index; +u64 index;union acpi_operand_object *this_element; ACPI_FUNCTION_TRACE_STR(ex_opcode_6A_0T_1R,
@@ -253,9 +253,9 @@ acpi_status acpi_ex_opcode_6A_0T_1R(struct acpi_walk_state * walk_state) }/* Create an integer for the return value */ -/* Default return value is ACPI_INTEGER_MAX if no match found */ +/* Default return value is ACPI_UINT64_MAX if no match found */ - return_desc =acpi_ut_create_integer_object (ACPI_INTEGER_MAX ); + return_desc =acpi_ut_create_integer_object (ACPI_UINT64_MAX );if (!return_desc) { status =AE_NO_MEMORY ; goto cleanup;
@@ -270,7 +270,7 @@ acpi_status acpi_ex_opcode_6A_0T_1R(struct acpi_walk_state * walk_state)* * Upon finding a match, the loop will terminate via "break" at * the bottom. If it terminates "normally", match_value will be -* ACPI_INTEGER_MAX (Ones) (its initial value) indicating that no +* ACPI_UINT64_MAX (Ones) (its initial value) indicating that no * match was found. */ for (; index < operand[0 ]->package.count; index++) {
drivers/acpi/acpica/exregion.c +15 -18
@@ -70,7 +70,7 @@ acpi_status acpi_ex_system_memory_space_handler(u32 function, acpi_physical_address address, u32 bit_width, - acpi_integer * value, + u64 *value, void *handler_context, void *region_context) { acpi_status status = AE_OK;
@@ -115,8 +115,7 @@ acpi_ex_system_memory_space_handler(u32 function,* Hardware does not support non-aligned data transfers, we must verify * the request. */ - (void )acpi_ut_short_divide ((acpi_integer ) address, length,NULL , - &remainder); + (void )acpi_ut_short_divide ((u64 ) address, length,NULL , &remainder);if (remainder !=0 ) {return_ACPI_STATUS (AE_AML_ALIGNMENT ); }
@@ -128,10 +127,9 @@ acpi_ex_system_memory_space_handler(u32 function,* 2) Address beyond the current mapping? */ if ((address < mem_info->mapped_physical_address) || - (((acpi_integer ) address + length) > ((acpi_integer ) - mem_info-> - mapped_physical_address + - mem_info->mapped_length))) { + (((u64 ) address + length) > ((u64 ) + mem_info->mapped_physical_address + + mem_info->mapped_length))) {/* * The request cannot be resolved by the current memory mapping; * Delete the existing mapping and create a new one.
@@ -193,8 +191,7 @@ acpi_ex_system_memory_space_handler(u32 function,* access */ logical_addr_ptr = mem_info->mapped_logical_address + - ((acpi_integer ) address - - (acpi_integer ) mem_info->mapped_physical_address); + ((u64 ) address - (u64 ) mem_info->mapped_physical_address); ACPI_DEBUG_PRINT((ACPI_DB_INFO, "System-Memory (width %d) R/W %d Address=%8.8X%8.8X\n",
@@ -215,19 +212,19 @@ acpi_ex_system_memory_space_handler(u32 function, *value =0 ;switch (bit_width) {case 8 : - *value = (acpi_integer )ACPI_GET8 (logical_addr_ptr); + *value = (u64 )ACPI_GET8 (logical_addr_ptr);break ;case 16 : - *value = (acpi_integer )ACPI_GET16 (logical_addr_ptr); + *value = (u64 )ACPI_GET16 (logical_addr_ptr);break ;case 32 : - *value = (acpi_integer )ACPI_GET32 (logical_addr_ptr); + *value = (u64 )ACPI_GET32 (logical_addr_ptr);break ;case 64 : - *value = (acpi_integer )ACPI_GET64 (logical_addr_ptr); + *value = (u64 )ACPI_GET64 (logical_addr_ptr);break ;default :
@@ -291,7 +288,7 @@ acpi_status acpi_ex_system_io_space_handler(u32 function, acpi_physical_address address, u32 bit_width, - acpi_integer * value, + u64 *value, void *handler_context, void *region_context) { acpi_status status = AE_OK;
@@ -350,7 +347,7 @@ acpi_status acpi_ex_pci_config_space_handler(u32 function, acpi_physical_address address, u32 bit_width, - acpi_integer * value, + u64 *value, void *handler_context, void *region_context) { acpi_status status = AE_OK;
@@ -425,7 +422,7 @@ acpi_status acpi_ex_cmos_space_handler(u32 function, acpi_physical_address address, u32 bit_width, - acpi_integer * value, + u64 *value, void *handler_context, void *region_context) { acpi_status status = AE_OK;
@@ -457,7 +454,7 @@ acpi_status acpi_ex_pci_bar_space_handler(u32 function, acpi_physical_address address, u32 bit_width, - acpi_integer * value, + u64 *value, void *handler_context, void *region_context) { acpi_status status = AE_OK;
@@ -489,7 +486,7 @@ acpi_status acpi_ex_data_table_space_handler(u32 function, acpi_physical_address address, u32 bit_width, - acpi_integer * value, + u64 *value, void *handler_context, void *region_context) {ACPI_FUNCTION_TRACE (ex_data_table_space_handler);
drivers/acpi/acpica/exsystem.c +1 -1
@@ -193,7 +193,7 @@ acpi_status acpi_ex_system_do_stall(u32 how_long)* ******************************************************************************/ -acpi_status acpi_ex_system_do_suspend (acpi_integer how_long) +acpi_status acpi_ex_system_do_suspend (u64 how_long) {ACPI_FUNCTION_ENTRY ();
drivers/acpi/acpica/exutils.c +11 -11
@@ -67,7 +67,7 @@ACPI_MODULE_NAME ("exutils" ) /* Local prototypes */ -static u32 acpi_ex_digits_needed (acpi_integer value,u32 base); +static u32 acpi_ex_digits_needed (u64 value,u32 base);#ifndef ACPI_NO_METHOD_EXECUTION /*******************************************************************************
@@ -230,7 +230,7 @@ void acpi_ex_truncate_for32bit_table(union acpi_operand_object *obj_desc)* We are running a method that exists in a 32-bit ACPI table. * Truncate the value to 32 bits by zeroing out the upper 32-bit field */ - obj_desc->integer.value &= (acpi_integer )ACPI_UINT32_MAX ; + obj_desc->integer.value &= (u64 )ACPI_UINT32_MAX ; } }
@@ -327,14 +327,14 @@ void acpi_ex_release_global_lock(u32 field_flags)* ******************************************************************************/ -static u32 acpi_ex_digits_needed (acpi_integer value,u32 base) +static u32 acpi_ex_digits_needed (u64 value,u32 base) {u32 num_digits; -acpi_integer current_value; +u64 current_value;ACPI_FUNCTION_TRACE (ex_digits_needed); -/* acpi_integer is unsigned, so we don't worry about a '-' prefix */ +/* u64 is unsigned, so we don't worry about a '-' prefix */ if (value ==0 ) {return_UINT32 (1 );
@@ -370,7 +370,7 @@ static u32 acpi_ex_digits_needed(acpi_integer value, u32 base)* ******************************************************************************/ -void acpi_ex_eisa_id_to_string (char *out_string,acpi_integer compressed_id) +void acpi_ex_eisa_id_to_string (char *out_string,u64 compressed_id) {u32 swapped_id;
@@ -394,10 +394,10 @@ void acpi_ex_eisa_id_to_string(char *out_string, acpi_integer compressed_id) (char )(0x40 + (((unsigned long )swapped_id >>26 ) &0x1F )); out_string[1 ] = (char )(0x40 + ((swapped_id >>21 ) &0x1F )); out_string[2 ] = (char )(0x40 + ((swapped_id >>16 ) &0x1F )); - out_string[3 ] =acpi_ut_hex_to_ascii_char ((acpi_integer )swapped_id,12 ); - out_string[4 ] =acpi_ut_hex_to_ascii_char ((acpi_integer )swapped_id,8 ); - out_string[5 ] =acpi_ut_hex_to_ascii_char ((acpi_integer )swapped_id,4 ); - out_string[6 ] =acpi_ut_hex_to_ascii_char ((acpi_integer )swapped_id,0 ); + out_string[3 ] =acpi_ut_hex_to_ascii_char ((u64 ) swapped_id,12 ); + out_string[4 ] =acpi_ut_hex_to_ascii_char ((u64 ) swapped_id,8 ); + out_string[5 ] =acpi_ut_hex_to_ascii_char ((u64 ) swapped_id,4 ); + out_string[6 ] =acpi_ut_hex_to_ascii_char ((u64 ) swapped_id,0 ); out_string[7 ] =0 ; }
@@ -418,7 +418,7 @@ void acpi_ex_eisa_id_to_string(char *out_string, acpi_integer compressed_id)* ******************************************************************************/ -void acpi_ex_integer_to_string (char *out_string,acpi_integer value) +void acpi_ex_integer_to_string (char *out_string,u64 value) {u32 count;u32 digits_needed;
drivers/acpi/acpica/hwtimer.c +1 -1
@@ -140,7 +140,7 @@ acpi_get_timer_duration(u32 start_ticks, u32 end_ticks, u32 * time_elapsed) {acpi_status status;u32 delta_ticks; -acpi_integer quotient; +u64 quotient;ACPI_FUNCTION_TRACE (acpi_get_timer_duration);
drivers/acpi/acpica/psargs.c +1 -1
@@ -403,7 +403,7 @@ acpi_ps_get_next_simple_arg(struct acpi_parse_state *parser_state,/* Get 1 byte from the AML stream */ opcode =AML_BYTE_OP ; - arg->common.value.integer = (acpi_integer) * aml; + arg->common.value.integer = (u64) *aml; length =1 ;break ;
drivers/acpi/acpica/rscreate.c +1 -1
@@ -182,7 +182,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object,/* * Loop through the ACPI_INTERNAL_OBJECTS - Each object should be a -* package that in turn contains an acpi_integer Address, a u8 Pin, +* package that in turn contains an u64 Address, a u8 Pin, * a Name, and a u8 source_index. */ top_object_list = package_object->package.elements;
drivers/acpi/acpica/utdebug.c +1 -2
@@ -460,8 +460,7 @@ ACPI_EXPORT_SYMBOL(acpi_ut_status_exit)void acpi_ut_value_exit (u32 line_number,const char *function_name, -const char *module_name, -u32 component_id,acpi_integer value) +const char *module_name,u32 component_id,u64 value) { acpi_debug_print(ACPI_LV_FUNCTIONS,
drivers/acpi/acpica/uteval.c +1 -1
@@ -348,7 +348,7 @@ acpi_ut_evaluate_object(struct acpi_namespace_node *prefix_node,acpi_status acpi_ut_evaluate_numeric_object (char *object_name,struct acpi_namespace_node *device_node, -acpi_integer *value) +u64 *value) {union acpi_operand_object *obj_desc;acpi_status status;
drivers/acpi/acpica/utglobal.c +1 -1
@@ -234,7 +234,7 @@ static const char acpi_gbl_hex_to_ascii[] = {* ******************************************************************************/ -char acpi_ut_hex_to_ascii_char (acpi_integer integer,u32 position) +char acpi_ut_hex_to_ascii_char (u64 integer,u32 position) {return (acpi_gbl_hex_to_ascii[(integer >> position) &0xF ]);
drivers/acpi/acpica/utmath.c +10 -15
@@ -70,9 +70,8 @@ ACPI_MODULE_NAME("utmath")* ******************************************************************************/ acpi_status -acpi_ut_short_divide (acpi_integer dividend, -u32 divisor, -acpi_integer * out_quotient,u32 * out_remainder) +acpi_ut_short_divide (u64 dividend, +u32 divisor,u64 *out_quotient,u32 *out_remainder) {union uint64_overlay dividend_ovl;union uint64_overlay quotient;
@@ -126,9 +125,8 @@ acpi_ut_short_divide(acpi_integer dividend,******************************************************************************/ acpi_status -acpi_ut_divide (acpi_integer in_dividend, -acpi_integer in_divisor, -acpi_integer * out_quotient,acpi_integer * out_remainder) +acpi_ut_divide (u64 in_dividend, +u64 in_divisor,u64 *out_quotient,u64 *out_remainder) {union uint64_overlay dividend;union uint64_overlay divisor;
@@ -199,9 +197,8 @@ acpi_ut_divide(acpi_integer in_dividend,* The 64-bit remainder must be generated. */ partial1 = quotient.part.lo * divisor.part.hi; - partial2.full = - (acpi_integer ) quotient.part.lo * divisor.part.lo; - partial3.full = (acpi_integer ) partial2.part.hi + partial1; + partial2.full = (u64 ) quotient.part.lo * divisor.part.lo; + partial3.full = (u64 ) partial2.part.hi + partial1; remainder.part.hi = partial3.part.lo; remainder.part.lo = partial2.part.lo;
@@ -257,9 +254,8 @@ acpi_ut_divide(acpi_integer in_dividend,* ******************************************************************************/ acpi_status -acpi_ut_short_divide (acpi_integer in_dividend, -u32 divisor, -acpi_integer * out_quotient,u32 * out_remainder) +acpi_ut_short_divide (u64 in_dividend, +u32 divisor,u64 *out_quotient,u32 *out_remainder) {ACPI_FUNCTION_TRACE (ut_short_divide);
@@ -284,9 +280,8 @@ acpi_ut_short_divide(acpi_integer in_dividend, }acpi_status -acpi_ut_divide (acpi_integer in_dividend, -acpi_integer in_divisor, -acpi_integer * out_quotient,acpi_integer * out_remainder) +acpi_ut_divide (u64 in_dividend, +u64 in_divisor,u64 *out_quotient,u64 *out_remainder) {ACPI_FUNCTION_TRACE (ut_divide);
drivers/acpi/acpica/utmisc.c +6 -8
@@ -724,13 +724,12 @@ acpi_name acpi_ut_repair_name(char *name)* ******************************************************************************/ -acpi_status -acpi_ut_strtoul64 (char *string,u32 base,acpi_integer * ret_integer) +acpi_status acpi_ut_strtoul64 (char *string,u32 base,u64 * ret_integer) {u32 this_digit =0 ; -acpi_integer return_value =0 ; -acpi_integer quotient; -acpi_integer dividend; +u64 return_value =0 ; +u64 quotient; +u64 dividend;u32 to_integer_op = (base ==ACPI_ANY_BASE );u32 mode32 = (acpi_gbl_integer_byte_width ==4 );u8 valid_digits =0 ;
@@ -844,9 +843,8 @@ acpi_ut_strtoul64(char *string, u32 base, acpi_integer * ret_integer)/* Divide the digit into the correct position */ - (void ) -acpi_ut_short_divide ((dividend - (acpi_integer ) this_digit), - base, "ient,NULL ); + (void )acpi_ut_short_divide ((dividend - (u64 ) this_digit), + base, "ient,NULL );if (return_value > quotient) {if (to_integer_op) {
include/acpi/acpiosxf.h +2 -2
@@ -196,7 +196,7 @@ acpi_os_hotplug_execute(acpi_osd_exec_callback function, void *context);void acpi_os_wait_events_complete (void *context); -void acpi_os_sleep (acpi_integer milliseconds); +void acpi_os_sleep (u64 milliseconds);void acpi_os_stall (u32 microseconds);
@@ -227,7 +227,7 @@ acpi_os_read_pci_configuration(struct acpi_pci_id *pci_id,acpi_status acpi_os_write_pci_configuration (struct acpi_pci_id *pci_id, -u32 reg,acpi_integer value,u32 width); +u32 reg,u64 value,u32 width);/* * Interim function needed for PCI IRQ routing
include/acpi/acrestyp.h +1 -1
@@ -397,7 +397,7 @@ struct acpi_resource {struct acpi_pci_routing_table {u32 length;u32 pin; -acpi_integer address;/* here for 64-bit alignment */ +u64 address;/* here for 64-bit alignment */ u32 source_index;char source[4 ];/* pad to 64 bits so sizeof() works in all cases */ };
include/acpi/actypes.h +16 -11
@@ -390,14 +390,6 @@ struct uint32_struct {u32 hi; }; -/* -* Acpi integer width. In ACPI version 1, integers are 32 bits. In ACPI -* version 2, integers are 64 bits. Note that this pertains to the ACPI integer -* type only, not other integers used in the implementation of the ACPI CA -* subsystem. -*/ -typedef unsigned long long acpi_integer ; -#define ACPI_INTEGER_MAX ACPI_UINT64_MAX#define ACPI_INTEGER_BIT_SIZE 64#define ACPI_MAX_DECIMAL_DIGITS 20/* 2^64 = 18,446,744,073,709,551,616 */
@@ -421,6 +413,19 @@ typedef unsigned long long acpi_integer;#define ACPI_WAIT_FOREVER 0xFFFF/* u16, as per ACPI spec */ #define ACPI_DO_NOT_WAIT 0 +/* +* Obsolete: Acpi integer width. In ACPI version 1 (1996), integers are 32 bits. +* In ACPI version 2 (2000) and later, integers are 64 bits. Note that this +* pertains to the ACPI integer type only, not to other integers used in the +* implementation of the ACPICA subsystem. +* +* 01/2010: This type is obsolete and has been removed from the entire ACPICA +* code base. It remains here for compatibility with device drivers that use +* the type. However, it will be removed in the future. +*/ +typedef u64 acpi_integer ; +#define ACPI_INTEGER_MAX ACPI_UINT64_MAX +/******************************************************************************* * * Commonly used macros
@@ -801,7 +806,7 @@ union acpi_object {acpi_object_type type;/* See definition of acpi_ns_type for values */ struct {acpi_object_type type;/* ACPI_TYPE_INTEGER */ -acpi_integer value;/* The actual number */ +u64 value;/* The actual number */ } integer;struct {
@@ -945,7 +950,7 @@ typedefacpi_status (*acpi_adr_space_handler) (u32 function,acpi_physical_address address,u32 bit_width, -acpi_integer * value, +u64 *value,void *handler_context,void *region_context);
@@ -1005,7 +1010,7 @@ struct acpi_device_info {u8 highest_dstates[4 ];/* _sx_d values: 0xFF indicates not valid */ u8 lowest_dstates[5 ];/* _sx_w values: 0xFF indicates not valid */ u32 current_status;/* _STA value */ -acpi_integer address;/* _ADR value */ +u64 address;/* _ADR value */ struct acpica_device_id hardware_id;/* _HID value */ struct acpica_device_id unique_id;/* _UID value */ struct acpica_device_id_list compatible_id_list;/* _CID list <must be last> */
Signature · 1 line
1.6.0.6
Len Brown
reviewerPATCH 6/9 ACPICA: Disassembler: Remove obsolete "Integer64" field in parse object
In reply to Len BrownFrom: Bob Moore <[email protected]>
This field is no longer needed. The "Integer" field is 64 bit and is sufficient.
--- drivers/acpi/acpica/aclocal.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/acpi/acpica/aclocal.h +0 -1
@@ -651,7 +651,6 @@ struct acpi_opcode_info {union acpi_parse_value {u64 integer;/* Integer constant (Up to 64 bits) */ -struct uint64_struct integer64;/* Structure overlay for 2 32-bit Dwords */ u32 size;/* bytelist or field size */ char *string;/* NULL terminated string */ u8 *buffer;/* buffer or string */
Signature · 1 line
1.6.0.6
Len Brown
reviewerPATCH 7/9 ACPICA: Remove unused uint32_struct type
In reply to Len BrownFrom: Bob Moore <[email protected]>
This type is not used in ACPICA and thus removed.
--- include/acpi/actypes.h | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-)
include/acpi/actypes.h +0 -5
@@ -385,11 +385,6 @@ union uint64_overlay {struct uint64_struct part; }; -struct uint32_struct { -u32 lo; -u32 hi; -}; -#define ACPI_INTEGER_BIT_SIZE 64#define ACPI_MAX_DECIMAL_DIGITS 20/* 2^64 = 18,446,744,073,709,551,616 */
Signature · 1 line
1.6.0.6
Len Brown
reviewerPATCH 8/9 ACPICA: Update version to 20100121.
In reply to Len BrownFrom: Bob Moore <[email protected]>
Version 20100121.
--- include/acpi/acpixf.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/acpi/acpixf.h +1 -1
@@ -47,7 +47,7 @@/* Current ACPICA subsystem version in YYYYMMDD format */ -#define ACPI_CA_VERSION 0x20091214 +#define ACPI_CA_VERSION 0x20100121#include "actypes.h" #include "actbl.h"
Signature · 1 line
1.6.0.6
Len Brown
reviewerPATCH 9/9 ACPI: replace acpi_integer by u64
In reply to Len BrownFrom: Lin Ming <[email protected]>
acpi_integer is now obsolete and removed from the ACPICA code base, replaced by u64.
--- arch/ia64/hp/common/aml_nfw.c | 6 ++-- arch/x86/kernel/cpu/cpufreq/powernow-k8.c | 6 ++-- drivers/acpi/battery.c | 4 +- drivers/acpi/ec.c | 4 +- drivers/acpi/glue.c | 4 +- drivers/acpi/osl.c | 4 +- drivers/acpi/power_meter.c | 30 ++++++++++---------- drivers/acpi/processor_idle.c | 2 +- drivers/acpi/processor_throttling.c | 24 ++++++++-------- drivers/acpi/utils.c | 16 +++++----- drivers/acpi/video.c | 2 +- drivers/ata/libata-acpi.c | 4 +- drivers/ide/ide-acpi.c | 8 +++--- drivers/input/misc/atlas_btns.c | 2 +- drivers/pci/pci-acpi.c | 2 +- drivers/platform/x86/toshiba_bluetooth.c | 4 +- drivers/platform/x86/wmi.c | 4 +- include/acpi/acpi_bus.h | 6 ++-- include/acpi/processor.h | 42 ++++++++++++++-------------- 19 files changed, 87 insertions(+), 87 deletions(-)
arch/ia64/hp/common/aml_nfw.c +3 -3
@@ -77,7 +77,7 @@ static void aml_nfw_execute(struct ia64_nfw_context *c) c->arg[4], c->arg[5], c->arg[6], c->arg[7]); } -static void aml_nfw_read_arg (u8 *offset,u32 bit_width,acpi_integer *value) +static void aml_nfw_read_arg (u8 *offset,u32 bit_width,u64 *value) {switch (bit_width) {case 8 :
@@ -95,7 +95,7 @@ static void aml_nfw_read_arg(u8 *offset, u32 bit_width, acpi_integer *value) } } -static void aml_nfw_write_arg (u8 *offset,u32 bit_width,acpi_integer *value) +static void aml_nfw_write_arg (u8 *offset,u32 bit_width,u64 *value) {switch (bit_width) {case 8 :
@@ -114,7 +114,7 @@ static void aml_nfw_write_arg(u8 *offset, u32 bit_width, acpi_integer *value) }static acpi_status aml_nfw_handler (u32 function,acpi_physical_address address, -u32 bit_width,acpi_integer *value,void *handler_context, +u32 bit_width,u64 *value,void *handler_context,void *region_context) {struct ia64_nfw_context *context = handler_context;
arch/x86/kernel/cpu/cpufreq/powernow-k8.c +3 -3
@@ -806,7 +806,7 @@ static int find_psb_table(struct powernow_k8_data *data)static void powernow_k8_acpi_pst_values (struct powernow_k8_data *data,unsigned int index) { -acpi_integer control; +u64 control;if (!data->acpi_data.state_count || (cpu_family ==CPU_HW_PSTATE ))return ;
@@ -824,7 +824,7 @@ static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data) {struct cpufreq_frequency_table *powernow_table;int ret_val = -ENODEV ; -acpi_integer control, status; +u64 control, status;if (acpi_processor_register_performance (&data->acpi_data, data->cpu)) {dprintk ("register performance failed: bad ACPI data\n" );
@@ -948,7 +948,7 @@ static int fill_powernow_table_fidvid(struct powernow_k8_data *data,u32 fid;u32 vid;u32 freq, index; -acpi_integer status, control; +u64 status, control;if (data->exttype) { status = data->acpi_data.states[i].status;
drivers/acpi/battery.c +2 -2
@@ -324,8 +324,8 @@ static int extract_package(struct acpi_battery *battery,strncpy (ptr, element->string.pointer,32 ); else if (element->type == ACPI_TYPE_INTEGER) {strncpy (ptr, (u8 *)&element->integer.value, -sizeof (acpi_integer)); - ptr[sizeof (acpi_integer)] =0 ; +sizeof (u64)); + ptr[sizeof (u64)] =0 ; } else *ptr =0 ;/* don't have value */ }else {
drivers/acpi/ec.c +2 -2
@@ -589,7 +589,7 @@ static u32 acpi_ec_gpe_handler(void *data)static acpi_status acpi_ec_space_handler (u32 function,acpi_physical_address address, -u32 bits,acpi_integer *value, +u32 bits,u64 *value,void *handler_context,void *region_context) {struct acpi_ec *ec = handler_context;
@@ -620,7 +620,7 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address, ++address;if (function ==ACPI_READ ) { result =acpi_ec_read (ec, address, &temp); - (*value) |= ((acpi_integer )temp) << i; + (*value) |= ((u64 )temp) << i; }else { temp =0xff & ((*value) >> i); result =acpi_ec_write (ec, address, temp);
drivers/acpi/glue.c +2 -2
@@ -87,7 +87,7 @@ static int acpi_find_bridge_device(struct device *dev, acpi_handle * handle)/* Get device's handler per its address under its parent */ struct acpi_find_child {acpi_handle handle; -acpi_integer address; +u64 address; }; static acpi_status
@@ -106,7 +106,7 @@ do_acpi_find_child(acpi_handle handle, u32 lvl, void *context, void **rv)return AE_OK ; } -acpi_handle acpi_get_child (acpi_handle parent,acpi_integer address) +acpi_handle acpi_get_child (acpi_handle parent,u64 address) {struct acpi_find_child find = {NULL , address };
drivers/acpi/osl.c +2 -2
@@ -436,7 +436,7 @@ acpi_status acpi_os_remove_interrupt_handler(u32 irq, acpi_osd_handler handler)* Running in interpreter thread context, safe to sleep */ -void acpi_os_sleep (acpi_integer ms) +void acpi_os_sleep (u64 ms) {schedule_timeout_interruptible (msecs_to_jiffies (ms)); }
@@ -603,7 +603,7 @@ acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id, u32 reg,acpi_status acpi_os_write_pci_configuration (struct acpi_pci_id * pci_id,u32 reg, -acpi_integer value,u32 width) +u64 value,u32 width) {int result, size;
drivers/acpi/power_meter.c +15 -15
@@ -71,17 +71,17 @@ static const struct acpi_device_id power_meter_ids[] = {MODULE_DEVICE_TABLE (acpi, power_meter_ids);struct acpi_power_meter_capabilities { -acpi_integer flags; -acpi_integer units; -acpi_integer type; -acpi_integer accuracy; -acpi_integer sampling_time; -acpi_integer min_avg_interval; -acpi_integer max_avg_interval; -acpi_integer hysteresis; -acpi_integer configurable_cap; -acpi_integer min_cap; -acpi_integer max_cap; +u64 flags; +u64 units; +u64 type; +u64 accuracy; +u64 sampling_time; +u64 min_avg_interval; +u64 max_avg_interval; +u64 hysteresis; +u64 configurable_cap; +u64 min_cap; +u64 max_cap; };struct acpi_power_meter_resource {
@@ -93,9 +93,9 @@ struct acpi_power_meter_resource {acpi_string model_number;acpi_string serial_number;acpi_string oem_info; -acpi_integer power; -acpi_integer cap; -acpi_integer avg_interval; +u64 power; +u64 cap; +u64 avg_interval;int sensors_valid;unsigned long sensors_last_updated;struct sensor_device_attribute sensors[NUM_SENSORS ];
@@ -402,7 +402,7 @@ static ssize_t show_val(struct device *dev,struct sensor_device_attribute *attr =to_sensor_dev_attr (devattr);struct acpi_device *acpi_dev =to_acpi_device (dev);struct acpi_power_meter_resource *resource = acpi_dev->driver_data; -acpi_integer val =0 ; +u64 val =0 ;switch (attr->index) {case 0 :
drivers/acpi/processor_idle.c +1 -1
@@ -352,7 +352,7 @@ static int acpi_processor_get_power_info_default(struct acpi_processor *pr)static int acpi_processor_get_power_info_cst (struct acpi_processor *pr) {acpi_status status =0 ; -acpi_integer count; +u64 count;int current_count;int i;struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER ,NULL };
drivers/acpi/processor_throttling.c +12 -12
@@ -660,7 +660,7 @@ static int acpi_processor_get_throttling_fadt(struct acpi_processor *pr)#ifdef CONFIG_X86 static int acpi_throttling_rdmsr (struct acpi_processor *pr, -acpi_integer * value) +u64 *value) {struct cpuinfo_x86 *c;u64 msr_high, msr_low;
@@ -681,13 +681,13 @@ static int acpi_throttling_rdmsr(struct acpi_processor *pr,rdmsr_safe (MSR_IA32_THERM_CONTROL , (u32 *)&msr_low , (u32 *) &msr_high); msr = (msr_high <<32 ) | msr_low; - *value = (acpi_integer ) msr; + *value = (u64 ) msr; ret =0 ; }return ret; } -static int acpi_throttling_wrmsr (struct acpi_processor *pr,acpi_integer value) +static int acpi_throttling_wrmsr (struct acpi_processor *pr,u64 value) {struct cpuinfo_x86 *c;unsigned int cpu;
@@ -711,14 +711,14 @@ static int acpi_throttling_wrmsr(struct acpi_processor *pr, acpi_integer value) }#else static int acpi_throttling_rdmsr (struct acpi_processor *pr, -acpi_integer * value) +u64 *value) { printk(KERN_ERR PREFIX "HARDWARE addr space,NOT supported yet\n");return -1 ; } -static int acpi_throttling_wrmsr (struct acpi_processor *pr,acpi_integer value) +static int acpi_throttling_wrmsr (struct acpi_processor *pr,u64 value) { printk(KERN_ERR PREFIX "HARDWARE addr space,NOT supported yet\n");
@@ -727,7 +727,7 @@ static int acpi_throttling_wrmsr(struct acpi_processor *pr, acpi_integer value)#endif static int acpi_read_throttling_status (struct acpi_processor *pr, -acpi_integer *value) +u64 *value) {u32 bit_width, bit_offset;u64 ptc_value;
@@ -746,7 +746,7 @@ static int acpi_read_throttling_status(struct acpi_processor *pr, address, (u32 *) &ptc_value, (u32) (bit_width + bit_offset)); ptc_mask = (1 << bit_width) -1 ; - *value = (acpi_integer) ((ptc_value >> bit_offset) & ptc_mask); + *value = (u64) ((ptc_value >> bit_offset) & ptc_mask); ret =0 ;break ;case ACPI_ADR_SPACE_FIXED_HARDWARE :
@@ -760,7 +760,7 @@ static int acpi_read_throttling_status(struct acpi_processor *pr, }static int acpi_write_throttling_state (struct acpi_processor *pr, -acpi_integer value) +u64 value) {u32 bit_width, bit_offset;u64 ptc_value;
@@ -793,7 +793,7 @@ static int acpi_write_throttling_state(struct acpi_processor *pr, }static int acpi_get_throttling_state (struct acpi_processor *pr, -acpi_integer value) +u64 value) {int i;
@@ -808,7 +808,7 @@ static int acpi_get_throttling_state(struct acpi_processor *pr, }static int acpi_get_throttling_value (struct acpi_processor *pr, -int state,acpi_integer *value) +int state,u64 *value) {int ret =-1 ;
@@ -826,7 +826,7 @@ static int acpi_processor_get_throttling_ptc(struct acpi_processor *pr) {int state =0 ;int ret; -acpi_integer value; +u64 value;if (!pr)return -EINVAL ;
@@ -993,7 +993,7 @@ static int acpi_processor_set_throttling_ptc(struct acpi_processor *pr, int state, bool force) {int ret; -acpi_integer value; +u64 value;if (!pr)return -EINVAL ;
drivers/acpi/utils.c +8 -8
@@ -107,12 +107,12 @@ acpi_extract_package(union acpi_object *package,case ACPI_TYPE_INTEGER :switch (format_string[i]) {case 'N' : - size_required +=sizeof (acpi_integer); - tail_offset +=sizeof (acpi_integer); + size_required +=sizeof (u64); + tail_offset +=sizeof (u64);break ;case 'S' : size_required += -sizeof (char *) +sizeof (acpi_integer) + +sizeof (char *) +sizeof (u64) +sizeof (char ); tail_offset +=sizeof (char *);break ;
@@ -193,17 +193,17 @@ acpi_extract_package(union acpi_object *package,case ACPI_TYPE_INTEGER :switch (format_string[i]) {case 'N' : - *((acpi_integer *) head) = + *((u64 *) head) = element->integer.value; - head +=sizeof (acpi_integer); + head +=sizeof (u64);break ;case 'S' : pointer = (u8 **) head; *pointer = tail; - *((acpi_integer *) tail) = + *((u64 *) tail) = element->integer.value; - head +=sizeof (acpi_integer *); - tail +=sizeof (acpi_integer); + head +=sizeof (u64 *); + tail +=sizeof (u64);/* NULL terminate string */ *tail = (char )0 ; tail +=sizeof (char );
drivers/acpi/video.c +1 -1
@@ -759,7 +759,7 @@ acpi_video_bus_POST_options(struct acpi_video_bus *video,static int acpi_video_bus_DOS (struct acpi_video_bus *video,int bios_flag,int lcd_flag) { -acpi_integer status =0 ; +u64 status =0 ;union acpi_object arg0 = {ACPI_TYPE_INTEGER };struct acpi_object_list args = {1 , &arg0 };
drivers/ata/libata-acpi.c +2 -2
@@ -64,7 +64,7 @@ void ata_acpi_associate_sata_port(struct ata_port *ap)WARN_ON (!(ap->flags &ATA_FLAG_ACPI_SATA ));if (!sata_pmp_attached (ap)) { -acpi_integer adr =SATA_ADR (ap->port_no,NO_PORT_MULT ); +u64 adr =SATA_ADR (ap->port_no,NO_PORT_MULT ); ap->link.device->acpi_handle =acpi_get_child (ap->host->acpi_handle, adr);
@@ -74,7 +74,7 @@ void ata_acpi_associate_sata_port(struct ata_port *ap) ap->link.device->acpi_handle =NULL ;ata_for_each_link (link, ap,EDGE ) { -acpi_integer adr =SATA_ADR (ap->port_no, link->pmp); +u64 adr =SATA_ADR (ap->port_no, link->pmp); link->device->acpi_handle =acpi_get_child (ap->host->acpi_handle, adr);
drivers/ide/ide-acpi.c +4 -4
@@ -108,11 +108,11 @@ bool ide_port_acpi(ide_hwif_t *hwif)* Returns 0 on success, <0 on error. */ static int ide_get_dev_handle (struct device *dev,acpi_handle *handle, -acpi_integer *pcidevfn) +u64 *pcidevfn) {struct pci_dev *pdev =to_pci_dev (dev);unsigned int bus, devnum, func; -acpi_integer addr; +u64 addr;acpi_handle dev_handle;acpi_status status;struct acpi_device_info *dinfo =NULL ;
@@ -122,7 +122,7 @@ static int ide_get_dev_handle(struct device *dev, acpi_handle *handle, devnum =PCI_SLOT (pdev->devfn); func =PCI_FUNC (pdev->devfn);/* ACPI _ADR encoding for PCI bus: */ - addr = (acpi_integer)(devnum <<16 | func); + addr = (u64)(devnum <<16 | func);DEBPRINT ("ENTER: pci %02x:%02x.%01x\n" , bus, devnum, func);
@@ -169,7 +169,7 @@ static acpi_handle ide_acpi_hwif_get_handle(ide_hwif_t *hwif) {struct device *dev = hwif->gendev.parent;acpi_handle uninitialized_var (dev_handle ); -acpi_integer pcidevfn; +u64 pcidevfn;acpi_handle chan_handle;int err;
drivers/input/misc/atlas_btns.c +1 -1
@@ -47,7 +47,7 @@ static acpi_status acpi_atlas_button_setup(acpi_handle region_handle,static acpi_status acpi_atlas_button_handler (u32 function,acpi_physical_address address, -u32 bit_width,acpi_integer *value, +u32 bit_width,u64 *value,void *handler_context,void *region_context) {acpi_status status;
drivers/pci/pci-acpi.c +1 -1
@@ -143,7 +143,7 @@ static struct pci_platform_pm_ops acpi_pci_platform_pm = {static int acpi_pci_find_device (struct device *dev,acpi_handle *handle) {struct pci_dev * pci_dev; -acpi_integer addr; +u64 addr; pci_dev =to_pci_dev (dev);/* Please ref to ACPI spec for the syntax of _ADR */
drivers/platform/x86/toshiba_bluetooth.c +2 -2
@@ -57,7 +57,7 @@ static struct acpi_driver toshiba_bt_rfkill_driver = {static int toshiba_bluetooth_enable (acpi_handle handle) {acpi_status res1, res2; -acpi_integer result; +u64 result;/* * Query ACPI to verify RFKill switch is set to 'on'.
@@ -95,7 +95,7 @@ static int toshiba_bt_resume(struct acpi_device *device)static int toshiba_bt_rfkill_add (struct acpi_device *device) {acpi_status status; -acpi_integer bt_present; +u64 bt_present;int result = -ENODEV ;/*
drivers/platform/x86/wmi.c +2 -2
@@ -796,7 +796,7 @@ static __init acpi_status parse_wdg(acpi_handle handle)*/ static acpi_status acpi_wmi_ec_space_handler (u32 function,acpi_physical_address address, -u32 bits,acpi_integer * value, +u32 bits,u64 *value,void *handler_context,void *region_context) {int result =0 , i =0 ;
@@ -813,7 +813,7 @@ acpi_wmi_ec_space_handler(u32 function, acpi_physical_address address,if (function ==ACPI_READ ) { result =ec_read (address, &temp); - (*value) |= ((acpi_integer )temp) << i; + (*value) |= ((u64 )temp) << i; }else { temp =0xff & ((*value) >> i); result =ec_write (address, temp);
include/acpi/acpi_bus.h +3 -3
@@ -250,8 +250,8 @@ struct acpi_device_wakeup_state {struct acpi_device_wakeup {acpi_handle gpe_device; -acpi_integer gpe_number; -acpi_integer sleep_state; +u64 gpe_number; +u64 sleep_state;struct acpi_handle_list resources;struct acpi_device_wakeup_state state;struct acpi_device_wakeup_flags flags;
@@ -380,7 +380,7 @@ struct acpi_pci_root { };/* helper */ -acpi_handle acpi_get_child (acpi_handle ,acpi_integer ); +acpi_handle acpi_get_child (acpi_handle ,u64 );int acpi_is_root_bridge (acpi_handle );acpi_handle acpi_get_pci_rootbridge_handle (unsigned int ,unsigned int );struct acpi_pci_root *acpi_pci_find_root (acpi_handle handle);
include/acpi/processor.h +21 -21
66 lines not on this page · raw message
Signature · 1 line
1.6.0.6