Home | History | Annotate | Line # | Download | only in gemini
gemini_obiovar.h revision 1.3.4.2
      1  1.3.4.2  mjf /*	$NetBSD: gemini_obiovar.h,v 1.3.4.2 2009/01/17 13:27:52 mjf Exp $	*/
      2  1.3.4.2  mjf 
      3  1.3.4.2  mjf /* adapted from:
      4  1.3.4.2  mjf  *	NetBSD: omap2_obiovar.h,v 1.1 2008/08/27 11:03:10 matt Exp
      5  1.3.4.2  mjf  */
      6  1.3.4.2  mjf 
      7  1.3.4.2  mjf /*
      8  1.3.4.2  mjf  * Copyright (c) 2007 Microsoft
      9  1.3.4.2  mjf  * All rights reserved.
     10  1.3.4.2  mjf  *
     11  1.3.4.2  mjf  * Redistribution and use in source and binary forms, with or without
     12  1.3.4.2  mjf  * modification, are permitted provided that the following conditions
     13  1.3.4.2  mjf  * are met:
     14  1.3.4.2  mjf  * 1. Redistributions of source code must retain the above copyright
     15  1.3.4.2  mjf  *    notice, this list of conditions and the following disclaimer.
     16  1.3.4.2  mjf  * 2. Redistributions in binary form must reproduce the above copyright
     17  1.3.4.2  mjf  *    notice, this list of conditions and the following disclaimer in the
     18  1.3.4.2  mjf  *    documentation and/or other materials provided with the distribution.
     19  1.3.4.2  mjf  * 3. All advertising materials mentioning features or use of this software
     20  1.3.4.2  mjf  *    must display the following acknowledgement:
     21  1.3.4.2  mjf  *	This product includes software developed by Microsoft
     22  1.3.4.2  mjf  *
     23  1.3.4.2  mjf  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
     24  1.3.4.2  mjf  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
     25  1.3.4.2  mjf  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     26  1.3.4.2  mjf  * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTERS BE LIABLE FOR ANY DIRECT,
     27  1.3.4.2  mjf  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     28  1.3.4.2  mjf  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
     29  1.3.4.2  mjf  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     30  1.3.4.2  mjf  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     31  1.3.4.2  mjf  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     32  1.3.4.2  mjf  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     33  1.3.4.2  mjf  * SUCH DAMAGE.
     34  1.3.4.2  mjf  */
     35  1.3.4.2  mjf #ifndef _ARM_GEMINI_OBIOVAR_H_
     36  1.3.4.2  mjf #define _ARM_GEMINI_OBIOVAR_H_
     37  1.3.4.2  mjf 
     38  1.3.4.2  mjf #include <dev/pci/pcivar.h>
     39  1.3.4.2  mjf #include <arm/pci_machdep.h>
     40  1.3.4.2  mjf 
     41  1.3.4.2  mjf struct obio_attach_args {
     42  1.3.4.2  mjf 	bus_space_tag_t	obio_iot;
     43  1.3.4.2  mjf 	bus_addr_t	obio_addr;
     44  1.3.4.2  mjf 	bus_size_t	obio_size;
     45  1.3.4.2  mjf 	int		obio_intr;
     46  1.3.4.2  mjf 	bus_dma_tag_t	obio_dmat;
     47  1.3.4.2  mjf 	unsigned int	obio_mult;
     48  1.3.4.2  mjf 	unsigned int	obio_intrbase;
     49  1.3.4.2  mjf };
     50  1.3.4.2  mjf 
     51  1.3.4.2  mjf typedef struct obio_softc {
     52  1.3.4.2  mjf 	device_t		sc_dev;
     53  1.3.4.2  mjf 	bus_dma_tag_t		sc_dmat;
     54  1.3.4.2  mjf 	struct arm32_dma_range	sc_dmarange;
     55  1.3.4.2  mjf 	bus_space_tag_t		sc_iot;
     56  1.3.4.2  mjf 	bus_space_handle_t	sc_ioh;
     57  1.3.4.2  mjf 	bus_addr_t		sc_base;
     58  1.3.4.2  mjf 	bus_size_t		sc_size;
     59  1.3.4.2  mjf 
     60  1.3.4.2  mjf 	/* Bus space, DMA, and PCI tags for the PCI bus. */
     61  1.3.4.2  mjf 	bus_space_handle_t	sc_pcicfg_ioh;
     62  1.3.4.2  mjf 	struct arm32_bus_dma_tag sc_pci_dmat;
     63  1.3.4.2  mjf 	struct arm32_pci_chipset sc_pci_chipset;
     64  1.3.4.2  mjf } obio_softc_t;
     65  1.3.4.2  mjf 
     66  1.3.4.2  mjf extern void gemini_pci_init(pci_chipset_tag_t, void *);
     67  1.3.4.2  mjf 
     68  1.3.4.2  mjf #endif /* _ARM_OMAP_GEMINI_OBIOVAR_H_ */
     69