diff options
author | Tom Rini <trini@konsulko.com> | 2019-02-02 10:11:12 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-02-02 10:11:12 -0500 |
commit | 544d5e98f3657e4ac1966be8971586aa42dad8c4 (patch) | |
tree | 742ce50ddb331b05ea9a89db0faf1be4b35db8b5 /drivers/net/mscc_eswitch/mscc_mac_table.h | |
parent | 1b0769f2ed17ffc1cf9b32ad057bc8b160cbcbae (diff) | |
parent | 364e407f3cafd485db4d090430e3861c99858d42 (diff) |
Merge tag 'mips-pull-2019-02-01' of git://git.denx.de/u-boot-mips
- MIPS: mscc: jr2: small fixes
- MIPS: mscc: luton: add ethernet and switch driver
- MIPS: mt76xx: fix timer frequency
Diffstat (limited to 'drivers/net/mscc_eswitch/mscc_mac_table.h')
-rw-r--r-- | drivers/net/mscc_eswitch/mscc_mac_table.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/net/mscc_eswitch/mscc_mac_table.h b/drivers/net/mscc_eswitch/mscc_mac_table.h new file mode 100644 index 00000000000..17fed2e7925 --- /dev/null +++ b/drivers/net/mscc_eswitch/mscc_mac_table.h @@ -0,0 +1,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); |