Home | History | Annotate | Line # | Download | only in fdt
fdtvar.h revision 1.28.2.3
      1  1.28.2.3  pgoyette /* $NetBSD: fdtvar.h,v 1.28.2.3 2018/06/25 07:25:49 pgoyette Exp $ */
      2       1.1  jmcneill 
      3       1.1  jmcneill /*-
      4       1.1  jmcneill  * Copyright (c) 2015 Jared D. McNeill <jmcneill (at) invisible.ca>
      5       1.1  jmcneill  * All rights reserved.
      6       1.1  jmcneill  *
      7       1.1  jmcneill  * Redistribution and use in source and binary forms, with or without
      8       1.1  jmcneill  * modification, are permitted provided that the following conditions
      9       1.1  jmcneill  * are met:
     10       1.1  jmcneill  * 1. Redistributions of source code must retain the above copyright
     11       1.1  jmcneill  *    notice, this list of conditions and the following disclaimer.
     12       1.1  jmcneill  * 2. Redistributions in binary form must reproduce the above copyright
     13       1.1  jmcneill  *    notice, this list of conditions and the following disclaimer in the
     14       1.1  jmcneill  *    documentation and/or other materials provided with the distribution.
     15       1.1  jmcneill  *
     16       1.1  jmcneill  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     17       1.1  jmcneill  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     18       1.1  jmcneill  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     19       1.1  jmcneill  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     20       1.1  jmcneill  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
     21       1.1  jmcneill  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     22       1.1  jmcneill  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
     23       1.1  jmcneill  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
     24       1.1  jmcneill  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     25       1.1  jmcneill  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     26       1.1  jmcneill  * SUCH DAMAGE.
     27       1.1  jmcneill  */
     28       1.1  jmcneill 
     29       1.1  jmcneill #ifndef _DEV_FDT_FDTVAR_H
     30       1.1  jmcneill #define _DEV_FDT_FDTVAR_H
     31       1.1  jmcneill 
     32       1.1  jmcneill #include <sys/types.h>
     33       1.1  jmcneill #include <sys/bus.h>
     34      1.19  jmcneill #include <sys/termios.h>
     35       1.1  jmcneill 
     36       1.1  jmcneill #include <dev/i2c/i2cvar.h>
     37  1.28.2.2  pgoyette #include <dev/pwm/pwmvar.h>
     38       1.3  jmcneill #include <dev/clk/clk.h>
     39       1.1  jmcneill 
     40  1.28.2.2  pgoyette #include "audio.h"
     41  1.28.2.2  pgoyette #if NAUDIO > 0
     42  1.28.2.2  pgoyette #include <dev/audio_dai.h>
     43  1.28.2.2  pgoyette #else
     44  1.28.2.2  pgoyette typedef void *audio_dai_tag_t;
     45  1.28.2.2  pgoyette #endif
     46  1.28.2.2  pgoyette 
     47      1.11  jmcneill #include <dev/clock_subr.h>
     48      1.11  jmcneill 
     49       1.1  jmcneill #include <dev/ofw/openfirm.h>
     50       1.1  jmcneill 
     51       1.1  jmcneill struct fdt_attach_args {
     52       1.1  jmcneill 	const char *faa_name;
     53       1.1  jmcneill 	bus_space_tag_t faa_bst;
     54       1.1  jmcneill 	bus_space_tag_t faa_a4x_bst;
     55       1.1  jmcneill 	bus_dma_tag_t faa_dmat;
     56       1.1  jmcneill 	int faa_phandle;
     57      1.13  jmcneill 	int faa_quiet;
     58       1.1  jmcneill };
     59       1.1  jmcneill 
     60       1.1  jmcneill /* flags for fdtbus_intr_establish */
     61       1.1  jmcneill #define FDT_INTR_MPSAFE	__BIT(0)
     62       1.1  jmcneill 
     63       1.1  jmcneill struct fdtbus_interrupt_controller_func {
     64       1.7     marty 	void *	(*establish)(device_t, u_int *, int, int,
     65       1.1  jmcneill 			     int (*)(void *), void *);
     66       1.1  jmcneill 	void	(*disestablish)(device_t, void *);
     67       1.7     marty 	bool	(*intrstr)(device_t, u_int *, char *, size_t);
     68       1.1  jmcneill };
     69       1.1  jmcneill 
     70       1.1  jmcneill struct fdtbus_i2c_controller_func {
     71       1.1  jmcneill 	i2c_tag_t (*get_tag)(device_t);
     72       1.1  jmcneill };
     73       1.1  jmcneill 
     74       1.1  jmcneill struct fdtbus_gpio_controller;
     75       1.1  jmcneill 
     76       1.1  jmcneill struct fdtbus_gpio_pin {
     77       1.1  jmcneill 	struct fdtbus_gpio_controller *gp_gc;
     78       1.1  jmcneill 	void *gp_priv;
     79       1.1  jmcneill };
     80       1.1  jmcneill 
     81       1.1  jmcneill struct fdtbus_gpio_controller_func {
     82       1.1  jmcneill 	void *	(*acquire)(device_t, const void *, size_t, int);
     83       1.1  jmcneill 	void	(*release)(device_t, void *);
     84       1.4  jmcneill 	int	(*read)(device_t, void *, bool);
     85       1.4  jmcneill 	void	(*write)(device_t, void *, int, bool);
     86       1.1  jmcneill };
     87       1.1  jmcneill 
     88       1.5     marty struct fdtbus_pinctrl_controller;
     89       1.5     marty 
     90       1.5     marty struct fdtbus_pinctrl_pin {
     91       1.5     marty 	struct fdtbus_pinctrl_controller *pp_pc;
     92       1.5     marty 	void *pp_priv;
     93       1.5     marty };
     94       1.5     marty 
     95       1.5     marty struct fdtbus_pinctrl_controller_func {
     96      1.23  jmcneill 	int (*set_config)(device_t, const void *, size_t);
     97       1.5     marty };
     98       1.5     marty 
     99       1.1  jmcneill struct fdtbus_regulator_controller;
    100       1.1  jmcneill 
    101       1.1  jmcneill struct fdtbus_regulator {
    102       1.1  jmcneill 	struct fdtbus_regulator_controller *reg_rc;
    103       1.1  jmcneill };
    104       1.1  jmcneill 
    105       1.1  jmcneill struct fdtbus_regulator_controller_func {
    106       1.1  jmcneill 	int	(*acquire)(device_t);
    107       1.1  jmcneill 	void	(*release)(device_t);
    108       1.1  jmcneill 	int	(*enable)(device_t, bool);
    109      1.12  jmcneill 	int	(*set_voltage)(device_t, u_int, u_int);
    110      1.12  jmcneill 	int	(*get_voltage)(device_t, u_int *);
    111       1.1  jmcneill };
    112       1.1  jmcneill 
    113       1.3  jmcneill struct fdtbus_clock_controller_func {
    114       1.3  jmcneill 	struct clk *	(*decode)(device_t, const void *, size_t);
    115       1.3  jmcneill };
    116       1.3  jmcneill 
    117       1.3  jmcneill struct fdtbus_reset_controller;
    118       1.3  jmcneill 
    119       1.3  jmcneill struct fdtbus_reset {
    120       1.3  jmcneill 	struct fdtbus_reset_controller *rst_rc;
    121       1.3  jmcneill 	void *rst_priv;
    122       1.3  jmcneill };
    123       1.3  jmcneill 
    124       1.3  jmcneill struct fdtbus_reset_controller_func {
    125       1.3  jmcneill 	void *	(*acquire)(device_t, const void *, size_t);
    126       1.3  jmcneill 	void	(*release)(device_t, void *);
    127       1.3  jmcneill 	int	(*reset_assert)(device_t, void *);
    128       1.3  jmcneill 	int	(*reset_deassert)(device_t, void *);
    129       1.3  jmcneill };
    130       1.3  jmcneill 
    131  1.28.2.2  pgoyette struct fdtbus_dai_controller_func {
    132  1.28.2.2  pgoyette 	audio_dai_tag_t (*get_tag)(device_t, const void *, size_t);
    133  1.28.2.2  pgoyette };
    134  1.28.2.2  pgoyette 
    135      1.14  jmcneill struct fdtbus_dma_controller;
    136      1.14  jmcneill 
    137      1.14  jmcneill struct fdtbus_dma {
    138      1.14  jmcneill 	struct fdtbus_dma_controller *dma_dc;
    139      1.14  jmcneill 	void *dma_priv;
    140      1.14  jmcneill };
    141      1.14  jmcneill 
    142      1.14  jmcneill enum fdtbus_dma_dir {
    143      1.14  jmcneill 	FDT_DMA_READ,		/* device -> memory */
    144      1.14  jmcneill 	FDT_DMA_WRITE		/* memory -> device */
    145      1.14  jmcneill };
    146      1.14  jmcneill 
    147      1.14  jmcneill struct fdtbus_dma_opt {
    148      1.14  jmcneill 	int opt_bus_width;		/* Bus width */
    149      1.14  jmcneill 	int opt_burst_len;		/* Burst length */
    150      1.14  jmcneill 	int opt_swap;			/* Enable data swapping */
    151      1.14  jmcneill 	int opt_dblbuf;			/* Enable double buffering */
    152      1.14  jmcneill 	int opt_wrap_len;		/* Address wrap-around window */
    153      1.14  jmcneill };
    154      1.14  jmcneill 
    155      1.14  jmcneill struct fdtbus_dma_req {
    156      1.14  jmcneill 	bus_dma_segment_t *dreq_segs;	/* Memory */
    157      1.14  jmcneill 	int dreq_nsegs;
    158      1.14  jmcneill 
    159      1.14  jmcneill 	bus_addr_t dreq_dev_phys;	/* Device */
    160      1.14  jmcneill 	int dreq_sel;			/* Device selector */
    161      1.14  jmcneill 
    162      1.14  jmcneill 	enum fdtbus_dma_dir dreq_dir;	/* Transfer direction */
    163      1.14  jmcneill 
    164      1.14  jmcneill 	int dreq_block_irq;		/* Enable IRQ at end of block */
    165      1.14  jmcneill 	int dreq_block_multi;		/* Enable multiple block transfers */
    166      1.14  jmcneill 	int dreq_flow;			/* Enable flow control */
    167      1.14  jmcneill 
    168      1.14  jmcneill 	struct fdtbus_dma_opt dreq_mem_opt;	/* Memory options */
    169      1.14  jmcneill 	struct fdtbus_dma_opt dreq_dev_opt;	/* Device options */
    170      1.14  jmcneill };
    171      1.14  jmcneill 
    172      1.14  jmcneill struct fdtbus_dma_controller_func {
    173      1.14  jmcneill 	void *	(*acquire)(device_t, const void *, size_t,
    174      1.14  jmcneill 			   void (*)(void *), void *);
    175      1.14  jmcneill 	void	(*release)(device_t, void *);
    176      1.14  jmcneill 	int	(*transfer)(device_t, void *, struct fdtbus_dma_req *);
    177      1.14  jmcneill 	void	(*halt)(device_t, void *);
    178      1.14  jmcneill };
    179      1.14  jmcneill 
    180      1.18  jmcneill struct fdtbus_power_controller;
    181      1.18  jmcneill 
    182      1.18  jmcneill struct fdtbus_power_controller_func {
    183      1.18  jmcneill 	void 	(*reset)(device_t);
    184      1.18  jmcneill 	void	(*poweroff)(device_t);
    185      1.18  jmcneill };
    186      1.18  jmcneill 
    187      1.21  jmcneill struct fdtbus_phy_controller;
    188      1.21  jmcneill 
    189      1.21  jmcneill struct fdtbus_phy {
    190      1.21  jmcneill 	struct fdtbus_phy_controller *phy_pc;
    191      1.21  jmcneill 	void *phy_priv;
    192      1.21  jmcneill };
    193      1.21  jmcneill 
    194      1.21  jmcneill struct fdtbus_phy_controller_func {
    195      1.21  jmcneill 	void *	(*acquire)(device_t, const void *, size_t);
    196      1.21  jmcneill 	void	(*release)(device_t, void *);
    197      1.21  jmcneill 	int	(*enable)(device_t, void *, bool);
    198      1.21  jmcneill };
    199      1.21  jmcneill 
    200  1.28.2.2  pgoyette struct fdtbus_pwm_controller_func {
    201  1.28.2.2  pgoyette 	pwm_tag_t (*get_tag)(device_t, const void *, size_t);
    202  1.28.2.2  pgoyette };
    203  1.28.2.2  pgoyette 
    204      1.27  jmcneill struct fdtbus_mmc_pwrseq;
    205      1.27  jmcneill 
    206      1.27  jmcneill struct fdtbus_mmc_pwrseq_func {
    207      1.27  jmcneill 	void	(*pre_power_on)(device_t);
    208      1.27  jmcneill 	void	(*post_power_on)(device_t);
    209      1.27  jmcneill 	void	(*power_off)(device_t);
    210      1.27  jmcneill 	void	(*reset)(device_t);
    211      1.27  jmcneill };
    212      1.27  jmcneill 
    213      1.19  jmcneill struct fdt_console {
    214      1.19  jmcneill 	int	(*match)(int);
    215      1.20  jmcneill 	void	(*consinit)(struct fdt_attach_args *, u_int);
    216      1.19  jmcneill };
    217      1.19  jmcneill 
    218      1.19  jmcneill struct fdt_console_info {
    219      1.19  jmcneill 	const struct fdt_console *ops;
    220      1.19  jmcneill };
    221      1.19  jmcneill 
    222      1.19  jmcneill #define	_FDT_CONSOLE_REGISTER(name)	\
    223      1.19  jmcneill 	__link_set_add_rodata(fdt_consoles, __CONCAT(name,_consinfo));
    224      1.19  jmcneill 
    225      1.19  jmcneill #define	FDT_CONSOLE(_name, _ops)					\
    226      1.19  jmcneill static const struct fdt_console_info __CONCAT(_name,_consinfo) = {	\
    227      1.19  jmcneill 	.ops = (_ops)							\
    228      1.19  jmcneill };									\
    229      1.19  jmcneill _FDT_CONSOLE_REGISTER(_name)
    230      1.19  jmcneill 
    231      1.19  jmcneill TAILQ_HEAD(fdt_conslist, fdt_console_info);
    232      1.19  jmcneill 
    233       1.2  jmcneill int		fdtbus_register_interrupt_controller(device_t, int,
    234       1.2  jmcneill 		    const struct fdtbus_interrupt_controller_func *);
    235       1.2  jmcneill int		fdtbus_register_i2c_controller(device_t, int,
    236       1.2  jmcneill 		    const struct fdtbus_i2c_controller_func *);
    237       1.2  jmcneill int		fdtbus_register_gpio_controller(device_t, int,
    238       1.2  jmcneill 		    const struct fdtbus_gpio_controller_func *);
    239      1.23  jmcneill int		fdtbus_register_pinctrl_config(device_t, int,
    240       1.5     marty 		    const struct fdtbus_pinctrl_controller_func *);
    241       1.2  jmcneill int		fdtbus_register_regulator_controller(device_t, int,
    242       1.2  jmcneill 		    const struct fdtbus_regulator_controller_func *);
    243       1.3  jmcneill int		fdtbus_register_clock_controller(device_t, int,
    244       1.3  jmcneill 		    const struct fdtbus_clock_controller_func *);
    245       1.3  jmcneill int		fdtbus_register_reset_controller(device_t, int,
    246       1.3  jmcneill 		    const struct fdtbus_reset_controller_func *);
    247  1.28.2.2  pgoyette int		fdtbus_register_dai_controller(device_t, int,
    248  1.28.2.2  pgoyette 		    const struct fdtbus_dai_controller_func *);
    249      1.14  jmcneill int		fdtbus_register_dma_controller(device_t, int,
    250      1.14  jmcneill 		    const struct fdtbus_dma_controller_func *);
    251      1.18  jmcneill int		fdtbus_register_power_controller(device_t, int,
    252      1.18  jmcneill 		    const struct fdtbus_power_controller_func *);
    253      1.21  jmcneill int		fdtbus_register_phy_controller(device_t, int,
    254      1.21  jmcneill 		    const struct fdtbus_phy_controller_func *);
    255  1.28.2.2  pgoyette int		fdtbus_register_pwm_controller(device_t, int,
    256  1.28.2.2  pgoyette 		    const struct fdtbus_pwm_controller_func *);
    257      1.27  jmcneill int		fdtbus_register_mmc_pwrseq(device_t, int,
    258      1.27  jmcneill 		    const struct fdtbus_mmc_pwrseq_func *);
    259       1.1  jmcneill 
    260      1.28     skrll void		fdtbus_set_decoderegprop(bool);
    261      1.28     skrll 
    262       1.2  jmcneill int		fdtbus_get_reg(int, u_int, bus_addr_t *, bus_size_t *);
    263      1.26  jmcneill int		fdtbus_get_reg_byname(int, const char *, bus_addr_t *,
    264      1.26  jmcneill 		    bus_size_t *);
    265      1.17  jmcneill int		fdtbus_get_reg64(int, u_int, uint64_t *, uint64_t *);
    266       1.2  jmcneill int		fdtbus_get_phandle(int, const char *);
    267       1.3  jmcneill int		fdtbus_get_phandle_from_native(int);
    268       1.2  jmcneill i2c_tag_t	fdtbus_get_i2c_tag(int);
    269       1.2  jmcneill void *		fdtbus_intr_establish(int, u_int, int, int,
    270       1.2  jmcneill 		    int (*func)(void *), void *arg);
    271       1.2  jmcneill void		fdtbus_intr_disestablish(int, void *);
    272       1.2  jmcneill bool		fdtbus_intr_str(int, u_int, char *, size_t);
    273       1.1  jmcneill struct fdtbus_gpio_pin *fdtbus_gpio_acquire(int, const char *, int);
    274      1.25  jmcneill struct fdtbus_gpio_pin *fdtbus_gpio_acquire_index(int, const char *, int, int);
    275       1.2  jmcneill void		fdtbus_gpio_release(struct fdtbus_gpio_pin *);
    276       1.2  jmcneill int		fdtbus_gpio_read(struct fdtbus_gpio_pin *);
    277       1.2  jmcneill void		fdtbus_gpio_write(struct fdtbus_gpio_pin *, int);
    278       1.4  jmcneill int		fdtbus_gpio_read_raw(struct fdtbus_gpio_pin *);
    279       1.4  jmcneill void		fdtbus_gpio_write_raw(struct fdtbus_gpio_pin *, int);
    280  1.28.2.2  pgoyette audio_dai_tag_t	fdtbus_dai_acquire(int, const char *);
    281  1.28.2.2  pgoyette audio_dai_tag_t	fdtbus_dai_acquire_index(int, const char *, int);
    282  1.28.2.2  pgoyette pwm_tag_t	fdtbus_pwm_acquire(int, const char *);
    283  1.28.2.2  pgoyette pwm_tag_t	fdtbus_pwm_acquire_index(int, const char *, int);
    284      1.23  jmcneill void		fdtbus_pinctrl_configure(void);
    285       1.6     marty int		fdtbus_pinctrl_set_config_index(int, u_int);
    286       1.6     marty int		fdtbus_pinctrl_set_config(int, const char *);
    287       1.1  jmcneill struct fdtbus_regulator *fdtbus_regulator_acquire(int, const char *);
    288       1.2  jmcneill void		fdtbus_regulator_release(struct fdtbus_regulator *);
    289       1.2  jmcneill int		fdtbus_regulator_enable(struct fdtbus_regulator *);
    290       1.2  jmcneill int		fdtbus_regulator_disable(struct fdtbus_regulator *);
    291      1.12  jmcneill int		fdtbus_regulator_set_voltage(struct fdtbus_regulator *,
    292      1.12  jmcneill 		    u_int, u_int);
    293      1.12  jmcneill int		fdtbus_regulator_get_voltage(struct fdtbus_regulator *,
    294      1.12  jmcneill 		    u_int *);
    295       1.2  jmcneill 
    296      1.14  jmcneill struct fdtbus_dma *fdtbus_dma_get(int, const char *, void (*)(void *), void *);
    297      1.14  jmcneill struct fdtbus_dma *fdtbus_dma_get_index(int, u_int, void (*)(void *),
    298      1.14  jmcneill 		    void *);
    299      1.14  jmcneill void		fdtbus_dma_put(struct fdtbus_dma *);
    300      1.14  jmcneill int		fdtbus_dma_transfer(struct fdtbus_dma *,
    301      1.14  jmcneill 		    struct fdtbus_dma_req *);
    302      1.14  jmcneill void		fdtbus_dma_halt(struct fdtbus_dma *);
    303      1.14  jmcneill 
    304       1.3  jmcneill struct clk *	fdtbus_clock_get(int, const char *);
    305       1.3  jmcneill struct clk *	fdtbus_clock_get_index(int, u_int);
    306  1.28.2.3  pgoyette struct clk *	fdtbus_clock_byname(const char *);
    307  1.28.2.3  pgoyette void		fdtbus_clock_assign(int);
    308       1.3  jmcneill 
    309       1.3  jmcneill struct fdtbus_reset *fdtbus_reset_get(int, const char *);
    310       1.3  jmcneill struct fdtbus_reset *fdtbus_reset_get_index(int, u_int);
    311       1.3  jmcneill void		fdtbus_reset_put(struct fdtbus_reset *);
    312       1.3  jmcneill int		fdtbus_reset_assert(struct fdtbus_reset *);
    313       1.3  jmcneill int		fdtbus_reset_deassert(struct fdtbus_reset *);
    314       1.3  jmcneill 
    315      1.21  jmcneill struct fdtbus_phy *fdtbus_phy_get(int, const char *);
    316      1.21  jmcneill struct fdtbus_phy *fdtbus_phy_get_index(int, u_int);
    317      1.21  jmcneill void		fdtbus_phy_put(struct fdtbus_phy *);
    318      1.21  jmcneill int		fdtbus_phy_enable(struct fdtbus_phy *, bool);
    319      1.21  jmcneill 
    320      1.27  jmcneill struct fdtbus_mmc_pwrseq *fdtbus_mmc_pwrseq_get(int);
    321      1.27  jmcneill void		fdtbus_mmc_pwrseq_pre_power_on(struct fdtbus_mmc_pwrseq *);
    322      1.27  jmcneill void		fdtbus_mmc_pwrseq_post_power_on(struct fdtbus_mmc_pwrseq *);
    323      1.27  jmcneill void		fdtbus_mmc_pwrseq_power_off(struct fdtbus_mmc_pwrseq *);
    324      1.27  jmcneill void		fdtbus_mmc_pwrseq_reset(struct fdtbus_mmc_pwrseq *);
    325      1.27  jmcneill 
    326      1.11  jmcneill int		fdtbus_todr_attach(device_t, int, todr_chip_handle_t);
    327      1.11  jmcneill 
    328      1.18  jmcneill void		fdtbus_power_reset(void);
    329      1.18  jmcneill void		fdtbus_power_poweroff(void);
    330      1.18  jmcneill 
    331       1.2  jmcneill bool		fdtbus_set_data(const void *);
    332       1.2  jmcneill const void *	fdtbus_get_data(void);
    333       1.2  jmcneill int		fdtbus_phandle2offset(int);
    334       1.2  jmcneill int		fdtbus_offset2phandle(int);
    335       1.8  jmcneill bool		fdtbus_get_path(int, char *, size_t);
    336       1.1  jmcneill 
    337      1.19  jmcneill const struct fdt_console *fdtbus_get_console(void);
    338      1.19  jmcneill 
    339      1.10  jmcneill const char *	fdtbus_get_stdout_path(void);
    340      1.10  jmcneill int		fdtbus_get_stdout_phandle(void);
    341      1.10  jmcneill int		fdtbus_get_stdout_speed(void);
    342      1.19  jmcneill tcflag_t	fdtbus_get_stdout_flags(void);
    343      1.10  jmcneill 
    344      1.15  jmcneill bool		fdtbus_status_okay(int);
    345      1.15  jmcneill 
    346      1.23  jmcneill const void *	fdtbus_get_prop(int, const char *, int *);
    347      1.22  jmcneill const char *	fdtbus_get_string(int, const char *);
    348      1.24  jmcneill const char *	fdtbus_get_string_index(int, const char *, u_int);
    349      1.22  jmcneill 
    350  1.28.2.1  pgoyette void		fdt_remove_byhandle(int);
    351  1.28.2.1  pgoyette void		fdt_remove_bycompat(const char *[]);
    352      1.16  jmcneill int		fdtbus_print(void *, const char *);
    353      1.16  jmcneill 
    354       1.1  jmcneill #endif /* _DEV_FDT_FDTVAR_H */
    355