From patchwork Mon Aug 27 11:50:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Garg X-Patchwork-Id: 145182 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4090929ljw; Mon, 27 Aug 2018 04:51:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY1lEViLbt5mcIA8O8JwxOFWIDzZDJMdSJVRCbnhvzo9fBGqGv8XvCPJH3LK+GziHlS/BOK X-Received: by 2002:a17:902:7c8e:: with SMTP id y14-v6mr12946783pll.259.1535370672324; Mon, 27 Aug 2018 04:51:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535370672; cv=none; d=google.com; s=arc-20160816; b=lzjQ1/iSw8ddhw4UYkckVeXrs8e1n3q7hp/HW3as4NpHjWm2VPNHKUKxkO1F3heK7b Lc+uydyCBrp3rW0/wtVPjeJAObNCLgZ49CjzLu/I2N3gGjUyLpDaCLvrtSScSFO9VBWm WwfMyOw7EQqdZFNnJZEJzXToCkRAY0LGSQ/s6ehBMFvxDX63sghvWl1XQe9O3F4/6Tyx B557bO6JsPieJ8bXHPTbc7Xs8WZ+1Xnc62OHHXFI97UXs+4ordStThQiQW2zGQpcmRIp qC7+AD0ItR5j3IYqe4VcM7/xHf/5CmK4L/EtYfXb2NeBiSMsQKHYDc4sqnxgmT7VNSQF advw== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=HNDBIL3f2xFAO1YN7Y2GuFI7VCsibhF2KtGHh6t4h+U=; b=moPWOjvBmMMV1ViLu4cQLlc1HnkmyKzKoW6Nggm3RkBuTuPJE0TvEAfoxYC68gqJFC MPIlEqivWBe0lXq0T3e6zoTxFTJ7sDbpb6aZWK1UMIPu3GpNyxdBEtbukni3soLwy2MN lpJVnV4VndRFCaRO2C8bQzjUOmr2IHgqpDsRi2Wx9Bkhw3wCDcJmr1lU5y/2ycqL1yM0 C7L5MkwWmenop71gxlLLgq/0VivVQlFMJc4ymv7B+aFhf8+Sij358RYxZtW1tQnQJogt gXX8Gwn/o5GoxPe/h9I9UD0MbouMN+7CcZzlOT/Z3InCrNY4EXWTkJeaAKcbBr/skfhJ ZCSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MZRwyoJG; 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 t32-v6si1719780pgl.484.2018.08.27.04.51.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 04:51:12 -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=MZRwyoJG; 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 D8934210FC0C3; Mon, 27 Aug 2018 04:51:11 -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::542; helo=mail-pg1-x542.google.com; envelope-from=sumit.garg@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (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 87DB0210FB9FA for ; Mon, 27 Aug 2018 04:51:10 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id r1-v6so7321932pgp.11 for ; Mon, 27 Aug 2018 04:51:10 -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:in-reply-to:references; bh=VfmNJ5cKj+eRblHamSpHnEa1qLSW0dGOIsRM+RLXAdE=; b=MZRwyoJGvmnJN+McqLLMC6oQS9yqrqFgGN+cp2DKHeLuxArx5FNwunPreeotM7qpfc azMj8BPseWd7uCjQ3xVCMn1kTSWlze/fmhDbjEGoWBEA8EspE/IO18QiWfn1M64VqXTE pYaDj0LaJSPCOIku4LeAREsg01X5kPfNzFHLY= 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:in-reply-to :references; bh=VfmNJ5cKj+eRblHamSpHnEa1qLSW0dGOIsRM+RLXAdE=; b=d98J4PdE1h2jjh99CtTv+FAwCHOel1yOImdLtlD9VINoVya0pVhglaHIcV0ZePoJuU eKg1DS+/vDMg+V9xIac1A4jzSKHmoA3R5Z7pUKGog/EB26DQtBw8IxYRDZI7QfhOPdSa 9gPE6O9u8ucOBiHBaHVzevlR22PJ/1R5T4Mqszg+T1HBbnqC5zNI5ybpBjJk45VVZoE9 a3VZ1rbqxnkE9i2SCJ4O05fK2b0BNz8BLO3IF8UxwyptcgrRYUDEJJ+8hPEbC6lmWG0N Q329C5dV6Slb/dowo9Q38/IGgEQjX1datrchb4tpfEwP1XEifDvD8NQaanZtfHIAUV+V DOgQ== X-Gm-Message-State: APzg51ClaOD/By6wptH6DLDHS6fBFn2HX7Kkht28Gp5Hd4podfIZJQgl IscnXUuU+9cohupiHaF+mVjeJtWbIw8= X-Received: by 2002:a63:e647:: with SMTP id p7-v6mr11601163pgj.218.1535370669950; Mon, 27 Aug 2018 04:51:09 -0700 (PDT) Received: from localhost.localdomain ([117.212.89.101]) by smtp.gmail.com with ESMTPSA id p11-v6sm26927249pfj.72.2018.08.27.04.51.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Aug 2018 04:51:09 -0700 (PDT) From: Sumit Garg To: edk2-devel@lists.01.org Date: Mon, 27 Aug 2018 17:20:19 +0530 Message-Id: <1535370620-10032-2-git-send-email-sumit.garg@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535370620-10032-1-git-send-email-sumit.garg@linaro.org> References: <1535370620-10032-1-git-send-email-sumit.garg@linaro.org> Subject: [edk2] [PATCH v2 1/2] MdePkg/IndustryStandard: Add Global Plaform header file 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, Liming Gao , Michael D Kinney MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Add Global Plaform header file specific to TEE Client API Specification v1 . Cc: Michael D Kinney Cc: Liming Gao Cc: Ard Biesheuvel Cc: Leif Lindholm Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sumit Garg --- MdePkg/Include/IndustryStandard/GlobalPlatform.h | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 MdePkg/Include/IndustryStandard/GlobalPlatform.h -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Acked-by: Ard Biesheuvel diff --git a/MdePkg/Include/IndustryStandard/GlobalPlatform.h b/MdePkg/Include/IndustryStandard/GlobalPlatform.h new file mode 100644 index 000000000000..72c5af4ef588 --- /dev/null +++ b/MdePkg/Include/IndustryStandard/GlobalPlatform.h @@ -0,0 +1,27 @@ +/** @file + Standardized Global Platform header file. GlobalPlatform TEE Client API + Specification v1.0: + + Copyright (c) 2018, Linaro Ltd. All rights reserved.
+ + This program and the accompanying materials + are licensed and made available under the terms and conditions of the BSD License + which accompanies this distribution. The full text of the license may be found at + http://opensource.org/licenses/bsd-license.php + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#ifndef _GLOBAL_PLATFORM_H_ +#define _GLOBAL_PLATFORM_H_ + +#define TEEC_ORIGIN_COMMS 0x00000002 + +#define TEEC_SUCCESS 0x00000000 +#define TEEC_ERROR_BAD_PARAMETERS 0xFFFF0006 +#define TEEC_ERROR_OUT_OF_MEMORY 0xFFFF000C +#define TEEC_ERROR_COMMUNICATION 0xFFFF000E + +#endif