fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
1/*****************************************************************************
2 * pce *
3 *****************************************************************************/
4
5/*****************************************************************************
6 * File name: src/lib/iniram.h *
7 * Created: 2005-07-24 by Hampa Hug <hampa@hampa.ch> *
8 * Copyright: (C) 2005-2009 Hampa Hug <hampa@hampa.ch> *
9 *****************************************************************************/
10
11/*****************************************************************************
12 * This program is free software. You can redistribute it and / or modify it *
13 * under the terms of the GNU General Public License version 2 as published *
14 * by the Free Software Foundation. *
15 * *
16 * This program is distributed in the hope that it will be useful, but *
17 * WITHOUT ANY WARRANTY, without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
19 * Public License for more details. *
20 *****************************************************************************/
21
22
23#ifndef PCE_LIB_INIRAM_H
24#define PCE_LIB_INIRAM_H 1
25
26
27#include <libini/libini.h>
28
29#include <devices/memory.h>
30
31
32/*!***************************************************************************
33 * @short Initialize memory blocks from ini file
34 * @param mem The address space
35 * @param ini The ini section containing the "ram" sections
36 * @retval addr0 Returns the memory block that starts at address 0, or NULL.
37 * @return Zero if successful, nonzero otherwise
38 *****************************************************************************/
39int ini_get_ram (memory_t *mem, ini_sct_t *ini, mem_blk_t **addr0);
40
41/*!***************************************************************************
42 * @short Initialize read-only memory blocks from ini file
43 * @param mem The address space
44 * @param ini The ini section containing the "rom" sections
45 * @return Zero if successful, nonzero otherwise
46 *****************************************************************************/
47int ini_get_rom (memory_t *mem, ini_sct_t *ini);
48
49
50#endif