![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <types.h>
#include <console/console.h>
#include <arch/io.h>
#include <delay.h>
#include <ec/acpi/ec.h>
#include "m3885.h"
Go to the source code of this file.
Macros | |
#define | TH0LOW 80 |
#define | TH0HIGH 85 |
#define | TH0CRIT 120 |
#define | TH1LOW 75 |
#define | TH1HIGH 80 |
#define | KBD_DATA 0x60 |
#define | KBD_SC 0x64 |
#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 int | send_kbd_command (u8 command) |
static int | send_kbd_data (u8 data) |
static u8 | recv_kbd_data (void) |
static u8 | m3885_get_variable (u8 index) |
static void | m3885_set_variable (u8 index, u8 data) |
static void | m3885_set_proc_ram (u8 index, u8 data) |
static u8 | m3885_get_proc_ram (u8 index) |
static u8 | m3885_read_port (void) |
void | m3885_configure_multikey (void) |
u8 | m3885_gpio (u8 value) |
Variables | |
static u8 | variables [] |
static u8 | matrix [] |
static u8 | function_ram [] |
#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 210 of file m3885.c.
References ARRAY_SIZE, BIOS_DEBUG, function_ram, KBD_DATA, KBD_SC, m3885_get_variable(), m3885_read_port(), m3885_set_proc_ram(), m3885_set_variable(), matrix, outb(), printk, TH0CRIT, TH0HIGH, TH0LOW, TH1HIGH, TH1LOW, udelay(), and variables.
Referenced by m3885x_init().
Definition at line 185 of file m3885.c.
References BIOS_SPEW, printk, recv_kbd_data(), send_kbd_command(), and send_kbd_data().
Referenced by m3885_read_port().
Definition at line 154 of file m3885.c.
References BIOS_SPEW, printk, recv_kbd_data(), send_kbd_command(), and send_kbd_data().
Referenced by m3885_configure_multikey(), and m3885_read_port().
Definition at line 359 of file m3885.c.
References ec_write(), M3885_CMCMD, M3885_CMDAT1, and value.
Definition at line 197 of file m3885.c.
References m3885_get_proc_ram(), m3885_get_variable(), and m3885_set_variable().
Referenced by m3885_configure_multikey().
Definition at line 176 of file m3885.c.
References BIOS_SPEW, printk, send_kbd_command(), and send_kbd_data().
Referenced by m3885_configure_multikey().
Definition at line 167 of file m3885.c.
References BIOS_SPEW, printk, send_kbd_command(), and send_kbd_data().
Referenced by m3885_configure_multikey(), and m3885_read_port().
Definition at line 131 of file m3885.c.
References BIOS_DEBUG, BIOS_SPEW, inb(), KBD_DATA, KBD_OBF, KBD_SC, printk, and udelay().
Referenced by m3885_get_proc_ram(), and m3885_get_variable().
|
static |
Definition at line 92 of file m3885.c.
References BIOS_DEBUG, BIOS_SPEW, inb(), KBD_IBF, KBD_SC, outb(), printk, and udelay().
Referenced by m3885_get_proc_ram(), m3885_get_variable(), m3885_set_proc_ram(), and m3885_set_variable().
|
static |
Definition at line 111 of file m3885.c.
References BIOS_DEBUG, BIOS_SPEW, inb(), KBD_DATA, KBD_IBF, KBD_SC, outb(), printk, and udelay().
Referenced by m3885_get_proc_ram(), m3885_get_variable(), m3885_set_proc_ram(), and m3885_set_variable().
|
static |
Definition at line 67 of file m3885.c.
Referenced by m3885_configure_multikey().
|
static |
Definition at line 48 of file m3885.c.
Referenced by m3885_configure_multikey().
|
static |
Definition at line 17 of file m3885.c.
Referenced by m3885_configure_multikey().