~ubuntu-branches/ubuntu/wily/mupen64plus/wily

« back to all changes in this revision

Viewing changes to roms/mupen64plus/hardware.h

  • Committer: Bazaar Package Importer
  • Author(s): Sven Eckelmann
  • Date: 2011-07-24 14:23:26 UTC
  • mfrom: (10.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110724142326-x9z5qu8j9jecrmod
Tags: 1.99.4+2
* Upload to unstable
* Remove overrides for lintian warning about change to native package
* Update Vcs-* fields to new anonscm.debian.org URLs in debian/control
* Fix spelling of "Flexible" in debian/control (Closes: #633693)
* Mark all targets in debian/rules as phony
* Add some information about the mupen64plus 2.0 vision in debian/NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2
 
 *   Mupen64plus - hardware.h                                              *
3
 
 *   Mupen64Plus homepage: http://code.google.com/p/mupen64plus/           *
4
 
 *   Copyright (C) 2008 Marshallh                                          *
5
 
 *                                                                         *
6
 
 *   This program 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 program 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 this program; if not, write to the                         *
18
 
 *   Free Software Foundation, Inc.,                                       *
19
 
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
20
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
21
 
 
22
 
/* Frame buffer variables. */
23
 
 
24
 
#ifdef SCREEN_BPP_8
25
 
/* 8-bit CFB defines. */
26
 
u8* Logical_CFB    = _cfb[0];
27
 
u8* Next_CFB       = _cfb[1];
28
 
u8* Next2_CFB      = _cfb[2];
29
 
u16 CFB_Count      = 0; /* Current logical CFB. */
30
 
u16 CFB_NextCount  = 1; /* Next logical CFB. */
31
 
u16 CFB_NextCount2 = 2; /* Second next logical CFB. */
32
 
#else
33
 
#ifdef SCREEN_BPP_16
34
 
/* 16-bit CFB defines. */
35
 
u16* Logical_CFB   = _cfb[0];
36
 
u16* Next_CFB      = _cfb[1];
37
 
u16* Next2_CFB     = _cfb[2];
38
 
u16 CFB_Count      = 0; /* Current logical CFB. */
39
 
u16 CFB_NextCount  = 1; /* Next logical CFB. */
40
 
u16 CFB_NextCount2 = 2; /* Second next logical CFB. */
41
 
#else
42
 
#ifdef SCREEN_BPP_32
43
 
/* 32-bit CFB defines. */
44
 
u32* Logical_CFB   = _cfb[0];
45
 
u32* Next_CFB      = _cfb[1];
46
 
u32* Next2_CFB     = _cfb[2];
47
 
u16 CFB_Count      = 0; /* Current logical CFB. */
48
 
u16 CFB_NextCount  = 1; /* Next logical CFB. */
49
 
u16 CFB_NextCount2 = 2; /* Second next logical CFB. */
50
 
#endif
51
 
#endif
52
 
#endif
53
 
 
54
 
/* FIFO size */
55
 
u8*     fifosize;
56
 
 
57
 
/* Tasks */
58
 
OSTask  task[NUM_CFB];
59
 
 
60
 
/* Dynamic data */
61
 
Dynamic dynamic[NUM_CFB];
62
 
 
63
 
/* Threads */
64
 
static OSThread mainThread;
65
 
static OSThread gameThread;
66
 
 
67
 
/* Stacks */
68
 
u64 bootStack[STACKSIZE/8]; /* For boot code.  Can reuse on boot code exit. */
69
 
u64 mainStack[STACKSIZE/8]; /* Stacks for threads... */
70
 
u64 gameStack[STACKSIZE/8];
71
 
 
72
 
 
73
 
/* Message queues. */
74
 
OSMesg      PiMessages[PI_MSGQUEUE_SIZE];
75
 
OSMesgQueue PiMessageQ;
76
 
 
77
 
OSMesg      SiMessages;
78
 
OSMesgQueue SiMessageQ;
79
 
 
80
 
OSMesg      DMAMessages[DMA_MSGQUEUE_SIZE];
81
 
OSMesgQueue DMAMessageQ;
82
 
 
83
 
OSMesg      RDPDoneMessages[RDPDONE_MSGQUEUE_SIZE];
84
 
OSMesgQueue RDPDoneMessageQ;
85
 
 
86
 
OSMesg      RSPDoneMessages[RSPDONE_MSGQUEUE_SIZE];
87
 
OSMesgQueue RSPDoneMessageQ;
88
 
 
89
 
OSMesg      RetraceMessages[RETRACE_MSGQUEUE_SIZE];
90
 
OSMesgQueue RetraceMessageQ;
91
 
 
92
 
OSMesg      dummyMsg;
93
 
 
94
 
/* RSP */
95
 
char     *rsp_static_addr; /* R4300 addr where rsp_static segment loaded */
96
 
char     *rsp_static_end;  /* R4300 addr+1 for end of the load region */
97
 
u32      rsp_static_len ;
98
 
 
99
 
/* Viewport structure */
100
 
Vp vp =
101
 
{
102
 
    SCREEN_WIDTH*2, SCREEN_HEIGHT*2, G_MAXZ/2, 0, /* scale */
103
 
    SCREEN_WIDTH*2, SCREEN_HEIGHT*2, G_MAXZ/2, 0, /* translate */
104
 
};
105
 
 
106
 
/* Screen clear color */
107
 
u32     ScreenClearColor = GPACK_RGBA5551(0, 0, 0, 1);