coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ec_oem.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EC_OEM_DATA   0x68
 
#define EC_OEM_SC   0x6c
 
#define EC_SMI_EVT   (1 << 6)
 
#define EC_SCI_EVT   (1 << 5)
 
#define EC_BURST   (1 << 4)
 
#define EC_CMD   (1 << 3)
 
#define EC_IBF   (1 << 1)
 
#define EC_OBF   (1 << 0)
 
#define RD_EC   0x80
 
#define WR_EC   0x81
 
#define BE_EC   0x82
 
#define BD_EC   0x83
 
#define QR_EC   0x84
 

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_dump_status (void)
 
int ec_oem_dump_status (void)
 

Macro Definition Documentation

◆ BD_EC

#define BD_EC   0x83

Definition at line 21 of file ec_oem.h.

◆ BE_EC

#define BE_EC   0x82

Definition at line 20 of file ec_oem.h.

◆ EC_BURST

#define EC_BURST   (1 << 4)

Definition at line 12 of file ec_oem.h.

◆ EC_CMD

#define EC_CMD   (1 << 3)

Definition at line 13 of file ec_oem.h.

◆ EC_IBF

#define EC_IBF   (1 << 1)

Definition at line 15 of file ec_oem.h.

◆ EC_OBF

#define EC_OBF   (1 << 0)

Definition at line 16 of file ec_oem.h.

◆ EC_OEM_DATA

#define EC_OEM_DATA   0x68

Definition at line 6 of file ec_oem.h.

◆ EC_OEM_SC

#define EC_OEM_SC   0x6c

Definition at line 7 of file ec_oem.h.

◆ EC_SCI_EVT

#define EC_SCI_EVT   (1 << 5)

Definition at line 11 of file ec_oem.h.

◆ EC_SMI_EVT

#define EC_SMI_EVT   (1 << 6)

Definition at line 10 of file ec_oem.h.

◆ QR_EC

#define QR_EC   0x84

Definition at line 22 of file ec_oem.h.

◆ RD_EC

#define RD_EC   0x80

Definition at line 18 of file ec_oem.h.

◆ WR_EC

#define WR_EC   0x81

Definition at line 19 of file ec_oem.h.

Function Documentation

◆ ec_dump_status()

int ec_dump_status ( void  )

◆ 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: