From patchwork Thu Nov 10 13:52:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 81664 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp741599qge; Thu, 10 Nov 2016 06:06:24 -0800 (PST) X-Received: by 10.37.163.164 with SMTP id e33mr5448431ybi.172.1478786784715; Thu, 10 Nov 2016 06:06:24 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id n80si3454216qkl.10.2016.11.10.06.06.24; Thu, 10 Nov 2016 06:06:24 -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 6368360876; Thu, 10 Nov 2016 14:06:24 +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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 AC1E460E61; Thu, 10 Nov 2016 13:58:57 +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 7218260E80; Thu, 10 Nov 2016 13:58:54 +0000 (UTC) Received: from mail-pf0-f177.google.com (mail-pf0-f177.google.com [209.85.192.177]) by lists.linaro.org (Postfix) with ESMTPS id 4AAAC60829 for ; Thu, 10 Nov 2016 13:53:54 +0000 (UTC) Received: by mail-pf0-f177.google.com with SMTP id d2so147366239pfd.0 for ; Thu, 10 Nov 2016 05:53:54 -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=YX1z46bSXtwKr7taKbetk+hg49mn81T19P+JwdaR81o=; b=A9Fr8oKSs78gX/IpPL3LlWDlWalPaKrU5pzNKyuZqEC+5tRUhcHnKu3QzqA+qup5vb ck1k9TcUjUO1vISa4nMP2GCoi3zMONWkQmGpx8hRorE0TuM0xSWrWRMR8BWfpAcgzqtC w+n0voLu1ko1e9Fhz9EghJlWuBumBWLgk+rgsWLPHiArXU3NWB3CpqaWWmgjrwOoDPXh if3UOWk23R7Vuhwvxb6O7Ubj/pBG7N9MOwZzF1N257bqkKil0cqzhxIQ5jW09PUIhjCu xxAkTTU9diXVJ+/m11QDpSiExsSYMshQhPiEgRrcGL84ATy2Lwnzsd8pL+uXeCNEa9SV BUxw== X-Gm-Message-State: ABUngvdEkenP+aZzNSt7F/k6PnVeCPJRVdhDJrIX3oR9pBQISNPMIlU5ON/6/pVHpQczlcEN//0= X-Received: by 10.98.97.71 with SMTP id v68mr10209506pfb.133.1478786033596; Thu, 10 Nov 2016 05:53:53 -0800 (PST) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id g78sm7625705pfe.19.2016.11.10.05.53.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Nov 2016 05:53:53 -0800 (PST) From: Heyi Guo To: linaro-uefi@lists.linaro.org Date: Thu, 10 Nov 2016 21:52:20 +0800 Message-Id: <1478785950-24197-17-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1478785950-24197-1-git-send-email-heyi.guo@linaro.org> References: <1478785950-24197-1-git-send-email-heyi.guo@linaro.org> Cc: Heyi Guo Subject: [Linaro-uefi] [PATCH 16/27] 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. Only add declaration at header file, the actual implementation code at OemMiscLib. D02 uses another SAS driver which doesn't need this interface. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo --- Chips/Hisilicon/Include/Library/OemMiscLib.h | 1 + Platforms/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Chips/Hisilicon/Include/Library/OemMiscLib.h b/Chips/Hisilicon/Include/Library/OemMiscLib.h index 19d92e0..6f18c0f 100644 --- a/Chips/Hisilicon/Include/Library/OemMiscLib.h +++ b/Chips/Hisilicon/Include/Library/OemMiscLib.h @@ -44,6 +44,7 @@ BOOLEAN OemIsMpBoot(); UINT32 OemIsWarmBoot(); VOID OemBiosSwitch(UINT32 Master); +BOOLEAN OemIsNeedDisableExpanderBuffer(VOID); extern EFI_STRING_ID gDimmToDevLocator[MAX_SOCKET][MAX_CHANNEL][MAX_DIMM]; EFI_HII_HANDLE EFIAPI OemGetPackages (); diff --git a/Platforms/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c b/Platforms/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c index c709f8b..fa1039b 100644 --- a/Platforms/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c +++ b/Platforms/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c @@ -134,3 +134,8 @@ VOID OemBiosSwitch(UINT32 Master) (VOID)Master; return; } + +BOOLEAN OemIsNeedDisableExpanderBuffer(VOID) +{ + return TRUE; +}