OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_OPENDIR
Add the VirtioFsFuseOpenDir() function, for sending the FUSE_OPENDIR 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-10-lersek@redhat.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
This commit is contained in:
committed by
mergify[bot]
parent
fa97e37282
commit
b62a0c5603
@@ -81,6 +81,7 @@ typedef struct {
|
||||
//
|
||||
typedef enum {
|
||||
VirtioFsFuseOpInit = 26,
|
||||
VirtioFsFuseOpOpenDir = 27,
|
||||
} VIRTIO_FS_FUSE_OPCODE;
|
||||
|
||||
#pragma pack (1)
|
||||
@@ -127,6 +128,20 @@ typedef struct {
|
||||
UINT16 MapAlignment;
|
||||
UINT32 Unused[8];
|
||||
} VIRTIO_FS_FUSE_INIT_RESPONSE;
|
||||
|
||||
//
|
||||
// Headers for VirtioFsFuseOpOpenDir.
|
||||
//
|
||||
typedef struct {
|
||||
UINT32 Flags;
|
||||
UINT32 Unused;
|
||||
} VIRTIO_FS_FUSE_OPEN_REQUEST;
|
||||
|
||||
typedef struct {
|
||||
UINT64 FileHandle;
|
||||
UINT32 OpenFlags;
|
||||
UINT32 Padding;
|
||||
} VIRTIO_FS_FUSE_OPEN_RESPONSE;
|
||||
#pragma pack ()
|
||||
|
||||
#endif // VIRTIO_FS_H_
|
||||
|
Reference in New Issue
Block a user