1*31586d2cSmatt /* $NetBSD: arbusle.c,v 1.1 2011/07/10 06:26:02 matt Exp $ */ 2*31586d2cSmatt 3*31586d2cSmatt /*- 4*31586d2cSmatt * Copyright (c) 2010 The NetBSD Foundation, Inc. 5*31586d2cSmatt * All rights reserved. 6*31586d2cSmatt * 7*31586d2cSmatt * This code is derived from software contributed to The NetBSD Foundation 8*31586d2cSmatt * by Matt Thomas of 3am Software Foundry. 9*31586d2cSmatt * 10*31586d2cSmatt * Redistribution and use in source and binary forms, with or without 11*31586d2cSmatt * modification, are permitted provided that the following conditions 12*31586d2cSmatt * are met: 13*31586d2cSmatt * 1. Redistributions of source code must retain the above copyright 14*31586d2cSmatt * notice, this list of conditions and the following disclaimer. 15*31586d2cSmatt * 2. Redistributions in binary form must reproduce the above copyright 16*31586d2cSmatt * notice, this list of conditions and the following disclaimer in the 17*31586d2cSmatt * documentation and/or other materials provided with the distribution. 18*31586d2cSmatt * 19*31586d2cSmatt * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20*31586d2cSmatt * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21*31586d2cSmatt * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22*31586d2cSmatt * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23*31586d2cSmatt * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24*31586d2cSmatt * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25*31586d2cSmatt * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26*31586d2cSmatt * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27*31586d2cSmatt * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28*31586d2cSmatt * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29*31586d2cSmatt * POSSIBILITY OF SUCH DAMAGE. 30*31586d2cSmatt */ 31*31586d2cSmatt 32*31586d2cSmatt #include <sys/cdefs.h> 33*31586d2cSmatt 34*31586d2cSmatt __KERNEL_RCSID(0, "$NetBSD: arbusle.c,v 1.1 2011/07/10 06:26:02 matt Exp $"); 35*31586d2cSmatt 36*31586d2cSmatt #include <sys/param.h> 37*31586d2cSmatt #include <sys/bus.h> 38*31586d2cSmatt #include <sys/endian.h> 39*31586d2cSmatt 40*31586d2cSmatt #if _BYTE_ORDER == _BIG_ENDIAN 41*31586d2cSmatt 42*31586d2cSmatt #include <mips/atheros/include/arbusvar.h> 43*31586d2cSmatt 44*31586d2cSmatt #define CHIP arbusle 45*31586d2cSmatt #define CHIP_MEM /* defined */ 46*31586d2cSmatt #define CHIP_LITTLE_ENDIAN /* defined */ 47*31586d2cSmatt #define CHIP_W1_BUS_START(v) 0x00000000UL 48*31586d2cSmatt #define CHIP_W1_BUS_END(v) 0x1fffffffUL 49*31586d2cSmatt #define CHIP_W1_SYS_START(v) CHIP_W1_BUS_START(v) 50*31586d2cSmatt #define CHIP_W1_SYS_END(v) CHIP_W1_BUS_END(v) 51*31586d2cSmatt //#define CHIP_ACCESS_SIZE 4 52*31586d2cSmatt 53*31586d2cSmatt #include <mips/mips/bus_space_alignstride_chipdep.c> 54*31586d2cSmatt #endif /* _BYTE_ORDER == _BIG_ENDIAN */ 55