schizovar.h revision 1.4
1/* $OpenBSD: schizovar.h,v 1.4 2003/02/22 19:54:43 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_regt; 46 bus_space_handle_t sp_regh; 47 bus_space_tag_t sp_cfgt; 48 bus_space_handle_t sp_cfgh; 49 bus_dma_tag_t sp_dmat; 50 int sp_bus; 51 int sp_flags; 52 int sp_bus_a; 53 bus_addr_t sp_confpaddr; 54 struct iommu_state sp_is; 55 struct strbuf_ctl sp_sb; 56 char sp_flush[0x80]; 57}; 58 59struct schizo_softc { 60 struct device sc_dv; 61 int sc_node; 62 bus_dma_tag_t sc_dmat; 63 bus_space_tag_t sc_bust; 64 bus_addr_t sc_ctrl; 65 bus_space_handle_t sc_ctrlh; 66}; 67