1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2003 by Thomas Moestl <tmm@FreeBSD.org>
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 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
20 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
25 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * $FreeBSD: releng/12.0/sys/sparc64/pci/ofw_pcib_subr.h 326262 2017-11-27 15:10:39Z pfg $
28 */
29
30 #ifndef _SPARC64_PCI_OFW_PCI_SUBR_H
31 #define _SPARC64_PCI_OFW_PCI_SUBR_H
32
33 struct ofw_pcib_gen_softc {
34 /*
35 * This is here so that we can use pci bridge methods, too - the
36 * generic routines only need the dev, secbus and subbus members
37 * filled.
38 */
39 struct pcib_softc ops_pcib_sc;
40 phandle_t ops_node;
41 struct ofw_bus_iinfo ops_iinfo;
42 };
43
44 void ofw_pcib_gen_setup(device_t);
45 pcib_route_interrupt_t ofw_pcib_gen_route_interrupt;
46 ofw_bus_get_node_t ofw_pcib_gen_get_node;
47
48 #endif /* !_SPARC64_PCI_OFW_PCI_SUBR_H */
Cache object: 791c7f84ad3b8ded2617649679b0e824
|