xref: /titanic_52/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/channel_vf/lm_vf.h (revision d14abf155341d55053c76eeec58b787a456b753b)
1 #ifndef _LM_VF_H
2 #define _LM_VF_H
3 
4 #include "vfpf_if.h"
5 #ifndef aligned_u64
6 #define aligned_u64 __declspec( align( 8 ) ) u64
7 #endif
8 #include "hw_channel.h"
9 #include "lm_vf_common.h"
10 
11 /* VF_INFO*/
12 #define MAX_NUM_OF_SB_BLOCKS    136
13 #define SB_ARRAY_SIZE           ((MAX_NUM_OF_SB_BLOCKS - 1)/ELEM_OF_RES_ARRAY_SIZE_IN_BITS + 1)
14 
15 #define MAX_NUM_OF_FW_CLIENTS      152
16 #define FW_CLIENTS_ARRAY_SIZE      ((MAX_NUM_OF_FW_CLIENTS - 1)/ELEM_OF_RES_ARRAY_SIZE_IN_BITS + 1)
17 
18 #define MAX_NUM_OF_SW_CLIENTS      304
19 #define SW_CLIENTS_ARRAY_SIZE      ((MAX_NUM_OF_SW_CLIENTS - 1)/ELEM_OF_RES_ARRAY_SIZE_IN_BITS + 1)
20 
21 
22 typedef struct _pf_resources_set_t {
23     u32_t   free_sbs[SB_ARRAY_SIZE];
24     u32_t   free_fw_clients[FW_CLIENTS_ARRAY_SIZE];
25     u32_t   free_sw_clients[SW_CLIENTS_ARRAY_SIZE];
26 } pf_resources_set_t;
27 
28 //#define MM_ACQUIRE_PF_LOCK(pdev)
29 //#define MM_RELEASE_PF_LOCK(pdev)
30 #define MAX_VF_ETH_CONS             0
31 
32 #define LM_SW_CID_TO_SW_QID(_pdev, _cid) (_cid)
33 #define LM_SW_QID_TO_SW_CID(_pdev, _qid) (_qid)
34 
35 #endif
36 /* */
37