TianoCore EDK2 master
Loading...
Searching...
No Matches
XenStore.h
Go to the documentation of this file.
1
15#ifndef _XEN_XENSTORE_XENSTOREVAR_H
16#define _XEN_XENSTORE_XENSTOREVAR_H
17
18#include "XenBusDxe.h"
19
20#include <IndustryStandard/Xen/io/xs_wire.h>
21
22typedef struct _XENSTORE_WATCH XENSTORE_WATCH;
23
39XENSTORE_STATUS
42 IN CONST CHAR8 *DirectoryPath,
43 IN CONST CHAR8 *Node,
44 OUT UINT32 *DirectoryCountPtr,
45 OUT CONST CHAR8 ***DirectoryListPtr
46 );
47
59BOOLEAN
62 IN CONST CHAR8 *Directory,
63 IN CONST CHAR8 *Node
64 );
65
83XENSTORE_STATUS
86 IN CONST CHAR8 *DirectoryPath,
87 IN CONST CHAR8 *Node,
88 OUT UINT32 *LenPtr OPTIONAL,
89 OUT VOID **Result
90 );
91
103XENSTORE_STATUS
106 IN CONST CHAR8 *DirectoryPath,
107 IN CONST CHAR8 *Node,
108 IN CONST CHAR8 *Str
109 );
110
121XENSTORE_STATUS
124 IN CONST CHAR8 *DirectoryPath,
125 IN CONST CHAR8 *Node
126 );
127
140XENSTORE_STATUS
143 );
144
155XENSTORE_STATUS
158 IN BOOLEAN Abort
159 );
160
173XENSTORE_STATUS
174EFIAPI
177 IN CONST CHAR8 *DirectoryPath,
178 IN CONST CHAR8 *Node,
179 IN CONST CHAR8 *FormatString,
180 ...
181 );
182
195XENSTORE_STATUS
196EFIAPI
199 IN CONST CHAR8 *DirectoryPath,
200 IN CONST CHAR8 *Node,
201 IN CONST CHAR8 *FormatString,
202 IN VA_LIST Marker
203 );
204
220XENSTORE_STATUS
222 IN CONST CHAR8 *DirectoryPath,
223 IN CONST CHAR8 *Node,
224 OUT XENSTORE_WATCH **WatchPtr
225 );
226
233VOID
235 IN XENSTORE_WATCH *Watch
236 );
237
248CHAR8 *
250 IN CONST CHAR8 *DirectoryPath,
251 IN CONST CHAR8 *Node
252 );
253
263 XENBUS_DEVICE *Dev
264 );
265
271VOID
273 IN XENBUS_DEVICE *Dev
274 );
275
276//
277// XENBUS protocol
278//
279
280XENSTORE_STATUS
281EFIAPI
282XenBusWaitForWatch (
283 IN XENBUS_PROTOCOL *This,
284 IN VOID *Token
285 );
286
287XENSTORE_STATUS
288EFIAPI
289XenBusXenStoreRead (
290 IN XENBUS_PROTOCOL *This,
292 IN CONST CHAR8 *Node,
293 OUT VOID **Value
294 );
295
296XENSTORE_STATUS
297EFIAPI
298XenBusXenStoreBackendRead (
299 IN XENBUS_PROTOCOL *This,
301 IN CONST CHAR8 *Node,
302 OUT VOID **Value
303 );
304
305XENSTORE_STATUS
306EFIAPI
307XenBusXenStoreRemove (
308 IN XENBUS_PROTOCOL *This,
310 IN CONST CHAR8 *Node
311 );
312
313XENSTORE_STATUS
314EFIAPI
315XenBusXenStoreTransactionStart (
316 IN XENBUS_PROTOCOL *This,
318 );
319
320XENSTORE_STATUS
321EFIAPI
322XenBusXenStoreTransactionEnd (
323 IN XENBUS_PROTOCOL *This,
325 IN BOOLEAN Abort
326 );
327
328XENSTORE_STATUS
329EFIAPI
330XenBusXenStoreSPrint (
331 IN XENBUS_PROTOCOL *This,
333 IN CONST CHAR8 *DirectoryPath,
334 IN CONST CHAR8 *Node,
335 IN CONST CHAR8 *FormatString,
336 ...
337 );
338
339XENSTORE_STATUS
340EFIAPI
341XenBusRegisterWatch (
342 IN XENBUS_PROTOCOL *This,
343 IN CONST CHAR8 *Node,
344 OUT VOID **Token
345 );
346
347XENSTORE_STATUS
348EFIAPI
349XenBusRegisterWatchBackend (
350 IN XENBUS_PROTOCOL *This,
351 IN CONST CHAR8 *Node,
352 OUT VOID **Token
353 );
354
355VOID
356EFIAPI
357XenBusUnregisterWatch (
358 IN XENBUS_PROTOCOL *This,
359 IN VOID *Token
360 );
361
362#endif /* _XEN_XENSTORE_XENSTOREVAR_H */
#define CONST
Definition: Base.h:259
CHAR8 * VA_LIST
Definition: Base.h:643
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS EFIAPI Transaction(IN CONST EFI_SPI_IO_PROTOCOL *This, IN EFI_SPI_TRANSACTION_TYPE TransactionType, IN BOOLEAN DebugTransaction, IN UINT32 ClockHz OPTIONAL, IN UINT32 BusWidth, IN UINT32 FrameSize, IN UINT32 WriteBytes, IN UINT8 *WriteBuffer, IN UINT32 ReadBytes, OUT UINT8 *ReadBuffer)
Definition: SpiBus.c:231
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
XENSTORE_STATUS EFIAPI XenStoreSPrint(IN CONST XENSTORE_TRANSACTION *Transaction, IN CONST CHAR8 *DirectoryPath, IN CONST CHAR8 *Node, IN CONST CHAR8 *FormatString,...)
Definition: XenStore.c:1392
XENSTORE_STATUS XenStoreRegisterWatch(IN CONST CHAR8 *DirectoryPath, IN CONST CHAR8 *Node, OUT XENSTORE_WATCH **WatchPtr)
Definition: XenStore.c:1411
XENSTORE_STATUS XenStoreRemove(IN CONST XENSTORE_TRANSACTION *Transaction, IN CONST CHAR8 *DirectoryPath, IN CONST CHAR8 *Node)
Definition: XenStore.c:1311
VOID XenStoreUnregisterWatch(IN XENSTORE_WATCH *Watch)
Definition: XenStore.c:1452
XENSTORE_STATUS XenStoreListDirectory(IN CONST XENSTORE_TRANSACTION *Transaction, IN CONST CHAR8 *DirectoryPath, IN CONST CHAR8 *Node, OUT UINT32 *DirectoryCountPtr, OUT CONST CHAR8 ***DirectoryListPtr)
Definition: XenStore.c:1204
XENSTORE_STATUS EFIAPI XenStoreVSPrint(IN CONST XENSTORE_TRANSACTION *Transaction, IN CONST CHAR8 *DirectoryPath, IN CONST CHAR8 *Node, IN CONST CHAR8 *FormatString, IN VA_LIST Marker)
Definition: XenStore.c:1366
CHAR8 * XenStoreJoin(IN CONST CHAR8 *DirectoryPath, IN CONST CHAR8 *Node)
Definition: XenStore.c:285
XENSTORE_STATUS XenStoreWrite(IN CONST XENSTORE_TRANSACTION *Transaction, IN CONST CHAR8 *DirectoryPath, IN CONST CHAR8 *Node, IN CONST CHAR8 *Str)
Definition: XenStore.c:1286
EFI_STATUS XenStoreInit(XENBUS_DEVICE *Dev)
Definition: XenStore.c:1085
XENSTORE_STATUS XenStoreTransactionStart(OUT XENSTORE_TRANSACTION *Transaction)
Definition: XenStore.c:1328
BOOLEAN XenStorePathExists(IN CONST XENSTORE_TRANSACTION *Transaction, IN CONST CHAR8 *Directory, IN CONST CHAR8 *Node)
Definition: XenStore.c:1236
XENSTORE_STATUS XenStoreRead(IN CONST XENSTORE_TRANSACTION *Transaction, IN CONST CHAR8 *DirectoryPath, IN CONST CHAR8 *Node, OUT UINT32 *LenPtr OPTIONAL, OUT VOID **Result)
Definition: XenStore.c:1262
XENSTORE_STATUS XenStoreTransactionEnd(IN CONST XENSTORE_TRANSACTION *Transaction, IN BOOLEAN Abort)
Definition: XenStore.c:1351
VOID XenStoreDeinit(IN XENBUS_DEVICE *Dev)
Definition: XenStore.c:1124