summaryrefslogtreecommitdiff
path: root/memory.h
blob: 80de90bef6d2d295f3a8db58b201f68a4ed2e0a9 (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
/*
 * Copyright (C) 2010 Tobias Klauser <tklauser@distanz.ch>
 *
 * This file is part of nios2sim-ng.
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License. See the file "COPYING" in the main directory of this archive
 * for more details.
 */

#ifndef _MEMORY_H_
#define _MEMORY_H_

struct memory {
	uint32_t *base;
	size_t size;

	uint32_t image_base;
};

#define IMAGE_BASE_UNINITIALIZED	UINT32_MAX

extern uint8_t memory_get_byte(struct memory *mem, int32_t addr);
extern void memory_set_byte(struct memory *mem, int32_t addr, uint8_t data);
extern uint32_t memory_get_word(struct memory *mem, int32_t addr);
extern void memory_set_word(struct memory *mem, int32_t addr, uint32_t data);

extern void memory_dump(struct memory *mem, uint32_t offset, size_t count);

#endif /* _MEMORY_H_ */
d20e'>new helper: memcpy_from_msg()Al Viro1-2/+2 2014-05-20NFC: Add RAW socket type support for SOCKPROTO_RAWHiren Tandel1-1/+1 2014-01-04NFC: llcp: Use default MIU if none was specified on connectSzymon Janc1-1/+1 2014-01-04NFC: llcp: Fix possible memory leak while sending I framesSzymon Janc1-1/+3 2013-12-11nfc: Fix FSF address in file headersJeff Kirsher1-3/+1 2013-06-14NFC: Rename nfc_llcp_disconnect() to nfc_llcp_send_disconnect()Thierry Escande1-21/+1 2013-04-26NFC: Move LLCP code to the NFC top level diirectorySamuel Ortiz1-0/+817