1*ce099b40Smartin /* $NetBSD: elbvar.h,v 1.4 2008/04/28 20:23:17 martin Exp $ */ 2249e0067Shannken 3249e0067Shannken /*- 4249e0067Shannken * Copyright (c) 2003 The NetBSD Foundation, Inc. 5249e0067Shannken * All rights reserved. 6249e0067Shannken * 7249e0067Shannken * This code is derived from software contributed to The NetBSD Foundation 8249e0067Shannken * by Juergen Hannken-Illjes. 9249e0067Shannken * 10249e0067Shannken * Redistribution and use in source and binary forms, with or without 11249e0067Shannken * modification, are permitted provided that the following conditions 12249e0067Shannken * are met: 13249e0067Shannken * 1. Redistributions of source code must retain the above copyright 14249e0067Shannken * notice, this list of conditions and the following disclaimer. 15249e0067Shannken * 2. Redistributions in binary form must reproduce the above copyright 16249e0067Shannken * notice, this list of conditions and the following disclaimer in the 17249e0067Shannken * documentation and/or other materials provided with the distribution. 18249e0067Shannken * 19249e0067Shannken * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20249e0067Shannken * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21249e0067Shannken * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22249e0067Shannken * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23249e0067Shannken * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24249e0067Shannken * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25249e0067Shannken * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26249e0067Shannken * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27249e0067Shannken * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28249e0067Shannken * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29249e0067Shannken * POSSIBILITY OF SUCH DAMAGE. 30249e0067Shannken */ 31249e0067Shannken 32249e0067Shannken struct elb_attach_args { 33249e0067Shannken const char *elb_name; 34249e0067Shannken bus_space_tag_t elb_bt; 35249e0067Shannken bus_dma_tag_t elb_dmat; 36249e0067Shannken u_int elb_base; 37249e0067Shannken u_int elb_base2; 38249e0067Shannken int elb_irq; 39249e0067Shannken }; 400b0e493eSscw 410b0e493eSscw extern bus_space_tag_t elb_get_bus_space_tag(bus_addr_t); 42