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