1 #ifndef _LM_VF_H 2 #define _LM_VF_H 3 4 #include "lm_vf_common.h" 5 6 /* VF_INFO*/ 7 #define MAX_VF_ETH_CONS ((1 << (LM_VF_MAX_RVFID_SIZE + LM_VF_CID_WND_SIZE + 1)) - MAX_ETH_CONS) /*128 - MAX_ETH_CONS for single connection*/ 8 9 #define MAX_NUM_OF_SB_BLOCKS 16 10 #define SB_ARRAY_SIZE ((MAX_NUM_OF_SB_BLOCKS - 1)/ELEM_OF_RES_ARRAY_SIZE_IN_BITS + 1) 11 12 #define MAX_NUM_OF_CLIENTS 24 13 #define CLIENTS_ARRAY_SIZE ((MAX_NUM_OF_CLIENTS - 1)/ELEM_OF_RES_ARRAY_SIZE_IN_BITS + 1) 14 15 #define MAX_NUM_OF_STATS 18 16 #define STATS_ARRAY_SIZE ((MAX_NUM_OF_STATS - 1)/ELEM_OF_RES_ARRAY_SIZE_IN_BITS + 1) 17 18 #define MAX_NUM_OF_CAM_OFFSETS 40 19 #define CAM_OFFSETS_ARRAY_SIZE ((MAX_NUM_OF_CAM_OFFSETS - 1)/ELEM_OF_RES_ARRAY_SIZE_IN_BITS + 1) 20 21 #define MAX_NUM_OF_VFS 64 22 #define FLRED_VFS_ARRAY_SIZE ((MAX_NUM_OF_VFS - 1)/ELEM_OF_RES_ARRAY_SIZE_IN_BITS + 1) 23 /** 24 typedef struct _vf_info_t { 25 struct _lm_device_t * ppfdev; 26 27 u8_t num_fw_sbs; 28 u8_t stats_id; 29 30 u8_t base_fw_client_id; 31 u8_t base_fw_sb_id; 32 u8_t base_cam_offset; 33 34 } vf_info_t; 35 */ 36 typedef struct _pf_resources_set_t { 37 u32_t free_sbs[SB_ARRAY_SIZE]; 38 u32_t free_clients[CLIENTS_ARRAY_SIZE]; 39 u32_t free_stats[CLIENTS_ARRAY_SIZE]; 40 u32_t free_cam_offsets[CAM_OFFSETS_ARRAY_SIZE]; 41 u32_t flred_vfs[FLRED_VFS_ARRAY_SIZE]; 42 } pf_resources_set_t; 43 #endif 44 /* */ 45