2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
4 * Copyright (c) 2006 Olivier Houchard
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
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.
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR
20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE.
37 bus_space_tag_t sc_st;
38 bus_space_handle_t sc_sh;
39 bus_space_handle_t sc_atux_sh;
40 bus_space_handle_t sc_atue_sh;
41 bus_space_tag_t sc_pciio;
42 bus_space_tag_t sc_pcimem;
43 struct rman sc_irq_rman;
46 struct i81342_pci_map {
50 struct i81342_pci_map *next;
53 struct i81342_pci_softc {
55 bus_space_tag_t sc_st;
56 bus_space_handle_t sc_atu_sh;
57 struct bus_space sc_pciio;
58 struct bus_space sc_pcimem;
59 struct rman sc_mem_rman;
60 struct rman sc_io_rman;
61 struct rman sc_irq_rman;
64 struct i81342_pci_map *sc_pci_mappings;
67 void i81342_bs_init(bus_space_tag_t, void *);
68 void i81342_io_bs_init(bus_space_tag_t, void *);
69 void i81342_mem_bs_init(bus_space_tag_t, void *);
70 void i81342_sdram_bounds(bus_space_tag_t, bus_space_handle_t, vm_paddr_t *,
72 #endif /*I81342VAR_H_ */