1117119Stmm/*- 2117119Stmm * Copyright (c) 2003 by Thomas Moestl <tmm@FreeBSD.org> 3117119Stmm * All rights reserved. 4117119Stmm * 5117119Stmm * Redistribution and use in source and binary forms, with or without 6117119Stmm * modification, are permitted provided that the following conditions 7117119Stmm * are met: 8117119Stmm * 1. Redistributions of source code must retain the above copyright 9117119Stmm * notice, this list of conditions and the following disclaimer. 10117119Stmm * 2. Redistributions in binary form must reproduce the above copyright 11117119Stmm * notice, this list of conditions and the following disclaimer in the 12117119Stmm * documentation and/or other materials provided with the distribution. 13117119Stmm * 14117119Stmm * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15117119Stmm * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16117119Stmm * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17117119Stmm * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 18117119Stmm * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19117119Stmm * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 20117119Stmm * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 21117119Stmm * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 22117119Stmm * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 23117119Stmm * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24117119Stmm * 25117119Stmm * $FreeBSD$ 26117119Stmm */ 27117119Stmm 28117119Stmm#ifndef _SPARC64_PCI_OFW_PCI_SUBR_H 29117119Stmm#define _SPARC64_PCI_OFW_PCI_SUBR_H 30117119Stmm 31117119Stmmstruct ofw_pcib_gen_softc { 32117119Stmm /* 33117119Stmm * This is here so that we can use pci bridge methods, too - the 34117119Stmm * generic routines only need the dev, secbus and subbus members 35117119Stmm * filled. 36117119Stmm */ 37117119Stmm struct pcib_softc ops_pcib_sc; 38117119Stmm phandle_t ops_node; 39117119Stmm struct ofw_bus_iinfo ops_iinfo; 40117119Stmm}; 41117119Stmm 42117119Stmmvoid ofw_pcib_gen_setup(device_t); 43117119Stmmpcib_route_interrupt_t ofw_pcib_gen_route_interrupt; 44133589Smariusofw_bus_get_node_t ofw_pcib_gen_get_node; 45117119Stmm 46117119Stmm#endif /* !_SPARC64_PCI_OFW_PCI_SUBR_H */ 47