acpi_bus.h (eadcbfa58ae8693f0d6a0f591d8f51d55cf068e1) acpi_bus.h (94116f8126de9762751fd92731581b73b56292e5)
1/*
2 * acpi_bus.h - ACPI Bus Driver ($Revision: 22 $)
3 *
4 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
5 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
6 *
7 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 *

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

56acpi_status acpi_execute_simple_method(acpi_handle handle, char *method,
57 u64 arg);
58acpi_status acpi_evaluate_ej0(acpi_handle handle);
59acpi_status acpi_evaluate_lck(acpi_handle handle, int lock);
60bool acpi_ata_match(acpi_handle handle);
61bool acpi_bay_match(acpi_handle handle);
62bool acpi_dock_match(acpi_handle handle);
63
1/*
2 * acpi_bus.h - ACPI Bus Driver ($Revision: 22 $)
3 *
4 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
5 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
6 *
7 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 *

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

56acpi_status acpi_execute_simple_method(acpi_handle handle, char *method,
57 u64 arg);
58acpi_status acpi_evaluate_ej0(acpi_handle handle);
59acpi_status acpi_evaluate_lck(acpi_handle handle, int lock);
60bool acpi_ata_match(acpi_handle handle);
61bool acpi_bay_match(acpi_handle handle);
62bool acpi_dock_match(acpi_handle handle);
63
64bool acpi_check_dsm(acpi_handle handle, const u8 *uuid, u64 rev, u64 funcs);
65union acpi_object *acpi_evaluate_dsm(acpi_handle handle, const u8 *uuid,
64bool acpi_check_dsm(acpi_handle handle, const guid_t *guid, u64 rev, u64 funcs);
65union acpi_object *acpi_evaluate_dsm(acpi_handle handle, const guid_t *guid,
66 u64 rev, u64 func, union acpi_object *argv4);
67
68static inline union acpi_object *
66 u64 rev, u64 func, union acpi_object *argv4);
67
68static inline union acpi_object *
69acpi_evaluate_dsm_typed(acpi_handle handle, const u8 *uuid, u64 rev, u64 func,
70 union acpi_object *argv4, acpi_object_type type)
69acpi_evaluate_dsm_typed(acpi_handle handle, const guid_t *guid, u64 rev,
70 u64 func, union acpi_object *argv4,
71 acpi_object_type type)
71{
72 union acpi_object *obj;
73
72{
73 union acpi_object *obj;
74
74 obj = acpi_evaluate_dsm(handle, uuid, rev, func, argv4);
75 obj = acpi_evaluate_dsm(handle, guid, rev, func, argv4);
75 if (obj && obj->type != type) {
76 ACPI_FREE(obj);
77 obj = NULL;
78 }
79
80 return obj;
81}
82

--- 588 unchanged lines hidden ---
76 if (obj && obj->type != type) {
77 ACPI_FREE(obj);
78 obj = NULL;
79 }
80
81 return obj;
82}
83

--- 588 unchanged lines hidden ---