From patchwork Mon Nov 14 11:29:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 82081 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp1082598obn; Mon, 14 Nov 2016 03:44:48 -0800 (PST) X-Received: by 10.237.40.38 with SMTP id r35mr10628812qtd.0.1479123888272; Mon, 14 Nov 2016 03:44:48 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id u6si2991913qkc.182.2016.11.14.03.44.48; Mon, 14 Nov 2016 03:44:48 -0800 (PST) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id F1A0A6087C; Mon, 14 Nov 2016 11:44:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id B1FC560D87; Mon, 14 Nov 2016 11:37:49 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8795860D85; Mon, 14 Nov 2016 11:37:45 +0000 (UTC) Received: from mail-pf0-f170.google.com (mail-pf0-f170.google.com [209.85.192.170]) by lists.linaro.org (Postfix) with ESMTPS id 7589D60D85 for ; Mon, 14 Nov 2016 11:33:37 +0000 (UTC) Received: by mail-pf0-f170.google.com with SMTP id d2so29503347pfd.0 for ; Mon, 14 Nov 2016 03:33:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Dpu4ax+BoMdOWKIfvjJ3a8UV7xdP7fRfe3NZyK5+8pI=; b=bD7H0OrI38NzunjcqGyAv+zlc+ysCrJ45BHyJRSx3qjwQDcu8t8s5zPKS7c/FqPmov kXfuywWQeYqOiCDCjTvHPR+YM7l/hlLjYAEv4V4D9KUXYmsWC6AomIkgp7fpG+dsM25m HPIsFgM5ouiTBOgbFLE1yyMlJNMrD43XnR4EVyNP1Akwl0cQLfuCPOnfFBFRT5RJPmO8 0kasMsxFGF3Aeqx3MDE/Eqmj9DsxYbjeE3IgAJ+xkUbfGzIWhynZDKo67uN4JhDbM+78 V22gydF9J40f/vk9nMMjn9Bv33p3KtloIyM+aOBMgeG8tMs8EwommO0XZrqka/G+5SXn dqTA== X-Gm-Message-State: ABUngvfuIgS6g2dqBRhqwXRi6DHm+bR+M1pLyoNW3X7GO3hvfe8yYmLxPnfZ0r35DXtR7KOLc6w= X-Received: by 10.98.160.29 with SMTP id r29mr35380773pfe.103.1479123216657; Mon, 14 Nov 2016 03:33:36 -0800 (PST) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id g82sm34663209pfb.43.2016.11.14.03.33.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Nov 2016 03:33:36 -0800 (PST) From: Heyi Guo To: linaro-uefi@lists.linaro.org Date: Mon, 14 Nov 2016 19:29:47 +0800 Message-Id: <1479122995-50330-21-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1479122995-50330-1-git-send-email-heyi.guo@linaro.org> References: <1479122995-50330-1-git-send-email-heyi.guo@linaro.org> Cc: Heyi Guo Subject: [Linaro-uefi] [PATCH 20/28] D03/OemMiscLib: Add interface for SAS driver X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" Add OemIsNeedDisableExpanderBuffer() interface for SAS driver. The Hisilicon D03/D05 and some internal platforms use the same SAS driver, and they need different configuration about the expander buffer, The SAS driver will check the interface to disable the expander buffer or not. The SAS driver is a binary and will be updated by another patch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo --- Platforms/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Platforms/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c b/Platforms/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c index 75b23d5..c673c42 100644 --- a/Platforms/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c +++ b/Platforms/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c @@ -143,3 +143,8 @@ VOID OemBiosSwitch(UINT32 Master) (VOID)Master; return; } + +BOOLEAN OemIsNeedDisableExpanderBuffer(VOID) +{ + return TRUE; +}