xref: /linux/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.h (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Marvell RVU Admin Function driver
3  *
4  * Copyright (C) 2022 Marvell.
5  *
6  */
7 
8 #ifndef __RVU_NPC_FS_H
9 #define __RVU_NPC_FS_H
10 
11 #define IPV6_WORDS	4
12 #define NPC_BYTESM	GENMASK_ULL(19, 16)
13 #define NPC_HDR_OFFSET	GENMASK_ULL(15, 8)
14 #define NPC_KEY_OFFSET	GENMASK_ULL(5, 0)
15 #define NPC_LDATA_EN	BIT_ULL(7)
16 
17 void npc_update_entry(struct rvu *rvu, enum key_fields type,
18 		      struct mcam_entry *entry, u64 val_lo,
19 		      u64 val_hi, u64 mask_lo, u64 mask_hi, u8 intf);
20 
21 #endif /* RVU_NPC_FS_H */
22