![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <arch/io.h>
#include <console/console.h>
#include <device/device.h>
#include <delay.h>
#include "ec.h"
#include "chip.h"
Go to the source code of this file.
Macros | |
#define | KBD_IBF (1 << 1) /* 1: input buffer full (data ready for ec) */ |
#define | KBD_OBF (1 << 0) /* 1: output buffer full (data ready for host) */ |
Functions | |
static void | ec_setports (u16 data, u16 cmd) |
static int | send_kbd_command (u8 command) |
static int | send_kbd_data (u8 data) |
static int | kbc1126_thermalinit (u8 cmd, u8 value) |
static void | kbc1126_kbdled (u8 cmd, u8 val) |
static void | kbc1126_enable (struct device *dev) |
Variables | |
static u16 | ec_data_port |
static u16 | ec_cmd_port |
struct chip_operations | ec_hp_kbc1126_ops |
#define KBD_IBF (1 << 1) /* 1: input buffer full (data ready for ec) */ |
#define KBD_OBF (1 << 0) /* 1: output buffer full (data ready for host) */ |
Definition at line 17 of file ec.c.
References ec_cmd_port, and ec_data_port.
Definition at line 101 of file ec.c.
References send_kbd_command(), send_kbd_data(), and val.
Definition at line 67 of file ec.c.
References BIOS_DEBUG, printk, send_kbd_command(), send_kbd_data(), and value.
|
static |
Definition at line 23 of file ec.c.
References BIOS_DEBUG, BIOS_SPEW, ec_cmd_port, inb(), KBD_IBF, outb(), printk, and udelay().
Referenced by kbc1126_kbdled(), and kbc1126_thermalinit().
|
static |
Definition at line 43 of file ec.c.
References BIOS_DEBUG, BIOS_SPEW, ec_cmd_port, ec_data_port, inb(), KBD_IBF, outb(), printk, and udelay().
Referenced by kbc1126_kbdled(), and kbc1126_thermalinit().
|
static |
Definition at line 12 of file ec.c.
Referenced by ec_setports(), send_kbd_command(), and send_kbd_data().
|
static |
Definition at line 11 of file ec.c.
Referenced by ec_setports(), and send_kbd_data().
struct chip_operations ec_hp_kbc1126_ops |