TianoCore EDK2 master
|
#include <Library/PrintLib.h>
#include <Library/DebugLib.h>
#include "BlockFront.h"
#include <IndustryStandard/Xen/io/protocols.h>
#include <IndustryStandard/Xen/io/xenbus.h>
Go to the source code of this file.
Functions | |
STATIC XENSTORE_STATUS | XenBusReadUint64 (IN XENBUS_PROTOCOL *This, IN CONST CHAR8 *Node, IN BOOLEAN FromBackend, OUT UINT64 *ValuePtr) |
STATIC VOID | XenPvBlockFree (IN XEN_BLOCK_FRONT_DEVICE *Dev) |
STATIC XENSTORE_STATUS | XenPvBlkWaitForBackendState (IN XEN_BLOCK_FRONT_DEVICE *Dev, IN XenbusState ExpectedState, OUT XenbusState *LastStatePtr OPTIONAL) |
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) |
STATIC VOID | XenPvBlockWaitSlot (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) |
STATIC VOID | XenPvBlockPushOperation (IN XEN_BLOCK_FRONT_DEVICE *Dev, IN UINT8 Operation, IN UINT64 Id) |
VOID | XenPvBlockSync (IN XEN_BLOCK_FRONT_DEVICE *Dev) |
VOID | XenPvBlockAsyncIoPoll (IN XEN_BLOCK_FRONT_DEVICE *Dev) |
Minimal block driver for Mini-OS.
Copyright (c) 2007-2008 Samuel Thibault. Copyright (C) 2014, Citrix Ltd. Copyright (c) 2014, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file BlockFront.c.
STATIC XENSTORE_STATUS XenBusReadUint64 | ( | IN XENBUS_PROTOCOL * | This, |
IN CONST CHAR8 * | Node, | ||
IN BOOLEAN | FromBackend, | ||
OUT UINT64 * | ValuePtr | ||
) |
Helper to read an integer from XenStore.
If the number overflows according to the range defined by UINT64, then ASSERT().
This | A pointer to a XENBUS_PROTOCOL instance. |
Node | The XenStore node to read from. |
FromBackend | Read frontend or backend value. |
ValuePtr | Where to put the value. |
XENSTORE_STATUS_SUCCESS | If successful, will update ValuePtr. |
Definition at line 36 of file BlockFront.c.
STATIC XENSTORE_STATUS XenPvBlkWaitForBackendState | ( | IN XEN_BLOCK_FRONT_DEVICE * | Dev, |
IN XenbusState | ExpectedState, | ||
OUT XenbusState *LastStatePtr | OPTIONAL | ||
) |
Wait until the backend has reached the ExpectedState.
Dev | A XEN_BLOCK_FRONT_DEVICE instance. |
ExpectedState | The backend state expected. |
LastStatePtr | An optional pointer where to right the final state. |
Definition at line 102 of file BlockFront.c.
VOID XenPvBlockAsyncIo | ( | IN OUT XEN_BLOCK_FRONT_IO * | IoData, |
IN BOOLEAN | IsWrite | ||
) |
Definition at line 494 of file BlockFront.c.
VOID XenPvBlockAsyncIoPoll | ( | IN XEN_BLOCK_FRONT_DEVICE * | Dev | ) |
Definition at line 650 of file BlockFront.c.
STATIC VOID XenPvBlockFree | ( | IN XEN_BLOCK_FRONT_DEVICE * | Dev | ) |
Free an instance of XEN_BLOCK_FRONT_DEVICE.
Dev | The instance to free. |
Definition at line 69 of file BlockFront.c.
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.
VOID XenPvBlockFrontShutdown | ( | IN XEN_BLOCK_FRONT_DEVICE * | Dev | ) |
Definition at line 381 of file BlockFront.c.
EFI_STATUS XenPvBlockIo | ( | IN OUT XEN_BLOCK_FRONT_IO * | IoData, |
IN BOOLEAN | IsWrite | ||
) |
Definition at line 569 of file BlockFront.c.
STATIC VOID XenPvBlockPushOperation | ( | IN XEN_BLOCK_FRONT_DEVICE * | Dev, |
IN UINT8 | Operation, | ||
IN UINT64 | Id | ||
) |
Definition at line 589 of file BlockFront.c.
VOID XenPvBlockSync | ( | IN XEN_BLOCK_FRONT_DEVICE * | Dev | ) |
Definition at line 626 of file BlockFront.c.
STATIC VOID XenPvBlockWaitSlot | ( | IN XEN_BLOCK_FRONT_DEVICE * | Dev | ) |
Definition at line 476 of file BlockFront.c.