~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/of_dma.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/of_dma.h (Architecture i386) and /include/linux/of_dma.h (Architecture sparc)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*                                                  2 /*
  3  * OF helpers for DMA request / controller          3  * OF helpers for DMA request / controller
  4  *                                                  4  *
  5  * Based on of_gpio.h                               5  * Based on of_gpio.h
  6  *                                                  6  *
  7  * Copyright (C) 2012 Texas Instruments Incorp      7  * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
  8  */                                                 8  */
  9                                                     9 
 10 #ifndef __LINUX_OF_DMA_H                           10 #ifndef __LINUX_OF_DMA_H
 11 #define __LINUX_OF_DMA_H                           11 #define __LINUX_OF_DMA_H
 12                                                    12 
 13 #include <linux/of.h>                              13 #include <linux/of.h>
 14 #include <linux/dmaengine.h>                       14 #include <linux/dmaengine.h>
 15                                                    15 
 16 struct device_node;                                16 struct device_node;
 17                                                    17 
 18 struct of_dma {                                    18 struct of_dma {
 19         struct list_head        of_dma_control     19         struct list_head        of_dma_controllers;
 20         struct device_node      *of_node;          20         struct device_node      *of_node;
 21         struct dma_chan         *(*of_dma_xlat     21         struct dma_chan         *(*of_dma_xlate)
 22                                 (struct of_pha     22                                 (struct of_phandle_args *, struct of_dma *);
 23         void                    *(*of_dma_rout     23         void                    *(*of_dma_route_allocate)
 24                                 (struct of_pha     24                                 (struct of_phandle_args *, struct of_dma *);
 25         struct dma_router       *dma_router;       25         struct dma_router       *dma_router;
 26         void                    *of_dma_data;      26         void                    *of_dma_data;
 27 };                                                 27 };
 28                                                    28 
 29 struct of_dma_filter_info {                        29 struct of_dma_filter_info {
 30         dma_cap_mask_t  dma_cap;                   30         dma_cap_mask_t  dma_cap;
 31         dma_filter_fn   filter_fn;                 31         dma_filter_fn   filter_fn;
 32 };                                                 32 };
 33                                                    33 
 34 #ifdef CONFIG_DMA_OF                               34 #ifdef CONFIG_DMA_OF
 35 extern int of_dma_controller_register(struct d     35 extern int of_dma_controller_register(struct device_node *np,
 36                 struct dma_chan *(*of_dma_xlat     36                 struct dma_chan *(*of_dma_xlate)
 37                 (struct of_phandle_args *, str     37                 (struct of_phandle_args *, struct of_dma *),
 38                 void *data);                       38                 void *data);
 39 extern void of_dma_controller_free(struct devi     39 extern void of_dma_controller_free(struct device_node *np);
 40                                                    40 
 41 extern int of_dma_router_register(struct devic     41 extern int of_dma_router_register(struct device_node *np,
 42                 void *(*of_dma_route_allocate)     42                 void *(*of_dma_route_allocate)
 43                 (struct of_phandle_args *, str     43                 (struct of_phandle_args *, struct of_dma *),
 44                 struct dma_router *dma_router)     44                 struct dma_router *dma_router);
 45 #define of_dma_router_free of_dma_controller_f     45 #define of_dma_router_free of_dma_controller_free
 46                                                    46 
 47 extern struct dma_chan *of_dma_request_slave_c     47 extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
 48                                                    48                                                      const char *name);
 49 extern struct dma_chan *of_dma_simple_xlate(st     49 extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec,
 50                 struct of_dma *ofdma);             50                 struct of_dma *ofdma);
 51 extern struct dma_chan *of_dma_xlate_by_chan_i     51 extern struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec,
 52                 struct of_dma *ofdma);             52                 struct of_dma *ofdma);
 53                                                    53 
 54 #else                                              54 #else
 55 static inline int of_dma_controller_register(s     55 static inline int of_dma_controller_register(struct device_node *np,
 56                 struct dma_chan *(*of_dma_xlat     56                 struct dma_chan *(*of_dma_xlate)
 57                 (struct of_phandle_args *, str     57                 (struct of_phandle_args *, struct of_dma *),
 58                 void *data)                        58                 void *data)
 59 {                                                  59 {
 60         return -ENODEV;                            60         return -ENODEV;
 61 }                                                  61 }
 62                                                    62 
 63 static inline void of_dma_controller_free(stru     63 static inline void of_dma_controller_free(struct device_node *np)
 64 {                                                  64 {
 65 }                                                  65 }
 66                                                    66 
 67 static inline int of_dma_router_register(struc     67 static inline int of_dma_router_register(struct device_node *np,
 68                 void *(*of_dma_route_allocate)     68                 void *(*of_dma_route_allocate)
 69                 (struct of_phandle_args *, str     69                 (struct of_phandle_args *, struct of_dma *),
 70                 struct dma_router *dma_router)     70                 struct dma_router *dma_router)
 71 {                                                  71 {
 72         return -ENODEV;                            72         return -ENODEV;
 73 }                                                  73 }
 74                                                    74 
 75 #define of_dma_router_free of_dma_controller_f     75 #define of_dma_router_free of_dma_controller_free
 76                                                    76 
 77 static inline struct dma_chan *of_dma_request_     77 static inline struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
 78                                                    78                                                      const char *name)
 79 {                                                  79 {
 80         return ERR_PTR(-ENODEV);                   80         return ERR_PTR(-ENODEV);
 81 }                                                  81 }
 82                                                    82 
 83 static inline struct dma_chan *of_dma_simple_x     83 static inline struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec,
 84                 struct of_dma *ofdma)              84                 struct of_dma *ofdma)
 85 {                                                  85 {
 86         return NULL;                               86         return NULL;
 87 }                                                  87 }
 88                                                    88 
 89 #define of_dma_xlate_by_chan_id NULL               89 #define of_dma_xlate_by_chan_id NULL
 90                                                    90 
 91 #endif                                             91 #endif
 92                                                    92 
 93 #endif /* __LINUX_OF_DMA_H */                      93 #endif /* __LINUX_OF_DMA_H */
 94                                                    94 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php