TianoCore EDK2 master
Loading...
Searching...
No Matches
XenBusDxe.h File Reference
#include <Uefi.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/BaseLib.h>
#include <Library/UefiLib.h>
#include <Library/DevicePathLib.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
#include <Protocol/DriverBinding.h>
#include <Protocol/XenIo.h>
#include <Protocol/XenBus.h>
#include "DriverBinding.h"
#include "ComponentName.h"
#include <IndustryStandard/Xen/xen.h>

Go to the source code of this file.

Data Structures

struct  _XENBUS_DEVICE
 
struct  XENBUS_PRIVATE_DATA
 

Macros

#define XENBUS_DXE_VERSION   0x00000010
 
#define XENBUS_DEVICE_SIGNATURE   SIGNATURE_32 ('X','B','s','t')
 
#define XENBUS_PRIVATE_DATA_SIGNATURE   SIGNATURE_32 ('X', 'B', 'p', 'd')
 
#define XENBUS_PRIVATE_DATA_FROM_THIS(a)    CR (a, XENBUS_PRIVATE_DATA, XenBusIo, XENBUS_PRIVATE_DATA_SIGNATURE)
 
#define XENBUS_PRIVATE_DATA_FROM_LINK(a)    CR (a, XENBUS_PRIVATE_DATA, Link, XENBUS_PRIVATE_DATA_SIGNATURE)
 

Typedefs

typedef struct _XENBUS_DEVICE_PATH XENBUS_DEVICE_PATH
 
typedef struct _XENBUS_DEVICE XENBUS_DEVICE
 

Functions

INT32 EFIAPI TestAndClearBit (IN INT32 Bit, IN VOID *Address)
 
CHAR8 * AsciiStrDup (IN CONST CHAR8 *Str)
 

Variables

EFI_DRIVER_BINDING_PROTOCOL gXenBusDxeDriverBinding
 
EFI_COMPONENT_NAME2_PROTOCOL gXenBusDxeComponentName2
 
EFI_COMPONENT_NAME_PROTOCOL gXenBusDxeComponentName
 

Detailed Description

Function declaration and internal data for XenBusDxe.

Copyright (C) 2014, Citrix Ltd.

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

Definition in file XenBusDxe.h.

Macro Definition Documentation

◆ XENBUS_DEVICE_SIGNATURE

#define XENBUS_DEVICE_SIGNATURE   SIGNATURE_32 ('X','B','s','t')

Definition at line 69 of file XenBusDxe.h.

◆ XENBUS_DXE_VERSION

#define XENBUS_DXE_VERSION   0x00000010

Definition at line 45 of file XenBusDxe.h.

◆ XENBUS_PRIVATE_DATA_FROM_LINK

#define XENBUS_PRIVATE_DATA_FROM_LINK (   a)     CR (a, XENBUS_PRIVATE_DATA, Link, XENBUS_PRIVATE_DATA_SIGNATURE)

Definition at line 95 of file XenBusDxe.h.

◆ XENBUS_PRIVATE_DATA_FROM_THIS

#define XENBUS_PRIVATE_DATA_FROM_THIS (   a)     CR (a, XENBUS_PRIVATE_DATA, XenBusIo, XENBUS_PRIVATE_DATA_SIGNATURE)

Definition at line 93 of file XenBusDxe.h.

◆ XENBUS_PRIVATE_DATA_SIGNATURE

#define XENBUS_PRIVATE_DATA_SIGNATURE   SIGNATURE_32 ('X', 'B', 'p', 'd')

Definition at line 83 of file XenBusDxe.h.

Typedef Documentation

◆ XENBUS_DEVICE

typedef struct _XENBUS_DEVICE XENBUS_DEVICE

Definition at line 66 of file XenBusDxe.h.

◆ XENBUS_DEVICE_PATH

Definition at line 65 of file XenBusDxe.h.

Function Documentation

◆ AsciiStrDup()

CHAR8 * AsciiStrDup ( IN CONST CHAR8 *  Str)

Definition at line 4 of file Helpers.c.

◆ TestAndClearBit()

INT32 EFIAPI TestAndClearBit ( IN INT32  Bit,
IN VOID *  Address 
)

Atomically test and clear a bit.

Parameters
BitBit index to test in *Address
AddressThe Address to the buffer that contain the bit to test.
Returns
Value of the Bit before it was cleared.

Definition at line 16 of file TestAndClearBit.c.

Variable Documentation

◆ gXenBusDxeComponentName

EFI_COMPONENT_NAME_PROTOCOL gXenBusDxeComponentName
extern

Component Name Protocol instance

Definition at line 16 of file ComponentName.c.

◆ gXenBusDxeComponentName2

EFI_COMPONENT_NAME2_PROTOCOL gXenBusDxeComponentName2
extern

Component Name 2 Protocol instance

Definition at line 26 of file ComponentName.c.

◆ gXenBusDxeDriverBinding

EFI_DRIVER_BINDING_PROTOCOL gXenBusDxeDriverBinding
extern

Driver Binding Protocol instance

Definition at line 35 of file XenBusDxe.c.