Commit d9adc2e0 authored by Lin Ming's avatar Lin Ming Committed by Len Brown

ACPICA: reformat predefined method table, no functional change

Reformatted the methods that return package objects.
Signed-off-by: default avatarLin Ming <ming.m.lin@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 6e2d5ebd
...@@ -139,123 +139,180 @@ enum acpi_return_package_types { ...@@ -139,123 +139,180 @@ enum acpi_return_package_types {
* is saved here (rather than in a separate table) in order to minimize the * is saved here (rather than in a separate table) in order to minimize the
* overall size of the stored data. * overall size of the stored data.
*/ */
static const union acpi_predefined_info predefined_names[] = { static const union acpi_predefined_info predefined_names[] =
{.info = {"_AC0", 0, ACPI_RTYPE_INTEGER}}, {
{.info = {"_AC1", 0, ACPI_RTYPE_INTEGER}}, {{"_AC0", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_AC2", 0, ACPI_RTYPE_INTEGER}}, {{"_AC1", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_AC3", 0, ACPI_RTYPE_INTEGER}}, {{"_AC2", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_AC4", 0, ACPI_RTYPE_INTEGER}}, {{"_AC3", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_AC5", 0, ACPI_RTYPE_INTEGER}}, {{"_AC4", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_AC6", 0, ACPI_RTYPE_INTEGER}}, {{"_AC5", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_AC7", 0, ACPI_RTYPE_INTEGER}}, {{"_AC6", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_AC8", 0, ACPI_RTYPE_INTEGER}}, {{"_AC7", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_AC9", 0, ACPI_RTYPE_INTEGER}}, {{"_AC8", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_ADR", 0, ACPI_RTYPE_INTEGER}}, {{"_AC9", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_AL0", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */ {{"_ADR", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_AL1", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */ {{"_AL0", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{.info = {"_AL2", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */ {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{.info = {"_AL3", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
{.info = {"_AL4", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */ {{"_AL1", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{.info = {"_AL5", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */ {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{.info = {"_AL6", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
{.info = {"_AL7", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */ {{"_AL2", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{.info = {"_AL8", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */ {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{.info = {"_AL9", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
{.info = {"_ALC", 0, ACPI_RTYPE_INTEGER}}, {{"_AL3", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{.info = {"_ALI", 0, ACPI_RTYPE_INTEGER}}, {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{.info = {"_ALP", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_ALR", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 2, 0, 0, 0}}, /* variable (Pkgs) each 2 (Ints) */ {{"_AL4", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{.info = {"_ALT", 0, ACPI_RTYPE_INTEGER}}, {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{.info = {"_BBN", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_BCL", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0, 0, 0, 0}}, /* variable (Ints) */ {{"_AL5", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{.info = {"_BCM", 1, 0}}, {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{.info = {"_BDN", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_BFS", 1, 0}}, {{"_AL6", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{.info = {"_BIF", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
9,
ACPI_RTYPE_STRING | ACPI_RTYPE_BUFFER, 4, 0}}, /* fixed (9 Int),(4 Str) */ {{"_AL7", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{.info = {"_BLT", 3, 0}}, {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{.info = {"_BMC", 1, 0}},
{.info = {"_BMD", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5, 0, 0, 0}}, /* fixed (5 Int) */ {{"_AL8", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{.info = {"_BQC", 0, ACPI_RTYPE_INTEGER}}, {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{.info = {"_BST", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4, 0, 0, 0}}, /* fixed (4 Int) */
{.info = {"_BTM", 1, ACPI_RTYPE_INTEGER}}, {{"_AL9", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{.info = {"_BTP", 1, 0}}, {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{.info = {"_CBA", 0, ACPI_RTYPE_INTEGER}}, /* see PCI firmware spec 3.0 */
{.info = {"_CID", 0, {{"_ALC", 0, ACPI_RTYPE_INTEGER}},
ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE}}, {{"_ALI", 0, ACPI_RTYPE_INTEGER}},
{.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING, 0, 0, 0, 0}}, /* variable (Ints/Strs) */ {{"_ALP", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_CRS", 0, ACPI_RTYPE_BUFFER}}, {{"_ALR", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 2 (Ints) */
{.info = {"_CRT", 0, ACPI_RTYPE_INTEGER}}, {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 2,0}, 0,0}},
{.info = {"_CSD", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0, 0, 0, 0}}, /* variable (1 Int(n), n-1 Int) */
{.info = {"_CST", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2_PKG_COUNT, {{"_ALT", 0, ACPI_RTYPE_INTEGER}},
ACPI_RTYPE_BUFFER, 1, {{"_BBN", 0, ACPI_RTYPE_INTEGER}},
ACPI_RTYPE_INTEGER, 3, 0}}, /* variable (1 Int(n), n Pkg (1 Buf/3 Int) */ {{"_BCL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */
{.info = {"_DCK", 1, ACPI_RTYPE_INTEGER}}, {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}},
{.info = {"_DCS", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_DDC", 1, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER}}, {{"_BCM", 1, 0}},
{.info = {"_DDN", 0, ACPI_RTYPE_STRING}}, {{"_BDN", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_DGS", 0, ACPI_RTYPE_INTEGER}}, {{"_BFS", 1, 0}},
{.info = {"_DIS", 0, 0}}, {{"_BIF", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (9 Int),(4 Str) */
{.info = {"_DMA", 0, ACPI_RTYPE_BUFFER}}, {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 9, ACPI_RTYPE_STRING}, 4,0}},
{.info = {"_DOD", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0, 0, 0, 0}}, /* variable (Ints) */
{.info = {"_DOS", 1, 0}}, {{"_BLT", 3, 0}},
{.info = {"_DSM", 4, ACPI_RTYPE_ALL}}, /* Must return a type, but it can be of any type */ {{"_BMC", 1, 0}},
{.info = {"_DSS", 1, 0}}, {{"_BMD", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (5 Int) */
{.info = {"_DSW", 3, 0}}, {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5,0}, 0,0}},
{.info = {"_EC_", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_EDL", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */ {{"_BQC", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_EJ0", 1, 0}}, {{"_BST", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */
{.info = {"_EJ1", 1, 0}}, {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}},
{.info = {"_EJ2", 1, 0}},
{.info = {"_EJ3", 1, 0}}, {{"_BTM", 1, ACPI_RTYPE_INTEGER}},
{.info = {"_EJ4", 1, 0}}, {{"_BTP", 1, 0}},
{.info = {"_EJD", 0, ACPI_RTYPE_STRING}}, {{"_CBA", 0, ACPI_RTYPE_INTEGER}}, /* See PCI firmware spec 3.0 */
{.info = {"_FDE", 0, ACPI_RTYPE_BUFFER}}, {{"_CID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints/Strs) */
{.info = {"_FDI", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16, 0, 0, 0}}, /* fixed (16 Int) */ {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING, 0,0}, 0,0}},
{.info = {"_FDM", 1, 0}},
{.info = {"_FIX", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0, 0, 0, 0}}, /* variable (Ints) */ {{"_CRS", 0, ACPI_RTYPE_BUFFER}},
{.info = {"_GLK", 0, ACPI_RTYPE_INTEGER}}, {{"_CRT", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_GPD", 0, ACPI_RTYPE_INTEGER}}, {{"_CSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(n), n-1 Int) */
{.info = {"_GPE", 0, ACPI_RTYPE_INTEGER}}, /* _GPE method, not _GPE scope */ {{{ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0,0}, 0,0}},
{.info = {"_GSB", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_GTF", 0, ACPI_RTYPE_BUFFER}}, {{"_CST", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */
{.info = {"_GTM", 0, ACPI_RTYPE_BUFFER}}, {{{ACPI_PTYPE2_PKG_COUNT,ACPI_RTYPE_BUFFER, 1, ACPI_RTYPE_INTEGER}, 3,0}},
{.info = {"_GTS", 1, 0}},
{.info = {"_HID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}}, {{"_DCK", 1, ACPI_RTYPE_INTEGER}},
{.info = {"_HOT", 0, ACPI_RTYPE_INTEGER}}, {{"_DCS", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_HPP", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4, 0, 0, 0}}, /* fixed (4 Int) */ {{"_DDC", 1, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER}},
{{"_DDN", 0, ACPI_RTYPE_STRING}},
{{"_DGS", 0, ACPI_RTYPE_INTEGER}},
{{"_DIS", 0, 0}},
{{"_DMA", 0, ACPI_RTYPE_BUFFER}},
{{"_DOD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */
{{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}},
{{"_DOS", 1, 0}},
{{"_DSM", 4, ACPI_RTYPE_ALL}}, /* Must return a type, but it can be of any type */
{{"_DSS", 1, 0}},
{{"_DSW", 3, 0}},
{{"_EC_", 0, ACPI_RTYPE_INTEGER}},
{{"_EDL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs)*/
{{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{{"_EJ0", 1, 0}},
{{"_EJ1", 1, 0}},
{{"_EJ2", 1, 0}},
{{"_EJ3", 1, 0}},
{{"_EJ4", 1, 0}},
{{"_EJD", 0, ACPI_RTYPE_STRING}},
{{"_FDE", 0, ACPI_RTYPE_BUFFER}},
{{"_FDI", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (16 Int) */
{{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16,0}, 0,0}},
{{"_FDM", 1, 0}},
{{"_FIX", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */
{{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}},
{{"_GLK", 0, ACPI_RTYPE_INTEGER}},
{{"_GPD", 0, ACPI_RTYPE_INTEGER}},
{{"_GPE", 0, ACPI_RTYPE_INTEGER}}, /* _GPE method, not _GPE scope */
{{"_GSB", 0, ACPI_RTYPE_INTEGER}},
{{"_GTF", 0, ACPI_RTYPE_BUFFER}},
{{"_GTM", 0, ACPI_RTYPE_BUFFER}},
{{"_GTS", 1, 0}},
{{"_HID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}},
{{"_HOT", 0, ACPI_RTYPE_INTEGER}},
{{"_HPP", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */
{{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}},
/* /*
* For _HPX, a single package is returned, containing a variable number of sub-packages. * For _HPX, a single package is returned, containing a Variable-length number
* Each sub-package contains a PCI record setting. There are several different type of * of sub-packages. Each sub-package contains a PCI record setting.
* record settings, of different lengths, but all elements of all settings are Integers. * There are several different type of record settings, of different
* lengths, but all elements of all settings are Integers.
*/ */
{.info = {"_HPX", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2_MIN, ACPI_RTYPE_INTEGER, 5, 0, 0, 0}}, /* variable (Pkgs) each (var Ints) */ {{"_HPX", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (var Ints) */
{.info = {"_IFT", 0, ACPI_RTYPE_INTEGER}}, /* see IPMI spec */ {{{ACPI_PTYPE2_MIN, ACPI_RTYPE_INTEGER, 5,0}, 0,0}},
{.info = {"_INI", 0, 0}},
{.info = {"_IRC", 0, 0}}, {{"_IFT", 0, ACPI_RTYPE_INTEGER}}, /* See IPMI spec */
{.info = {"_LCK", 1, 0}}, {{"_INI", 0, 0}},
{.info = {"_LID", 0, ACPI_RTYPE_INTEGER}}, {{"_IRC", 0, 0}},
{.info = {"_MAT", 0, ACPI_RTYPE_BUFFER}}, {{"_LCK", 1, 0}},
{.info = {"_MLS", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2, ACPI_RTYPE_STRING, 2, 0, 0, 0}}, /* variable (Pkgs) each (2 Str) */ {{"_LID", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_MSG", 1, 0}}, {{"_MAT", 0, ACPI_RTYPE_BUFFER}},
{.info = {"_OFF", 0, 0}}, {{"_MLS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (2 Str) */
{.info = {"_ON_", 0, 0}}, {{{ACPI_PTYPE2, ACPI_RTYPE_STRING, 2,0}, 0,0}},
{.info = {"_OS_", 0, ACPI_RTYPE_STRING}},
{.info = {"_OSC", 4, ACPI_RTYPE_BUFFER}}, {{"_MSG", 1, 0}},
{.info = {"_OST", 3, 0}}, {{"_OFF", 0, 0}},
{.info = {"_PCL", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */ {{"_ON_", 0, 0}},
{.info = {"_PCT", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2, 0, 0, 0}}, /* fixed (2 Buf) */ {{"_OS_", 0, ACPI_RTYPE_STRING}},
{.info = {"_PDC", 1, 0}}, {{"_OSC", 4, ACPI_RTYPE_BUFFER}},
{.info = {"_PIC", 1, 0}}, {{"_OST", 3, 0}},
{.info = {"_PLD", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_BUFFER, 0, 0, 0, 0}}, /* variable (Bufs) */ {{"_PCL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{.info = {"_PPC", 0, ACPI_RTYPE_INTEGER}}, {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{.info = {"_PPE", 0, ACPI_RTYPE_INTEGER}}, /* see dig64 spec */
{.info = {"_PR0", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */ {{"_PCT", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Buf) */
{.info = {"_PR1", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */ {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0}, 0,0}},
{.info = {"_PR2", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */
{.info = {"_PRS", 0, ACPI_RTYPE_BUFFER}}, {{"_PDC", 1, 0}},
{{"_PIC", 1, 0}},
{{"_PLD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Bufs) */
{{{ACPI_PTYPE1_VAR, ACPI_RTYPE_BUFFER, 0,0}, 0,0}},
{{"_PPC", 0, ACPI_RTYPE_INTEGER}},
{{"_PPE", 0, ACPI_RTYPE_INTEGER}}, /* See dig64 spec */
{{"_PR0", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{{"_PR1", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{{"_PR2", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{{"_PRS", 0, ACPI_RTYPE_BUFFER}},
/* /*
* For _PRT, many BIOSs reverse the 2nd and 3rd Package elements. This bug is so prevalent that there * For _PRT, many BIOSs reverse the 2nd and 3rd Package elements. This bug is so prevalent that there
...@@ -263,115 +320,141 @@ static const union acpi_predefined_info predefined_names[] = { ...@@ -263,115 +320,141 @@ static const union acpi_predefined_info predefined_names[] = {
* and issue a warning. To allow this and eliminate the warning, add the ACPI_RTYPE_REFERENCE * and issue a warning. To allow this and eliminate the warning, add the ACPI_RTYPE_REFERENCE
* type to the 2nd element (index 1) in the statement below. * type to the 2nd element (index 1) in the statement below.
*/ */
{.info = {"_PRT", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2_FIXED, 4, {{"_PRT", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (4): Int,Int,Int/Ref,Int */
ACPI_RTYPE_INTEGER, {{{ACPI_PTYPE2_FIXED, 4, ACPI_RTYPE_INTEGER,ACPI_RTYPE_INTEGER},
ACPI_RTYPE_INTEGER, ACPI_RTYPE_INTEGER | ACPI_RTYPE_REFERENCE,ACPI_RTYPE_INTEGER}},
ACPI_RTYPE_INTEGER | ACPI_RTYPE_REFERENCE, ACPI_RTYPE_INTEGER}}, /* variable (Pkgs) each (4): Int,Int,Int/Ref,Int */
{{"_PRW", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each: Pkg/Int,Int,[Variable-length Refs] (Pkg is Ref/Int) */
{.info = {"_PRW", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_OPTION, 2, {{{ACPI_PTYPE1_OPTION, 2, ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE,
ACPI_RTYPE_INTEGER | ACPI_RTYPE_INTEGER}, ACPI_RTYPE_REFERENCE,0}},
ACPI_RTYPE_PACKAGE,
ACPI_RTYPE_INTEGER, ACPI_RTYPE_REFERENCE, 0}}, /* variable (Pkgs) each: Pkg/Int,Int,[variable Refs] (Pkg is Ref/Int) */ {{"_PS0", 0, 0}},
{{"_PS1", 0, 0}},
{.info = {"_PS0", 0, 0}}, {{"_PS2", 0, 0}},
{.info = {"_PS1", 0, 0}}, {{"_PS3", 0, 0}},
{.info = {"_PS2", 0, 0}}, {{"_PSC", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_PS3", 0, 0}}, {{"_PSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (5 Int) with count */
{.info = {"_PSC", 0, ACPI_RTYPE_INTEGER}}, {{{ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER,0,0}, 0,0}},
{.info = {"_PSD", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0, 0, 0, 0}}, /* variable (Pkgs) each (5 Int) with count */
{.info = {"_PSL", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */ {{"_PSL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{.info = {"_PSR", 0, ACPI_RTYPE_INTEGER}}, {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{.info = {"_PSS", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 6, 0, 0, 0}}, /* variable (Pkgs) each (6 Int) */
{.info = {"_PSV", 0, ACPI_RTYPE_INTEGER}}, {{"_PSR", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_PSW", 1, 0}}, {{"_PSS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (6 Int) */
{.info = {"_PTC", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2, 0, 0, 0}}, /* fixed (2 Buf) */ {{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 6,0}, 0,0}},
{.info = {"_PTS", 1, 0}},
{.info = {"_PXM", 0, ACPI_RTYPE_INTEGER}}, {{"_PSV", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_REG", 2, 0}}, {{"_PSW", 1, 0}},
{.info = {"_REV", 0, ACPI_RTYPE_INTEGER}}, {{"_PTC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (2 Buf) */
{.info = {"_RMV", 0, ACPI_RTYPE_INTEGER}}, {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0}, 0,0}},
{.info = {"_ROM", 2, ACPI_RTYPE_BUFFER}},
{.info = {"_RTV", 0, ACPI_RTYPE_INTEGER}}, {{"_PTS", 1, 0}},
{{"_PXM", 0, ACPI_RTYPE_INTEGER}},
{{"_REG", 2, 0}},
{{"_REV", 0, ACPI_RTYPE_INTEGER}},
{{"_RMV", 0, ACPI_RTYPE_INTEGER}},
{{"_ROM", 2, ACPI_RTYPE_BUFFER}},
{{"_RTV", 0, ACPI_RTYPE_INTEGER}},
/* /*
* For _S0_ through _S5_, the ACPI spec defines a return Package containing 1 Integer, * For _S0_ through _S5_, the ACPI spec defines a return Package
* but most DSDTs have it wrong - 2,3, or 4 integers. Allow this by making the objects "variable length", * containing 1 Integer, but most DSDTs have it wrong - 2,3, or 4 integers.
* but all elements must be Integers. * Allow this by making the objects "Variable-length length", but all elements
* must be Integers.
*/ */
{.info = {"_S0_", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0}}, /* fixed (1 Int) */ {{"_S0_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
{.info = {"_S1_", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0}}, /* fixed (1 Int) */ {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
{.info = {"_S2_", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0}}, /* fixed (1 Int) */
{.info = {"_S3_", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0}}, /* fixed (1 Int) */ {{"_S1_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
{.info = {"_S4_", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0}}, /* fixed (1 Int) */ {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
{.info = {"_S5_", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1, 0, 0, 0}}, /* fixed (1 Int) */
{{"_S2_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
{.info = {"_S1D", 0, ACPI_RTYPE_INTEGER}}, {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
{.info = {"_S2D", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_S3D", 0, ACPI_RTYPE_INTEGER}}, {{"_S3_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
{.info = {"_S4D", 0, ACPI_RTYPE_INTEGER}}, {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
{.info = {"_S0W", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_S1W", 0, ACPI_RTYPE_INTEGER}}, {{"_S4_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
{.info = {"_S2W", 0, ACPI_RTYPE_INTEGER}}, {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
{.info = {"_S3W", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_S4W", 0, ACPI_RTYPE_INTEGER}}, {{"_S5_", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (1 Int) */
{.info = {"_SBS", 0, ACPI_RTYPE_INTEGER}}, {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0}, 0,0}},
{.info = {"_SCP", 0x13, 0}}, /* Acpi 1.0 allowed 1 arg. Acpi 3.0 expanded to 3 args. Allow both. */
/* Note: the 3-arg definition may be removed for ACPI 4.0 */ {{"_S1D", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_SDD", 1, 0}}, {{"_S2D", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_SEG", 0, ACPI_RTYPE_INTEGER}}, {{"_S3D", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_SLI", 0, ACPI_RTYPE_BUFFER}}, {{"_S4D", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_SPD", 1, ACPI_RTYPE_INTEGER}}, {{"_S0W", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_SRS", 1, 0}}, {{"_S1W", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_SRV", 0, ACPI_RTYPE_INTEGER}}, /* see IPMI spec */ {{"_S2W", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_SST", 1, 0}}, {{"_S3W", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_STA", 0, ACPI_RTYPE_INTEGER}}, {{"_S4W", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_STM", 3, 0}}, {{"_SBS", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_STR", 0, ACPI_RTYPE_BUFFER}}, {{"_SCP", 0x13, 0}}, /* Acpi 1.0 allowed 1 arg. Acpi 3.0 expanded to 3 args. Allow both. */
{.info = {"_SUN", 0, ACPI_RTYPE_INTEGER}}, /* Note: the 3-arg definition may be removed for ACPI 4.0 */
{.info = {"_SWS", 0, ACPI_RTYPE_INTEGER}}, {{"_SDD", 1, 0}},
{.info = {"_TC1", 0, ACPI_RTYPE_INTEGER}}, {{"_SEG", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_TC2", 0, ACPI_RTYPE_INTEGER}}, {{"_SLI", 0, ACPI_RTYPE_BUFFER}},
{.info = {"_TMP", 0, ACPI_RTYPE_INTEGER}}, {{"_SPD", 1, ACPI_RTYPE_INTEGER}},
{.info = {"_TPC", 0, ACPI_RTYPE_INTEGER}}, {{"_SRS", 1, 0}},
{.info = {"_TPT", 1, 0}}, {{"_SRV", 0, ACPI_RTYPE_INTEGER}}, /* See IPMI spec */
{.info = {"_TRT", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2, ACPI_RTYPE_REFERENCE, 2, {{"_SST", 1, 0}},
ACPI_RTYPE_INTEGER, 6, 0}}, /* variable (Pkgs) each 2_ref/6_int */ {{"_STA", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_TSD", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 5, 0, 0, 0}}, /* variable (Pkgs) each 5_int with count */ {{"_STM", 3, 0}},
{.info = {"_TSP", 0, ACPI_RTYPE_INTEGER}}, {{"_STR", 0, ACPI_RTYPE_BUFFER}},
{.info = {"_TSS", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 5, 0, 0, 0}}, /* variable (Pkgs) each 5_int */ {{"_SUN", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_TST", 0, ACPI_RTYPE_INTEGER}}, {{"_SWS", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_TTS", 1, 0}}, {{"_TC1", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_TZD", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0, 0, 0}}, /* variable (Refs) */ {{"_TC2", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_TZM", 0, ACPI_RTYPE_REFERENCE}}, {{"_TMP", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_TZP", 0, ACPI_RTYPE_INTEGER}}, {{"_TPC", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_UID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}}, {{"_TPT", 1, 0}},
{.info = {"_UPC", 0, ACPI_RTYPE_PACKAGE}}, {.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4, 0, 0, 0}}, /* fixed (4 Int) */ {{"_TRT", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 2_ref/6_int */
{.info = {"_UPD", 0, ACPI_RTYPE_INTEGER}}, {{{ACPI_PTYPE2, ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER}, 6, 0}},
{.info = {"_UPP", 0, ACPI_RTYPE_INTEGER}},
{.info = {"_VPO", 0, ACPI_RTYPE_INTEGER}}, {{"_TSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 5_int with count */
{{{ACPI_PTYPE2_COUNT,ACPI_RTYPE_INTEGER, 5,0}, 0,0}},
{{"_TSP", 0, ACPI_RTYPE_INTEGER}},
{{"_TSS", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each 5_int */
{{{ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 5,0}, 0,0}},
{{"_TST", 0, ACPI_RTYPE_INTEGER}},
{{"_TTS", 1, 0}},
{{"_TZD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */
{{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}},
{{"_TZM", 0, ACPI_RTYPE_REFERENCE}},
{{"_TZP", 0, ACPI_RTYPE_INTEGER}},
{{"_UID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}},
{{"_UPC", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */
{{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0}, 0,0}},
{{"_UPD", 0, ACPI_RTYPE_INTEGER}},
{{"_UPP", 0, ACPI_RTYPE_INTEGER}},
{{"_VPO", 0, ACPI_RTYPE_INTEGER}},
/* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */ /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */
{.info = {"_WAK", 1, ACPI_RTYPE_NONE | ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE}}, {{"_WAK", 1, ACPI_RTYPE_NONE | ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE}},
{.ret_info = {ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2, 0, 0, 0}}, /* fixed (2 Int), but is optional */ {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0}, 0,0}}, /* Fixed-length (2 Int), but is optional */
{.ret_info = {0, 0, 0, 0, 0, 0}} /* Table terminator */
{{{0,0,0,0}, 0,0}} /* Table terminator */
}; };
#if 0 #if 0
/* Not implemented */ /* Not implemented */
{ {{"_WDG", 0, ACPI_RTYPE_BUFFER}}, /* MS Extension */
"_WDG", 0, ACPI_RTYPE_BUFFER}, /* MS Extension */ {{"_WED", 1, ACPI_RTYPE_PACKAGE}}, /* MS Extension */
{ /* This is an internally implemented control method, no need to check */
"_WED", 1, ACPI_RTYPE_PACKAGE}, /* MS Extension */ {{"_OSI", 1, ACPI_RTYPE_INTEGER}},
/* This is an internally implemented control method, no need to check */ /* TBD: */
{
"_OSI", 1, ACPI_RTYPE_INTEGER},
/* TBD: */ _PRT - currently ignore reversed entries. attempt to fix here?
_PRT - currently ignore reversed entries.attempt to fix here ? think about possibly fixing package elements like _BIF, etc.
think about code that attempts to fix package elements like _BIF, etc.
#endif #endif
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment