/** * acpi_extract_apple_properties - retrieve and convert Apple _DSM properties * @adev: ACPI device for which to retrieve the properties * * Invoke Apple's custom _DSM once to check the protocol version and once more * to retrieve the properties. They are marshalled up in a single package as * alternating key/value elements, unlike _DSD which stores them as a package * of 2-element packages. Convert to _DSD format and make them available under * the primary fwnode.
*/ void acpi_extract_apple_properties(struct acpi_device *adev)
{ unsignedint i, j = 0, newsize = 0, numprops, numvalid; union acpi_object *props, *newprops; unsignedlong *valid = NULL; void *free_space;
numprops = props->package.count / 2; if (!numprops) goto out_free;
valid = bitmap_zalloc(numprops, GFP_KERNEL); if (!valid) goto out_free;
/* newsize = key length + value length of each tuple */ for (i = 0; i < numprops; i++) { union acpi_object *key = &props->package.elements[i * 2]; union acpi_object *val = &props->package.elements[i * 2 + 1];
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.