dsa_loop.h 407 B

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