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

Go to the source code of this file.

Functions

static void lpc47m10x_init (struct device *dev)
 Initialize the specified Super I/O device. More...
 
static void enable_dev (struct device *dev)
 Create device structures and allocate resources to devices specified in the pnp_dev_info array (above). More...
 

Variables

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

Function Documentation

◆ enable_dev()

static void enable_dev ( struct device dev)
static

Create device structures and allocate resources to devices specified in the pnp_dev_info array (above).

Parameters
devPointer to structure describing a Super I/O device.

Definition at line 55 of file superio.c.

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

Here is the call graph for this function:

◆ lpc47m10x_init()

static void lpc47m10x_init ( struct device dev)
static

Initialize the specified Super I/O device.

Devices other than COM ports and the keyboard controller are ignored. For COM ports, we configure the baud rate.

Parameters
devPointer to structure describing a Super I/O device.

Definition at line 18 of file superio.c.

References pnp_path::device, device::enabled, LPC47M10X2_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 = lpc47m10x_init,
.ops_pnp_mode = &pnp_conf_mode_55_aa,
}
const struct pnp_mode_ops pnp_conf_mode_55_aa
Definition: conf_mode.c:175
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
static void lpc47m10x_init(struct device *dev)
Initialize the specified Super I/O device.
Definition: superio.c:18

Definition at line 18 of file superio.c.

Referenced by enable_dev().

◆ pnp_dev_info

struct pnp_info pnp_dev_info[]
static
Initial value:
= {
{ NULL, LPC47M10X2_SP1, PNP_IO0 | PNP_IRQ0, 0x07f8, },
{ NULL, LPC47M10X2_SP2, PNP_IO0 | PNP_IRQ0, 0x07f8, },
0x07ff, 0x07ff, },
{ NULL, LPC47M10X2_PME, PNP_IO0, 0x0f80, },
}
#define LPC47M10X2_PME
Definition: lpc47m10x.h:15
#define LPC47M10X2_SP1
Definition: lpc47m10x.h:11
#define LPC47M10X2_SP2
Definition: lpc47m10x.h:12
#define LPC47M10X2_PP
Definition: lpc47m10x.h:10
#define LPC47M10X2_KBC
Definition: lpc47m10x.h:13
#define LPC47M10X2_FDC
Definition: lpc47m10x.h:9
#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 18 of file superio.c.

Referenced by enable_dev().

◆ superio_smsc_lpc47m10x_ops

struct chip_operations superio_smsc_lpc47m10x_ops
Initial value:
= {
.enable_dev = enable_dev
}
static void enable_dev(struct device *dev)
Create device structures and allocate resources to devices specified in the pnp_dev_info array (above...
Definition: superio.c:55

Definition at line 55 of file superio.c.