57 lines
1.8 KiB
C
57 lines
1.8 KiB
C
/* V2MemTest - A CLI Tool to test & fix Voodoo² TMU System
|
|
* Copyright (C) 2026 ChaCha
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef _DEF_TEST_DATA_NOMEM_H_
|
|
#define _DEF_TEST_DATA_NOMEM_H_
|
|
|
|
#include <stdint.h>
|
|
#include "cvg.h"
|
|
#include "FaultSources.h"
|
|
|
|
typedef union _def_uTestPatternData{
|
|
struct {
|
|
uint16_t u16Pix[4][4]; //value in LFB after Blend
|
|
uint8_t u8APix[4][4]; //value in LFB after Blend
|
|
}access;
|
|
uint32_t raw[8+4];
|
|
}def_uTestPatternData;
|
|
|
|
typedef struct _def_sFaultSourceLineMap
|
|
{
|
|
def_eFaultSource eTMUFaultSource_FBI;
|
|
def_eFaultSource eTMUFaultSource_TMU0_RES;
|
|
def_eFaultSource eTMUFaultSource_TMU0_FBI;
|
|
def_eFaultSource eTMUFaultSource_TMU0_TMU1;
|
|
def_eFaultSource eTMUFaultSource_TMU1;
|
|
}def_sFaultSourceLineMap;
|
|
|
|
typedef struct _def_sTestPattern
|
|
{
|
|
uint8_t bReferenceSet;
|
|
uint8_t u8FaultLineIdx;
|
|
def_uTestPatternData data; // expected value in LFB after Blend
|
|
}def_sTestPattern;
|
|
|
|
unsigned long long
|
|
test_TMU_datalines_NoMem( sst1DeviceInfoStruct * const devInfo,
|
|
FxU32 * const sst,
|
|
SstRegs * const sstregs,
|
|
const unsigned char ucNumTMU,
|
|
def_sFaultSourceScoreRec* const pFaultSrcCtx);
|
|
|
|
#endif //_DEF_TEST_DATA_NOMEM_H_
|