dsa_loop.h 446 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __DSA_LOOP_H
  3. #define __DSA_LOOP_H
  4. struct dsa_chip_data;
  5. struct dsa_loop_pdata {
  6. /* Must be first, such that dsa_register_switch() can access this
  7. * without gory pointer manipulations
  8. */
  9. struct dsa_chip_data cd;
  10. const char *name;
  11. unsigned int enabled_ports;
  12. const char *netdev;
  13. };
  14. #define DSA_LOOP_NUM_PORTS 6
  15. #define DSA_LOOP_CPU_PORT (DSA_LOOP_NUM_PORTS - 1)
  16. #endif /* __DSA_LOOP_H */