Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5595375imm; Mon, 23 Jul 2018 02:32:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfYsFJzD7f0/r7oX5LfYblW8A4FYKv8bUubgpn0bZfrCpRB5a/hG0QNlG0NhqBp1AA0Id5s X-Received: by 2002:a17:902:9b81:: with SMTP id y1-v6mr712143plp.239.1532338360823; Mon, 23 Jul 2018 02:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532338360; cv=none; d=google.com; s=arc-20160816; b=Qme83vBszNlRw6qgokpb0mGMAErmPyY0MopFNXu5EguT9gYMqYx2NOEsOLfYQaZ5LL MIhN9JMuF0tp3brYmrFccdhelQwi6YYsb76TRFf6O00ZxORj3kHzvv5TAkTus+y1nlZj kc6QVsU3gjFxTqbu5fTgSWRNliNd5ZvutRhF9JZQis7CzYxd84Rb4IXFUQUoHdm1jYox EKYOukgK5lw9uzaf+rf6RnvNewWSS0LY17IMeURwRmmxWy+YGJidyN65dVk9zlz7oB5v Fu5V2VyRIakwsxQEd4+/cy1EIo9jq20F+U2xz/o0wqN/Velo65a25LDM3K8frdZKeJNU OxJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=PjVJxEmQ8fWM1pDVV27W8hbOmhTQCW7hV4jo5UNlwb8=; b=Bla0Me3Q5F8MWLOlGFvXsEDicAR10l1iyrF2vjXYR+o/DfQBQiRTCM6YUT5YkBEukG Z992F9M9hmKvC7klWGIthvxHGCEBxkOIM50Qe2nUSna1bd0OuVAC4HcgmRw9LLANl1qI Kc2FLpdp5sNToFxE/gL/ahXepIXIPScE5u3f88wEBME5fANLmCbf/yXvx3wBvdK7gnOR I+XyiIWj3FJV68a3lj12WmNickhmhNk8aCxRUK+yJDsU6huOM69LVyx3qNO8MAlDkeoW rD4EK3N9SQjGwCTdGAQRnLR012TaXYpvty1FPb+Xc/1a4DO/pp3VdC4ENUW9IZGcM+PS W/pQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay1-v6si493673plb.266.2018.07.23.02.32.26; Mon, 23 Jul 2018 02:32:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388276AbeGWKbr (ORCPT + 99 others); Mon, 23 Jul 2018 06:31:47 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:25501 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388217AbeGWKbq (ORCPT ); Mon, 23 Jul 2018 06:31:46 -0400 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="42543720" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 23 Jul 2018 17:31:13 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id E3EEA4B65105; Mon, 23 Jul 2018 17:31:10 +0800 (CST) Received: from localhost (10.167.225.56) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server id 14.3.399.0; Mon, 23 Jul 2018 17:31:11 +0800 From: Chao Fan To: , , , , , , , CC: , , , Chao Fan Subject: [PATCH v4 1/4] x86/boot: Add acpitb.h to help parse acpi tables Date: Mon, 23 Jul 2018 17:29:05 +0800 Message-ID: <20180723092908.32656-2-fanc.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180723092908.32656-1-fanc.fnst@cn.fujitsu.com> References: <20180723092908.32656-1-fanc.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain X-yoursite-MailScanner-ID: E3EEA4B65105.AB944 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: fanc.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to parse ACPI tables, reuse the head file linux/acpi.h, so that the files in 'compressed' directory can read ACPI table by including this head file. Signed-off-by: Chao Fan --- arch/x86/boot/compressed/acpitb.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 arch/x86/boot/compressed/acpitb.h diff --git a/arch/x86/boot/compressed/acpitb.h b/arch/x86/boot/compressed/acpitb.h new file mode 100644 index 000000000000..f8ab6e5b3e06 --- /dev/null +++ b/arch/x86/boot/compressed/acpitb.h @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#include + +#define ACPI_MAX_TABLES 128 + +/* Function to get ACPI SRAT table pointer. */ +struct acpi_table_header *get_acpi_srat_table(void); -- 2.17.1