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 "wpcd376i.h"
Include dependency graph for superio.c:

Go to the source code of this file.

Functions

static void 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_winbond_wpcd376i_ops
 

Function Documentation

◆ enable_dev()

static void enable_dev ( struct device dev)
static

Definition at line 58 of file superio.c.

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

Here is the call graph for this function:

◆ init()

static void init ( struct device dev)
static

Definition at line 8 of file superio.c.

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

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_enable,
.init = init,
}
void pnp_enable(struct device *dev)
Definition: pnp_device.c:181
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_enable_resources(struct device *dev)
Definition: pnp_device.c:173
static void init(struct device *dev)
Definition: superio.c:8

Definition at line 8 of file superio.c.

Referenced by enable_dev().

◆ pnp_dev_info

struct pnp_info pnp_dev_info[]
static
Initial value:
= {
0x07f8, },
0x03f8, },
0x07f8, },
0xfff0, 0xfff0, },
0x07f8, 0x07f8, },
0xffe0, },
0xfff0, 0xfff0, },
0xfff8, },
}
#define PNP_MSC1
Definition: pnp.h:53
#define PNP_MSC3
Definition: pnp.h:55
#define PNP_DRQ0
Definition: pnp.h:49
#define PNP_IO1
Definition: pnp.h:43
#define PNP_MSC8
Definition: pnp.h:60
#define PNP_IO0
Definition: pnp.h:42
#define PNP_IRQ0
Definition: pnp.h:47
#define PNP_MSC0
Definition: pnp.h:52
#define PNP_MSC2
Definition: pnp.h:54
#define PNP_DRQ1
Definition: pnp.h:50
#define NULL
Definition: stddef.h:19
#define WPCD376I_SP1
Definition: wpcd376i.h:10
#define WPCD376I_KBCK
Definition: wpcd376i.h:13
#define WPCD376I_FDC
Definition: wpcd376i.h:7
#define WPCD376I_ECIR
Definition: wpcd376i.h:15
#define WPCD376I_IR
Definition: wpcd376i.h:16
#define WPCD376I_LPT
Definition: wpcd376i.h:8
#define WPCD376I_GPIO
Definition: wpcd376i.h:14
#define WPCD376I_KBCM
Definition: wpcd376i.h:12
#define WPCD376I_SWC
Definition: wpcd376i.h:11

Definition at line 8 of file superio.c.

Referenced by enable_dev().

◆ superio_winbond_wpcd376i_ops

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

Definition at line 58 of file superio.c.