blob: dc396877fc954e9850cef21faa0a70f80565e206 [file] [log] [blame]
Florian Fainelli98cd1552017-03-30 18:43:21 -07001#ifndef __DSA_LOOP_H
2#define __DSA_LOOP_H
3
4struct dsa_chip_data;
5
6struct dsa_loop_pdata {
7 /* Must be first, such that dsa_register_switch() can access this
8 * without gory pointer manipulations
9 */
10 struct dsa_chip_data cd;
11 const char *name;
12 unsigned int enabled_ports;
13 const char *netdev;
14};
15
16#define DSA_LOOP_NUM_PORTS 6
17#define DSA_LOOP_CPU_PORT (DSA_LOOP_NUM_PORTS - 1)
18
19#endif /* __DSA_LOOP_H */