xref: /openbmc/linux/include/net/dsa.h (revision 91da11f8)
191da11f8SLennert Buytenhek /*
291da11f8SLennert Buytenhek  * include/net/dsa.h - Driver for Distributed Switch Architecture switch chips
391da11f8SLennert Buytenhek  * Copyright (c) 2008 Marvell Semiconductor
491da11f8SLennert Buytenhek  *
591da11f8SLennert Buytenhek  * This program is free software; you can redistribute it and/or modify
691da11f8SLennert Buytenhek  * it under the terms of the GNU General Public License as published by
791da11f8SLennert Buytenhek  * the Free Software Foundation; either version 2 of the License, or
891da11f8SLennert Buytenhek  * (at your option) any later version.
991da11f8SLennert Buytenhek  */
1091da11f8SLennert Buytenhek 
1191da11f8SLennert Buytenhek #ifndef __LINUX_NET_DSA_H
1291da11f8SLennert Buytenhek #define __LINUX_NET_DSA_H
1391da11f8SLennert Buytenhek 
1491da11f8SLennert Buytenhek #define DSA_MAX_PORTS	12
1591da11f8SLennert Buytenhek 
1691da11f8SLennert Buytenhek struct dsa_platform_data {
1791da11f8SLennert Buytenhek 	/*
1891da11f8SLennert Buytenhek 	 * Reference to a Linux network interface that connects
1991da11f8SLennert Buytenhek 	 * to the switch chip.
2091da11f8SLennert Buytenhek 	 */
2191da11f8SLennert Buytenhek 	struct device	*netdev;
2291da11f8SLennert Buytenhek 
2391da11f8SLennert Buytenhek 	/*
2491da11f8SLennert Buytenhek 	 * How to access the switch configuration registers, and
2591da11f8SLennert Buytenhek 	 * the names of the switch ports (use "cpu" to designate
2691da11f8SLennert Buytenhek 	 * the switch port that the cpu is connected to).
2791da11f8SLennert Buytenhek 	 */
2891da11f8SLennert Buytenhek 	struct device	*mii_bus;
2991da11f8SLennert Buytenhek 	int		sw_addr;
3091da11f8SLennert Buytenhek 	char		*port_names[DSA_MAX_PORTS];
3191da11f8SLennert Buytenhek };
3291da11f8SLennert Buytenhek 
3391da11f8SLennert Buytenhek 
3491da11f8SLennert Buytenhek #endif
35