From patchwork Mon Oct 22 06:29:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Garg X-Patchwork-Id: 149368 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2262526lji; Sun, 21 Oct 2018 23:30:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV628a33wzdQs6OyOX0llyGeyk05Vgy0JFki3aXBHWlqZzw9IRmqkSUxVmDE7ZobIyW+Pls0J X-Received: by 2002:a63:e47:: with SMTP id 7-v6mr42089974pgo.320.1540189811302; Sun, 21 Oct 2018 23:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540189811; cv=none; d=google.com; s=arc-20160816; b=LvsJqgSRjjHs+17gtBHW8oDp+d8OleklnqvvAt2XCa54G5tR4BbeHfDN/HkBX7EJRy xAjWSGUlVY9juMi3oR92CovKl0LBGWUjypsUiOk/J4tr7BcAaOU6TG4wu5HvCLVpdoHw KH6fkyf91wtKKm96gzl3DJL/pASlYP+Z1qRRKRNa5Boyq3p0sxmOD6TleqstyEf7x2wc U5eqOAu3hdTUX+AYqWv7URXVEnpxoN0BcITJzBkmDV9xO4ev9S+YmLJSZNXo+nrH5H8j GIQ0Hnl9f7X6SELP09efCbbjQ1j73mllq0JPnfsAVpLsmimK/lxI0sdC4DR8JbbnZS4z psrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to; bh=CrTECbSopXGFrWIgJJ+huu91PHqV5e20M6cSRMGqYLU=; b=JK+2jOT+9Ai/MIhhcykctHuGx3qEWLPN2TEmuSZmB1iH+pNUSmYoV6n8p4PbtouZ7d ksogfYxJe3NysUQcHakLOlbyBq0qX5yn8l6Gk1XlNxx/y6HC1pUuAkODx9GV1d7FmD4d +GnnPaI2T2SJXGYsXeepR7nXIYwqR35qGwabYoajatGDFACiI18tC1t8pEdK0n2XH3tk CTbznFlIw0th5JydgpZCnICmr9hG3VnZNBXATFaOn3ND5nAqv1tPur2lu5uoANMrt5tM yFRuUgvrulThmeWf8XHSf2o5mQ5MoY6eWGlbvQ6yFSW8PgWsEuMIJoTmyyLEy11JRyCq b4Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GyUaWllr; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id f6-v6si8080520plt.346.2018.10.21.23.30.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Oct 2018 23:30:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GyUaWllr; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id A37E12117CE93; Sun, 21 Oct 2018 23:30:10 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::644; helo=mail-pl1-x644.google.com; envelope-from=sumit.garg@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 34D012117CE8C for ; Sun, 21 Oct 2018 23:30:08 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id bb7-v6so1094334plb.13 for ; Sun, 21 Oct 2018 23:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=avWwK56TFSkz1jZg5eSppih0rIeO2iIKpvVArQutG2M=; b=GyUaWllr+lh/Qe1Ql5+DlrRVfXSYZE03epiB+3QH9/1502mv56LLZqqra71WZfePVT ykwtGJBK5dQDBkZKJaQWOBSy7YLIf6ADZ/8TRT4ZMn1GkX5AKdRksxiWkeqXyYNB6KT4 qtQey1Fc0XzRKSDh79+u37+1spi1mgnR7yIE0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=avWwK56TFSkz1jZg5eSppih0rIeO2iIKpvVArQutG2M=; b=G5Uk6ceJ2axM9BqziYmJCOzgkT4W/40fUvFl269tphRqdJUg3cJp40SNsbwIiXIkTg 6tAx5ncdYQ8A23PU6FkPZoPf4b0UNeLiUIW6Xxsvt66v8nnIK4lkTDoMINfvZRZx/viM Uf0HfYhYxHEpRKykfv/qmtDyzW2ieLKcQR7riqxA/oS6eR3irwsV/htIK/ScdrBlxEZT v43lPxaLrjhPpipNfEbKgHblgzBqGvnMxU3nzMipenG4HpJsBhshyyctvb9GVBsMvqc8 mHYLkEvwwEqxDMMHryFVsg8Xve9tVect9fzO65EStBRvonEPf9gIuu7b9ZqQbgom24kw uPIw== X-Gm-Message-State: ABuFfoi7qtS7tNOCwx5sLu/VTGfNSyABahJg7qUN1UkOogfPgv12p844 jDmMbRGMs2OYhz5YtuSQCg1ei3ANz9M= X-Received: by 2002:a17:902:ea:: with SMTP id a97-v6mr43299145pla.164.1540189807623; Sun, 21 Oct 2018 23:30:07 -0700 (PDT) Received: from localhost.localdomain ([117.241.99.11]) by smtp.gmail.com with ESMTPSA id x73-v6sm41681392pfk.139.2018.10.21.23.30.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 21 Oct 2018 23:30:07 -0700 (PDT) From: Sumit Garg To: edk2-devel@lists.01.org Date: Mon, 22 Oct 2018 11:59:35 +0530 Message-Id: <1540189776-22806-1-git-send-email-sumit.garg@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [edk2] [PATCH v5 0/1] Add ArmPkg/Optee library APIs X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: daniel.thompson@linaro.org, tee-dev@lists.linaro.org, michael.d.kinney@intel.com, joakim.bech@linaro.org MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Changes in v5: Define RFC4122_UUID struct using network byte order instead of 16 byte octects for passing Trusted Application UUID. Changes in v4: Replaced abbreviations with full name which are not defined in [1]. Also used EFI_GUID for Trusted Application UUIDs. [1] https://edk2-docs.gitbooks.io/edk-ii-c-coding-standards-specification/content/v/release/2.20/4_naming_conventions/#table-2-efi-supported-abbreviations Changes in v3: Removed GlobalPlatform TEE return codes (IndustryStandard/GlobalPlatform.h) that were rejected by EDK2 maintainers. Rather used custom ones for this OP-TEE driver. Changes in v2: 1. Separate patch for MdePkg/Include/IndustryStandard/GlobalPlatform.h. 2. Correct comments style for struct members. 3. Update commit message. Sumit Garg (1): ArmPkg/OpteeLib: Add APIs to communicate with OP-TEE ArmPkg/Library/OpteeLib/OpteeLib.inf | 2 + ArmPkg/Include/Library/OpteeLib.h | 88 +++++ ArmPkg/Library/OpteeLib/OpteeSmc.h | 53 +++ ArmPkg/Library/OpteeLib/Optee.c | 392 ++++++++++++++++++++ 4 files changed, 535 insertions(+) create mode 100644 ArmPkg/Library/OpteeLib/OpteeSmc.h -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel