summary refs log tree commit diff stats
path: root/include/hw/xen/interface/io/fbif.h
diff options
context:
space:
mode:
authorJoao Martins <joao.m.martins@oracle.com>2019-02-13 12:29:47 -0500
committerDavid Woodhouse <dwmw@amazon.co.uk>2023-03-01 08:22:49 +0000
commit50c88402ca599e577f025e78a4380431be2b3f6d (patch)
treeac09c2b7aa135e76d1a549bf08be8ff701a43569 /include/hw/xen/interface/io/fbif.h
parent627634031092e1514f363fd8659a579398de0f0e (diff)
downloadfocaccia-qemu-50c88402ca599e577f025e78a4380431be2b3f6d.tar.gz
focaccia-qemu-50c88402ca599e577f025e78a4380431be2b3f6d.zip
include: import Xen public headers to hw/xen/interface
There's already a partial set here; update them and pull in a more
complete set.

To start with, define __XEN_TOOLS__ in hw/xen/xen.h to ensure that any
internal definitions needed by Xen toolstack libraries are present
regardless of the order in which the headers are included. A reckoning
will come later, once we make the PV backends work in emulation and
untangle the headers for Xen-native vs. generic parts.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
[dwmw2: Update to Xen public headers from 4.16.2 release, add some in io/,
        define __XEN_TOOLS__ in hw/xen/xen.h, move to hw/xen/interface/]
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
Diffstat (limited to 'include/hw/xen/interface/io/fbif.h')
-rw-r--r--include/hw/xen/interface/io/fbif.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/hw/xen/interface/io/fbif.h b/include/hw/xen/interface/io/fbif.h
index ea87ebec0a..cc25aab32e 100644
--- a/include/hw/xen/interface/io/fbif.h
+++ b/include/hw/xen/interface/io/fbif.h
@@ -153,4 +153,24 @@ struct xenfb_page
     unsigned long pd[256];
 };
 
+/*
+ * Wart: xenkbd needs to know default resolution.  Put it here until a
+ * better solution is found, but don't leak it to the backend.
+ */
+#ifdef __KERNEL__
+#define XENFB_WIDTH 800
+#define XENFB_HEIGHT 600
+#define XENFB_DEPTH 32
+#endif
+
 #endif
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * tab-width: 4
+ * indent-tabs-mode: nil
+ * End:
+ */