summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Include/IndustryStandard
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2020-12-16 22:10:59 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-12-21 17:16:23 +0000
commitb6ce961a42f08be13f7fc7a561be530ad58434e5 (patch)
tree93ffc60c57df3459391a3b17ab083c9e885a49ba /OvmfPkg/Include/IndustryStandard
parentcd473d41dd8ba0cf400d2f4f4d4803f5dc56068e (diff)
downloadedk2-b6ce961a42f08be13f7fc7a561be530ad58434e5.tar.gz
edk2-b6ce961a42f08be13f7fc7a561be530ad58434e5.tar.bz2
edk2-b6ce961a42f08be13f7fc7a561be530ad58434e5.zip
OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_LOOKUP
Add the VirtioFsFuseLookup() function, for sending the FUSE_LOOKUP command to the Virtio Filesystem device. Cc: Ard Biesheuvel <ard.biesheuvel@arm.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Philippe Mathieu-Daudé <philmd@redhat.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3097 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20201216211125.19496-23-lersek@redhat.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Diffstat (limited to 'OvmfPkg/Include/IndustryStandard')
-rw-r--r--OvmfPkg/Include/IndustryStandard/VirtioFs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/OvmfPkg/Include/IndustryStandard/VirtioFs.h b/OvmfPkg/Include/IndustryStandard/VirtioFs.h
index 5d1d990a2d..8a07b3d2eb 100644
--- a/OvmfPkg/Include/IndustryStandard/VirtioFs.h
+++ b/OvmfPkg/Include/IndustryStandard/VirtioFs.h
@@ -82,6 +82,11 @@ typedef struct {
#define VIRTIO_FS_FUSE_ROOT_DIR_NODE_ID 1
//
+// Distinguished errno values.
+//
+#define VIRTIO_FS_FUSE_ERRNO_ENOENT (-2)
+
+//
// File mode bitmasks.
//
#define VIRTIO_FS_FUSE_MODE_TYPE_MASK 0170000u
@@ -107,6 +112,7 @@ typedef struct {
// FUSE operation codes.
//
typedef enum {
+ VirtioFsFuseOpLookup = 1,
VirtioFsFuseOpForget = 2,
VirtioFsFuseOpMkDir = 9,
VirtioFsFuseOpOpen = 14,