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