coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
superio.c File Reference
#include <device/device.h>
#include <device/pnp.h>
#include <console/console.h>
#include <pc80/keyboard.h>
#include <arch/io.h>
#include <delay.h>
#include <superio/conf_mode.h>
#include <superio/hwm5_conf.h>
#include "chip.h"
#include "it8772f.h"
Include dependency graph for superio.c:

Go to the source code of this file.

Functions

static void it8772f_extemp_force_idle_status (struct resource *res)
 
static void it8772f_enable_peci (struct resource *res, int tmpin)
 
static void it8772f_enable_tmpin (struct resource *res, int tmpin, enum thermal_mode mode)
 
static void it8772f_enable_fan (struct resource *res, int fan, u8 fan_speed)
 
static void it8772f_init (struct device *dev)
 
static void enable_dev (struct device *dev)
 

Variables

static struct device_operations ops
 
static struct pnp_info pnp_dev_info []
 
struct chip_operations superio_ite_it8772f_ops
 

Function Documentation

◆ enable_dev()

static void enable_dev ( struct device dev)
static

Definition at line 265 of file superio.c.

References ARRAY_SIZE, ops, pnp_dev_info, and pnp_enable_devices().

Here is the call graph for this function:

◆ it8772f_enable_fan()

◆ it8772f_enable_peci()

◆ it8772f_enable_tmpin()

static void it8772f_enable_tmpin ( struct resource res,
int  tmpin,
enum thermal_mode  mode 
)
static

Definition at line 80 of file superio.c.

References resource::base, BIOS_ERR, IT8772F_ADC_TEMP_CHANNEL_ENABLE, IT8772F_CONFIGURATION, pnp_read_hwm5_index(), pnp_write_hwm5_index(), printk, THERMAL_DIODE, and THERMAL_RESISTOR.

Referenced by it8772f_init().

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

◆ it8772f_extemp_force_idle_status()

static void it8772f_extemp_force_idle_status ( struct resource res)
static

Definition at line 17 of file superio.c.

References resource::base, IT8772F_EXTEMP_CONTROL, IT8772F_EXTEMP_CONTROL_AUTO_4HZ, IT8772F_EXTEMP_CONTROL_AUTO_START, IT8772F_EXTEMP_STATUS, IT8772F_EXTEMP_STATUS_HOST_BUSY, mdelay(), pnp_read_hwm5_index(), and pnp_write_hwm5_index().

Referenced by it8772f_init().

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

◆ it8772f_init()

Variable Documentation

◆ ops

struct device_operations ops
static
Initial value:
= {
.read_resources = pnp_read_resources,
.set_resources = pnp_set_resources,
.enable_resources = pnp_enable_resources,
.enable = pnp_alt_enable,
.init = it8772f_init,
.ops_pnp_mode = &pnp_conf_mode_870155_aa,
}
const struct pnp_mode_ops pnp_conf_mode_870155_aa
Definition: conf_mode.c:229
static void it8772f_init(struct device *dev)
Definition: superio.c:164
void pnp_read_resources(struct device *dev)
Definition: pnp_device.c:114
void pnp_set_resources(struct device *dev)
Definition: pnp_device.c:157
void pnp_alt_enable(struct device *dev)
Definition: pnp_device.c:191
void pnp_enable_resources(struct device *dev)
Definition: pnp_device.c:173

Definition at line 164 of file superio.c.

Referenced by enable_dev().

◆ pnp_dev_info

struct pnp_info pnp_dev_info[]
static
Initial value:
= {
{ NULL, IT8772F_FDC, PNP_IO0 | PNP_IRQ0, 0x0ff8, },
{ NULL, IT8772F_SP1, PNP_IO0 | PNP_IRQ0, 0x0ff8, },
0x0ff8, 0x0ffc, },
0x0fff, 0x0fff, },
0x0fff, 0x0ff8, },
{ NULL, IT8772F_IR, PNP_IO0 | PNP_IRQ0, 0x0ff8, },
}
#define IT8772F_IR
Definition: it8772f.h:19
#define IT8772F_KBCM
Definition: it8772f.h:17
#define IT8772F_SP1
Definition: it8772f.h:14
#define IT8772F_FDC
Definition: it8772f.h:13
#define IT8772F_EC
Definition: it8772f.h:15
#define IT8772F_GPIO
Definition: it8772f.h:18
#define IT8772F_KBCK
Definition: it8772f.h:16
#define PNP_IO1
Definition: pnp.h:43
#define PNP_IO0
Definition: pnp.h:42
#define PNP_IRQ0
Definition: pnp.h:47
#define PNP_MSC4
Definition: pnp.h:56
#define PNP_MSCA
Definition: pnp.h:62
#define NULL
Definition: stddef.h:19

Definition at line 164 of file superio.c.

Referenced by enable_dev().

◆ superio_ite_it8772f_ops

struct chip_operations superio_ite_it8772f_ops
Initial value:
= {
.enable_dev = enable_dev,
}
static void enable_dev(struct device *dev)
Definition: superio.c:265

Definition at line 265 of file superio.c.