coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
iobp.c File Reference
#include <console/console.h>
#include <delay.h>
#include "pch.h"
#include "iobp.h"
Include dependency graph for iobp.c:

Go to the source code of this file.

Macros

#define IOBP_RETRY   1000
 

Functions

static int iobp_poll (void)
 
u32 pch_iobp_read (u32 address)
 
void pch_iobp_write (u32 address, u32 data)
 
void pch_iobp_update (u32 address, u32 andvalue, u32 orvalue)
 
void pch_iobp_exec (u32 addr, u16 op_code, u8 route_id, u32 *data, u8 *resp)
 

Macro Definition Documentation

◆ IOBP_RETRY

#define IOBP_RETRY   1000

Definition at line 8 of file iobp.c.

Function Documentation

◆ iobp_poll()

static int iobp_poll ( void  )
inlinestatic

Definition at line 10 of file iobp.c.

References BIOS_ERR, IOBP_RETRY, IOBPS, IOBPS_READY, printk, RCBA16, and udelay().

Referenced by pch_iobp_exec(), pch_iobp_read(), and pch_iobp_write().

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

◆ pch_iobp_exec()

void pch_iobp_exec ( u32  addr,
u16  op_code,
u8  route_id,
u32 data,
u8 resp 
)

Definition at line 113 of file iobp.c.

References addr, IOBP_PCICFG_WRITE, iobp_poll(), IOBPD, IOBPIRI, IOBPS, IOBPS_TX_MASK, IOBPU, IOBPU_MAGIC, RCBA16, and RCBA32.

Referenced by root_port_init_config().

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

◆ pch_iobp_read()

u32 pch_iobp_read ( u32  address)

Definition at line 25 of file iobp.c.

References address, BIOS_ERR, iobp_poll(), IOBPD, IOBPIRI, IOBPS, IOBPS_MASK, IOBPS_READ, IOBPS_READY, IOBPS_TX_MASK, IOBPU, IOBPU_MAGIC, printk, RCBA16, and RCBA32.

Referenced by pch_iobp_update(), and pcie_add_0x0202000_iobp().

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

◆ pch_iobp_update()

void pch_iobp_update ( u32  address,
u32  andvalue,
u32  orvalue 
)

Definition at line 102 of file iobp.c.

References address, pch_iobp_read(), and pch_iobp_write().

Here is the call graph for this function:

◆ pch_iobp_write()

void pch_iobp_write ( u32  address,
u32  data 
)

Definition at line 63 of file iobp.c.

References address, BIOS_ERR, BIOS_SPEW, iobp_poll(), IOBPD, IOBPIRI, IOBPS, IOBPS_MASK, IOBPS_READY, IOBPS_TX_MASK, IOBPS_WRITE, IOBPU, IOBPU_MAGIC, printk, RCBA16, and RCBA32.

Referenced by adsp_init(), pch_iobp_update(), and pcie_add_0x0202000_iobp().

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