]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/arm/xscale/i8134x/i81342var.h
Revert r336773: it removed too much.
[FreeBSD/FreeBSD.git] / sys / arm / xscale / i8134x / i81342var.h
1 /*-
2  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3  *
4  * Copyright (c) 2006 Olivier Houchard
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
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.
27  */
28
29 /* $FreeBSD$ */
30 #ifndef I81342VAR_H_
31 #define I81342VAR_H_
32
33 #include <sys/rman.h>
34
35 struct i81342_softc {
36         device_t dev;
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;
44 };
45
46 struct i81342_pci_map {
47         vm_offset_t vaddr;
48         vm_paddr_t paddr;
49         vm_size_t size;
50         struct i81342_pci_map *next;
51 };
52
53 struct i81342_pci_softc {
54         device_t                sc_dev;
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;
62         char                    sc_is_atux;
63         int                     sc_busno;
64         struct i81342_pci_map   *sc_pci_mappings;
65 };
66
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 *,
71     vm_size_t *);
72 #endif /*I81342VAR_H_ */