]> git.lizzy.rs Git - plan9front.git/blob - sys/src/9/xen/dat.h
bcm: flush out early boot messages on uart and screen initialization
[plan9front.git] / sys / src / 9 / xen / dat.h
1 #include "../pc/dat.h"
2
3 typedef unsigned char uint8_t;
4 typedef unsigned char uint8;
5 typedef unsigned short uint16_t;
6 typedef unsigned long uint32_t;
7 typedef unsigned long long uint64_t;
8 typedef char int8_t;
9 typedef short int16_t;
10 typedef long int32_t;
11 typedef long long int64_t;
12
13 #define __attribute__(x)        
14 enum {
15         EINVAL,
16         EACCES,
17         EEXIST,
18         EISDIR,
19         ENOENT,
20         ENOMEM,
21         ENOSPC,
22         EIO,
23         ENOTEMPTY,
24         ENOSYS,
25         EROFS,
26         EBUSY,
27         EAGAIN,
28         EISCONN,
29 };
30
31 #include "xendat.h"
32
33 #undef mk_unsigned_long
34 #define mk_unsigned_long(x) ((unsigned long)(x))
35
36 #ifndef set_xen_guest_handle
37 #define set_xen_guest_handle(hnd, val)  hnd = val
38 #endif
39
40 extern ulong hypervisor_virt_start;
41 extern ulong *patomfn, *matopfn;
42 extern start_info_t *xenstart;
43 extern ulong xentop;
44 extern shared_info_t *HYPERVISOR_shared_info;
45
46 /*
47  * Fake kmap
48  * XXX is this still viable?
49  */
50 #undef VA
51 #define VA(k)           ((ulong)(k))
52 #define kmap(p)         (KMap*)((p)->pa|KZERO)
53 #define kunmap(k)