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 "pc87417.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_nsc_pc87417_ops
 

Function Documentation

◆ enable_dev()

static void enable_dev ( struct device dev)
static

Definition at line 43 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 9 of file superio.c.

References pnp_path::device, device::enabled, NO_AUX_DEVICE, device::path, PC87417_KBCK, 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_enable,
.init = init,
}
static void init(struct device *dev)
Definition: superio.c:9
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

Definition at line 9 of file superio.c.

Referenced by enable_dev().

◆ pnp_dev_info

struct pnp_info pnp_dev_info[]
static
Initial value:
= {
{ NULL, PC87417_PP, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, 0x07f8, },
0x07f8, },
{ NULL, PC87417_SP1, PNP_IO0 | PNP_IRQ0, 0x07f8, },
{ NULL, PC87417_SWC, PNP_IO0 | PNP_IRQ0, 0xfff0, },
{ NULL, PC87417_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, 0x07f8, 0x07f8, },
{ NULL, PC87417_GPIO, PNP_IO0 | PNP_IRQ0, 0xfff8, },
{ NULL, PC87417_XBUS, PNP_IO0 | PNP_IRQ0, 0xffe0, },
{ NULL, PC87417_RTC, PNP_IO0 | PNP_IO1, 0xfffe, 0xfffe, },
}
#define PC87417_SP2
Definition: pc87417.h:8
#define PC87417_SWC
Definition: pc87417.h:10
#define PC87417_XBUS
Definition: pc87417.h:14
#define PC87417_SP1
Definition: pc87417.h:9
#define PC87417_PP
Definition: pc87417.h:7
#define PC87417_RTC
Definition: pc87417.h:15
#define PC87417_KBCM
Definition: pc87417.h:11
#define PC87417_KBCK
Definition: pc87417.h:12
#define PC87417_GPIO
Definition: pc87417.h:13
#define PC87417_FDC
Definition: pc87417.h:6
#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 PNP_DRQ1
Definition: pnp.h:50
#define NULL
Definition: stddef.h:19

Definition at line 9 of file superio.c.

Referenced by enable_dev().

◆ superio_nsc_pc87417_ops

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

Definition at line 43 of file superio.c.