1*82bf97dcSmatt /* $NetBSD: sbgbusvar.h,v 1.3 2011/02/01 06:13:08 matt Exp $ */ 21b5ddfe4Ssimonb 31b5ddfe4Ssimonb /* 41b5ddfe4Ssimonb * Copyright 2000, 2001 51b5ddfe4Ssimonb * Broadcom Corporation. All rights reserved. 61b5ddfe4Ssimonb * 71b5ddfe4Ssimonb * This software is furnished under license and may be used and copied only 81b5ddfe4Ssimonb * in accordance with the following terms and conditions. Subject to these 91b5ddfe4Ssimonb * conditions, you may download, copy, install, use, modify and distribute 101b5ddfe4Ssimonb * modified or unmodified copies of this software in source and/or binary 111b5ddfe4Ssimonb * form. No title or ownership is transferred hereby. 121b5ddfe4Ssimonb * 131b5ddfe4Ssimonb * 1) Any source code used, modified or distributed must reproduce and 141b5ddfe4Ssimonb * retain this copyright notice and list of conditions as they appear in 151b5ddfe4Ssimonb * the source file. 161b5ddfe4Ssimonb * 171b5ddfe4Ssimonb * 2) No right is granted to use any trade name, trademark, or logo of 188a6b8c3bScgd * Broadcom Corporation. The "Broadcom Corporation" name may not be 198a6b8c3bScgd * used to endorse or promote products derived from this software 208a6b8c3bScgd * without the prior written permission of Broadcom Corporation. 211b5ddfe4Ssimonb * 221b5ddfe4Ssimonb * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR IMPLIED 231b5ddfe4Ssimonb * WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF 241b5ddfe4Ssimonb * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR 251b5ddfe4Ssimonb * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM BE LIABLE 261b5ddfe4Ssimonb * FOR ANY DAMAGES WHATSOEVER, AND IN PARTICULAR, BROADCOM SHALL NOT BE 271b5ddfe4Ssimonb * LIABLE FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 281b5ddfe4Ssimonb * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 291b5ddfe4Ssimonb * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 301b5ddfe4Ssimonb * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 311b5ddfe4Ssimonb * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 321b5ddfe4Ssimonb * OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 331b5ddfe4Ssimonb */ 341b5ddfe4Ssimonb 351b5ddfe4Ssimonb #include <sys/types.h> 361b5ddfe4Ssimonb #include "locators.h" 371b5ddfe4Ssimonb 381b5ddfe4Ssimonb struct sbgbus_attach_args { 391b5ddfe4Ssimonb /* from locators */ 401b5ddfe4Ssimonb u_int sga_chipsel; 41*82bf97dcSmatt u_long sga_offset; 421b5ddfe4Ssimonb u_int sga_intr[2]; 431b5ddfe4Ssimonb 441b5ddfe4Ssimonb /* calculated by sbgbus */ 451b5ddfe4Ssimonb uint64_t sga_startphys; /* physaddr of region start */ 461b5ddfe4Ssimonb uint64_t sga_size; /* region size */ 471b5ddfe4Ssimonb }; 481b5ddfe4Ssimonb 491b5ddfe4Ssimonb #define SBGBUS_CHIPSEL_NONE SBGBUSCF_CHIPSEL_DEFAULT 501b5ddfe4Ssimonb #define SBGBUS_INTR_NONE SBGBUSCF_INTR_DEFAULT 51