soc/intel/alderlake: Add ADL-P 4+4 with 28W TDP
[coreboot.git] / src / device / oprom / realmode / x86.h
bloba770bcd7f5227e99cf2259c7283f7ae78b74faea
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __DEVICE_OPROM_REALMODE_X86_H__
4 #define __DEVICE_OPROM_REALMODE_X86_H__
6 #include <cpu/cpu.h>
7 #include <stdint.h>
9 #define REALMODE_BASE ((void *)0x600)
11 struct realmode_idt {
12 u16 offset, cs;
15 void x86_exception(struct eregs *info);
17 /* From x86_asm.S */
18 extern unsigned char __idt_handler;
19 extern unsigned int __idt_handler_size;
20 extern unsigned char __realmode_code;
21 extern unsigned int __realmode_code_size;
23 extern unsigned int (*realmode_call)(u32 addr, u32 eax, u32 ebx, u32 ecx,
24 u32 edx, u32 esi, u32 edi) asmlinkage;
26 extern unsigned int (*realmode_interrupt)(u32 intno, u32 eax, u32 ebx, u32 ecx,
27 u32 edx, u32 esi, u32 edi) asmlinkage;
29 #define FAKE_MEMORY_SIZE (1024*1024) // only 1MB
30 #define INITIAL_EBDA_SEGMENT 0xF600
31 #define INITIAL_EBDA_SIZE 0x400
33 int int10_handler(void);
34 int int12_handler(void);
35 int int16_handler(void);
36 int int1a_handler(void);
38 #endif /* __DEVICE_OPROM_REALMODE_X86_H__ */