⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 memory.h

📁 PXA270矩内存测试程序
💻 H
字号:
/******************************************************************************
**
**  COPYRIGHT (C) 2000, 2001 Intel Corporation.
**
**  This software as well as the software described in it is furnished under 
**  license and may only be used or copied in accordance with the terms of the 
**  license. The information in this file is furnished for informational use 
**  only, is subject to change without notice, and should not be construed as 
**  a commitment by Intel Corporation. Intel Corporation assumes no 
**  responsibility or liability for any errors or inaccuracies that may appear 
**  in this document or any software that may be provided in association with 
**  this document. 
**  Except as permitted by such license, no part of this document may be 
**  reproduced, stored in a retrieval system, or transmitted in any form or by 
**  any means without the express written consent of Intel Corporation. 
**
**  FILENAME:       memory.h
**
**  PURPOSE:        This file contains definitions for the memory tests.
**
**  LAST MODIFIED:  $Modtime: 7/17/03 1:01p $
******************************************************************************/

#ifndef _memory_h_
#define _memory_h_

// Memory patter for Ones Sum tests.
#define ONES_PATTERN        0x11111111

// Address stepping for sum tests.
#define PARTIAL_STEP        0x20           // Every 32 bytes
#define FULL_STEP           4              // Every location

// Memory error codes.
#define ERR_TS_MEMORY       0x80     // Error in GetParameters()
#define ERR_TS_SDRAM_WO     0x81     // SDRAM walking ones verify error
#define ERR_TS_SDRAM_WZ     0x82     // SDRAM walking zeros verify error
#define ERR_TS_SDRAM_OS     0x83     // SDRAM ones sum verify error
#define ERR_TS_SDRAM_COS    0x84     // SDRAM complement ones sum verify error
#define ERR_TS_DMAMEM       0x85     // DMA memory to memory transfer
#define ERR_TS_MEMADDR      0x86     // Error in MemoryAddressLines()
#define ERR_TS_POSTMEM      0x87     // Error in one of the functons called from PostMemory() 

/*
*******************************************************************************
*    Memory Test APIs.
*******************************************************************************
*/
VOID MemoryAddressLines(PVOID ctxP, PCHAR arg);
VOID MemoryWalking1(PVOID ctxP, PCHAR arg);
VOID MemoryWalking0(PVOID ctxP, PCHAR arg);
VOID MemoryOnesSum(PVOID ctxP, PCHAR arg);
VOID MemoryNotOnesSum(PVOID ctxP, PCHAR arg);
VOID DmaMemToMemTest(PVOID ctxP, PCHAR arg);
INT PostMemory(VOID);
VOID PostMemoryTest(PVOID ctxP, PCHAR arg);

#endif // _memory_h_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -