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

Go to the source code of this file.

Functions

static void nct7802y_init_sensors (struct device *const dev)
 
static void nct7802y_init (struct device *const dev)
 
static void nct7802y_enable (struct device *const dev)
 

Variables

static struct device_operations nct7802y_ops
 
struct chip_operations drivers_i2c_nct7802y_ops
 

Function Documentation

◆ nct7802y_enable()

static void nct7802y_enable ( struct device *const  dev)
static

Definition at line 42 of file nct7802y.c.

◆ nct7802y_init()

static void nct7802y_init ( struct device *const  dev)
static

Definition at line 23 of file nct7802y.c.

References BIOS_WARNING, device::chip_info, nct7802y_init_fan(), nct7802y_init_peci(), nct7802y_init_sensors(), and printk.

Here is the call graph for this function:

◆ nct7802y_init_sensors()

static void nct7802y_init_sensors ( struct device *const  dev)
static

Definition at line 10 of file nct7802y.c.

References device::chip_info, config, MODE_SELECTION, MODE_SELECTION_LTD_EN, MODE_SELECTION_RTDx, NCT7802Y_RTD_CNT, nct7802y_write(), and value.

Referenced by nct7802y_init().

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

Variable Documentation

◆ drivers_i2c_nct7802y_ops

struct chip_operations drivers_i2c_nct7802y_ops
Initial value:
= {
.enable_dev = nct7802y_enable
}
static void nct7802y_enable(struct device *const dev)
Definition: nct7802y.c:42

Definition at line 42 of file nct7802y.c.

◆ nct7802y_ops

struct device_operations nct7802y_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.init = nct7802y_init,
}
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
Definition: device.h:73
static void noop_set_resources(struct device *dev)
Definition: device.h:74
static void nct7802y_init(struct device *const dev)
Definition: nct7802y.c:23

Definition at line 23 of file nct7802y.c.