verify.h
3.48 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#ifndef _VERIFY_H_
#define _VERIFY_H_
/**************************************************************************
* *
* Copyright (C) 1994, Silicon Graphics, Inc. *
* *
* These coded instructions, statements, and computer programs contain *
* unpublished proprietary information of Silicon Graphics, Inc., and *
* are protected by Federal copyright law. They may not be disclosed *
* to third parties or copied or duplicated in any form, in whole or *
* in part, without the prior written consent of Silicon Graphics, Inc. *
* *
**************************************************************************/
/**************************************************************************
*
* $Revision: 1.1.1.2 $
* $Date: 2002/10/29 08:06:34 $
* $Source: /root/leakn64/depot/rf/sw/bbplayer/include/verify.h,v $
*
**************************************************************************/
#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
/*
* This structure must be aligned to 64-bit boundary for the
* RSP to get at it. Likewise, the important fields that the
* RSP writes back must also be aligned...
*/
typedef struct {
unsigned int rspListAddr; /* 0x00 */ /* ALIGNED */
unsigned int rspListSize; /* 0x04 */
unsigned int rspListType; /* 0x08 */
unsigned int ucodeTextAddr; /* 0x0c */
unsigned int ucodeDataAddr; /* 0x10 */
unsigned int ucodeDataSize; /* 0x14 */
unsigned int dramStackAddr; /* 0x18 */
unsigned int dramStackSize; /* 0x1c */
/* this length must be a 64-bit thing so the RSP can DMA it */
unsigned long long int rdpListSize; /* 0x20 */ /* ALIGNED */
unsigned int rdpListAddr; /* 0x28 */ /* ALIGNED */
unsigned int pad1;
unsigned int bootUcodeAddr; /* 0x30 */
unsigned short width; /* 0x34 */
unsigned short height; /* 0x36 */
unsigned int frameBuffer0Addr; /* 0x38 */
unsigned int frameBuffer1Addr; /* 0x3c */
unsigned int zBufferAddr; /* 0x40 */
unsigned long magicNumber; /* 0x44 */
unsigned long version; /* 0x48 */
unsigned int frameBufferFormat; /* 0x4c */
unsigned int frameBufferSize; /* 0x50 */
unsigned int staticSegAddr; /* 0x54 */
unsigned int staticSegSize; /* 0x58 */
} VerifyInfo;
#define MAGICNUMBER 0x102594 /* (Kaelyn's Birthday) */
#define VERSION 1
#define CVGMAGIC 0x00120594
struct CVGHeader {
unsigned long magic;
unsigned char format;
unsigned char size;
unsigned short width;
unsigned short height;
};
#endif /* _LANGUAGE_C */
#define VERIFY_INFO_PHYSADDR 0x00000800
#define RSPLIST_ADDR_OFFSET 0x00
#define RSPLIST_SIZE_OFFSET 0x04
#define RSPLIST_TYPE_OFFSET 0x08
#define UCODETEXT_ADDR_OFFSET 0x0c
#define UCODEDATA_ADDR_OFFSET 0x10
#define UCODEDATA_SIZE_OFFSET 0x14
#define DRAMSTACK_ADDR_OFFSET 0x18
#define DRAMSTACK_SIZE_OFFSET 0x1c
#define RDPLISTSIZE_OFFSET 0x20
#define RDPLIST_ADDR_OFFSET 0x28
#define BOOTUCODE_ADDR_OFFST 0x30
#define WIDTH_OFFSET 0x34
#define HEIGHT_OFFSET 0x36
#define FRAMEBUFFER0_ADDR_OFFSET 0x38
#define FRAMEBUFFER1_ADDR_OFFSET 0x3c
#define ZBUFFER_ADDR_OFFSET 0x40
/*
* Address map for family of verification programs
*/
#define JEAN_START_ADDR 0x000000
#define JEAN_END_ADDR 0x010000
#define APP_START_ADDR JEAN_END_ADDR
#define APP_END_ADDR 0x0b0000
#define FB_START_ADDR APP_END_ADDR
#define ZB_START_ADDR 0x100000
#define ZB_END_ADDR 0x125800
#define EVAN_START_ADDR 0x130000
#define EVAN_END_ADDR 0x140000
#endif /* !_VERIFY_H_ */