12#include "dt/dt_rom_ctrl.h"
21 uint32_t
base_addr[kDtRomCtrlRegBlockCount];
39 [kDtRomCtrlRegBlockRom] = 0x00008000,
40 [kDtRomCtrlRegBlockRegs] = 0x211e0000,
53 [kDtRomCtrlRegBlockRom] = 0x00020000,
54 [kDtRomCtrlRegBlockRegs] = 0x211e1000,
71#define TRY_GET_DT(dt, default) ({ if ((dt) < (dt_rom_ctrl_t)0 || (dt) >= kDtRomCtrlCount) return (default); &rom_ctrl_desc[dt]; })
89 return TRY_GET_DT(dt, 0xdeadbeef)->base_addr[reg_block];
96 return (
dt_alert_id_t)((uint32_t)rom_ctrl_desc[dt].first_alert + (uint32_t)alert);
103 if (alert < rom_ctrl_desc[dt].first_alert || alert >= rom_ctrl_desc[dt].first_alert + (
dt_alert_id_t)count) {