TianoCore EDK2 master
Loading...
Searching...
No Matches
BlockFront.h File Reference
#include "XenPvBlkDxe.h"
#include <IndustryStandard/Xen/event_channel.h>
#include <IndustryStandard/Xen/io/blkif.h>

Go to the source code of this file.

Data Structures

struct  _XEN_BLOCK_FRONT_IO
 
struct  XEN_BLOCK_FRONT_MEDIA_INFO
 
struct  _XEN_BLOCK_FRONT_DEVICE
 

Macros

#define XEN_BLOCK_FRONT_SIGNATURE   SIGNATURE_32 ('X', 'p', 'v', 'B')
 
#define XEN_BLOCK_FRONT_FROM_BLOCK_IO(b)    CR (b, XEN_BLOCK_FRONT_DEVICE, BlockIo, XEN_BLOCK_FRONT_SIGNATURE)
 

Typedefs

typedef struct _XEN_BLOCK_FRONT_DEVICE XEN_BLOCK_FRONT_DEVICE
 
typedef struct _XEN_BLOCK_FRONT_IO XEN_BLOCK_FRONT_IO
 

Functions

EFI_STATUS XenPvBlockFrontInitialization (IN XENBUS_PROTOCOL *XenBusIo, IN CONST CHAR8 *NodeName, OUT XEN_BLOCK_FRONT_DEVICE **DevPtr)
 
VOID XenPvBlockFrontShutdown (IN XEN_BLOCK_FRONT_DEVICE *Dev)
 
VOID XenPvBlockAsyncIo (IN OUT XEN_BLOCK_FRONT_IO *IoData, IN BOOLEAN IsWrite)
 
EFI_STATUS XenPvBlockIo (IN OUT XEN_BLOCK_FRONT_IO *IoData, IN BOOLEAN IsWrite)
 
VOID XenPvBlockAsyncIoPoll (IN XEN_BLOCK_FRONT_DEVICE *Dev)
 
VOID XenPvBlockSync (IN XEN_BLOCK_FRONT_DEVICE *Dev)
 

Detailed Description

BlockFront functions and types declarations.

Copyright (C) 2014, Citrix Ltd.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file BlockFront.h.

Macro Definition Documentation

◆ XEN_BLOCK_FRONT_FROM_BLOCK_IO

#define XEN_BLOCK_FRONT_FROM_BLOCK_IO (   b)     CR (b, XEN_BLOCK_FRONT_DEVICE, BlockIo, XEN_BLOCK_FRONT_SIGNATURE)

Definition at line 58 of file BlockFront.h.

◆ XEN_BLOCK_FRONT_SIGNATURE

#define XEN_BLOCK_FRONT_SIGNATURE   SIGNATURE_32 ('X', 'p', 'v', 'B')

Definition at line 39 of file BlockFront.h.

Typedef Documentation

◆ XEN_BLOCK_FRONT_DEVICE

Definition at line 14 of file BlockFront.h.

◆ XEN_BLOCK_FRONT_IO

Definition at line 15 of file BlockFront.h.

Function Documentation

◆ XenPvBlockAsyncIo()

VOID XenPvBlockAsyncIo ( IN OUT XEN_BLOCK_FRONT_IO IoData,
IN BOOLEAN  IsWrite 
)

Definition at line 494 of file BlockFront.c.

◆ XenPvBlockAsyncIoPoll()

VOID XenPvBlockAsyncIoPoll ( IN XEN_BLOCK_FRONT_DEVICE Dev)

Definition at line 650 of file BlockFront.c.

◆ XenPvBlockFrontInitialization()

EFI_STATUS XenPvBlockFrontInitialization ( IN XENBUS_PROTOCOL XenBusIo,
IN CONST CHAR8 *  NodeName,
OUT XEN_BLOCK_FRONT_DEVICE **  DevPtr 
)

Definition at line 151 of file BlockFront.c.

◆ XenPvBlockFrontShutdown()

VOID XenPvBlockFrontShutdown ( IN XEN_BLOCK_FRONT_DEVICE Dev)

Definition at line 381 of file BlockFront.c.

◆ XenPvBlockIo()

EFI_STATUS XenPvBlockIo ( IN OUT XEN_BLOCK_FRONT_IO IoData,
IN BOOLEAN  IsWrite 
)

Definition at line 569 of file BlockFront.c.

◆ XenPvBlockSync()

VOID XenPvBlockSync ( IN XEN_BLOCK_FRONT_DEVICE Dev)

Definition at line 626 of file BlockFront.c.