~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: df05d9bb29c54d507d684391c7e954d8668efbc6 (plain)
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
/**********************************************************************
 *
 * Filename:    memtest.h
 *
 * Description: Memory-testing module API.
 *
 * Notes:       The memory tests can be easily ported to systems with
 *              different data bus widths by redefining 'unsigned int' type.
 *
 *
 * Copyright (c) 2000 by Michael Barr.  This software is placed into
 * the public domain and may be used for any purpose.  However, this
 * notice must not be changed or removed and no warranty is either
 * expressed or implied by its publication or distribution.
 **********************************************************************/

#ifndef _memtest_h
#define _memtest_h


/*
 * Define NULL pointer value.
 */
#ifndef NULL
#define NULL  (void *) 0
#endif

/*
 * Set the data bus width.
 */
//typedef unsigned int unsigned int;

/*
 * Function prototypes.
 */

unsigned int memTestDataBus(volatile unsigned int * address);
unsigned int memTestAddressBus(volatile unsigned int * baseAddress, unsigned int nBytes);
unsigned int memTestDevice(volatile unsigned int * baseAddress, unsigned int nBytes);

#endif /* _memtest_h */