TT-System-Firmware APIs 19.15.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
tt_grendel_pcie.c File Reference
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
#include "pcie_init.h"
#include <basic_init.h>
#include <platform.h>
Include dependency graph for tt_grendel_pcie.c:

Data Structures

struct  tt_grendel_pcie_config

Macros

#define DT_DRV_COMPAT   tenstorrent_grendel_pcie
#define TT_GRENDEL_PCIE_DEFINE(inst)

Functions

 LOG_MODULE_REGISTER (tt_grendel_pcie, CONFIG_TT_GRENDEL_PCIE_LOG_LEVEL)
static int tt_grendel_pcie_init (const struct device *dev)

Macro Definition Documentation

◆ DT_DRV_COMPAT

#define DT_DRV_COMPAT   tenstorrent_grendel_pcie

◆ TT_GRENDEL_PCIE_DEFINE

#define TT_GRENDEL_PCIE_DEFINE ( inst)
Value:
static const struct tt_grendel_pcie_config config_##inst = { \
/* bar4-size is two 32-bit cells (high, then low). */ \
.bar4_size = ((uint64_t)DT_INST_PROP_BY_IDX(inst, bar4_size, 0) << 32) | \
DT_INST_PROP_BY_IDX(inst, bar4_size, 1), \
}; \
DEVICE_DT_INST_DEFINE(inst, tt_grendel_pcie_init, NULL, NULL, &config_##inst, \
PRE_KERNEL_2, CONFIG_TT_GRENDEL_PCIE_INIT_PRIORITY, NULL);
#define NULL
Definition avs.c:45
#define DT_INST_PROP_BY_IDX(inst, prop, idx)
__UINT64_TYPE__ uint64_t
Definition tt_grendel_pcie.c:23
static int tt_grendel_pcie_init(const struct device *dev)
Definition tt_grendel_pcie.c:40

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( tt_grendel_pcie ,
CONFIG_TT_GRENDEL_PCIE_LOG_LEVEL  )

◆ tt_grendel_pcie_init()

int tt_grendel_pcie_init ( const struct device * dev)
static