Go to the documentation of this file.
36 #ifndef __T4VF_DEFS_H__
37 #define __T4VF_DEFS_H__
39 #include "../cxgb4/t4_regs.h"
53 #define T4VF_SGE_BASE_ADDR 0x0000
54 #define T4VF_MPS_BASE_ADDR 0x0100
55 #define T4VF_PL_BASE_ADDR 0x0200
56 #define T4VF_MBDATA_BASE_ADDR 0x0240
57 #define T4VF_CIM_BASE_ADDR 0x0300
59 #define T4VF_REGMAP_START 0x0000
60 #define T4VF_REGMAP_SIZE 0x0400
67 #if T4VF_MBDATA_BASE_ADDR != CIM_PF_MAILBOX_DATA
68 #error T4VF_MBDATA_BASE_ADDR must match CIM_PF_MAILBOX_DATA!
84 #define T4VF_MOD_MAP(module, index, first, last) \
85 T4VF_MOD_MAP_##module##_INDEX = (index), \
86 T4VF_MOD_MAP_##module##_FIRST = (first), \
87 T4VF_MOD_MAP_##module##_LAST = (last), \
88 T4VF_MOD_MAP_##module##_OFFSET = ((first)/4), \
89 T4VF_MOD_MAP_##module##_BASE = \
90 (T4VF_##module##_BASE_ADDR/4 + (first)/4), \
91 T4VF_MOD_MAP_##module##_LIMIT = \
92 (T4VF_##module##_BASE_ADDR/4 + (last)/4),
94 #define SGE_VF_KDOORBELL 0x0
95 #define SGE_VF_GTS 0x4
96 #define MPS_VF_CTL 0x0
97 #define MPS_VF_STAT_RX_VF_ERR_FRAMES_H 0xfc
98 #define PL_VF_WHOAMI 0x0
99 #define CIM_VF_EXT_MAILBOX_CTRL 0x0
100 #define CIM_VF_EXT_MAILBOX_STATUS 0x4
116 #define NUM_CIM_VF_MAILBOX_DATA_INSTANCES 16
118 #define T4VF_MBDATA_FIRST 0
119 #define T4VF_MBDATA_LAST ((NUM_CIM_VF_MAILBOX_DATA_INSTANCES-1)*4)