From nobody Sat Sep 26 06:44:54 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hsJ3C0Yc2z6tPf5 for ; Sat, 26 Sep 2026 06:44:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hsJ3B58zMz3NNg for ; Sat, 26 Sep 2026 06:44:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790405094; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=baatPKncKthG2QwGPdJpRloD/NWXlRfYvxudAWDQ4F0=; b=xqy2zSB8SIHtk5pHs/2VtaUqKSYCAy14dKcW3D4AuAENp/3zBbkcARJAf1neBWeLQ3+i+J 4KRQzeiQYXr28L+sOJ7cNIdfrNEoNjsgl4A/l39b9d5295G043u3kahKm5a7/HLF4+sput eJ9BfxhbFUw9FzEI5FnuqaNsjhZ4WZ6hYculbyYzE2fTOB67RKZye2eW+QoFVLL4LFUlmw k5/j794vsNH5VzqVMMzQ2+k44RVKv+vw0Jzg3+h0jHcNczUMtWHh5jJDQM6a0F2NK/oeui cBa8dmzSmL+jiORju9utFcC6NbNQU3UlQoucUipyB1fCcVj1kuPhJjmPs56fJw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1790405094; b=Jpis9OJu356WUWiLOPRL8X6g1ePA9vbFx27S4/qIpdeSRFnBxqmx2lznTgBOWXjzxSMfWI ih5Nb0KNViKGHn4H16EKI3D2nScNZos7ry8eg4Kwe7bNKwFAMpqgzfR2Yfeh9aPllXkki5 KacNsr9uqsblq5J+KBLh5fDRQaSqV0OIPb0Ve3uJru6TK73kNvcGloHUhtFoESYgbIH14Z ZKYmp5zE/GW8yNgWdXpTWHph5lQeF4BMt33Z0KmxMXgKaNr+i+RRMkEOjTYRe9/MSxMSpM o9mXHhUNK68CVlI/9zAl6fDzdL2tr3jgz39fW9RonQGxPA8Xybn3Bf8lktyUBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790405094; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=baatPKncKthG2QwGPdJpRloD/NWXlRfYvxudAWDQ4F0=; b=LshvCAd2CqlnM3RpsBVHcvVD7pSJL98C4fdwJ1d3V38DIpPEmBILneug5ajsUAzghxaUbC goLxhTqGb2/v2M6SAn9WSoq5/7mpHN8dpDM5/MXZr1S4QVqX/JVWOwJQQtvxGuigOst7nf jlyXpdHn/BgrUOyH8X0lH2srME9OH4zLr53T3+8UrHGAgHNs8BE5jI/BCiaf26b9BdbFtt nTqUBXLVyMJVKmCXJx/BE6JUJDr71T4WhB04N1B0vNenBh49GPiqTfQeJvi2F5jYJijhE6 Fex5a7uzWju4vNmVYPP8cYhs7Bpx0vOeJo02Vq9vJawtsMD0dA384m5fNUOCUA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hsJ3B3zMJzmGF for ; Sat, 26 Sep 2026 06:44:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3661b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 26 Sep 2026 06:44:54 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 4f06a8e49099 - main - edk2: Import FileInfo.h from edk2-stable202502 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4f06a8e49099e597c42dac4588196eb934e6fcd2 Auto-Submitted: auto-generated Date: Sat, 26 Sep 2026 06:44:54 +0000 Message-Id: <6ab769e6.3661b.532bc6aa@gitrepo.freebsd.org> The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=4f06a8e49099e597c42dac4588196eb934e6fcd2 commit 4f06a8e49099e597c42dac4588196eb934e6fcd2 Author: Warner Losh AuthorDate: 2026-09-26 06:34:05 +0000 Commit: Warner Losh CommitDate: 2026-09-26 06:44:20 +0000 edk2: Import FileInfo.h from edk2-stable202502 Sponsored by: Netflix --- sys/contrib/edk2/Include/Guid/FileInfo.h | 66 ++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/sys/contrib/edk2/Include/Guid/FileInfo.h b/sys/contrib/edk2/Include/Guid/FileInfo.h new file mode 100644 index 000000000000..71bb289e1256 --- /dev/null +++ b/sys/contrib/edk2/Include/Guid/FileInfo.h @@ -0,0 +1,66 @@ +/** @file + Provides a GUID and a data structure that can be used with EFI_FILE_PROTOCOL.SetInfo() + and EFI_FILE_PROTOCOL.GetInfo() to set or get generic file information. + This GUID is defined in UEFI specification. + +Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
+SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef __FILE_INFO_H__ +#define __FILE_INFO_H__ + +#define EFI_FILE_INFO_ID \ + { \ + 0x9576e92, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \ + } + +typedef struct { + /// + /// The size of the EFI_FILE_INFO structure, including the Null-terminated FileName string. + /// + UINT64 Size; + /// + /// The size of the file in bytes. + /// + UINT64 FileSize; + /// + /// PhysicalSize The amount of physical space the file consumes on the file system volume. + /// + UINT64 PhysicalSize; + /// + /// The time the file was created. + /// + EFI_TIME CreateTime; + /// + /// The time when the file was last accessed. + /// + EFI_TIME LastAccessTime; + /// + /// The time when the file's contents were last modified. + /// + EFI_TIME ModificationTime; + /// + /// The attribute bits for the file. + /// + UINT64 Attribute; + /// + /// The Null-terminated name of the file. + /// For a root directory, the name is an empty string. + /// + CHAR16 FileName[1]; +} EFI_FILE_INFO; + +/// +/// The FileName field of the EFI_FILE_INFO data structure is variable length. +/// Whenever code needs to know the size of the EFI_FILE_INFO data structure, it needs to +/// be the size of the data structure without the FileName field. The following macro +/// computes this size correctly no matter how big the FileName array is declared. +/// This is required to make the EFI_FILE_INFO data structure ANSI compilant. +/// +#define SIZE_OF_EFI_FILE_INFO OFFSET_OF (EFI_FILE_INFO, FileName) + +extern EFI_GUID gEfiFileInfoGuid; + +#endif