xref: /OK3568_Linux_fs/u-boot/cmd/ddr_tool/memtester/types.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Very simple but very effective user-space memory tester.
4  * Originally by Simon Kirby <sim@stormix.com> <sim@neato.org>
5  * Version 2 by Charles Cazabon <charlesc-memtester@pyropus.ca>
6  * Version 3 not publicly released.
7  * Version 4 rewrite:
8  * Copyright (C) 2004-2010 Charles Cazabon <charlesc-memtester@pyropus.ca>
9  * Licensed under the terms of the GNU General Public License version 2 (only).
10  * See the file COPYING for details.
11  *
12  * This file contains typedefs, structure, and union definitions.
13  *
14  */
15 #ifndef __MEMTESTER_TYPES_H
16 #define __MEMTESTER_TYPES_H
17 
18 typedef unsigned long ul;
19 typedef unsigned long long ull;
20 /* for all rk chip, dram bandwidth both 32bit */
21 typedef unsigned int volatile u32v;
22 typedef unsigned char volatile u8v;
23 typedef unsigned short volatile u16v;
24 
25 struct test {
26 	char *name;
27 	int (*fp)(u32v *bufa, u32v *bufb, size_t count,
28 		  ul fix_bit, ul fix_level);
29 };
30 
31 #endif /* __MEMTESTER_TYPES_H */
32