workaround a problem with the harmattan gcc
[drnoksnes] / missing.h
1 /*
2  * Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
3  *
4  * (c) Copyright 1996 - 2001 Gary Henderson (gary.henderson@ntlworld.com) and
5  *                           Jerremy Koot (jkoot@snes9x.com)
6  *
7  * Super FX C emulator code 
8  * (c) Copyright 1997 - 1999 Ivar (ivar@snes9x.com) and
9  *                           Gary Henderson.
10  * Super FX assembler emulator code (c) Copyright 1998 zsKnight and _Demo_.
11  *
12  * DSP1 emulator code (c) Copyright 1998 Ivar, _Demo_ and Gary Henderson.
13  * C4 asm and some C emulation code (c) Copyright 2000 zsKnight and _Demo_.
14  * C4 C code (c) Copyright 2001 Gary Henderson (gary.henderson@ntlworld.com).
15  *
16  * DOS port code contains the works of other authors. See headers in
17  * individual files.
18  *
19  * Snes9x homepage: http://www.snes9x.com
20  *
21  * Permission to use, copy, modify and distribute Snes9x in both binary and
22  * source form, for non-commercial purposes, is hereby granted without fee,
23  * providing that this license information and copyright notice appear with
24  * all copies and any derived work.
25  *
26  * This software is provided 'as-is', without any express or implied
27  * warranty. In no event shall the authors be held liable for any damages
28  * arising from the use of this software.
29  *
30  * Snes9x is freeware for PERSONAL USE only. Commercial users should
31  * seek permission of the copyright holders first. Commercial use includes
32  * charging money for Snes9x or software derived from Snes9x.
33  *
34  * The copyright holders request that bug fixes and improvements to the code
35  * should be forwarded to them so everyone can benefit from the modifications
36  * in future versions.
37  *
38  * Super NES and Super Nintendo Entertainment System are trademarks of
39  * Nintendo Co., Limited and its subsidiary companies.
40  */
41 #ifndef _MISSING_H_
42 #define _MISSING_H_
43
44 struct HDMA
45 {
46     uint8 used;
47     uint8 bbus_address;
48     uint8 abus_bank;
49     uint16 abus_address;
50     uint8 indirect_address;
51     uint8 force_table_address_write;
52     uint8 force_table_address_read;
53     uint8 line_count_write;
54     uint8 line_count_read;
55 };
56
57 struct Missing
58 {
59     uint8 emulate6502;
60     uint8 decimal_mode;
61     uint8 mv_8bit_index;
62     uint8 mv_8bit_acc;
63     uint8 interlace;
64     uint8 lines_239;
65     uint8 pseudo_512;
66     struct HDMA hdma [8];
67     uint8 modes [8];
68     uint8 mode7_fx;
69     uint8 mode7_flip;
70     uint8 mode7_bgmode;
71     uint8 direct;
72     uint8 matrix_multiply;
73     uint8 oam_read;
74     uint8 vram_read;
75     uint8 cgram_read;
76     uint8 wram_read;
77     uint8 dma_read;
78     uint8 vram_inc;
79     uint8 vram_full_graphic_inc;
80     uint8 virq;
81     uint8 hirq;
82     uint16 virq_pos;
83     uint16 hirq_pos;
84     uint8 h_v_latch;
85     uint8 h_counter_read;
86     uint8 v_counter_read;
87     uint8 fast_rom;
88     uint8 window1 [6];
89     uint8 window2 [6];
90     uint8 sprite_priority_rotation;
91     uint8 subscreen;
92     uint8 subscreen_add;
93     uint8 subscreen_sub;
94     uint8 fixed_colour_add;
95     uint8 fixed_colour_sub;
96     uint8 mosaic;
97     uint8 sprite_double_height;
98     uint8 dma_channels;
99     uint8 dma_this_frame;
100     uint8 oam_address_read;
101     uint8 bg_offset_read;
102     uint8 matrix_read;
103     uint8 hdma_channels;
104     uint8 hdma_this_frame;
105     uint16 unknownppu_read;
106     uint16 unknownppu_write;
107     uint16 unknowncpu_read;
108     uint16 unknowncpu_write;
109     uint16 unknowndsp_read;
110     uint16 unknowndsp_write;
111 };
112
113 EXTERN_C struct Missing missing;
114 #endif