xref: /openbmc/linux/drivers/net/dsa/dsa_loop.h (revision 6aa7de05)
1 #ifndef __DSA_LOOP_H
2 #define __DSA_LOOP_H
3 
4 struct dsa_chip_data;
5 
6 struct 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 */
20