aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware/rombios/config.h
blob: da3cbad9a54154ba058f495ef43bd934e7d0faea (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
31
32
33
34
35
36
#ifndef _ROMBIOS_CONFIG_H
#define _ROMBIOS_CONFIG_H

/* Memory map. */
#define LOWHEAP_PHYSICAL_ADDRESS      0x00010000
#define LOWHEAP_SIZE                  0x00070000

#define OPTIONROM_PHYSICAL_ADDRESS    0x000C8000
#define OPTIONROM_PHYSICAL_END        0x000EA000
#define BIOS_INFO_PHYSICAL_ADDRESS    0x000EA000
#define ACPI_PHYSICAL_ADDRESS         0x000EA020
#define E820_PHYSICAL_ADDRESS         0x000EA100
#define SMBIOS_PHYSICAL_ADDRESS       0x000EB000
#define SMBIOS_PHYSICAL_END           0x000F0000

#define ROMBIOS_PHYSICAL_ADDRESS      0x000F0000

/* Offsets from E820_PHYSICAL_ADDRESS. */
#define E820_NR_OFFSET                0x0
#define E820_OFFSET                   0x8

#define E820_NR ((uint16_t *)(E820_PHYSICAL_ADDRESS + E820_NR_OFFSET))
#define E820    ((struct e820entry *)(E820_PHYSICAL_ADDRESS + E820_OFFSET))

/* Xen Platform Device */
#define XEN_PF_IOBASE   0x10
#define PFFLAG_ROM_LOCK 1 /* Sets whether ROM memory area is RW or RO */

/* Located at BIOS_INFO_PHYSICAL_ADDRESS. */
struct rombios_info {
    uint32_t bios32_entry;      /* 0   - Entry point for 32-bit BIOS */
};
#define BIOSINFO_OFF_bios32_entry 0

#endif