mscc_mac_table.h 422 B

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