Loading include/linux/of_dma.h +27 −0 Original line number Original line Diff line number Diff line Loading @@ -32,6 +32,7 @@ struct of_dma_filter_info { dma_filter_fn filter_fn; dma_filter_fn filter_fn; }; }; #ifdef CONFIG_OF extern int of_dma_controller_register(struct device_node *np, extern int of_dma_controller_register(struct device_node *np, struct dma_chan *(*of_dma_xlate) struct dma_chan *(*of_dma_xlate) (struct of_phandle_args *, struct of_dma *), (struct of_phandle_args *, struct of_dma *), Loading @@ -41,5 +42,31 @@ extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np, char *name); char *name); extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, struct of_dma *ofdma); struct of_dma *ofdma); #else static int of_dma_controller_register(struct device_node *np, struct dma_chan *(*of_dma_xlate) (struct of_phandle_args *, struct of_dma *), void *data) { return -ENODEV; } static void of_dma_controller_free(struct device_node *np) { } static struct dma_chan *of_dma_request_slave_channel(struct device_node *np, char *name) { return NULL; } static struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, struct of_dma *ofdma) { return NULL; } #endif #endif /* __LINUX_OF_DMA_H */ #endif /* __LINUX_OF_DMA_H */ Loading
include/linux/of_dma.h +27 −0 Original line number Original line Diff line number Diff line Loading @@ -32,6 +32,7 @@ struct of_dma_filter_info { dma_filter_fn filter_fn; dma_filter_fn filter_fn; }; }; #ifdef CONFIG_OF extern int of_dma_controller_register(struct device_node *np, extern int of_dma_controller_register(struct device_node *np, struct dma_chan *(*of_dma_xlate) struct dma_chan *(*of_dma_xlate) (struct of_phandle_args *, struct of_dma *), (struct of_phandle_args *, struct of_dma *), Loading @@ -41,5 +42,31 @@ extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np, char *name); char *name); extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, struct of_dma *ofdma); struct of_dma *ofdma); #else static int of_dma_controller_register(struct device_node *np, struct dma_chan *(*of_dma_xlate) (struct of_phandle_args *, struct of_dma *), void *data) { return -ENODEV; } static void of_dma_controller_free(struct device_node *np) { } static struct dma_chan *of_dma_request_slave_channel(struct device_node *np, char *name) { return NULL; } static struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, struct of_dma *ofdma) { return NULL; } #endif #endif /* __LINUX_OF_DMA_H */ #endif /* __LINUX_OF_DMA_H */