~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 17fed2e79253c5d8a47dd07d7c98841df3a5d67b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
 * Copyright (c) 2018 Microsemi Corporation
 */

#include <common.h>

#define ETH_LEN 6
#define MAC_VID 1

enum mscc_regs_ana_table {
	MSCC_ANA_TABLES_MACHDATA,
	MSCC_ANA_TABLES_MACLDATA,
	MSCC_ANA_TABLES_MACACCESS,
};

int mscc_mac_table_add(void __iomem *regs,
		       const unsigned long *mscc_mac_table_offset,
		       const unsigned char mac[ETH_LEN], int pgid);