KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
memtest.h
Go to the documentation of this file.
1/**********************************************************************
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#include <stdint.h>
21
22/*
23 * Define NULL pointer value.
24 */
25#ifndef NULL
26#define NULL (void *) 0
27#endif
28
29/*
30 * Set the data bus width.
31 */
33
34/*
35 * Function prototypes.
36 */
37datum memTestDataBus(volatile datum * address);
38datum * memTestAddressBus(volatile datum * baseAddress, unsigned long nBytes);
39datum * memTestDevice(volatile datum * baseAddress, unsigned long nBytes);
40
41
42#endif /* _memtest_h */
static uint32_t("Please see purupuru_effect_t for modern equivalent.") PURUPURU_EFFECT2_UINTENSITY(uint8_t x)
Definition purupuru.h:98
datum memTestDataBus(volatile datum *address)
Definition memtest.c:37
datum * memTestDevice(volatile datum *baseAddress, unsigned long nBytes)
Definition memtest.c:176
uint32_t datum
Definition memtest.h:32
datum * memTestAddressBus(volatile datum *baseAddress, unsigned long nBytes)
Definition memtest.c:92