Path: blob/master/drivers/accel/habanalabs/include/gaudi/gaudi_fw_if.h
26446 views
/* SPDX-License-Identifier: GPL-2.01*2* Copyright 2019-2020 HabanaLabs, Ltd.3* All Rights Reserved.4*5*/67#ifndef GAUDI_FW_IF_H8#define GAUDI_FW_IF_H910#define GAUDI_EVENT_QUEUE_MSI_IDX 811#define GAUDI_NIC_PORT1_MSI_IDX 1012#define GAUDI_NIC_PORT3_MSI_IDX 1213#define GAUDI_NIC_PORT5_MSI_IDX 1414#define GAUDI_NIC_PORT7_MSI_IDX 1615#define GAUDI_NIC_PORT9_MSI_IDX 181617#define UBOOT_FW_OFFSET 0x100000 /* 1MB in SRAM */18#define LINUX_FW_OFFSET 0x800000 /* 8MB in HBM */1920/* HBM thermal delta in [Deg] added to composite (CTemp) */21#define HBM_TEMP_ADJUST_COEFF 62223enum gaudi_nic_axi_error {24RXB,25RXE,26TXS,27TXE,28QPC_RESP,29NON_AXI_ERR,30TMR,31};3233/*34* struct eq_nic_sei_event - describes an AXI error cause.35* @axi_error_cause: one of the events defined in enum gaudi_nic_axi_error.36* @id: can be either 0 or 1, to further describe unit with interrupt cause37* (i.e. TXE0 or TXE1).38* @pad[6]: padding structure to 64bit.39*/40struct eq_nic_sei_event {41__u8 axi_error_cause;42__u8 id;43__u8 pad[6];44};4546struct gaudi_cold_rst_data {47union {48struct {49u32 spsram_init_done : 1;50u32 reserved : 31;51};52__le32 data;53};54};5556#define GAUDI_PLL_FREQ_LOW 200000000 /* 200 MHz */5758#endif /* GAUDI_FW_IF_H */596061