blob: e1fb95ba6169792de3a5fce3844675fee13c0464 [file] [log] [blame]
Stefan Reinauer38cd29e2009-08-11 21:28:25 +00001/******************************************************************************
2 * Copyright (c) 2004, 2008 IBM Corporation
Martin Rotha9e1a222016-01-14 14:15:24 -07003 *
Stefan Reinauer38cd29e2009-08-11 21:28:25 +00004 * All rights reserved.
Martin Rotha9e1a222016-01-14 14:15:24 -07005 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met:
9 *
10 * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 *
13 * Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer
15 * in the documentation and/or other materials provided with the
16 * distribution.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Stefan Reinauer38cd29e2009-08-11 21:28:25 +000029 *
30 * Contributors:
31 * IBM Corporation - initial implementation
32 *****************************************************************************/
33
34#ifndef _BIOSEMU_MEM_H_
35#define _BIOSEMU_MEM_H_
36#include <x86emu/x86emu.h>
37#include <types.h>
38
39// read byte from memory
40u8 my_rdb(u32 addr);
41
42//read word from memory
43u16 my_rdw(u32 addr);
44
45//read long from memory
46u32 my_rdl(u32 addr);
47
48//write byte to memory
49void my_wrb(u32 addr, u8 val);
50
51//write word to memory
52void my_wrw(u32 addr, u16 val);
53
54//write long to memory
55void my_wrl(u32 addr, u32 val);
56
57#endif