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-only */
2 
3 #ifndef _BAYTRAIL_IOMAP_H_
4 #define _BAYTRAIL_IOMAP_H_
5 
6 /*
7  * Memory Mapped IO bases.
8  */
9 
10 /* Transactions in this range will abort */
11 #define ABORT_BASE_ADDRESS 0xfeb00000
12 #define ABORT_BASE_SIZE 0x00100000
13 
14 /* Power Management Controller */
15 #define PMC_BASE_ADDRESS 0xfed03000
16 #define PMC_BASE_SIZE 0x400
17 
18 /* IO Memory */
19 #define IO_BASE_ADDRESS 0xfed0c000
20 #define IO_BASE_OFFSET_GPSCORE 0x0000
21 #define IO_BASE_OFFSET_GPNCORE 0x1000
22 #define IO_BASE_OFFSET_GPSSUS 0x2000
23 #define IO_BASE_SIZE 0x4000
24 
25 /* Intel Legacy Block */
26 #define ILB_BASE_ADDRESS 0xfed08000
27 #define ILB_BASE_SIZE 0x400
28 
29 /* SPI Bus */
30 #define SPI_BASE_ADDRESS 0xfed01000
31 #define SPI_BASE_SIZE 0x400
32 
33 /* MODPHY */
34 #define MPHY_BASE_ADDRESS 0xfef00000
35 #define MPHY_BASE_SIZE 0x100000
36 
37 /* Power Management Unit */
38 #define PUNIT_BASE_ADDRESS 0xfed05000
39 #define PUNIT_BASE_SIZE 0x800
40 
41 /* Root Complex Base Address */
42 #define RCBA_BASE_ADDRESS 0xfed1c000
43 #define RCBA_BASE_SIZE 0x400
44 
45 /* Temporary Base Address */
46 #define TEMP_BASE_ADDRESS 0xfd000000
47 
48 /*
49  * IO Port bases.
50  */
51 #define ACPI_BASE_ADDRESS 0x0400
52 #define ACPI_BASE_SIZE 0x80
53 
54 #define GPIO_BASE_ADDRESS 0x0500
55 #define GPIO_BASE_SIZE 0x100
56 
57 #define SMBUS_BASE_ADDRESS 0xefa0
58 
59 #ifndef __ACPI__
60 #include <stdint.h>
61 
62 /* Read Top of Low Memory (BMBOUND) */
64 #endif
65 
66 #endif /* _BAYTRAIL_IOMAP_H_ */
uint32_t nc_read_top_of_low_memory(void)
Definition: northcluster.c:52
unsigned int uint32_t
Definition: stdint.h:14