coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mec.h File Reference
#include <stddef.h>
#include <stdint.h>
Include dependency graph for mec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  mec_io_type { MEC_IO_READ , MEC_IO_WRITE }
 

Functions

uint8_t mec_io_bytes (enum mec_io_type type, uint16_t base, uint16_t offset, void *buffer, size_t size)
 

Enumeration Type Documentation

◆ mec_io_type

Enumerator
MEC_IO_READ 
MEC_IO_WRITE 

Definition at line 10 of file mec.h.

Function Documentation

◆ mec_io_bytes()

uint8_t mec_io_bytes ( enum mec_io_type  type,
uint16_t  base,
uint16_t  offset,
void buffer,
size_t  size 
)

Definition at line 49 of file mec.c.

References ACCESS_TYPE_BYTE, ACCESS_TYPE_LONG_AUTO_INCREMENT, base, buf, buffer, checksum(), inb(), MEC_EMI_EC_DATA_B0, MEC_EMI_EC_DATA_B3, mec_emi_write_address(), MEC_IO_WRITE, offset, outb(), and type.

Referenced by read_bytes(), wilco_ec_transfer(), and write_bytes().

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