pyrovar.h revision 1.2.4.1 1 1.1 mrg /* $OpenBSD: pyrovar.h,v 1.3 2007/04/03 19:59:01 kettenis Exp $ */
2 1.1 mrg
3 1.1 mrg /*
4 1.1 mrg * Copyright (c) 2007 Mark Kettenis
5 1.1 mrg * All rights reserved.
6 1.1 mrg *
7 1.1 mrg * Redistribution and use in source and binary forms, with or without
8 1.1 mrg * modification, are permitted provided that the following conditions
9 1.1 mrg * are met:
10 1.1 mrg * 1. Redistributions of source code must retain the above copyright
11 1.1 mrg * notice, this list of conditions and the following disclaimer.
12 1.1 mrg * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 mrg * notice, this list of conditions and the following disclaimer in the
14 1.1 mrg * documentation and/or other materials provided with the distribution.
15 1.1 mrg *
16 1.1 mrg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 1.1 mrg * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 1.1 mrg * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 1.1 mrg * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
20 1.1 mrg * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 1.1 mrg * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22 1.1 mrg * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 1.1 mrg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
24 1.1 mrg * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
25 1.1 mrg * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 1.1 mrg * POSSIBILITY OF SUCH DAMAGE.
27 1.1 mrg */
28 1.1 mrg
29 1.1 mrg struct pyro_range {
30 1.1 mrg u_int32_t cspace;
31 1.1 mrg u_int32_t child_hi;
32 1.1 mrg u_int32_t child_lo;
33 1.1 mrg u_int32_t phys_hi;
34 1.1 mrg u_int32_t phys_lo;
35 1.1 mrg u_int32_t size_hi;
36 1.1 mrg u_int32_t size_lo;
37 1.1 mrg };
38 1.1 mrg
39 1.1 mrg struct pyro_pbm {
40 1.1 mrg struct pyro_softc *pp_sc;
41 1.1 mrg
42 1.1 mrg struct pyro_range *pp_range;
43 1.1 mrg pci_chipset_tag_t pp_pc;
44 1.1 mrg int pp_nrange;
45 1.1 mrg
46 1.1 mrg bus_space_tag_t pp_memt;
47 1.1 mrg bus_space_tag_t pp_iot;
48 1.1 mrg bus_space_tag_t pp_cfgt;
49 1.1 mrg bus_space_handle_t pp_cfgh;
50 1.1 mrg bus_dma_tag_t pp_dmat;
51 1.2 mrg int pp_flags;
52 1.1 mrg int pp_bus_a;
53 1.1 mrg struct iommu_state pp_is;
54 1.1 mrg struct strbuf_ctl pp_sb;
55 1.1 mrg };
56 1.1 mrg
57 1.1 mrg struct pyro_softc {
58 1.2.4.1 cherry device_t sc_dev;
59 1.1 mrg int sc_node;
60 1.1 mrg int sc_ign;
61 1.1 mrg bus_dma_tag_t sc_dmat;
62 1.2 mrg bus_space_tag_t sc_bustag;
63 1.1 mrg bus_addr_t sc_csr, sc_xbc;
64 1.1 mrg bus_space_handle_t sc_csrh, sc_xbch;
65 1.1 mrg
66 1.1 mrg int sc_oberon;
67 1.1 mrg };
68