coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <soc/apusys_devapc.h>
#include <soc/devapc.h>
#include <soc/devapc_common.h>
Go to the source code of this file.
Macros | |
#define | DAPC_APU_AO_SYS0_ATTR(...) |
#define | DAPC_APU_NOC_AO_SYS0_ATTR(...) |
Functions | |
_Static_assert (ARRAY_SIZE(apusys_noc_dapc)==APUSYS_NOC_DAPC_AO_SLAVE_NUM, "Wrong size on apusys_noc_dapc") | |
_Static_assert (ARRAY_SIZE(apusys_ao_apc)==APUSYS_APC_SYS0_AO_SLAVE_NUM, "Wrong size on apusys_ao_apc") | |
static int | set_slave_noc_dapc (u32 slave, enum domain_id domain_id, enum devapc_perm_type perm) |
static void | dump_apusys_noc_dapc (void) |
static int | set_slave_apc (u32 slave, enum domain_id domain_id, enum devapc_perm_type perm) |
static void | dump_apusys_ao_apc (void) |
static int | set_apusys_noc_dapc (void) |
static int32_t | set_apusys_ao_apc (void) |
void | start_apusys_devapc (void) |
Variables | |
static enum domain_id | domain_map [] |
static const struct apc_apu_dom_16 | apusys_noc_dapc [] |
static const struct apc_apu_dom_16 | apusys_ao_apc [] |
#define DAPC_APU_AO_SYS0_ATTR | ( | ... | ) |
Definition at line 13 of file apusys_devapc.c.
#define DAPC_APU_NOC_AO_SYS0_ATTR | ( | ... | ) |
Definition at line 19 of file apusys_devapc.c.
_Static_assert | ( | ARRAY_SIZE(apusys_ao_apc) | = =APUSYS_APC_SYS0_AO_SLAVE_NUM , |
"Wrong size on apusys_ao_apc" | |||
) |
_Static_assert | ( | ARRAY_SIZE(apusys_noc_dapc) | = =APUSYS_NOC_DAPC_AO_SLAVE_NUM , |
"Wrong size on apusys_noc_dapc" | |||
) |
Definition at line 216 of file apusys_devapc.c.
References apusys_ao_apc, APUSYS_APC_AO_BASE, APUSYS_APC_CON, APUSYS_APC_SYS0_AO_DOM_NUM, APUSYS_APC_SYS0_AO_SLAVE_NUM_IN_1_DOM, ARRAY_SIZE, BIOS_DEBUG, DIV_ROUND_UP, printk, and read32().
Referenced by start_apusys_devapc().
Definition at line 175 of file apusys_devapc.c.
References apusys_noc_dapc, APUSYS_NOC_DAPC_AO_BASE, APUSYS_NOC_DAPC_AO_DOM_NUM, APUSYS_NOC_DAPC_AO_SLAVE_NUM_IN_1_DOM, APUSYS_NOC_DAPC_CON, ARRAY_SIZE, BIOS_DEBUG, DIV_ROUND_UP, printk, and read32().
Referenced by start_apusys_devapc().
Definition at line 247 of file apusys_devapc.c.
References apusys_ao_apc, APUSYS_APC_OK, ARRAY_SIZE, BIOS_ERR, apc_apu_dom_16::d_permission, domain_map, printk, and set_slave_apc().
Referenced by start_apusys_devapc().
|
static |
Definition at line 231 of file apusys_devapc.c.
References APUSYS_APC_OK, apusys_noc_dapc, ARRAY_SIZE, BIOS_ERR, apc_apu_dom_16::d_permission, printk, and set_slave_noc_dapc().
Referenced by start_apusys_devapc().
|
static |
Definition at line 190 of file apusys_devapc.c.
References APUSYS_APC_AO_BASE, APUSYS_APC_ERR_OUT_OF_BOUNDARY, APUSYS_APC_ERR_PERMISSION_NOT_SUPPORTED, APUSYS_APC_OK, APUSYS_APC_SYS0_AO_DOM_NUM, APUSYS_APC_SYS0_AO_SLAVE_NUM, APUSYS_APC_SYS0_AO_SLAVE_NUM_IN_1_DOM, base, BIOS_ERR, clrsetbits32, PERM_NUM, printk, and slave.
Referenced by set_apusys_ao_apc().
|
static |
Definition at line 149 of file apusys_devapc.c.
References APUSYS_APC_ERR_OUT_OF_BOUNDARY, APUSYS_APC_ERR_PERMISSION_NOT_SUPPORTED, APUSYS_APC_OK, APUSYS_NOC_DAPC_AO_BASE, APUSYS_NOC_DAPC_AO_DOM_NUM, APUSYS_NOC_DAPC_AO_SLAVE_NUM, APUSYS_NOC_DAPC_AO_SLAVE_NUM_IN_1_DOM, base, BIOS_ERR, clrsetbits32, PERM_NUM, printk, and slave.
Referenced by set_apusys_noc_dapc().
Definition at line 263 of file apusys_devapc.c.
References APU_SCTRL_REVISER, APUSYS_APC_CON, APUSYS_APC_OK, APUSYS_SYS0_APC_LOCK_0, BIOS_DEBUG, DEVAPC_AO_WRAPPER, dump_apusys_ao_apc(), dump_apusys_noc_dapc(), printk, read32(), set_apusys_ao_apc(), set_apusys_noc_dapc(), and write32().
Referenced by dapc_init().
|
static |
Definition at line 47 of file apusys_devapc.c.
Referenced by dump_apusys_ao_apc(), and set_apusys_ao_apc().
|
static |
Definition at line 1 of file apusys_devapc.c.
Referenced by dump_apusys_noc_dapc(), and set_apusys_noc_dapc().
|
static |
Definition at line 1 of file apusys_devapc.c.
Referenced by set_apusys_ao_apc().