1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
/*
* Open Watcom generate invalid code when using inline const strings,
* so this code doesn't work:
* void somefunc(){
* printf("Hello %s!", "World");
* }
* Workaround is following:
* static char str_hello[] = "Hello %s!";
* static char str_world[] = "World";
* void somefunc(){
* printf(str_hello, str_world);
* }
*
* And for these string is this file...
*
*/
#ifdef DBGPRINT
#ifdef VXD_MAIN
#define DSTR(_n, _s) char _n[] = _s
#else
#define DSTR(_n, _s) extern char _n[]
#endif
DSTR(dbg_hello, "Hello world!\n");
DSTR(dbg_version, "VMM version: ");
DSTR(dbg_region_err, "region create error\n");
DSTR(dbg_Device_Init_proc, "Device_Init_proc\n");
DSTR(dbg_Device_Init_proc_succ, "Device_Init_proc success\n");
DSTR(dbg_dic_ring, "DeviceIOControl: Ring\n");
DSTR(dbg_dic_sync, "DeviceIOControl: Sync\n");
DSTR(dbg_dic_unknown, "DeviceIOControl: Unknown: %d\n");
DSTR(dbg_dic_system, "DeviceIOControl: System code: %d\n");
DSTR(dbg_get_ppa, "%lx -> %lx\n");
DSTR(dbg_get_ppa_beg, "Virtual: %lx\n");
DSTR(dbg_mob_allocate, "Allocated OTable row: %d\n");
DSTR(dbg_str, "%s\n");
DSTR(dbg_submitcb_fail, "CB submit FAILED\n");
DSTR(dbg_submitcb, "CB submit %d\n");
DSTR(dbg_lockcb, "Reused CB (%d) with status: %d\n");
DSTR(dbg_lockcb_lasterr, "Error command: %lX\n");
DSTR(dbg_cb_on, "CB supported and allocated\n");
DSTR(dbg_gb_on, "GB supported and allocated\n");
DSTR(dbg_cb_ena, "CB context 0 enabled\n");
DSTR(dbg_region_info_1, "Region id = %d\n");
DSTR(dbg_region_info_2,"Region address = %lX, PPN = %lX, GMRBLK = %lX\n");
DSTR(dbg_mapping, "Memory mapping:\n");
DSTR(dbg_mapping_map, " %X -> %X\n");
DSTR(dbg_destroy, "Driver destroyed\n");
DSTR(dbg_siz, "Size of gSVGA(2) = %d %d\n");
DSTR(dbg_test, "test %d\n");
DSTR(dbg_SVGA_Init, "SVGA_Init: %d\n");
DSTR(dbg_update, "Update screen: %d %d %d\n");
DSTR(dbg_cmd_on, "SVGA_CMB_submit: first cmd: %X, flags: %X, size: %d\n");
DSTR(dbg_cmd_off, "SVGA_CMB_submit: end - cmd: %X\n");
DSTR(dbg_cmd_error, "CB error: %d, first cmd %X (error at %d)\n");
DSTR(dbg_deviceiocontrol, "DeviceIoControl(%x);\n");
DSTR(dbg_gmr, "GMR: %ld at %X\n");
DSTR(dbg_gmr_succ, "GMR success, size: %ld\n");
DSTR(dbg_region_simple, "GMR is continous, memory maped: %X, user memory: %X\n");
DSTR(dbg_region_fragmented, "GMR is fragmented\n");
DSTR(dbg_pages, "GMR: size: %ld pages: %ld P_SIZE: %ld\n");
DSTR(dbg_fence_overflow, "fence overflow\n");
DSTR(dbg_pagefree, "_PageFree: %X\n");
#undef DSTR
#endif
|