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 #include <device/device.h>
4 #include <device/pnp.h>
5 #include <console/console.h>
6 #include <pc80/keyboard.h>
7 
8 void m3885_configure_multikey(void);
9 
10 static void m3885x_init(struct device *dev)
11 {
12 
13  if (!dev->enabled)
14  return;
15 
16  printk(BIOS_DEBUG, "Renesas M3885x: Initializing keyboard.\n");
20 }
21 
22 static void m3885x_read_resources(struct device *dev)
23 {
24  /* Nothing, but this function avoids an error on serial console. */
25 }
26 
27 static void m3885x_enable_resources(struct device *dev)
28 {
29  /* Nothing, but this function avoids an error on serial console. */
30 }
31 
32 static struct device_operations ops = {
33  .init = m3885x_init,
34  .read_resources = m3885x_read_resources,
35  .enable_resources = m3885x_enable_resources
36 };
37 
38 static struct pnp_info pnp_dev_info[] = {
39  { NULL, 0, 0, 0, }
40 };
41 
42 static void enable_dev(struct device *dev)
43 {
45 }
46 
48  CHIP_NAME("Renesas M3885x Super I/O")
49  .enable_dev = enable_dev,
50 };
#define ARRAY_SIZE(a)
Definition: helpers.h:12
#define printk(level,...)
Definition: stdlib.h:16
#define CHIP_NAME(X)
Definition: device.h:32
void set_kbc_ps2_mode(void)
Definition: keyboard.c:351
uint8_t pc_keyboard_init(uint8_t probe_aux)
Definition: keyboard.c:229
#define NO_AUX_DEVICE
Definition: keyboard.h:6
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
Definition: loglevel.h:128
void pnp_enable_devices(struct device *base_dev, struct device_operations *ops, unsigned int functions, struct pnp_info *info)
Definition: pnp_device.c:371
static void m3885x_init(struct device *dev)
Definition: superio.c:10
struct chip_operations superio_renesas_m3885x_ops
Definition: superio.c:47
void m3885_configure_multikey(void)
Definition: m3885.c:210
static void m3885x_read_resources(struct device *dev)
Definition: superio.c:22
static void enable_dev(struct device *dev)
Definition: superio.c:42
static struct device_operations ops
Definition: superio.c:32
static struct pnp_info pnp_dev_info[]
Definition: superio.c:38
static void m3885x_enable_resources(struct device *dev)
Definition: superio.c:27
#define NULL
Definition: stddef.h:19
void(* init)(struct device *dev)
Definition: device.h:42
Definition: device.h:107
unsigned int enabled
Definition: device.h:122
Definition: pnp.h:37