diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-10-12 09:05:39 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-12 09:05:39 -0400 |
commit | a9b9e81c915e4a57ac3b21d1a7fa7ff184639780 (patch) | |
tree | 98304395fbb5b9c74fca35b196cd414c1949f280 /include/net/dsa.h | |
parent | a8b71a2810386a5ac8f43d2095fe3355f0d8db37 (diff) | |
parent | fd048088306656824958e7783ffcee27e241b361 (diff) |
Merge branch 'linus' into x86/memory-corruption-check
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h new file mode 100644 index 000000000000..52e97bfca5a1 --- /dev/null +++ b/include/net/dsa.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | * include/net/dsa.h - Driver for Distributed Switch Architecture switch chips | ||
3 | * Copyright (c) 2008 Marvell Semiconductor | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation; either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
9 | */ | ||
10 | |||
11 | #ifndef __LINUX_NET_DSA_H | ||
12 | #define __LINUX_NET_DSA_H | ||
13 | |||
14 | #define DSA_MAX_PORTS 12 | ||
15 | |||
16 | struct dsa_platform_data { | ||
17 | /* | ||
18 | * Reference to a Linux network interface that connects | ||
19 | * to the switch chip. | ||
20 | */ | ||
21 | struct device *netdev; | ||
22 | |||
23 | /* | ||
24 | * How to access the switch configuration registers, and | ||
25 | * the names of the switch ports (use "cpu" to designate | ||
26 | * the switch port that the cpu is connected to). | ||
27 | */ | ||
28 | struct device *mii_bus; | ||
29 | int sw_addr; | ||
30 | char *port_names[DSA_MAX_PORTS]; | ||
31 | }; | ||
32 | |||
33 | extern bool dsa_uses_dsa_tags(void *dsa_ptr); | ||
34 | extern bool dsa_uses_trailer_tags(void *dsa_ptr); | ||
35 | |||
36 | |||
37 | #endif | ||