Path: blob/master/drivers/accel/habanalabs/include/gaudi/gaudi.h
26445 views
/* SPDX-License-Identifier: GPL-2.01*2* Copyright 2018-2020 HabanaLabs, Ltd.3* All Rights Reserved.4*5*/67#ifndef GAUDI_H8#define GAUDI_H910#define SRAM_BAR_ID 011#define CFG_BAR_ID 212#define HBM_BAR_ID 41314#define SRAM_BAR_SIZE 0x4000000ull /* 64MB */15#define CFG_BAR_SIZE 0x8000000ull /* 128MB */1617#define CFG_BASE 0x7FFC000000ull18#define CFG_SIZE 0x4000000 /* 32MB CFG + 32MB DBG*/1920#define SRAM_BASE_ADDR 0x7FF0000000ull21#define SRAM_SIZE 0x1400000 /* 20MB */2223#define SPI_FLASH_BASE_ADDR 0x7FF8000000ull2425#define PSOC_SCRATCHPAD_ADDR 0x7FFBFE0000ull26#define PSOC_SCRATCHPAD_SIZE 0x10000 /* 64KB */2728#define PCIE_FW_SRAM_ADDR 0x7FFBFF0000ull29#define PCIE_FW_SRAM_SIZE 0x8000 /* 32KB */3031#define DRAM_PHYS_BASE 0x0ull3233#define HOST_PHYS_BASE 0x8000000000ull /* 0.5TB */34#define HOST_PHYS_SIZE 0x1000000000000ull /* 0.25PB (48 bits) */3536#define GAUDI_MSI_ENTRIES 323738#define QMAN_PQ_ENTRY_SIZE 16 /* Bytes */3940#define MAX_ASID 24142#define PROT_BITS_OFFS 0xF804344#define MME_NUMBER_OF_MASTER_ENGINES 24546#define MME_NUMBER_OF_SLAVE_ENGINES 24748#define TPC_NUMBER_OF_ENGINES 84950#define DMA_NUMBER_OF_CHANNELS 85152#define NIC_NUMBER_OF_MACROS 55354#define NIC_NUMBER_OF_ENGINES (NIC_NUMBER_OF_MACROS * 2)5556#define NUMBER_OF_IF 85758#define DEVICE_CACHE_LINE_SIZE 1285960#endif /* GAUDI_H */616263