coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
sch5545_early_init.c File Reference
#include <arch/io.h>
#include <device/pnp.h>
#include <stdint.h>
#include <device/pnp_ops.h>
#include "sch5545.h"
Include dependency graph for sch5545_early_init.c:

Go to the source code of this file.

Functions

static void pnp_enter_conf_state (pnp_devfn_t dev)
 
static void pnp_exit_conf_state (pnp_devfn_t dev)
 
static void set_iobase (pnp_devfn_t dev, uint16_t device_addr, uint16_t bar_addr)
 
static void set_irq (pnp_devfn_t dev, uint8_t irq_device, unsigned int irq)
 
void sch5545_set_led (unsigned int runtime_reg_base, unsigned int color, uint16_t blink)
 
void sch5545_early_init (unsigned int port)
 
void sch5545_enable_uart (unsigned int port, unsigned int uart_no)
 
int sch5545_get_gpio (uint8_t sio_port, uint8_t gpio)
 

Function Documentation

◆ pnp_enter_conf_state()

static void pnp_enter_conf_state ( pnp_devfn_t  dev)
static

Definition at line 9 of file sch5545_early_init.c.

References outb().

Referenced by sch5545_early_init(), sch5545_enable_uart(), and sch5545_get_gpio().

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

◆ pnp_exit_conf_state()

static void pnp_exit_conf_state ( pnp_devfn_t  dev)
static

Definition at line 15 of file sch5545_early_init.c.

References outb().

Referenced by sch5545_early_init(), sch5545_enable_uart(), and sch5545_get_gpio().

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

◆ sch5545_early_init()

◆ sch5545_enable_uart()

void sch5545_enable_uart ( unsigned int  port,
unsigned int  uart_no 
)

◆ sch5545_get_gpio()

int sch5545_get_gpio ( uint8_t  sio_port,
uint8_t  gpio 
)

Definition at line 150 of file sch5545_early_init.c.

◆ sch5545_set_led()

void sch5545_set_led ( unsigned int  runtime_reg_base,
unsigned int  color,
uint16_t  blink 
)

Definition at line 57 of file sch5545_early_init.c.

References outb(), SCH5545_LED_BLINK_MASK, SCH5545_LED_CODE_FETCH, SCH5545_LED_COLOR_GREEN, SCH5545_RR_LED, and val.

Referenced by sch5545_early_init().

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

◆ set_iobase()

static void set_iobase ( pnp_devfn_t  dev,
uint16_t  device_addr,
uint16_t  bar_addr 
)
static

Definition at line 26 of file sch5545_early_init.c.

References pnp_set_iobase().

Referenced by sch5545_early_init(), and sch5545_enable_uart().

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

◆ set_irq()

static void set_irq ( pnp_devfn_t  dev,
uint8_t  irq_device,
unsigned int  irq 
)
static

Definition at line 44 of file sch5545_early_init.c.

References pnp_write_config(), and SCH5545_IRQ_BASE.

Referenced by sch5545_enable_uart().

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