coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
superio.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 /* RAM driver for the SMSC SIO1036 Super I/O chip */
4 
5 #include <device/device.h>
6 #include <device/pnp.h>
7 #include <superio/conf_mode.h>
8 
9 #include "sio1036.h"
10 
11 static void sio1036_init(struct device *dev)
12 {
13  if (!dev->enabled)
14  return;
15 }
16 
17 static struct device_operations ops = {
19  .set_resources = pnp_set_resources,
20  .enable_resources = pnp_enable_resources,
21  .enable = pnp_alt_enable,
22  .init = sio1036_init,
23  .ops_pnp_mode = &pnp_conf_mode_55_aa,
24 };
25 
26 static struct pnp_info pnp_dev_info[] = {
27  { NULL, SIO1036_SP1, PNP_IO0 | PNP_IRQ0, 0x07f8, },
28 };
29 
30 static void enable_dev(struct device *dev)
31 {
33 }
34 
36  CHIP_NAME("SMSC SIO1036 Super I/O")
37  .enable_dev = enable_dev
38 };
#define ARRAY_SIZE(a)
Definition: helpers.h:12
const struct pnp_mode_ops pnp_conf_mode_55_aa
Definition: conf_mode.c:175
#define CHIP_NAME(X)
Definition: device.h:32
#define PNP_IO0
Definition: pnp.h:42
#define PNP_IRQ0
Definition: pnp.h:47
void pnp_read_resources(struct device *dev)
Definition: pnp_device.c:114
void pnp_enable_devices(struct device *base_dev, struct device_operations *ops, unsigned int functions, struct pnp_info *info)
Definition: pnp_device.c:371
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
#define SIO1036_SP1
Definition: sio1036.h:6
static void enable_dev(struct device *dev)
Definition: superio.c:30
static struct device_operations ops
Definition: superio.c:17
struct chip_operations superio_smsc_sio1036_ops
Definition: superio.c:35
static struct pnp_info pnp_dev_info[]
Definition: superio.c:26
static void sio1036_init(struct device *dev)
Definition: superio.c:11
#define NULL
Definition: stddef.h:19
void(* read_resources)(struct device *dev)
Definition: device.h:39
Definition: device.h:107
unsigned int enabled
Definition: device.h:122
Definition: pnp.h:37