simple.h
1.85 KB
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
/*---------------------------------------------------------------------*
Copyright (C) 1998 Nintendo. (Originated by SGI)
$RCSfile: simple.h,v $
$Revision: 1.1.1.1 $
$Date: 2002/05/02 03:27:21 $
*---------------------------------------------------------------------*/
/*
* simple.h
*/
#ifndef __simple__
#define __simple__
#define STACKSIZEBYTES 0x2000
#define STATIC_SEGMENT 1
#define DYNAMIC_SEGMENT 2
#ifdef _LANGUAGE_C
#include <ultra64.h>
#include "gfx.h"
#define MAX_MESGS 8
#define DMA_QUEUE_SIZE 200
#define NUM_FIELDS 1 /* 1 = 60 Hz video interrupts, 2 = 30 Hz, etc */
#define UTIL_PRIORITY 1
#define INIT_PRIORITY 10
#define GAME_PRIORITY 10
#define AUDIO_PRIORITY 12
#define SCHEDULER_PRIORITY 13
#define LOG_SCHEDULE_GFX_TASK 101
#define LOG_RDP_DONE 102
#define LOG_RETRACE 103
#define LOG_INTR 104
/* define a message after the set used by the scheduler */
#define SIMPLE_CONTROLLER_MSG (OS_SC_LAST_MSG+1)
#ifdef _FINALROM
/* cc will give warnings about argument mismatch in rom version */
#define PRINTF(a)
#else
#define PRINTF osSyncPrintf
#endif
extern OSMesgQueue gfxFrameMsgQ;
extern OSMesg gfxFrameMsgBuf[MAX_MESGS];
extern OSPiHandle *handler;
#ifndef _FINALROM
extern OSLog *log;
extern int logging;
#endif
extern char _gfxdlistsSegmentStart[], _gfxdlistsSegmentEnd[];
extern char _staticSegmentRomStart[], _staticSegmentRomEnd[];
extern char _tableSegmentRomStart[], _tableSegmentRomEnd[];
extern char _seqSegmentRomStart[], _seqSegmentRomEnd[];
extern char _bankSegmentRomStart[], _bankSegmentRomEnd[];
void initAudio(void);
void initGFX(void);
void initCntrl(void);
void createGfxTask(GFXInfo *i);
void romCopy(const char *src, const char *dest, const int len);
void UpdateController(void);
#endif /* _LANGUAGE_C */
#endif