1*ce099b40Smartin /* $NetBSD: bootbusvar.h,v 1.2 2008/04/28 20:23:35 martin Exp $ */ 241c25cb6Sthorpej 341c25cb6Sthorpej /*- 441c25cb6Sthorpej * Copyright (c) 2002 The NetBSD Foundation, Inc. 541c25cb6Sthorpej * All rights reserved. 641c25cb6Sthorpej * 741c25cb6Sthorpej * This code is derived from software contributed to The NetBSD Foundation 841c25cb6Sthorpej * by Jason R. Thorpe. 941c25cb6Sthorpej * 1041c25cb6Sthorpej * Redistribution and use in source and binary forms, with or without 1141c25cb6Sthorpej * modification, are permitted provided that the following conditions 1241c25cb6Sthorpej * are met: 1341c25cb6Sthorpej * 1. Redistributions of source code must retain the above copyright 1441c25cb6Sthorpej * notice, this list of conditions and the following disclaimer. 1541c25cb6Sthorpej * 2. Redistributions in binary form must reproduce the above copyright 1641c25cb6Sthorpej * notice, this list of conditions and the following disclaimer in the 1741c25cb6Sthorpej * documentation and/or other materials provided with the distribution. 1841c25cb6Sthorpej * 1941c25cb6Sthorpej * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 2041c25cb6Sthorpej * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2141c25cb6Sthorpej * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2241c25cb6Sthorpej * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2341c25cb6Sthorpej * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2441c25cb6Sthorpej * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2541c25cb6Sthorpej * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2641c25cb6Sthorpej * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2741c25cb6Sthorpej * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2841c25cb6Sthorpej * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2941c25cb6Sthorpej * POSSIBILITY OF SUCH DAMAGE. 3041c25cb6Sthorpej */ 3141c25cb6Sthorpej 3241c25cb6Sthorpej #ifndef _SPARC_BOOTBUSVAR_H_ 3341c25cb6Sthorpej #define _SPARC_BOOTBUSVAR_H_ 3441c25cb6Sthorpej 3541c25cb6Sthorpej struct bootbus_attach_args { 3641c25cb6Sthorpej char *ba_name; 3741c25cb6Sthorpej int ba_node; 3841c25cb6Sthorpej bus_space_tag_t ba_bustag; 3941c25cb6Sthorpej 4041c25cb6Sthorpej struct openprom_addr *ba_reg; 4141c25cb6Sthorpej int ba_nreg; 4241c25cb6Sthorpej #define ba_slot ba_reg[0].oa_space 4341c25cb6Sthorpej #define ba_offset ba_reg[0].oa_base 4441c25cb6Sthorpej #define ba_size ba_reg[0].oa_size 4541c25cb6Sthorpej 4641c25cb6Sthorpej struct openprom_intr *ba_intr; 4741c25cb6Sthorpej int ba_nintr; 4841c25cb6Sthorpej 4941c25cb6Sthorpej uint32_t *ba_promvaddrs; 5041c25cb6Sthorpej int ba_npromvaddrs; 5141c25cb6Sthorpej }; 5241c25cb6Sthorpej 5341c25cb6Sthorpej #endif /* _SPARC_BOOTBUSVAR_H_ */ 54