From patchwork Fri Feb 23 15:40:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 129393 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp744798lja; Fri, 23 Feb 2018 07:41:16 -0800 (PST) X-Google-Smtp-Source: AH8x224XtRzKfPFaqAm35bFlNA2fkA9DERJX5dnI3qevWTOIC+eTs3f+ZLGMPtjs9SrupwrlDop/ X-Received: by 10.99.110.201 with SMTP id j192mr1782490pgc.59.1519400476116; Fri, 23 Feb 2018 07:41:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519400476; cv=none; d=google.com; s=arc-20160816; b=UGaGveFDTLstP7U8BQ6a504mgZP6Pk0r0L/zbtEgpShvN1nOh8YJlwJz4tVlHfcI47 YsDa4To/o0rgr+PIn8TuFtQmq3DKyp9VD15NB0VOALoFXSDdFzkH8CN5HpzfRfuNm6g9 mtN8POY0hyoUNHQ14nGQbrW451ry8/7WpHhr7KQQl31wE+G2t0nChTUlza/NZKTsRlZM mJIn2VeM0RGzArHQTngEa0WkWyhLHjkOd0aJRXKpBcRVrKG+VzHKo/3eZ6UI7u7S6wG0 dqzBVH/fexRR80EI5C2SoBHWjHD4Yk4DTt2F9p6Z9ULeAE7hiQnZZXm2T2QRJuPFMP0t Ldnw== 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=+cVN9q3Dq9XwVmXRrZRvTG3ARolq3Bx0/iWt3fgrsZU=; b=sgzsqCR0Sei0i0I7b9tSePZizvt+YabTy7ImfAu4rdq8dvWOVLK/jYhhKEAeiY6GUO W0awlMZgv6ms6aJbxUE9wMaCykJXoat6jXoNo4oHMhiBK/ft7hntttpfnQZTumK/tJ7X svcmTonIs7deR7qT+Gi6Cs+OYpsj3d9fxt9QeWp1MICZ1n0wob8SoaSibQOsPdirQ3AB uHa6SLvavImG3w3vl3bNGfQFsxuhiiWIW3YPQa561t4v0DFpZgJ5KL0XQTyzz/3koMyV dU4AGOWKt2O0324UTNg83tkCrijc4G72sJkNYggKRajjR6mP0S4C+qQ2N367H8dC0Ajo jr/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=EkswKVmh; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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. [198.145.21.10]) by mx.google.com with ESMTPS id c65si1986792pfa.93.2018.02.23.07.41.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 07:41:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=EkswKVmh; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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 74C162034D8C0; Fri, 23 Feb 2018 07:35:13 -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:c09::244; helo=mail-wm0-x244.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (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 0B5C222436933 for ; Fri, 23 Feb 2018 07:35:10 -0800 (PST) Received: by mail-wm0-x244.google.com with SMTP id h21so5436516wmd.1 for ; Fri, 23 Feb 2018 07:41:11 -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=4Rg4HMMBdKtQJNcQPemOPJpIwYs84FKabT7dWWptgZI=; b=EkswKVmhUiZcFmxqEQs356ElpDbSrTPAOA9KksWLv59ePiyzHplaCL0G49RMxPJTWJ q8fLnkpuYrbkwPDSTdPlx/SZFBVAOycLe0KOXMj/cJ98242ydojVY3XBcruNjymZ8d+e dPljmC6Zaxb1m8Dm1YePXi3d+VHLxYzawWERE= 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=4Rg4HMMBdKtQJNcQPemOPJpIwYs84FKabT7dWWptgZI=; b=GbPa89RDpWjZeoF4XP7D1WEXKVeOeS9Hnj2E7rIc3b1QW9z3vQbI3y0UVjAt+r53bv IgRi0qNpL5x7lsA7ZZutSZk9AhcXKaB3bFil2Nao6EjtzHqInBTSqUvGnT7R4J0tLn06 LFoAALQZFFobd93i2JGf9imPdfuvug3RFb3BAk9AgVGozfkCAO5YkAAHvUPjWy070I8P +74kzqHESNahu84FY1BjDxptw5hg5i0zRxAjx3xlCu3DbhKcoxvirZQyfz85AD+B33vc Xqa1/akBdGGtI2xTGhZksPgJq9prnruQM9k/otzI98j8eMRbZ8dcBreKYsf/R0TpnXbE 6+cg== X-Gm-Message-State: APf1xPAWOv9MLCZYMVEWgjNaT3qtRLoM8nNmdITg6jXWaX/qTn9RXIx4 gQXiZsJELV5b8bw6iDvpkBH3Ef9DFmU= X-Received: by 10.28.232.16 with SMTP id f16mr2259139wmh.92.1519400470315; Fri, 23 Feb 2018 07:41:10 -0800 (PST) Received: from localhost.localdomain ([196.90.4.100]) by smtp.gmail.com with ESMTPSA id 188sm2273215wmg.29.2018.02.23.07.41.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 07:41:09 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Fri, 23 Feb 2018 15:40:49 +0000 Message-Id: <20180223154052.9828-4-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180223154052.9828-1-ard.biesheuvel@linaro.org> References: <20180223154052.9828-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-platforms v3 3/6] Platform/96Boards: 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 low speed (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/96Boards/96Boards.dec | 3 ++ Platform/96Boards/Include/Protocol/LsConnector.h | 35 ++++++++++++++++++++ 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/96Boards/96Boards.dec b/Platform/96Boards/96Boards.dec index 2a063ced9e4a..fa8e639b1a11 100644 --- a/Platform/96Boards/96Boards.dec +++ b/Platform/96Boards/96Boards.dec @@ -25,6 +25,9 @@ [Protocols] ## Include/Protocol/Mezzanine.h g96BoardsMezzanineProtocolGuid = { 0xf0467a37, 0x3436, 0x40ef, { 0x94, 0x09, 0x4d, 0x1d, 0x7f, 0x51, 0x06, 0xd3 } } + ## Include/Protocol/LsConnector.h + g96BoardsLsConnectorProtocolGuid = { 0xae548d4c, 0x9062, 0x4eed, { 0x83, 0x5f, 0xf5, 0x10, 0xf8, 0xfc, 0x48, 0xaf } } + [Guids] # PCD scope GUID g96BoardsTokenSpaceGuid = { 0xe0d2f33a, 0xb7dd, 0x4a69, { 0xb6, 0x76, 0xda, 0xe8, 0xa4, 0x17, 0xa7, 0xb5 } } diff --git a/Platform/96Boards/Include/Protocol/LsConnector.h b/Platform/96Boards/Include/Protocol/LsConnector.h new file mode 100644 index 000000000000..f337cfe0f709 --- /dev/null +++ b/Platform/96Boards/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 g96BoardsLsConnectorProtocolGuid; + +#endif // _LS_CONNECTOR_H_