1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-04 18:22:02 +02:00
Files
u-boot-megous/memtest/types.h
Ondrej Jirman ba8c26ce40 initial
2019-03-04 15:37:41 +01:00

38 lines
974 B
C
Executable File

/*
* Very simple but very effective user-space memory tester.
* Originally by Simon Kirby <sim@stormix.com> <sim@neato.org>
* Version 2 by Charles Cazabon <charlesc-memtester@pyropus.ca>
* Version 3 not publicly released.
* Version 4 rewrite:
* Copyright (C) 2004-2010 Charles Cazabon <charlesc-memtester@pyropus.ca>
* Licensed under the terms of the GNU General Public License version 2 (only).
* See the file COPYING for details.
*
* This file contains typedefs, structure, and union definitions.
*
*/
#include "sizes.h"
typedef unsigned long ul;
typedef unsigned long long ull;
typedef unsigned long volatile ulv;
typedef unsigned char volatile u8v;
typedef unsigned short volatile u16v;
struct test {
char *name;
int (*fp)(unsigned long volatile *bufa, unsigned long volatile *bufb, size_t count);
};
#if 0
union {
unsigned char bytes[UL_LEN/8];
ul val;
} mword8;
union {
unsigned short u16s[UL_LEN/16];
ul val;
} mword16;
#endif