📄 prmdump.h
字号:
/******************************************************************************
* Name : prmdump.h
* Title : Global param dumping defs.
* Author(s) : Imagination Technologies
* Created : 1st August 2003
*
* Copyright : 2003 by Imagination Technologies Limited.
* All rights reserved. No part of this software, either
* material or conceptual may be copied or distributed,
* transmitted, transcribed, stored in a retrieval system
* or translated into any human or computer language in any
* form by any means, electronic, mechanical, manual or
* other-wise, or disclosed to third parties without the
* express written permission of Imagination Technologies
* Limited, Unit 8, HomePark Industrial Estate,
* King's Langley, Hertfordshire, WD4 8LZ, U.K.
*
* Description : Global param dumping defs.
*
* Platform : Generic
*
* Notes : formerly prmdump.h mks rev 1.3
*
* Modifications:-
* $Log: prmdump.h $
*
*
******************************************************************************/
#if !defined (_PRMDUMP_H_)
#define _PRMDUMP_H_
/*
Param dump signature defs.
Could really do with some level of sub-typing here e.g. 3D/2D etc
*/
#define PDUMP_SIGNATURE_FRAM (((DWORD)'F' << 24) + ((DWORD)'R' << 16) + \
((DWORD)'A' << 8) + (DWORD) 'M')
#define PDUMP_SIGNATURE_SCEN (((DWORD)'S' << 24) + ((DWORD)'C' << 16) + \
((DWORD)'E' << 8) + (DWORD) 'N')
#define PDUMP_SIGNATURE_TEXT (((DWORD)'T' << 24) + ((DWORD)'E' << 16) + \
((DWORD)'X' << 8) + (DWORD) 'T')
#define PDUMP_SIGNATURE_PASS (((DWORD)'P' << 24) + ((DWORD)'A' << 16) + \
((DWORD)'S' << 8) + (DWORD) 'S')
#define PDUMP_SIGNATURE_REGS (((DWORD)'R' << 24) + ((DWORD)'E' << 16) + \
((DWORD)'G' << 8) + (DWORD) 'R')
#define PDUMP_SIGNATURE_FOG (((DWORD)'F' << 24) + ((DWORD)'O' << 16) + \
((DWORD)'G' << 8) + (DWORD) ' ')
#define PDUMP_SIGNATURE_TA (((DWORD)'T' << 24) + ((DWORD)'A' << 16) + \
((DWORD)' ' << 8) + (DWORD) ' ')
#define PDUMP_SIGNATURE_OBJ (((DWORD)'O' << 24) + ((DWORD)'B' << 16) + \
((DWORD)'J' << 8) + (DWORD) ' ')
#define PDUMP_SIGNATURE_BGOBJ (((DWORD)'B' << 24) + ((DWORD)'G' << 16) + \
((DWORD)'O' << 8) + (DWORD) 'J')
/*
Additional signatures for copy through/macro tiled mode..
PCTL - TA header indicating memory to use.
MTCB - Macro tile control block i.e MT header, passes,
pass page tables.
MTCP - Page table for the above.
PBPT - Pointer buffer page table.
PTRB - Pointer buffer (this superseeds TA in 1B sim).
MTPT - Page table which holds addresses of object pointer pages.
MTPP - Page table for the page table which holds addresses of object pointer pages.
*/
#define PDUMP_SIGNATURE_PCTL (((DWORD)'P' << 24) + ((DWORD)'C' << 16) + \
((DWORD)'T' << 8) + (DWORD) 'L')
#define PDUMP_SIGNATURE_MTCB (((DWORD)'M' << 24) + ((DWORD)'T' << 16) + \
((DWORD)'C' << 8) + (DWORD) 'B')
#define PDUMP_SIGNATURE_MTCP (((DWORD)'M' << 24) + ((DWORD)'T' << 16) + \
((DWORD)'C' << 8) + (DWORD) 'P')
#define PDUMP_SIGNATURE_PBPT (((DWORD)'P' << 24) + ((DWORD)'B' << 16) + \
((DWORD)'P' << 8) + (DWORD) 'T')
#define PDUMP_SIGNATURE_PTRB (((DWORD)'P' << 24) + ((DWORD)'T' << 16) + \
((DWORD)'R' << 8) + (DWORD) 'B')
#define PDUMP_SIGNATURE_MTPT (((DWORD)'M' << 24) + ((DWORD)'T' << 16) + \
((DWORD)'P' << 8) + (DWORD) 'T')
#define PDUMP_SIGNATURE_MTPP (((DWORD)'M' << 24) + ((DWORD)'T' << 16) + \
((DWORD)'P' << 8) + (DWORD) 'P')
/*
Format of data written into file, as retrieved in common.c (pdump stuff).
This structure will be followed by n blocks totaling dwDataSize.
*/
typedef struct _FDATA_
{
DWORD dwS1; /* = 4 */
DWORD dwSignature; /* e.g. PDUMP_SIGNATURE_REGS */
DWORD dwS2; /* = 4 */
DWORD dwAddress; /* Target address (can be 0) */
DWORD dwS3; /* = 4 */
DWORD dwDataSize; /* Size of data in bytes (follows) */
} FDATA, *PFDATA;
#endif /* _PRMDUMP_H_ */
/*****************************************************************************
End of file (prmdump.h)
*****************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -