coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
iomap.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #ifndef _SOC_IOMAP_H_
4 #define _SOC_IOMAP_H_
5 
6 #define MAP_ENTRY(reg_, is_64_, is_limit_, mask_bits_, desc_) \
7  { \
8  .reg = reg_, .is_64_bit = is_64_, .is_limit = is_limit_, \
9  .mask_bits = mask_bits_, .description = desc_, \
10  }
11 
12 #define MAP_ENTRY_BASE_64(reg_, desc_) MAP_ENTRY(reg_, 1, 0, 0, desc_)
13 #define MAP_ENTRY_LIMIT_64(reg_, mask_bits_, desc_) MAP_ENTRY(reg_, 1, 1, mask_bits_, desc_)
14 #define MAP_ENTRY_BASE_32(reg_, desc_) MAP_ENTRY(reg_, 0, 0, 0, desc_)
15 #define MAP_ENTRY_LIMIT_32(reg_, mask_bits_, desc_) MAP_ENTRY(reg_, 0, 1, mask_bits_, desc_)
16 
17 // SPI BAR0 MMIO base address
18 #define SPI_BASE_ADDRESS 0xfe010000
19 #define SPI_BASE_SIZE 0x1000
20 
21 #define TCO_BASE_ADDRESS 0x400
22 #define ACPI_BASE_ADDRESS CONFIG_INTEL_ACPI_BASE_ADDRESS
23 #define ACPI_BASE_SIZE 0x100
24 
25 /* Video RAM */
26 #define VGA_BASE_ADDRESS 0xa0000
27 #define VGA_BASE_SIZE 0x20000
28 
29 #define HECI1_BASE_ADDRESS 0xfed1a000
30 
31 #define PCH_PWRM_BASE_ADDRESS CONFIG_INTEL_PCH_PWRM_BASE_ADDRESS
32 #define PCH_PWRM_BASE_SIZE 0x10000
33 
34 #define P2SB_BAR CONFIG_PCR_BASE_ADDRESS
35 #define GPIO_BASE_SIZE 0x10000
36 
37 #endif /* _SOC_IOMAP_H_ */