coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ec_oem.c File Reference
#include <console/console.h>
#include <arch/io.h>
#include <delay.h>
#include <ec/acpi/ec.h>
#include "ec_oem.h"
Include dependency graph for ec_oem.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int send_ec_oem_command (u8 command)
 
int send_ec_oem_data (u8 data)
 
int send_ec_oem_data_nowait (u8 data)
 
u8 recv_ec_oem_data (void)
 
u8 ec_oem_read (u8 addr)
 
int ec_oem_write (u8 addr, u8 data)
 
int ec_oem_dump_status (void)
 

Function Documentation

◆ ec_oem_dump_status()

int ec_oem_dump_status ( void  )

Definition at line 97 of file ec_oem.c.

References BIOS_DEBUG, EC_OEM_SC, inb(), and printk.

Here is the call graph for this function:

◆ ec_oem_read()

u8 ec_oem_read ( u8  addr)

Definition at line 82 of file ec_oem.c.

References addr, recv_ec_oem_data(), send_ec_oem_command(), and send_ec_oem_data().

Here is the call graph for this function:

◆ ec_oem_write()

int ec_oem_write ( u8  addr,
u8  data 
)

Definition at line 90 of file ec_oem.c.

References addr, send_ec_oem_command(), and send_ec_oem_data().

Here is the call graph for this function:

◆ recv_ec_oem_data()

u8 recv_ec_oem_data ( void  )

Definition at line 57 of file ec_oem.c.

References BIOS_DEBUG, BIOS_SPEW, EC_OBF, EC_OEM_DATA, EC_OEM_SC, inb(), printk, and udelay().

Referenced by ec_oem_read(), and mainboard_smi_gpi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ send_ec_oem_command()

int send_ec_oem_command ( u8  command)

Definition at line 9 of file ec_oem.c.

References BIOS_DEBUG, BIOS_SPEW, EC_IBF, EC_OEM_SC, inb(), outb(), printk, and udelay().

Referenced by ec_enable(), ec_oem_read(), ec_oem_write(), and mainboard_smi_gpi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ send_ec_oem_data()

int send_ec_oem_data ( u8  data)

Definition at line 29 of file ec_oem.c.

References BIOS_DEBUG, BIOS_SPEW, EC_IBF, EC_OEM_DATA, EC_OEM_SC, inb(), outb(), printk, and udelay().

Referenced by ec_enable(), ec_oem_read(), and ec_oem_write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ send_ec_oem_data_nowait()

int send_ec_oem_data_nowait ( u8  data)

Definition at line 50 of file ec_oem.c.

References EC_OEM_DATA, and outb().

Here is the call graph for this function: