Deleted Added
full compact
fdt_common.h (266079) fdt_common.h (266084)
1/*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Semihalf under sponsorship from
6 * the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Semihalf under sponsorship from
6 * the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: stable/10/sys/dev/fdt/fdt_common.h 266079 2014-05-14 18:54:34Z ian $
29 * $FreeBSD: stable/10/sys/dev/fdt/fdt_common.h 266084 2014-05-14 19:18:58Z ian $
30 */
31
32#ifndef _FDT_COMMON_H_
33#define _FDT_COMMON_H_
34
35#include <sys/slicer.h>
36#include <contrib/libfdt/libfdt_env.h>
37#include <dev/ofw/ofw_bus.h>
30 */
31
32#ifndef _FDT_COMMON_H_
33#define _FDT_COMMON_H_
34
35#include <sys/slicer.h>
36#include <contrib/libfdt/libfdt_env.h>
37#include <dev/ofw/ofw_bus.h>
38#include <machine/fdt.h>
39
40#define FDT_MEM_REGIONS 8
41
42#define DI_MAX_INTR_NUM 32
43
38
39#define FDT_MEM_REGIONS 8
40
41#define DI_MAX_INTR_NUM 32
42
44struct fdt_pci_range {
45 u_long base_pci;
46 u_long base_parent;
47 u_long len;
48};
49
50struct fdt_sense_level {
51 enum intr_trigger trig;
52 enum intr_polarity pol;
53};
54
55typedef int (*fdt_pic_decode_t)(phandle_t, pcell_t *, int *, int *, int *);
56extern fdt_pic_decode_t fdt_pic_table[];
57

--- 38 unchanged lines hidden (view full) ---

96int fdt_regsize(phandle_t, u_long *, u_long *);
97int fdt_intr_to_rl(device_t, phandle_t, struct resource_list *, struct fdt_sense_level *);
98int fdt_is_compatible(phandle_t, const char *);
99int fdt_is_compatible_strict(phandle_t, const char *);
100int fdt_is_enabled(phandle_t);
101int fdt_pm_is_enabled(phandle_t);
102int fdt_is_type(phandle_t, const char *);
103int fdt_parent_addr_cells(phandle_t);
43struct fdt_sense_level {
44 enum intr_trigger trig;
45 enum intr_polarity pol;
46};
47
48typedef int (*fdt_pic_decode_t)(phandle_t, pcell_t *, int *, int *, int *);
49extern fdt_pic_decode_t fdt_pic_table[];
50

--- 38 unchanged lines hidden (view full) ---

89int fdt_regsize(phandle_t, u_long *, u_long *);
90int fdt_intr_to_rl(device_t, phandle_t, struct resource_list *, struct fdt_sense_level *);
91int fdt_is_compatible(phandle_t, const char *);
92int fdt_is_compatible_strict(phandle_t, const char *);
93int fdt_is_enabled(phandle_t);
94int fdt_pm_is_enabled(phandle_t);
95int fdt_is_type(phandle_t, const char *);
96int fdt_parent_addr_cells(phandle_t);
104int fdt_pci_ranges(phandle_t, struct fdt_pci_range *, struct fdt_pci_range *);
105int fdt_pci_ranges_decode(phandle_t, struct fdt_pci_range *,
106 struct fdt_pci_range *);
107int fdt_ranges_verify(pcell_t *, int, int, int, int);
108int fdt_reg_to_rl(phandle_t, struct resource_list *);
109int fdt_pm(phandle_t);
110int fdt_get_unit(device_t);
111
112#endif /* _FDT_COMMON_H_ */
97int fdt_ranges_verify(pcell_t *, int, int, int, int);
98int fdt_reg_to_rl(phandle_t, struct resource_list *);
99int fdt_pm(phandle_t);
100int fdt_get_unit(device_t);
101
102#endif /* _FDT_COMMON_H_ */