1 /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2 /*
3  * Copyright (c) 2018 Microsemi Corporation
4  */
5 
6 #include <common.h>
7 
8 #define ETH_LEN 6
9 #define MAC_VID 1
10 
11 enum mscc_regs_ana_table {
12 	MSCC_ANA_TABLES_MACHDATA,
13 	MSCC_ANA_TABLES_MACLDATA,
14 	MSCC_ANA_TABLES_MACACCESS,
15 };
16 
17 int mscc_mac_table_add(void __iomem *regs,
18 		       const unsigned long *mscc_mac_table_offset,
19 		       const unsigned char mac[ETH_LEN], int pgid);
20