Browse code

Use #pragma once instead of include guards.

Naram Qashat authored on 2014/09/08 14:47:36
Showing 1 changed files
... ...
@@ -17,8 +17,7 @@
17 17
 	along with the this software.  If not, see <http://www.gnu.org/licenses/>.
18 18
 */
19 19
 
20
-#ifndef FIFO_H
21
-#define FIFO_H
20
+#pragma once
22 21
 
23 22
 #include "types.h"
24 23
 
... ...
@@ -37,5 +36,3 @@ extern void IPC_FIFOinit(uint8_t proc);
37 36
 extern void IPC_FIFOsend(uint8_t proc, uint32_t val);
38 37
 extern uint32_t IPC_FIFOrecv(uint8_t proc);
39 38
 extern void IPC_FIFOcnt(uint8_t proc, uint16_t val);
40
-
41
-#endif
Browse code

Updating in_2sf to use a newish version of DeSmuME, 0.9.9 from SVN. Somewhat cleaned up as well, but not everything because it's a pain in the ass.

Naram Qashat authored on 2013/04/18 17:22:55
Showing 1 changed files
... ...
@@ -38,52 +38,4 @@ extern void IPC_FIFOsend(uint8_t proc, uint32_t val);
38 38
 extern uint32_t IPC_FIFOrecv(uint8_t proc);
39 39
 extern void IPC_FIFOcnt(uint8_t proc, uint16_t val);
40 40
 
41
-//=================================================== GFX FIFO
42
-
43
-//yeah, its oversize for now. thats a simpler solution
44
-//moon seems to overdrive the fifo with immediate dmas
45
-//i think this might be nintendo code too
46
-//static const uint32_t HACK_GXIFO_SIZE = 200000;
47
-
48
-/*struct GFX_FIFO
49
-{
50
-	uint8_t cmd[HACK_GXIFO_SIZE];
51
-	uint32_t param[HACK_GXIFO_SIZE];
52
-
53
-	uint32_t head; // start position
54
-	uint32_t tail; // tail
55
-	uint32_t size; // size FIFO buffer
56
-};*/
57
-
58
-/*struct GFX_PIPE
59
-{
60
-	uint8_t cmd[4];
61
-	uint32_t param[4];
62
-
63
-	uint8_t head;
64
-	uint8_t tail;
65
-	uint8_t size;
66
-};*/
67
-
68
-//extern GFX_PIPE gxPIPE;
69
-//extern GFX_FIFO gxFIFO;
70
-//extern void GFX_PIPEclear();
71
-//extern void GFX_FIFOclear();
72
-//extern void GFX_FIFOsend(uint8_t cmd, uint32_t param);
73
-//extern bool GFX_PIPErecv(uint8_t *cmd, uint32_t *param);
74
-//extern void GFX_FIFOcnt(uint32_t val);
75
-
76
-//=================================================== Display memory FIFO
77
-/*struct DISP_FIFO
78
-{
79
-	uint32_t buf[0x6000]; // 256x192 32K color
80
-	uint32_t head; // head
81
-	uint32_t tail; // tail
82
-};*/
83
-
84
-//extern DISP_FIFO disp_fifo;
85
-//extern void DISP_FIFOinit();
86
-//extern void DISP_FIFOsend(uint32_t val);
87
-//extern uint32_t DISP_FIFOrecv();
88
-
89 41
 #endif
Browse code

Import actual code.

Naram Qashat authored on 2013/03/26 02:41:19
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,89 @@
1
+/*
2
+	Copyright 2006 yopyop
3
+	Copyright 2007 shash
4
+	Copyright 2007-2011 DeSmuME team
5
+
6
+	This file is free software: you can redistribute it and/or modify
7
+	it under the terms of the GNU General Public License as published by
8
+	the Free Software Foundation, either version 2 of the License, or
9
+	(at your option) any later version.
10
+
11
+	This file is distributed in the hope that it will be useful,
12
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+	GNU General Public License for more details.
15
+
16
+	You should have received a copy of the GNU General Public License
17
+	along with the this software.  If not, see <http://www.gnu.org/licenses/>.
18
+*/
19
+
20
+#ifndef FIFO_H
21
+#define FIFO_H
22
+
23
+#include "types.h"
24
+
25
+//=================================================== IPC FIFO
26
+struct IPC_FIFO
27
+{
28
+	uint32_t buf[16];
29
+
30
+	uint8_t head;
31
+	uint8_t tail;
32
+	uint8_t size;
33
+};
34
+
35
+extern IPC_FIFO ipc_fifo[2];
36
+extern void IPC_FIFOinit(uint8_t proc);
37
+extern void IPC_FIFOsend(uint8_t proc, uint32_t val);
38
+extern uint32_t IPC_FIFOrecv(uint8_t proc);
39
+extern void IPC_FIFOcnt(uint8_t proc, uint16_t val);
40
+
41
+//=================================================== GFX FIFO
42
+
43
+//yeah, its oversize for now. thats a simpler solution
44
+//moon seems to overdrive the fifo with immediate dmas
45
+//i think this might be nintendo code too
46
+//static const uint32_t HACK_GXIFO_SIZE = 200000;
47
+
48
+/*struct GFX_FIFO
49
+{
50
+	uint8_t cmd[HACK_GXIFO_SIZE];
51
+	uint32_t param[HACK_GXIFO_SIZE];
52
+
53
+	uint32_t head; // start position
54
+	uint32_t tail; // tail
55
+	uint32_t size; // size FIFO buffer
56
+};*/
57
+
58
+/*struct GFX_PIPE
59
+{
60
+	uint8_t cmd[4];
61
+	uint32_t param[4];
62
+
63
+	uint8_t head;
64
+	uint8_t tail;
65
+	uint8_t size;
66
+};*/
67
+
68
+//extern GFX_PIPE gxPIPE;
69
+//extern GFX_FIFO gxFIFO;
70
+//extern void GFX_PIPEclear();
71
+//extern void GFX_FIFOclear();
72
+//extern void GFX_FIFOsend(uint8_t cmd, uint32_t param);
73
+//extern bool GFX_PIPErecv(uint8_t *cmd, uint32_t *param);
74
+//extern void GFX_FIFOcnt(uint32_t val);
75
+
76
+//=================================================== Display memory FIFO
77
+/*struct DISP_FIFO
78
+{
79
+	uint32_t buf[0x6000]; // 256x192 32K color
80
+	uint32_t head; // head
81
+	uint32_t tail; // tail
82
+};*/
83
+
84
+//extern DISP_FIFO disp_fifo;
85
+//extern void DISP_FIFOinit();
86
+//extern void DISP_FIFOsend(uint32_t val);
87
+//extern uint32_t DISP_FIFOrecv();
88
+
89
+#endif