Debian Codegraph @

src/superio/smsc/sio1036/superio.c

raw symbols SCIP
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 = {
18 .read_resources = pnp_read_resources,
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 {
32 pnp_enable_devices(dev, &ops, ARRAY_SIZE(pnp_dev_info), pnp_dev_info);
33 }
34
35 struct chip_operations superio_smsc_sio1036_ops = {
36 .name = "SMSC SIO1036 Super I/O",
37 .enable_dev = enable_dev
38 };