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

Go to the source code of this file.

Macros

#define MAINBOARD_POWER_OFF   0
 
#define MAINBOARD_POWER_ON   1
 
#define MAINBOARD_POWER_KEEP   2
 

Functions

static void nct5572d_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_nuvoton_nct5572d_ops
 

Macro Definition Documentation

◆ MAINBOARD_POWER_KEEP

#define MAINBOARD_POWER_KEEP   2

Definition at line 14 of file superio.c.

◆ MAINBOARD_POWER_OFF

#define MAINBOARD_POWER_OFF   0

Definition at line 12 of file superio.c.

◆ MAINBOARD_POWER_ON

#define MAINBOARD_POWER_ON   1

Definition at line 13 of file superio.c.

Function Documentation

◆ enable_dev()

static void enable_dev ( struct device dev)
static

Definition at line 101 of file superio.c.

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

Here is the call graph for this function:

◆ nct5572d_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 = nct5572d_init,
.ops_pnp_mode = &pnp_conf_mode_8787_aa,
}
const struct pnp_mode_ops pnp_conf_mode_8787_aa
Definition: conf_mode.c:202
static void nct5572d_init(struct device *dev)
Definition: superio.c:16
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 16 of file superio.c.

Referenced by enable_dev().

◆ pnp_dev_info

struct pnp_info pnp_dev_info[]
static
Initial value:
= {
{ NULL, NCT5572D_SP1, PNP_IO0 | PNP_IRQ0, 0x0FF8, },
{ NULL, NCT5572D_IR, PNP_IO0 | PNP_IRQ0, 0x0FF8, },
0x0FFF, 0x0FFF, },
{ NULL, NCT5572D_CIR, PNP_IO0 | PNP_IRQ0, 0x0FF8, },
0x0FFE, 0x0FFE, },
}
#define NCT5572D_WDT1
Definition: nct5572d.h:14
#define NCT5572D_GPIO3
Definition: nct5572d.h:25
#define NCT5572D_ACPI
Definition: nct5572d.h:16
#define NCT5572D_KBC
Definition: nct5572d.h:11
#define NCT5572D_PP
Definition: nct5572d.h:8
#define NCT5572D_CIRWKUP
Definition: nct5572d.h:20
#define NCT5572D_GPIO5
Definition: nct5572d.h:27
#define NCT5572D_SP1
Definition: nct5572d.h:9
#define NCT5572D_HWM_TSI_FPLED
Definition: nct5572d.h:17
#define NCT5572D_GPIO_PP_OD
Definition: nct5572d.h:21
#define NCT5572D_PECI
Definition: nct5572d.h:18
#define NCT5572D_GPIO8
Definition: nct5572d.h:30
#define NCT5572D_IR
Definition: nct5572d.h:10
#define NCT5572D_GPIO4
Definition: nct5572d.h:26
#define NCT5572D_CIR
Definition: nct5572d.h:12
#define NCT5572D_GPIO2
Definition: nct5572d.h:24
#define NCT5572D_GPIO6
Definition: nct5572d.h:28
#define NCT5572D_GPIO7
Definition: nct5572d.h:29
#define NCT5572D_SUSLED
Definition: nct5572d.h:19
#define NCT5572D_FDC
Definition: nct5572d.h:7
#define NCT5572D_GPIO9
Definition: nct5572d.h:31
#define PNP_IRQ1
Definition: pnp.h:48
#define PNP_IO1
Definition: pnp.h:43
#define PNP_IO0
Definition: pnp.h:42
#define PNP_IRQ0
Definition: pnp.h:47
#define NULL
Definition: stddef.h:19

Definition at line 16 of file superio.c.

Referenced by enable_dev().

◆ superio_nuvoton_nct5572d_ops

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

Definition at line 101 of file superio.c.