diff options
| author | Michael Brown | 2014-07-29 00:38:30 +0200 |
|---|---|---|
| committer | Michael Brown | 2014-07-29 16:57:44 +0200 |
| commit | 036af27a4523c4e15e28d30a1513a3f6d9671774 (patch) | |
| tree | bf284637f91e2258906d736f07a54b1f98dfd68d /src/include/ipxe/xenstore.h | |
| parent | [xen] Import selected public headers (diff) | |
| download | ipxe-036af27a4523c4e15e28d30a1513a3f6d9671774.tar.gz ipxe-036af27a4523c4e15e28d30a1513a3f6d9671774.tar.xz ipxe-036af27a4523c4e15e28d30a1513a3f6d9671774.zip | |
[xen] Add basic support for PV-HVM domains
Add basic support for Xen PV-HVM domains (detected via the Xen
platform PCI device with IDs 5853:0001), including support for
accessing configuration via XenStore and enumerating devices via
XenBus.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/xenstore.h')
| -rw-r--r-- | src/include/ipxe/xenstore.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/include/ipxe/xenstore.h b/src/include/ipxe/xenstore.h new file mode 100644 index 000000000..f25f15704 --- /dev/null +++ b/src/include/ipxe/xenstore.h @@ -0,0 +1,29 @@ +#ifndef _IPXE_XENSTORE_H +#define _IPXE_XENSTORE_H + +/** @file + * + * XenStore interface + * + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +#include <ipxe/xen.h> + +extern __attribute__ (( sentinel )) int +xenstore_read ( struct xen_hypervisor *xen, char **value, ... ); +extern __attribute__ (( sentinel )) int +xenstore_read_num ( struct xen_hypervisor *xen, unsigned long *num, ... ); +extern __attribute__ (( sentinel )) int +xenstore_write ( struct xen_hypervisor *xen, const char *value, ... ); +extern __attribute__ (( sentinel )) int +xenstore_write_num ( struct xen_hypervisor *xen, unsigned long num, ... ); +extern __attribute__ (( sentinel )) int +xenstore_rm ( struct xen_hypervisor *xen, ... ); +extern __attribute__ (( sentinel )) int +xenstore_directory ( struct xen_hypervisor *xen, char **children, size_t *len, + ... ); +extern void xenstore_dump ( struct xen_hypervisor *xen, const char *key ); + +#endif /* _IPXE_XENSTORE_H */ |
