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-or-later */
2 
3 #include <device/device.h>
4 #include <device/pnp.h>
5 
6 #include "pc87384.h"
7 
8 static struct device_operations ops = {
10  .set_resources = pnp_set_resources,
11  .enable_resources = pnp_enable_resources,
12  .enable = pnp_enable,
13 };
14 
15 static struct pnp_info pnp_dev_info[] = {
16  { NULL, PC87384_PP, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, 0x07f8 },
17  { NULL, PC87384_SP1, PNP_IO0 | PNP_IRQ0, 0x07f8 },
18  { NULL, PC87384_SP2, PNP_IO0 | PNP_IRQ0, 0x07f8 },
19  { NULL, PC87384_GPIO, PNP_IO0 | PNP_IRQ0, 0xfff0 },
20 };
21 
22 static void enable_dev(struct device *dev)
23 {
25 }
26 
28  CHIP_NAME("NSC PC87384 Super I/O")
29  .enable_dev = enable_dev,
30 };
#define ARRAY_SIZE(a)
Definition: helpers.h:12
#define CHIP_NAME(X)
Definition: device.h:32
static void enable_dev(struct device *dev)
Definition: superio.c:22
static struct device_operations ops
Definition: superio.c:8
static struct pnp_info pnp_dev_info[]
Definition: superio.c:15
struct chip_operations superio_nsc_pc87384_ops
Definition: superio.c:27
#define PC87384_GPIO
Definition: pc87384.h:9
#define PC87384_SP1
Definition: pc87384.h:8
#define PC87384_PP
Definition: pc87384.h:6
#define PC87384_SP2
Definition: pc87384.h:7
#define PNP_DRQ0
Definition: pnp.h:49
#define PNP_IO0
Definition: pnp.h:42
#define PNP_IRQ0
Definition: pnp.h:47
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_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_enable_resources(struct device *dev)
Definition: pnp_device.c:173
#define NULL
Definition: stddef.h:19
void(* read_resources)(struct device *dev)
Definition: device.h:39
Definition: device.h:107
Definition: pnp.h:37