coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
nc_fpga.h File Reference
#include <stdint.h>
Include dependency graph for nc_fpga.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  temp_cc_t
 
struct  __packed
 

Macros

#define NC_MAGIC_OFFSET   0x020
 
#define NC_FPGA_MAGIC   0x4E433746
 
#define NC_CAP1_OFFSET   0x080
 
#define NC_CAP1_DSAVE_NMI_DELAY   0x008
 
#define NC_CAP1_BL_BRIGHTNESS_CTRL   0x010
 
#define NC_CAP1_FAN_CTRL   0x080
 
#define NC_CAP1_TEMP_MON   0x100
 
#define NC_DSAVE_OFFSET   0x58
 
#define NC_DIAG_CTRL_OFFSET   0x60
 
#define NC_DIAG_FW_DONE   0x10000
 
#define NC_BL_BRIGHTNESS_OFFSET   0x88
 
#define NC_BL_PWM_OFFSET   0x8C
 
#define NC_FPGA_POST_OFFSET   0xE0
 
#define NC_FANMON_CTRL_OFFSET   0x400
 
#define MAX_NUM_SENSORS   8
 

Functions

void nc_fpga_post (uint8_t value)
 
void nc_fpga_remap (uint32_t new_mmio)
 

Macro Definition Documentation

◆ MAX_NUM_SENSORS

#define MAX_NUM_SENSORS   8

Definition at line 23 of file nc_fpga.h.

◆ NC_BL_BRIGHTNESS_OFFSET

#define NC_BL_BRIGHTNESS_OFFSET   0x88

Definition at line 18 of file nc_fpga.h.

◆ NC_BL_PWM_OFFSET

#define NC_BL_PWM_OFFSET   0x8C

Definition at line 19 of file nc_fpga.h.

◆ NC_CAP1_BL_BRIGHTNESS_CTRL

#define NC_CAP1_BL_BRIGHTNESS_CTRL   0x010

Definition at line 12 of file nc_fpga.h.

◆ NC_CAP1_DSAVE_NMI_DELAY

#define NC_CAP1_DSAVE_NMI_DELAY   0x008

Definition at line 11 of file nc_fpga.h.

◆ NC_CAP1_FAN_CTRL

#define NC_CAP1_FAN_CTRL   0x080

Definition at line 13 of file nc_fpga.h.

◆ NC_CAP1_OFFSET

#define NC_CAP1_OFFSET   0x080

Definition at line 10 of file nc_fpga.h.

◆ NC_CAP1_TEMP_MON

#define NC_CAP1_TEMP_MON   0x100

Definition at line 14 of file nc_fpga.h.

◆ NC_DIAG_CTRL_OFFSET

#define NC_DIAG_CTRL_OFFSET   0x60

Definition at line 16 of file nc_fpga.h.

◆ NC_DIAG_FW_DONE

#define NC_DIAG_FW_DONE   0x10000

Definition at line 17 of file nc_fpga.h.

◆ NC_DSAVE_OFFSET

#define NC_DSAVE_OFFSET   0x58

Definition at line 15 of file nc_fpga.h.

◆ NC_FANMON_CTRL_OFFSET

#define NC_FANMON_CTRL_OFFSET   0x400

Definition at line 21 of file nc_fpga.h.

◆ NC_FPGA_MAGIC

#define NC_FPGA_MAGIC   0x4E433746

Definition at line 9 of file nc_fpga.h.

◆ NC_FPGA_POST_OFFSET

#define NC_FPGA_POST_OFFSET   0xE0

Definition at line 20 of file nc_fpga.h.

◆ NC_MAGIC_OFFSET

#define NC_MAGIC_OFFSET   0x020

Definition at line 8 of file nc_fpga.h.

Function Documentation

◆ nc_fpga_post()

void nc_fpga_post ( uint8_t  value)

Definition at line 41 of file nc_fpga_early.c.

References ENV_BOOTBLOCK, ENV_ROMSTAGE, fpga_bar, NC_FPGA_POST_OFFSET, nc_fpga_present, value, and write32().

Referenced by mainboard_post().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nc_fpga_remap()

void nc_fpga_remap ( uint32_t  new_mmio)

Definition at line 34 of file nc_fpga_early.c.

References fpga_bar.