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

Go to the source code of this file.

Functions

void kempld_write8 (uint8_t addr, uint8_t data)
 
uint8_t kempld_read8 (uint8_t addr)
 
int kempld_get_mutex (int timeout_ms)
 
void kempld_release_mutex (void)
 
void kempld_enable_uart_for_console (void)
 

Function Documentation

◆ kempld_enable_uart_for_console()

void kempld_enable_uart_for_console ( void  )

Definition at line 35 of file early_kempld.c.

References CONFIG, kempld_get_mutex(), kempld_release_mutex(), KEMPLD_UART_0, KEMPLD_UART_1, KEMPLD_UART_2F8, KEMPLD_UART_3F8, KEMPLD_UART_ENABLE, KEMPLD_UART_IO_SHIFT, and kempld_write8().

Referenced by bootblock_mainboard_early_init(), and init_cpld().

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

◆ kempld_get_mutex()

int kempld_get_mutex ( int  timeout_ms)

Definition at line 23 of file early_kempld.c.

References inb(), KEMPLD_IDX, KEMPLD_MUTEX_KEY, and mdelay().

Referenced by kempld_configure_gpio(), kempld_enable_uart_for_console(), kempld_i2c_device_init(), kempld_uart_enable_resources(), and kempld_uart_read_resources().

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

◆ kempld_read8()

uint8_t kempld_read8 ( uint8_t  addr)

Definition at line 17 of file early_kempld.c.

References addr, inb(), KEMPLD_DAT, KEMPLD_IDX, and outb().

Referenced by kempld_gpio_direction_set(), kempld_gpio_value_set(), kempld_i2c_device_init(), kempld_i2c_process(), kempld_uart_enable_resources(), and kempld_uart_read_resources().

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

◆ kempld_release_mutex()

void kempld_release_mutex ( void  )

Definition at line 30 of file early_kempld.c.

References KEMPLD_IDX, KEMPLD_MUTEX_KEY, and outb().

Referenced by kempld_configure_gpio(), kempld_enable_uart_for_console(), kempld_i2c_device_init(), kempld_uart_enable_resources(), and kempld_uart_read_resources().

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

◆ kempld_write8()

void kempld_write8 ( uint8_t  addr,
uint8_t  data 
)

Definition at line 11 of file early_kempld.c.

References addr, KEMPLD_DAT, KEMPLD_IDX, and outb().

Referenced by kempld_enable_uart_for_console(), kempld_gpio_direction_set(), kempld_gpio_value_set(), kempld_i2c_device_init(), kempld_i2c_process(), kempld_uart_enable_resources(), and kempld_uart_read_resources().

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