soc/intel/alderlake: Add ADL-P 4+4 with 28W TDP
[coreboot.git] / src / device / oprom / yabel / mem.h
blobe1fb95ba6169792de3a5fce3844675fee13c0464
1 /******************************************************************************
2 * Copyright (c) 2004, 2008 IBM Corporation
4 * All rights reserved.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met:
10 * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
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.
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.
30 * Contributors:
31 * IBM Corporation - initial implementation
32 *****************************************************************************/
34 #ifndef _BIOSEMU_MEM_H_
35 #define _BIOSEMU_MEM_H_
36 #include <x86emu/x86emu.h>
37 #include <types.h>
39 // read byte from memory
40 u8 my_rdb(u32 addr);
42 //read word from memory
43 u16 my_rdw(u32 addr);
45 //read long from memory
46 u32 my_rdl(u32 addr);
48 //write byte to memory
49 void my_wrb(u32 addr, u8 val);
51 //write word to memory
52 void my_wrw(u32 addr, u16 val);
54 //write long to memory
55 void my_wrl(u32 addr, u32 val);
57 #endif