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 63288C6FD1F for ; Sun, 19 Mar 2023 19:34:05 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 54A8E85C68; Sun, 19 Mar 2023 20:31:56 +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="SN2Ep7es"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EDB9E859FF; Sun, 19 Mar 2023 20:31:15 +0100 (CET) Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (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 5D2F885C66 for ; Sun, 19 Mar 2023 20:31:05 +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-pl1-x629.google.com with SMTP id le6so10411613plb.12 for ; Sun, 19 Mar 2023 12:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1679254263; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Dulobrfduf3Wvh4Y+YYwlWNiB8SSqQdN9sUBNyQdpAw=; b=SN2Ep7essjJVR0rS5nGDGR7cUyhTpBy7gyDWo0lW2dDQI8tScSFDSUzxRyLrdyWzz0 eKqTUxoBd4xEdhc2CtoRH/E0yU4KQHmbp8BXBJJKS4+hyW14ddNXYi4JUJTqYPpPmMi7 TSUg//TRUwT5KiecYQw7+da556w+4qOu1BRoc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679254263; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Dulobrfduf3Wvh4Y+YYwlWNiB8SSqQdN9sUBNyQdpAw=; b=JN+Bo8sDqIPdnkq0s3vqNTwb25/IbPwnQfHN2/76HFqMAp/Nhfcz5GWMVS/GTEyuv4 5WPqMZtrojgYDV++djNCHB0E+AEpM9OzNMY8OwuyZjzCW+lPWObDV/A35SCZRxWY3gyj Q6AgkcJMiDlqVhjISW+d1hCCQDe0rVqF0d08JkWRK+Rga51GV84N+7JG6XDS8xaWEfNZ nkNMkMN6GPcKsp9mY9/pRIhg+0fD4ZLlG9R/cZE3PIcWq/JXNdsG77wJxjwZlEiCt3ui bpSHY2ghRqRLIDv0wBdgb3wCD9vg017EpvtEjskdGFwmwHVODZTIGiB3EbZa2CGcYdtU X/Gw== X-Gm-Message-State: AO0yUKXdEO4IVr3lVas5opqSJLBLiM3e4eJwcHyRibictLJZdpVmenxF Ocu/qbJkPhGqInr3fvVVFMQ6FRkQJ8QDURu8xLo= X-Google-Smtp-Source: AK7set9y4egbEkhKLYVoSz+ccZLbBVKWSWKiMdWmwIhA+kD1Ly70GAnA7AGYIcDi+h8Uj95240raoA== X-Received: by 2002:a17:903:11cf:b0:19f:1bd9:505 with SMTP id q15-20020a17090311cf00b0019f1bd90505mr19134076plh.36.1679254263518; Sun, 19 Mar 2023 12:31:03 -0700 (PDT) Received: from localhost.localdomain ([27.110.126.54]) by smtp.gmail.com with ESMTPSA id v12-20020a1709029a0c00b0019a75ea08e5sm5090651plp.33.2023.03.19.12.31.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 12:31:03 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Simon Glass Subject: [PATCH v3 07/12] efi: Add another tranch of GUIDs Date: Mon, 20 Mar 2023 08:30:11 +1300 Message-Id: <20230319193017.1084764-8-sjg@chromium.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230319193017.1084764-1-sjg@chromium.org> References: <20230319193017.1084764-1-sjg@chromium.org> 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.8 at phobos.denx.de X-Virus-Status: Clean Provide information about the GUIDs supplied by QEMU, so far as it is known. These values are used in the 'efi table' command as well as the printf format string %sU Signed-off-by: Simon Glass --- Changes in v3: - Make this depend on CONFIG_EFI so that EFI_LOADER doesn't get it - Really drop SMBIOS Changes in v2: - Update commit message to explain why these are needed - Drop EFI_SMBIOS which exists as SMBIOS_TABLE_GUID - Drop unwanted EFI_GUID_SNBIOS - Drop EFI_GUID_EFI_ACPI2 which exists as EFI_ACPI_TABLE_GUID include/efi_api.h | 19 +++++++++++++++++++ lib/uuid.c | 8 ++++++++ 2 files changed, 27 insertions(+) diff --git a/include/efi_api.h b/include/efi_api.h index 2d18d25a7137..89762553d66e 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -1909,6 +1909,25 @@ struct efi_system_resource_table { EFI_GUID(0x4aafd29d, 0x68df, 0x49ee, 0x8a, 0xa9, \ 0x34, 0x7d, 0x37, 0x56, 0x65, 0xa7) +#define EFI_LZMA_COMPRESSED \ + EFI_GUID(0xee4e5898, 0x3914, 0x4259, 0x9d, 0x6e, \ + 0xdc, 0x7b, 0xd7, 0x94, 0x03, 0xcf) +#define EFI_DXE_SERVICES \ + EFI_GUID(0x05ad34ba, 0x6f02, 0x4214, 0x95, 0x2e, \ + 0x4d, 0xa0, 0x39, 0x8e, 0x2b, 0xb9) +#define EFI_HOB_LIST \ + EFI_GUID(0x7739f24c, 0x93d7, 0x11d4, 0x9a, 0x3a, \ + 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d) +#define EFI_MEMORY_TYPE \ + EFI_GUID(0x4c19049f, 0x4137, 0x4dd3, 0x9c, 0x10, \ + 0x8b, 0x97, 0xa8, 0x3f, 0xfd, 0xfa) +#define EFI_MEM_STATUS_CODE_REC \ + EFI_GUID(0x060cc026, 0x4c0d, 0x4dda, 0x8f, 0x41, \ + 0x59, 0x5f, 0xef, 0x00, 0xa5, 0x02) +#define EFI_GUID_EFI_ACPI1 \ + EFI_GUID(0xeb9d2d30, 0x2d88, 0x11d3, 0x9a, 0x16, \ + 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d) + /** * struct win_certificate_uefi_guid - A certificate that encapsulates * a GUID-specific signature diff --git a/lib/uuid.c b/lib/uuid.c index 465e1ac38f57..5ea30a66f5d0 100644 --- a/lib/uuid.c +++ b/lib/uuid.c @@ -255,6 +255,14 @@ static const struct { EFI_CERT_TYPE_PKCS7_GUID, }, #endif +#ifdef CONFIG_EFI + { "EFI_LZMA_COMPRESSED", EFI_LZMA_COMPRESSED }, + { "EFI_DXE_SERVICES", EFI_DXE_SERVICES }, + { "EFI_HOB_LIST", EFI_HOB_LIST }, + { "EFI_MEMORY_TYPE", EFI_MEMORY_TYPE }, + { "EFI_MEM_STATUS_CODE_REC", EFI_MEM_STATUS_CODE_REC }, + { "EFI_GUID_EFI_ACPI1", EFI_GUID_EFI_ACPI1 }, +#endif }; /* -- 2.40.0.rc1.284.g88254d51c5-goog