// SPDX-License-Identifier: GPL-2.0-only /* * apple.c - Apple ACPI quirks * Copyright (C) 2017 Lukas Wunner <[email protected]> */ #include <linux/acpi.h> #include <linux/bitmap.h> #include <linux/platform_data/x86/apple.h> #include <linux/uuid.h> #include "../internal.h" /* Apple _DSM device properties GUID */ static const guid_t apple_prp_guid = …; /** * 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) { … }