OpenCores
URL https://opencores.org/ocsvn/de1_olpcl2294_system/de1_olpcl2294_system/trunk

Subversion Repositories de1_olpcl2294_system

[/] [de1_olpcl2294_system/] [trunk/] [sw/] [ecos/] [shell/] [memtest.h] - Blame information for rev 10

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 qaztronic
/**********************************************************************
2
 *
3
 * Filename:    memtest.h
4
 *
5
 * Description: Memory-testing module API.
6
 *
7
 * Notes:       The memory tests can be easily ported to systems with
8
 *              different data bus widths by redefining 'datum' type.
9
 *
10
 *
11
 * Copyright (c) 2000 by Michael Barr.  This software is placed into
12
 * the public domain and may be used for any purpose.  However, this
13
 * notice must not be changed or removed and no warranty is either
14
 * expressed or implied by its publication or distribution.
15
 **********************************************************************/
16
 
17
#ifndef _memtest_h
18
#define _memtest_h
19
 
20
 
21
/*
22
 * Define NULL pointer value.
23
 */
24
#ifndef NULL
25
#define NULL  (void *) 0
26
#endif
27
 
28
/*
29
 * Set the data bus width.
30
 */
31
typedef unsigned long datum;
32
 
33
/*
34
 * Function prototypes.
35
 */
36
datum   memTestDataBus(volatile datum * address);
37
datum * memTestAddressBus(volatile datum * baseAddress, unsigned long nBytes);
38
datum * memTestDevice(volatile datum * baseAddress, unsigned long nBytes);
39
 
40
 
41
#endif /* _memtest_h */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.