coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chip.c File Reference
#include <assert.h>
#include <device/device.h>
#include <soc/ramstage.h>
#include <soc/reg_access.h>
Include dependency graph for chip.c:

Go to the source code of this file.

Macros

#define PLATFORM_CATASTROPHIC_TRIP_CELSIUS   105
 
#define PLATFORM_CATASTROPHIC_CLEAR_CELSIUS   65
 

Functions

static void chip_init (void *chip_info)
 
static void chip_enable_dev (struct device *dev)
 

Variables

static const struct reg_script thermal_init_script []
 
static struct device_operations pci_domain_ops
 
struct chip_operations soc_intel_quark_ops
 

Macro Definition Documentation

◆ PLATFORM_CATASTROPHIC_CLEAR_CELSIUS

#define PLATFORM_CATASTROPHIC_CLEAR_CELSIUS   65

Definition at line 10 of file chip.c.

◆ PLATFORM_CATASTROPHIC_TRIP_CELSIUS

#define PLATFORM_CATASTROPHIC_TRIP_CELSIUS   105

Definition at line 9 of file chip.c.

Function Documentation

◆ chip_enable_dev()

static void chip_enable_dev ( struct device dev)
static

Definition at line 114 of file chip.c.

References DEVICE_PATH_DOMAIN, device::ops, device::path, pci_domain_ops, and device_path::type.

◆ chip_init()

Variable Documentation

◆ pci_domain_ops

struct device_operations pci_domain_ops
static
Initial value:
= {
.read_resources = pci_domain_read_resources,
.set_resources = pci_domain_set_resources,
.scan_bus = pci_domain_scan_bus,
}
void pci_domain_read_resources(struct device *dev)
Definition: pci_device.c:547
void pci_domain_set_resources(struct device *dev)
Definition: pci_device.c:564
void pci_domain_scan_bus(struct device *dev)
Scan a PCI domain.
Definition: pci_device.c:1610

Definition at line 87 of file chip.c.

Referenced by chip_enable_dev().

◆ soc_intel_quark_ops

struct chip_operations soc_intel_quark_ops
Initial value:
= {
.init = &chip_init,
.enable_dev = chip_enable_dev,
}
static void chip_init(void *chip_info)
Definition: chip.c:87
static void chip_enable_dev(struct device *dev)
Definition: chip.c:114

Definition at line 114 of file chip.c.

◆ thermal_init_script

const struct reg_script thermal_init_script[]
static

Definition at line 1 of file chip.c.

Referenced by chip_init().