From patchwork Tue Feb 20 17:49:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 128942 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4898136ljc; Tue, 20 Feb 2018 09:50:12 -0800 (PST) X-Google-Smtp-Source: AH8x227LARYaJU/WIiIPjS9aEfwv3O0LLnMIR2YZdHIYiKANqN69DPRizmf73hKorWjBabrTj28W X-Received: by 10.101.77.12 with SMTP id i12mr327641pgt.75.1519149012410; Tue, 20 Feb 2018 09:50:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519149012; cv=none; d=google.com; s=arc-20160816; b=Igw9NfbFaWr0rzeagCH1CJ74LTeoe/n6gZUK6QjS6SVCqdXilM11AOYuVgInlaLgG/ EnwK5zT7YGMvbBn4kkB7sLVZhyDIHolsdLs7XW1kUwG4bNPIgpxaCi0sCOxChuUGfY8x TyHYk89kgcea+z45sQeRvEViniAuPNGNZc4TMbzbsq+jJhnwiK0ynk/nrufOuWZoJvXY ZBCfbEPqZe0NxMA572Nc9etE3yIT6dYp8DX3qemNduYgVGuXQ46nPT5BF6bYmFACf+aQ bgp8Wwr8+67q0TRV82qFqpZF2xx3WsDBF9XOxvHQKg1qhLy5jpF9i4qU3H9x46mIuo/q ysxQ== 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=+4FbDh1IsXoRdzNBcVUUAvgR+gr4igqeCaLi8kN+lhE=; b=Paghp90wPzdJUt5DBx8S5u+XP08CRLw5+sxePJ2DC76f5YnAch3kFQGIjwGA6DJGQD M0uUeUGl8ELE5LZAYSODCJ9eUMDGwO5oZwLnBwrnkUUEtq8OSUW+fFQ/yPHtV4Uk9Y55 aCcnMg1zMa2PPrcjThhsLFEvjaju1eA+5NQus7A9cEdk0zZ7/yNY1C37ueHrEdMxhWhO yr6bD4zwqftCLVDqYcJtXkuXeKXX+CSiQSpWkIWVYYsZUTBdWSjwPnVb/+uO98QfneDT 5p+0kyffm4rrfbB7nOu7EcAjnwiQhxnfTvNWeSKOOBko3a1J+WseEaqRGh4N5Uhhfcf8 Ck6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WVp4jMDw; 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 k67si6322465pgk.246.2018.02.20.09.50.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Feb 2018 09:50:12 -0800 (PST) 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=WVp4jMDw; 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 DBD7121FD73E9; Tue, 20 Feb 2018 09:44:08 -0800 (PST) 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=2a00:1450:400c:c0c::243; helo=mail-wr0-x243.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (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 98C7C21F0DA69 for ; Tue, 20 Feb 2018 09:44:05 -0800 (PST) Received: by mail-wr0-x243.google.com with SMTP id z12so10669464wrg.4 for ; Tue, 20 Feb 2018 09:50:04 -0800 (PST) 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=OJQ1Q/xN8f8k4owBiYwjYAanesAXGXWxjMh/lYthl6o=; b=WVp4jMDwmFspCmY2AhaG6OBcEo6HkyqNYIksfiWHsPtPtaoQXf1tljvSLROqPnrF4o 2Sx2Hv9k3DCTCT9qHSyVcdkfheeIis003HloOFaFsRA11rk5MfuT0y6eeFFHj7ALJ8ET hojxuLbTdSkgnWr+PV1xmLX9v6+iISJbRgMug= 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=OJQ1Q/xN8f8k4owBiYwjYAanesAXGXWxjMh/lYthl6o=; b=tMAYaQ0uGczRKqI2zyj60WJ2G4EgHUhCCW3utZCF0eqLYXhEU1OF6TJ/AXjmSRnAr3 CPfciUSNd3K/pQaYY1XoBYuB47J1cuUrIY6jh6lO5QzTHK6yiL186jXqTMPdznYd93Hs /pung7cdl8lV/F6mb+rECFkpIXplNxnnXGDUlAyzBDRWwAQ6029cAW4g4vSRx5VFY4h2 8XDQJ8ENuryqJfWUV+qwNbAcAOdopLxvb7Yqm+O9YxZJLFIMMpfl+/KxTeN5SIOys3Kl 2lCDNgJBCwdh6It/7E8OyEP/STBfLYxPS2JWZNNrRy6L10SkiX3EqI5PLCQ26EcrxfKz 8JzQ== X-Gm-Message-State: APf1xPDr24zO77h4GNDjBFSuvBfj/I66w6yp5Fy5KyhqmI9OQ/RQTnca YS1LxZ0ZU0v0bI0BGhfbHM88M9Wh8hA= X-Received: by 10.223.176.201 with SMTP id j9mr430777wra.210.1519149002635; Tue, 20 Feb 2018 09:50:02 -0800 (PST) Received: from localhost.localdomain ([105.149.187.179]) by smtp.gmail.com with ESMTPSA id u63sm18282208wrc.26.2018.02.20.09.50.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Feb 2018 09:50:01 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 20 Feb 2018 17:49:41 +0000 Message-Id: <20180220174944.525-5-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180220174944.525-1-ard.biesheuvel@linaro.org> References: <20180220174944.525-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-platforms v2 4/7] Platform/NinetySixBoards: introduce LsConnector protocol X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Introduce a protocol describing the presence of a 96boards LS connector, and identifying the type of mezzanine that has been installed. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Platform/NinetySixBoards/Include/Protocol/LsConnector.h | 35 ++++++++++++++++++++ Platform/NinetySixBoards/NinetySixBoards.dec | 3 ++ 2 files changed, 38 insertions(+) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/NinetySixBoards/Include/Protocol/LsConnector.h b/Platform/NinetySixBoards/Include/Protocol/LsConnector.h new file mode 100644 index 000000000000..a1f0132c85ae --- /dev/null +++ b/Platform/NinetySixBoards/Include/Protocol/LsConnector.h @@ -0,0 +1,35 @@ +/** @file + + 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 _LS_CONNECTOR_H_ +#define _LS_CONNECTOR_H_ + +#define LS_CONNECTOR_PROTOCOL_GUID \ + { 0xae548d4c, 0x9062, 0x4eed, { 0x83, 0x5f, 0xf5, 0x10, 0xf8, 0xfc, 0x48, 0xaf } } + +typedef struct _LS_CONNECTOR_PROTOCOL LS_CONNECTOR_PROTOCOL; + +typedef enum { + MezzanineUnknown, + MezzanineSecure96, + MezzanineMax +} MEZZANINE_TYPE; + +struct _LS_CONNECTOR_PROTOCOL { + MEZZANINE_TYPE MezzanineType; +}; + +extern EFI_GUID gNinetySixBoardsLsConnectorProtocolGuid; + +#endif // _LS_CONNECTOR_H_ diff --git a/Platform/NinetySixBoards/NinetySixBoards.dec b/Platform/NinetySixBoards/NinetySixBoards.dec index f7e2b01459d7..5c3fe43dbb24 100644 --- a/Platform/NinetySixBoards/NinetySixBoards.dec +++ b/Platform/NinetySixBoards/NinetySixBoards.dec @@ -25,6 +25,9 @@ [Protocols] ## Include/Protocol/Mezzanine.h gNinetySixBoardsMezzanineProtocolGuid = { 0xf0467a37, 0x3436, 0x40ef, { 0x94, 0x09, 0x4d, 0x1d, 0x7f, 0x51, 0x06, 0xd3 } } + ## Include/Protocol/LsConnector.h + gNinetySixBoardsLsConnectorProtocolGuid = { 0xae548d4c, 0x9062, 0x4eed, { 0x83, 0x5f, 0xf5, 0x10, 0xf8, 0xfc, 0x48, 0xaf } } + [Guids] # PCD scope GUID gNinetySixBoardsTokenSpaceGuid = { 0xe0d2f33a, 0xb7dd, 0x4a69, { 0xb6, 0x76, 0xda, 0xe8, 0xa4, 0x17, 0xa7, 0xb5 } }