From patchwork Wed Dec 1 16:02:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1562274 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=NUTXjD3I; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4J43rk0j9Wz9sRN for ; Thu, 2 Dec 2021 03:07:34 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1F3D0830F8; Wed, 1 Dec 2021 17:05:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="NUTXjD3I"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AA130830C5; Wed, 1 Dec 2021 17:04:34 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 261E6830B7 for ; Wed, 1 Dec 2021 17:04:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oi1-x235.google.com with SMTP id n66so49434376oia.9 for ; Wed, 01 Dec 2021 08:04:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pbWVSG6YNMrV5HGa0x1OpRtIp0cj+rjWY9RNVmRd6RM=; b=NUTXjD3II4Dg4SXGmSVtvVhiRIBnPSJdHBF0vfo87cMnX1e7fJdNYL3toCBWeDeWM2 OGcW9u63sgyqhl+K/AozYgl2vwtVI1BKKQ61Xfz4VwkvOBz0ccPP+9705sffiutGMRs5 1ZZmXPro8G3ZdD6UIPxJheeMIAcDu/5jwlEx0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pbWVSG6YNMrV5HGa0x1OpRtIp0cj+rjWY9RNVmRd6RM=; b=K45WY1dmbio1Yp3q3bK/WCCc6tJlkxgX2ZUIeqSuZQUkJTviI31acVhUn6n4tYyUsX 29J1QViyW+worke2H0Adz2TQgkmHlOtuP5T/M7+HU9B+SebXqcxqy9ThPn3L2zzNETLw NvbCpUo0JHz7WSFZ73rr60vEPSKdxMYnZvBGAhpOc9BoQezAlr0K700BUtlqRsRW8UDP bNzsgY1FRZJMO3K/bjXubkHDk2wIBbyQeu7oxsPkSpdTPduOfajuHPlVVtrWKxy0igat OAQR+xPn/c/klcsh7yIpWsRdxLoIYze7KJLwmfY1c6UuOBSr2S5LE9Voqc5DRM/Og3ss 6Jmw== X-Gm-Message-State: AOAM533niZ05qEQhu8a12/mQQIzXyeDugDoo1Hz+zFF+SzsMJfGI7DoN TDvLPfnTfq78ABSEuZlS6JpcAYafOoYsKQ== X-Google-Smtp-Source: ABdhPJzDi/ohX7naY/B4Gu7DnDvsFYJ1x+ea0QjbnpnNdSn10zaiYeFohcIntXZx4Lr5jbAAkJZS6Q== X-Received: by 2002:a05:6808:1a28:: with SMTP id bk40mr6817709oib.26.1638374664014; Wed, 01 Dec 2021 08:04:24 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id a3sm89902oil.32.2021.12.01.08.04.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 08:04:23 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Bin Meng , =?utf-8?q?Marek_Beh=C3=BAn?= , Simon Glass Subject: [PATCH 11/40] acpi: Move acpi_fill_header() to the generic header Date: Wed, 1 Dec 2021 09:02:45 -0700 Message-Id: <20211201160315.2203099-12-sjg@chromium.org> X-Mailer: git-send-email 2.34.0.rc2.393.gf8c9666880-goog In-Reply-To: <20211201160315.2203099-1-sjg@chromium.org> References: <20211201160315.2203099-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This function is not x86-specific so move it into the common header file. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- arch/x86/include/asm/acpi_table.h | 1 - include/acpi/acpi_table.h | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/acpi_table.h b/arch/x86/include/asm/acpi_table.h index d5c8805df38..b9c8911b514 100644 --- a/arch/x86/include/asm/acpi_table.h +++ b/arch/x86/include/asm/acpi_table.h @@ -24,7 +24,6 @@ struct acpi_table_header; /* These can be used by the target port */ -void acpi_fill_header(struct acpi_table_header *header, char *signature); void acpi_create_fadt(struct acpi_fadt *fadt, struct acpi_facs *facs, void *dsdt); int acpi_create_madt_lapics(u32 current); diff --git a/include/acpi/acpi_table.h b/include/acpi/acpi_table.h index a28eb71f4d7..9e43849259c 100644 --- a/include/acpi/acpi_table.h +++ b/include/acpi/acpi_table.h @@ -698,6 +698,14 @@ void acpi_setup_base_tables(struct acpi_ctx *ctx, void *start); void acpi_write_rsdp(struct acpi_rsdp *rsdp, struct acpi_rsdt *rsdt, struct acpi_xsdt *xsdt); +/** + * acpi_fill_header() - Set up a table header + * + * @header: Pointer to header to set up + * @signature: 4-character signature to use (e.g. "FACS") + */ +void acpi_fill_header(struct acpi_table_header *header, char *signature); + #endif /* !__ACPI__*/ #include