source: SVN/cambria/redboot/packages/redboot/current/include/memtester_types.h @ 1

Last change on this file since 1 was 1, checked in by Tim Harvey, 2 years ago

restored latest version of files from server backup

Signed-off-by: Tim Harvey <tharvey@…>

File size: 1.0 KB
Line 
1/*
2 * Very simple but very effective user-space memory tester.
3 * Originally by Simon Kirby <sim@stormix.com> <sim@neato.org>
4 * Version 2 by Charles Cazabon <charlesc-memtester@pyropus.ca>
5 * Version 3 not publicly released.
6 * Version 4 rewrite:
7 * Copyright (C) 2004-2010 Charles Cazabon <charlesc-memtester@pyropus.ca>
8 * Licensed under the terms of the GNU General Public License version 2 (only).
9 * See the file COPYING for details.
10 *
11 * This file contains typedefs, structure, and union definitions.
12 *
13 */
14
15
16#define POSIX
17#define _POSIX_C_SOURCE 200809L
18#define _FILE_OFFSET_BITS       64
19#define TEST_NARROW_WRITES
20
21
22#include "memtester_sizes.h"
23
24typedef unsigned long ul;
25typedef unsigned long long ull;
26typedef unsigned long volatile ulv;
27typedef unsigned char volatile u8v;
28typedef unsigned short volatile u16v;
29
30struct test {
31    char *name;
32    int (*fp)();
33};
34
35#ifdef  MEMTESTER_TESTS_C
36union {
37    unsigned char bytes[UL_LEN/8];
38    ul val;
39} mword8;
40
41union {
42    unsigned short u16s[UL_LEN/16];
43    ul val;
44} mword16;
45#endif  // MEMTESTER_TESTS_C
Note: See TracBrowser for help on using the repository browser.