xref: /netbsd-src/sys/arch/powerpc/ibm4xx/dev/plbvar.h (revision 964b567a320adbad7f828973c951c8ed69cedee2)
1*964b567aSkiyohara /* $NetBSD: plbvar.h,v 1.7 2013/11/21 13:33:15 kiyohara Exp $ */
26bf1aaf8Ssimonb 
36bf1aaf8Ssimonb /*
46bf1aaf8Ssimonb  * Copyright 2002 Wasabi Systems, Inc.
56bf1aaf8Ssimonb  * All rights reserved.
66bf1aaf8Ssimonb  *
76bf1aaf8Ssimonb  * Written by Simon Burge for Wasabi Systems, Inc.
86bf1aaf8Ssimonb  *
96bf1aaf8Ssimonb  * Redistribution and use in source and binary forms, with or without
106bf1aaf8Ssimonb  * modification, are permitted provided that the following conditions
116bf1aaf8Ssimonb  * are met:
126bf1aaf8Ssimonb  * 1. Redistributions of source code must retain the above copyright
136bf1aaf8Ssimonb  *    notice, this list of conditions and the following disclaimer.
146bf1aaf8Ssimonb  * 2. Redistributions in binary form must reproduce the above copyright
156bf1aaf8Ssimonb  *    notice, this list of conditions and the following disclaimer in the
166bf1aaf8Ssimonb  *    documentation and/or other materials provided with the distribution.
176bf1aaf8Ssimonb  * 3. All advertising materials mentioning features or use of this software
186bf1aaf8Ssimonb  *    must display the following acknowledgement:
196bf1aaf8Ssimonb  *      This product includes software developed for the NetBSD Project by
206bf1aaf8Ssimonb  *      Wasabi Systems, Inc.
216bf1aaf8Ssimonb  * 4. The name of Wasabi Systems, Inc. may not be used to endorse
226bf1aaf8Ssimonb  *    or promote products derived from this software without specific prior
236bf1aaf8Ssimonb  *    written permission.
246bf1aaf8Ssimonb  *
256bf1aaf8Ssimonb  * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
266bf1aaf8Ssimonb  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
276bf1aaf8Ssimonb  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
286bf1aaf8Ssimonb  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
296bf1aaf8Ssimonb  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
306bf1aaf8Ssimonb  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
316bf1aaf8Ssimonb  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
326bf1aaf8Ssimonb  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
336bf1aaf8Ssimonb  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
346bf1aaf8Ssimonb  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
356bf1aaf8Ssimonb  * POSSIBILITY OF SUCH DAMAGE.
366bf1aaf8Ssimonb  */
376bf1aaf8Ssimonb 
381fd2c684Smatt #include <sys/bus.h>
396bf1aaf8Ssimonb 
406bf1aaf8Ssimonb struct plb_dev {
412692e2e2Skiyohara 	int plb_pvr;
426bf1aaf8Ssimonb 	const char *plb_name;
436bf1aaf8Ssimonb };
446bf1aaf8Ssimonb 
456bf1aaf8Ssimonb struct plb_attach_args {
466bf1aaf8Ssimonb 	const char *plb_name;
476bf1aaf8Ssimonb 	bus_dma_tag_t plb_dmat;	/* DMA tag */
48*964b567aSkiyohara 	bus_addr_t plb_addr;
495b79fdfaSscw 	int plb_irq;
506bf1aaf8Ssimonb };
51