Home | History | Annotate | Line # | Download | only in rmi
rmixl_obiovar.h revision 1.1.2.9
      1  1.1.2.9  cliff /*	$NetBSD: rmixl_obiovar.h,v 1.1.2.9 2010/04/13 18:15:16 cliff Exp $	*/
      2  1.1.2.9  cliff /*-
      3  1.1.2.9  cliff  * Copyright (c) 2010 The NetBSD Foundation, Inc.
      4  1.1.2.9  cliff  * All rights reserved.
      5  1.1.2.9  cliff  *
      6  1.1.2.9  cliff  * This code is derived from software contributed to The NetBSD Foundation
      7  1.1.2.9  cliff  * by Cliff Neighbors.
      8  1.1.2.9  cliff  *
      9  1.1.2.9  cliff  * Redistribution and use in source and binary forms, with or without
     10  1.1.2.9  cliff  * modification, are permitted provided that the following conditions
     11  1.1.2.9  cliff  * are met:
     12  1.1.2.9  cliff  * 1. Redistributions of source code must retain the above copyright
     13  1.1.2.9  cliff  *    notice, this list of conditions and the following disclaimer.
     14  1.1.2.9  cliff  * 2. Redistributions in binary form must reproduce the above copyright
     15  1.1.2.9  cliff  *    notice, this list of conditions and the following disclaimer in the
     16  1.1.2.9  cliff  *    documentation and/or other materials provided with the distribution.
     17  1.1.2.9  cliff  *
     18  1.1.2.9  cliff  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     19  1.1.2.9  cliff  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     20  1.1.2.9  cliff  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     21  1.1.2.9  cliff  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     22  1.1.2.9  cliff  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     23  1.1.2.9  cliff  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     24  1.1.2.9  cliff  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     25  1.1.2.9  cliff  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     26  1.1.2.9  cliff  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     27  1.1.2.9  cliff  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     28  1.1.2.9  cliff  * POSSIBILITY OF SUCH DAMAGE.
     29  1.1.2.9  cliff  */
     30  1.1.2.1  cliff 
     31  1.1.2.5  cliff #ifndef _MIPS_RMI_RMIXL_OBIOVAR_H_
     32  1.1.2.5  cliff #define _MIPS_RMI_RMIXL_OBIOVAR_H_
     33  1.1.2.1  cliff 
     34  1.1.2.1  cliff #include <dev/pci/pcivar.h>
     35  1.1.2.4  cliff #include <mips/bus_dma.h>
     36  1.1.2.1  cliff #include <mips/pci_machdep.h>
     37  1.1.2.1  cliff 
     38  1.1.2.1  cliff struct obio_attach_args {
     39  1.1.2.7  cliff 	bus_space_tag_t	obio_eb_bst;
     40  1.1.2.7  cliff 	bus_space_tag_t	obio_el_bst;
     41  1.1.2.1  cliff 	bus_addr_t	obio_addr;
     42  1.1.2.1  cliff 	bus_size_t	obio_size;
     43  1.1.2.1  cliff 	int		obio_intr;
     44  1.1.2.8  cliff 	int		obio_tmsk;
     45  1.1.2.1  cliff 	unsigned int	obio_mult;
     46  1.1.2.4  cliff 	bus_dma_tag_t	obio_29bit_dmat;
     47  1.1.2.4  cliff 	bus_dma_tag_t	obio_32bit_dmat;
     48  1.1.2.4  cliff 	bus_dma_tag_t	obio_64bit_dmat;
     49  1.1.2.1  cliff };
     50  1.1.2.1  cliff 
     51  1.1.2.1  cliff typedef struct obio_softc {
     52  1.1.2.4  cliff 	device_t		sc_dev;
     53  1.1.2.7  cliff 	bus_space_tag_t		sc_eb_bst;
     54  1.1.2.7  cliff 	bus_space_tag_t		sc_el_bst;
     55  1.1.2.4  cliff 	bus_dma_tag_t		sc_29bit_dmat;
     56  1.1.2.4  cliff 	bus_dma_tag_t		sc_32bit_dmat;
     57  1.1.2.4  cliff 	bus_dma_tag_t		sc_64bit_dmat;
     58  1.1.2.1  cliff 	bus_addr_t		sc_base;
     59  1.1.2.1  cliff 	bus_size_t		sc_size;
     60  1.1.2.1  cliff } obio_softc_t;
     61  1.1.2.1  cliff 
     62  1.1.2.5  cliff #endif /* _MIPS_RMI_RMIXL_OBIOVAR_H_ */
     63