Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DD2A8C433EF for ; Sat, 29 Jan 2022 21:31:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CCA518192A; Sat, 29 Jan 2022 22:31:02 +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="KbhYMjbL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8655283677; Sat, 29 Jan 2022 22:31:01 +0100 (CET) Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (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 AE8B38169D for ; Sat, 29 Jan 2022 22:30:58 +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-il1-x131.google.com with SMTP id i1so8442282ils.5 for ; Sat, 29 Jan 2022 13:30:58 -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:mime-version :content-transfer-encoding; bh=740VtFeNycMk5TeBv6dQjz9EQei4WK/dTG1+OyrsxUo=; b=KbhYMjbL+XOuM3RyLCoPeBk4aS0qeb90dA5BCBufm1LnyZajmktBTMKMh9LhBJKwHm wDl+rv8BtdnE+eR7RWiLZliAniJkt36P/MePvYactGaa7ozZM/8ohNie/7SRv+Pqyq5l ItSkNSRhbPSud9J8hRIVEFB1XBb4/GL3+MZJ8= 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:mime-version :content-transfer-encoding; bh=740VtFeNycMk5TeBv6dQjz9EQei4WK/dTG1+OyrsxUo=; b=lNAkzP+i1NC2gHANWfTXTEpH/3KK6p5Nnv7GB2GoPxIkGkPvsSI86eWjBw9TG2g/g0 0mGgY8gXOBrlTLmSMxxadYn/i2v7PHCzehWEc0Vmw8nU5QrxQXWrJsH8HIa9Lw8vXWKT Qtn2Sa6ub2f6ZMMNTIV+QLCeXDtn1hIj/AhBMzsxqKGhPw+ZC/FaSP9wK1Vwtbq3/T2O 1tWWpgFY+kFnPGhR8R06DUgo1QR+u0x6MRjnXlF50mBmTYIcGZAtTmXfFESorJBHWg2Y UjAcZDBFyGQmyADrShnZMXkwipy3V4pFGKUXf4Y70z/Jt15o/AL3jzqJsuFtkeli6+ZF IJDw== X-Gm-Message-State: AOAM531h5FIUnsn+gn9rYYLS9B9Xo+NcrZbwCefcF63kLJeJ+gXCVzeB nYMTtWcFMTA3pWhHmcLoPvkvzSdhAeBY9Q== X-Google-Smtp-Source: ABdhPJwQSgmqHMl57v7fDwkpLl2E4LbGxRgD+IB38JHVdBTSA/KIzp8ykJ8VY1EayDzjmhpaluP+ew== X-Received: by 2002:a05:6e02:188a:: with SMTP id o10mr9432188ilu.89.1643491857418; Sat, 29 Jan 2022 13:30:57 -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 s16sm6344900iow.10.2022.01.29.13.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 13:30:57 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Simon Glass , Andy Shevchenko , Bin Meng Subject: [PATCH] acpi: Move acpi_write_tables() to a generic header Date: Sat, 29 Jan 2022 14:30:52 -0700 Message-Id: <20220129213052.531779-1-sjg@chromium.org> X-Mailer: git-send-email 2.35.0.rc2.247.g8bbb082509-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean This function is used by both x86 and sandbox. Put it in a common header file. Signed-off-by: Simon Glass --- arch/sandbox/include/asm/acpi_table.h | 2 +- arch/x86/include/asm/acpi_table.h | 2 -- include/acpi/acpi_table.h | 10 ++++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/arch/sandbox/include/asm/acpi_table.h b/arch/sandbox/include/asm/acpi_table.h index ae17f6c5197..cb10eb542b2 100644 --- a/arch/sandbox/include/asm/acpi_table.h +++ b/arch/sandbox/include/asm/acpi_table.h @@ -6,6 +6,6 @@ #ifndef __ASM_ACPI_TABLE_H__ #define __ASM_ACPI_TABLE_H__ -ulong write_acpi_tables(ulong start); +/* Empty for now, this file is required by acpi/acpi_table.h */ #endif /* __ASM_ACPI_TABLE_H__ */ diff --git a/arch/x86/include/asm/acpi_table.h b/arch/x86/include/asm/acpi_table.h index 0d07f7cad87..50dcf0e3ca2 100644 --- a/arch/x86/include/asm/acpi_table.h +++ b/arch/x86/include/asm/acpi_table.h @@ -65,8 +65,6 @@ int acpi_write_dbg2_pci_uart(struct acpi_ctx *ctx, struct udevice *dev, */ int acpi_create_gnvs(struct acpi_global_nvs *gnvs); -ulong write_acpi_tables(ulong start); - /** * acpi_get_rsdp_addr() - get ACPI RSDP table address * diff --git a/include/acpi/acpi_table.h b/include/acpi/acpi_table.h index c98c874fe40..4030d25c66a 100644 --- a/include/acpi/acpi_table.h +++ b/include/acpi/acpi_table.h @@ -913,6 +913,16 @@ void acpi_fill_header(struct acpi_table_header *header, char *signature); */ int acpi_fill_csrt(struct acpi_ctx *ctx); +/** + * write_acpi_tables() - Write out the ACPI tables + * + * This writes all ACPI tables to the given address + * + * @start: Start address for the tables + * @return address of end of tables, where the next tables can be written + */ +ulong write_acpi_tables(ulong start); + #endif /* !__ACPI__*/ #include -- 2.35.0.rc2.247.g8bbb082509-goog