1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * B53 platform data 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * Copyright (C) 2013 Jonas Gorski <jogo@openwrt.org> 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * Permission to use, copy, modify, and/or distribute this software for any 7*4882a593Smuzhiyun * purpose with or without fee is hereby granted, provided that the above 8*4882a593Smuzhiyun * copyright notice and this permission notice appear in all copies. 9*4882a593Smuzhiyun * 10*4882a593Smuzhiyun * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11*4882a593Smuzhiyun * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12*4882a593Smuzhiyun * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13*4882a593Smuzhiyun * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14*4882a593Smuzhiyun * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15*4882a593Smuzhiyun * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16*4882a593Smuzhiyun * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17*4882a593Smuzhiyun */ 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun #ifndef __B53_H 20*4882a593Smuzhiyun #define __B53_H 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun #include <linux/types.h> 23*4882a593Smuzhiyun #include <linux/platform_data/dsa.h> 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun struct b53_platform_data { 26*4882a593Smuzhiyun /* Must be first such that dsa_register_switch() can access it */ 27*4882a593Smuzhiyun struct dsa_chip_data cd; 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun u32 chip_id; 30*4882a593Smuzhiyun u16 enabled_ports; 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun /* only used by MMAP'd driver */ 33*4882a593Smuzhiyun unsigned big_endian:1; 34*4882a593Smuzhiyun void __iomem *regs; 35*4882a593Smuzhiyun }; 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun #endif 38