From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2CBBC43603 for ; Sat, 14 Dec 2019 17:57:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B7FB32465E for ; Sat, 14 Dec 2019 17:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576346274; bh=0FdOb95WPxtFQHWNIaAIxbfcnnzHGsWuZyBmH+zQG9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=IN5pb2uH7TQ4ux6+Igv1+CBsfweojAq82Hh8zCD7PUB+93FJp3OYUPIA9J/ClMaCk SGVkDoGA1vwmpIA9HCVch9YtPhCHvC5ErCU00e5Oa3VVjWlSuk/T66xz9fBfrTog0z WwPTM6mvUASaQ4qIh6QzMwM18feK6/QyU7YxVrAQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726814AbfLNR5x (ORCPT ); Sat, 14 Dec 2019 12:57:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:44252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725943AbfLNR5w (ORCPT ); Sat, 14 Dec 2019 12:57:52 -0500 Received: from cam-smtp0.cambridge.arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2FDBB20724; Sat, 14 Dec 2019 17:57:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576346271; bh=0FdOb95WPxtFQHWNIaAIxbfcnnzHGsWuZyBmH+zQG9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=19TElmkwUcK9UiIn4J0fy2Md1rcgih15LaNi6GtxtcK5BkJsLCu8BgNIlj0LK0NBY W2IqgekW3WhBQG1bTxOX7OdkLLDVvvK9JEDMRZYjgtzs0Q8zG9dD6eXIHBVktpvd0k kGoHgPlVDFh5fBsaCz/qltoRL6RgmiWipTNuXHrA= From: Ard Biesheuvel To: linux-kernel@vger.kernel.org Cc: linux-efi@vger.kernel.org, Ard Biesheuvel , Hans de Goede , Matthew Garrett , Ingo Molnar , Andy Lutomirski , Thomas Gleixner , Arvind Sankar Subject: [PATCH 04/10] efi/libstub: add missing apple_properties_protocol_t definition Date: Sat, 14 Dec 2019 18:57:29 +0100 Message-Id: <20191214175735.22518-5-ardb@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191214175735.22518-1-ardb@kernel.org> References: <20191214175735.22518-1-ardb@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As apple_properties_protocol_t is only used on x86, we never bothered to define the native apple_properties_protocol_t struct, but only added the explicit 32-bit and 64-bit ones. We'll need the native one for the next patch so let's add it, based on the prototypes that can be found in commit 58c5475aba67706b31d9237808d5d3d54074e5ea. Signed-off-by: Ard Biesheuvel --- include/linux/efi.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/linux/efi.h b/include/linux/efi.h index d7ca0b85b2b5..735388ea7012 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -518,6 +518,22 @@ typedef struct { u64 get_all; } apple_properties_protocol_64_t; +struct efi_dev_path; + +typedef struct apple_properties_protocol { + unsigned long version; + efi_status_t (*get)(struct apple_properties_protocol *, + struct efi_dev_path *, efi_char16_t *, + void *, u32 *); + efi_status_t (*set)(struct apple_properties_protocol *, + struct efi_dev_path *, efi_char16_t *, + void *, u32); + efi_status_t (*del)(struct apple_properties_protocol *, + struct efi_dev_path *, efi_char16_t *); + efi_status_t (*get_all)(struct apple_properties_protocol *, + void *buffer, u32 *); +} apple_properties_protocol_t; + typedef struct { u32 get_capability; u32 get_event_log; -- 2.17.1