diff options
Diffstat (limited to 'drivers/net/dsa/dsa_loop.h')
-rw-r--r-- | drivers/net/dsa/dsa_loop.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/net/dsa/dsa_loop.h b/drivers/net/dsa/dsa_loop.h new file mode 100644 index 000000000000..dc396877fc95 --- /dev/null +++ b/drivers/net/dsa/dsa_loop.h | |||
@@ -0,0 +1,19 @@ | |||
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 */ | ||