schizovar.h revision 1.2
1/* $OpenBSD: schizovar.h,v 1.2 2002/07/18 16:45:08 jason Exp $ */ 2 3/* 4 * Copyright (c) 2002 Jason L. Wright (jason@thought.net) 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 3. All advertising materials mentioning features or use of this software 16 * must display the following acknowledgement: 17 * This product includes software developed by Jason L. Wright 18 * 4. The name of the author may not be used to endorse or promote products 19 * derived from this software without specific prior written permission. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 30 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 * POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34struct schizo_pbm { 35 struct schizo_softc *sp_sc; 36 37 struct schizo_range *sp_range; 38 pci_chipset_tag_t sp_pc; 39 int sp_nreg; 40 int sp_nrange; 41 int sp_nintmap; 42 43 bus_space_tag_t sp_memt; 44 bus_space_tag_t sp_iot; 45 bus_space_tag_t sp_cfgt; 46 bus_space_handle_t sp_cfgh; 47 bus_dma_tag_t sp_dmat; 48 int sp_bus; 49 int sp_flags; 50 int sp_bus_a; 51 bus_addr_t sp_confpaddr; 52 struct iommu_state sp_is; 53}; 54 55struct schizo_softc { 56 struct device sc_dv; 57 int sc_node; 58 bus_dma_tag_t sc_dmat; 59 bus_space_tag_t sc_bust; 60 bus_space_tag_t sc_bustag; 61 struct iommu_state *sc_is; 62 bus_addr_t sc_ctrl; 63 bus_space_handle_t sc_ctrlh; 64 struct schizo_regs *sc_regs; 65}; 66