From patchwork Fri Nov 12 07:24:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 519127 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp1338341imj; Thu, 11 Nov 2021 23:24:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyi1WP9/J4m56C81Zky6wxKngc3e9boWPnVfoPBmyqtnb4499U9DL9TL6Qtbm/Sk1lSQca7 X-Received: by 2002:a17:907:86a6:: with SMTP id qa38mr16197643ejc.286.1636701874665; Thu, 11 Nov 2021 23:24:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636701874; cv=none; d=google.com; s=arc-20160816; b=YlVprFgu1drm1Khn5YTlxzEb3abfrYWYtc7Og1d9SZwKJxVWhJONZZJRkzi+9wmuVa P5737LxWoHA3H1c+wiP0O1rxo+P1enSMrBW6NFJ1A3oG4rCrsVAqh6WNRHxCFtus2E/C xoFdk+H7R6URpc2CpB3Vsq5jAad/XijXcQhtCwmFzhlSCvcPnl/BDGPeS+R8Dc0gqjIG 84g2nRPyFYN38RSDISYp9wws027rWpfEvmOrfSdeiwOH/xQtwPfv2E8NFY70ef8HvDGd axGju1dBUheuRszjCSodB2taB9YHctsRy9ecEjHqe2rlUjHLNyI1tX5LRtdujHpKnocE mkwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Sc2UfL2lIxZBhy6+Y8s/cuafkGR7U3/Sv9638v4S21w=; b=WX1MOlsflWeJfzWQbi9/tUQ/3E1EBOBP70tSCxa1aYb0x94gp3pAfLhUW2qw/oRabs yHQOSInZ1B7Ng4h8AFakLykQaxogTJt86cLfsOoZfcZaTohhzqjY3RqsA507eykMNJCs ZRvzwseVxrUVSx0cBk70xCIS/UIdX8MJ6et3xsdqZiXHcp7trIBttpkJzsElF9yfgj4h PvU3wU38dRyHFxDSKwbwEXUxSmQV1//NSEoGnC4chuSVfHY6OQqeZ3vAemieTFN0OVj+ zrJAEQAvLn6M8j9Ha2vuSw+zrgOYs4GS/vb66Z+w+UZhWQIY96/GwTOiEfPbwRZyXcDG /ZXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oqvgrX++; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id e6si9716166ejb.739.2021.11.11.23.24.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 23:24:34 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oqvgrX++; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 25BD8836DF; Fri, 12 Nov 2021 08:24:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="oqvgrX++"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C90B583381; Fri, 12 Nov 2021 08:24:28 +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.1 required=5.0 tests=BAYES_00,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-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (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 CA3478376C for ; Fri, 12 Nov 2021 08:24:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pj1-x1030.google.com with SMTP id gf14-20020a17090ac7ce00b001a7a2a0b5c3so6400777pjb.5 for ; Thu, 11 Nov 2021 23:24:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Sc2UfL2lIxZBhy6+Y8s/cuafkGR7U3/Sv9638v4S21w=; b=oqvgrX++uux0iuPna0Px8X7IyZ5QVsDr9PoG8Da0YMwtC0S7jxoD3mHqglQdXkoPWZ x/NadLxTPDIgnVZH+A5wB+0x/64Db+dFfqW3BRANuhZDUJZS8R7lbUBnATdkdou1PsNh 5xPWgGPNjlgHtzUPryfTiHi7m3qTnPErNLi7Pm9fgBl+4bR2F51XLSOEN2DC7LrRhBmB AyS+oFdrvmjd37Wa+YiytBrT3zZ1acDHMyMI204hQlGxAGZ61rovglRPDX4fJ4MCeKf0 jj0HwNZzm2JgX73iU9nqXXyVmN7MP5oEJ7qncwB3N9I2Vh3fp1kjKhiWseZGrRNDOCCs Cduw== 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; bh=Sc2UfL2lIxZBhy6+Y8s/cuafkGR7U3/Sv9638v4S21w=; b=F1mXWTPw4R+dcwmuuhNmFME1IQn/29vXNqgD0uGrsjtm2qMXY40bI+QfeUkQTFh+aC uhVSAgd0bL82IxCYN13vOa/cHMWlulNs+w1gs40J0rBDLoEMWfcsBuA8bgFooTv43nBo E7essr/A8yp5X7XEIPZ8nX3UpIMmQ+d/eouTKV5oaxnbIoIyfqRPCsu+SfN+9K87N/H3 relHwBRY+vHTQNH+hn/P02DBIDJy8uYrHD/B/KnrmWQywGWCEtrAvVgZCBn0ACwf9/o1 sQxAlK7W+WNwIIhjOLiv8O8oNhPNBicDMS2aT6FuXnDcgmlxqVUceQMxV7Tg8Vz8hkzY ls8w== X-Gm-Message-State: AOAM5329RAVeBAoOv9ulG1sMVMhVs6WKZwqqjdOcXdwswBH8Ta9Q24UZ J99nwUIQd/L/z3R+KMTm3TlaLEkP7yGIEA== X-Received: by 2002:a17:90a:c257:: with SMTP id d23mr15672013pjx.42.1636701831506; Thu, 11 Nov 2021 23:23:51 -0800 (PST) Received: from localhost.localdomain ([2400:2411:502:a100:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id ml24sm4171752pjb.16.2021.11.11.23.23.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 23:23:50 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Masahisa Kojima , Alexander Graf Subject: [PATCH] efi: add comment for efi_system_table and efi_configuration_table Date: Fri, 12 Nov 2021 16:24:27 +0900 Message-Id: <20211112072427.26107-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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 commit adds the comment for efi_system_table and efi_configuration_table structure. Signed-off-by: Masahisa Kojima Reviewed-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- include/efi_api.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/include/efi_api.h b/include/efi_api.h index 0accad08c8..78a6412116 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -417,6 +417,15 @@ struct efi_runtime_services { EFI_GUID(0x1e2ed096, 0x30e2, 0x4254, 0xbd, \ 0x89, 0x86, 0x3b, 0xbe, 0xf8, 0x23, 0x25) +/** + * struct efi_configuration_table - EFI Configuration Table + * + * This table contains a set of GUID/pointer pairs. + * The EFI Configuration Table may contain at most one instance of each table type. + * + * @guid: GUID that uniquely identifies the system configuration table + * @table: A pointer to the table associated with guid + */ struct efi_configuration_table { efi_guid_t guid; void *table; @@ -424,6 +433,29 @@ struct efi_configuration_table { #define EFI_SYSTEM_TABLE_SIGNATURE ((u64)0x5453595320494249ULL) +/** + * struct efi_system_table - EFI System Table + * + * EFI System Table contains pointers to the runtime and boot services tables. + * + * @hdr: The table header for the EFI System Table + * @fw_vendor: A pointer to a null terminated string that identifies the vendor + * that produces the system firmware + * @fw_version: The revision of the system firmware + * @con_in_handle: The handle for the active console input device + * @con_in: A pointer to the EFI_SIMPLE_TEXT_INPUT_PROTOCOL interface + * that is associated with con_in_handle + * @con_out_handle: The handle for the active console output device + * @con_out: A pointer to the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL interface + * that is associated with con_out_handle + * @stderr_handle: The handle for the active standard error console device + * @std_err: A pointer to the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL interface + * that is associated with stderr_handle + * @runtime: A pointer to the EFI Runtime Services Table + * @boottime: A pointer to the EFI Boot Services Table + * @nr_tables: The number of system configuration tables + * @tables: A pointer to the system configuration tables + */ struct efi_system_table { struct efi_table_hdr hdr; u16 *fw_vendor; /* physical addr of wchar_t vendor string */