coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
early_init.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
5 
7 {
8  /* Device 1f interrupt pin register */
9  RCBA32(0x3100) = 0x00042210;
10  RCBA32(0x3108) = 0x10004321;
11 
12  /* PCIe Interrupts */
13  RCBA32(D28IP) = 0x00214321;
14  /* HD Audio Interrupt */
15  RCBA32(D27IP) = 0x00000001;
16 
17  /* dev irq route register */
18  RCBA16(D31IR) = 0x0232;
19  RCBA16(D30IR) = 0x3246;
20  RCBA16(D29IR) = 0x0235;
21  RCBA16(D28IR) = 0x3201;
22  RCBA16(D27IR) = 0x3216;
23 
24  /* Disable unused devices */
25  RCBA32(FD) |= FD_INTLAN;
26 
27  /* Set up I/O Trap #0 for 0xfe00 (SMIC) */
28 
29  /* Set up I/O Trap #3 for 0x800-0x80c (Trap) */
30  RCBA32(0x1e9c) = 0x000200f0;
31  RCBA32(0x1e98) = 0x000c0801;
32 }
#define FD_INTLAN
Definition: i82801gx.h:248
void mainboard_late_rcba_config(void)
Definition: early_init.c:6
#define D31IR
Definition: rcba.h:87
#define D30IR
Definition: rcba.h:88
#define D28IR
Definition: rcba.h:90
#define D29IR
Definition: rcba.h:89
#define D27IP
Definition: rcba.h:74
#define FD
Definition: rcba.h:125
#define D27IR
Definition: rcba.h:91
#define D28IP
Definition: rcba.h:65
#define RCBA16(x)
Definition: rcba.h:13
#define RCBA32(x)
Definition: rcba.h:14