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 <pc80/keyboard.h>
#include <superio/conf_mode.h>
#include "nct6776.h"
Include dependency graph for superio.c:

Go to the source code of this file.

Functions

static void nct6776_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_nct6776_ops
 

Function Documentation

◆ enable_dev()

static void enable_dev ( struct device dev)
static

Definition at line 64 of file superio.c.

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

Here is the call graph for this function:

◆ nct6776_init()

static void nct6776_init ( struct device dev)
static

Definition at line 12 of file superio.c.

References pnp_path::device, device::enabled, NCT6776_KBC, NO_AUX_DEVICE, device::path, pc_keyboard_init(), and device_path::pnp.

Here is the call graph for this function:

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 = nct6776_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 nct6776_init(struct device *dev)
Definition: superio.c:12
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 12 of file superio.c.

Referenced by enable_dev().

◆ pnp_dev_info

struct pnp_info pnp_dev_info[]
static
Initial value:
= {
{ NULL, NCT6776_SP1, PNP_IO0 | PNP_IRQ0, 0x0ff8 },
{ NULL, NCT6776_SP2, PNP_IO0 | PNP_IRQ0, 0x0ff8 },
{ NULL, NCT6776_KBC, PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, 0x0fff, 0x0fff },
{ NULL, NCT6776_CIR, PNP_IO0 | PNP_IRQ0, 0x0ff8 },
{ NULL, NCT6776_HWM_FPLED, PNP_IO0 | PNP_IO1 | PNP_IRQ0, 0x0ffe, 0x0ffe },
{ NULL, NCT6776_GPIOBASE, PNP_IO0, 0x0ff8 },
}
#define NCT6776_GPIO3
Definition: nct6776.h:35
#define NCT6776_CIRWKUP
Definition: nct6776.h:21
#define NCT6776_GPIO0
Definition: nct6776.h:32
#define NCT6776_VID
Definition: nct6776.h:20
#define NCT6776_KBC
Definition: nct6776.h:13
#define NCT6776_GPIO6
Definition: nct6776.h:38
#define NCT6776_GPIO_PP_OD
Definition: nct6776.h:22
#define NCT6776_GPIOBASE
Definition: nct6776.h:30
#define NCT6776_DSLP
Definition: nct6776.h:24
#define NCT6776_CIR
Definition: nct6776.h:14
#define NCT6776_GPIO9
Definition: nct6776.h:41
#define NCT6776_SVID
Definition: nct6776.h:23
#define NCT6776_FDC
Definition: nct6776.h:9
#define NCT6776_GPIOA
Definition: nct6776.h:42
#define NCT6776_GPIO2
Definition: nct6776.h:34
#define NCT6776_GPIOA_LDN
Definition: nct6776.h:25
#define NCT6776_GPIO7
Definition: nct6776.h:39
#define NCT6776_GPIO4
Definition: nct6776.h:36
#define NCT6776_PP
Definition: nct6776.h:10
#define NCT6776_WDT1
Definition: nct6776.h:28
#define NCT6776_HWM_FPLED
Definition: nct6776.h:19
#define NCT6776_GPIO8
Definition: nct6776.h:40
#define NCT6776_GPIO5
Definition: nct6776.h:37
#define NCT6776_SP2
Definition: nct6776.h:12
#define NCT6776_SP1
Definition: nct6776.h:11
#define NCT6776_ACPI
Definition: nct6776.h:18
#define NCT6776_GPIO1
Definition: nct6776.h:33
#define PNP_IRQ1
Definition: pnp.h:48
#define PNP_DRQ0
Definition: pnp.h:49
#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 12 of file superio.c.

Referenced by enable_dev().

◆ superio_nuvoton_nct6776_ops

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

Definition at line 64 of file superio.c.