diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-06 03:02:57 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-06 03:02:57 -0400 |
commit | f541ae326fa120fa5c57433e4d9a133df212ce41 (patch) | |
tree | bdbd94ec72cfc601118051cb35e8617d55510177 /include/net/dsa.h | |
parent | e255357764f92afcafafbd4879b222b8c752065a (diff) | |
parent | 0221c81b1b8eb0cbb6b30a0ced52ead32d2b4e4c (diff) |
Merge branch 'linus' into perfcounters/core-v2
Merge reason: we have gathered quite a few conflicts, need to merge upstream
Conflicts:
arch/powerpc/kernel/Makefile
arch/x86/ia32/ia32entry.S
arch/x86/include/asm/hardirq.h
arch/x86/include/asm/unistd_32.h
arch/x86/include/asm/unistd_64.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/irq.c
arch/x86/kernel/syscall_table_32.S
arch/x86/mm/iomap_32.c
include/linux/sched.h
kernel/Makefile
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 42 |
1 files changed, 33 insertions, 9 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 52e97bfca5a1..839f768f9e35 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * include/net/dsa.h - Driver for Distributed Switch Architecture switch chips | 2 | * include/net/dsa.h - Driver for Distributed Switch Architecture switch chips |
3 | * Copyright (c) 2008 Marvell Semiconductor | 3 | * Copyright (c) 2008-2009 Marvell Semiconductor |
4 | * | 4 | * |
5 | * This program is free software; you can redistribute it and/or modify | 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 | 6 | * it under the terms of the GNU General Public License as published by |
@@ -11,23 +11,47 @@ | |||
11 | #ifndef __LINUX_NET_DSA_H | 11 | #ifndef __LINUX_NET_DSA_H |
12 | #define __LINUX_NET_DSA_H | 12 | #define __LINUX_NET_DSA_H |
13 | 13 | ||
14 | #define DSA_MAX_PORTS 12 | 14 | #define DSA_MAX_SWITCHES 4 |
15 | #define DSA_MAX_PORTS 12 | ||
16 | |||
17 | struct dsa_chip_data { | ||
18 | /* | ||
19 | * How to access the switch configuration registers. | ||
20 | */ | ||
21 | struct device *mii_bus; | ||
22 | int sw_addr; | ||
23 | |||
24 | /* | ||
25 | * The names of the switch's ports. Use "cpu" to | ||
26 | * designate the switch port that the cpu is connected to, | ||
27 | * "dsa" to indicate that this port is a DSA link to | ||
28 | * another switch, NULL to indicate the port is unused, | ||
29 | * or any other string to indicate this is a physical port. | ||
30 | */ | ||
31 | char *port_names[DSA_MAX_PORTS]; | ||
32 | |||
33 | /* | ||
34 | * An array (with nr_chips elements) of which element [a] | ||
35 | * indicates which port on this switch should be used to | ||
36 | * send packets to that are destined for switch a. Can be | ||
37 | * NULL if there is only one switch chip. | ||
38 | */ | ||
39 | s8 *rtable; | ||
40 | }; | ||
15 | 41 | ||
16 | struct dsa_platform_data { | 42 | struct dsa_platform_data { |
17 | /* | 43 | /* |
18 | * Reference to a Linux network interface that connects | 44 | * Reference to a Linux network interface that connects |
19 | * to the switch chip. | 45 | * to the root switch chip of the tree. |
20 | */ | 46 | */ |
21 | struct device *netdev; | 47 | struct device *netdev; |
22 | 48 | ||
23 | /* | 49 | /* |
24 | * How to access the switch configuration registers, and | 50 | * Info structs describing each of the switch chips |
25 | * the names of the switch ports (use "cpu" to designate | 51 | * connected via this network interface. |
26 | * the switch port that the cpu is connected to). | ||
27 | */ | 52 | */ |
28 | struct device *mii_bus; | 53 | int nr_chips; |
29 | int sw_addr; | 54 | struct dsa_chip_data *chip; |
30 | char *port_names[DSA_MAX_PORTS]; | ||
31 | }; | 55 | }; |
32 | 56 | ||
33 | extern bool dsa_uses_dsa_tags(void *dsa_ptr); | 57 | extern bool dsa_uses_dsa_tags(void *dsa_ptr); |