@@ -451,9 +451,7 @@ static inline int dma_reload(const struct device *dev, uint32_t channel,
451
451
* @retval 0 if successful.
452
452
* @retval Negative errno code if failure.
453
453
*/
454
- __syscall int dma_start (const struct device * dev , uint32_t channel );
455
-
456
- static inline int z_impl_dma_start (const struct device * dev , uint32_t channel )
454
+ static inline int dma_start (const struct device * dev , uint32_t channel )
457
455
{
458
456
const struct dma_driver_api * api =
459
457
(const struct dma_driver_api * )dev -> api ;
@@ -479,9 +477,7 @@ static inline int z_impl_dma_start(const struct device *dev, uint32_t channel)
479
477
* @retval 0 if successful.
480
478
* @retval Negative errno code if failure.
481
479
*/
482
- __syscall int dma_stop (const struct device * dev , uint32_t channel );
483
-
484
- static inline int z_impl_dma_stop (const struct device * dev , uint32_t channel )
480
+ static inline int dma_stop (const struct device * dev , uint32_t channel )
485
481
{
486
482
const struct dma_driver_api * api =
487
483
(const struct dma_driver_api * )dev -> api ;
@@ -506,9 +502,7 @@ static inline int z_impl_dma_stop(const struct device *dev, uint32_t channel)
506
502
* @retval -EINVAL If invalid channel id or state.
507
503
* @retval -errno Other negative errno code failure.
508
504
*/
509
- __syscall int dma_suspend (const struct device * dev , uint32_t channel );
510
-
511
- static inline int z_impl_dma_suspend (const struct device * dev , uint32_t channel )
505
+ static inline int dma_suspend (const struct device * dev , uint32_t channel )
512
506
{
513
507
const struct dma_driver_api * api = (const struct dma_driver_api * )dev -> api ;
514
508
@@ -534,9 +528,7 @@ static inline int z_impl_dma_suspend(const struct device *dev, uint32_t channel)
534
528
* @retval -EINVAL If invalid channel id or state.
535
529
* @retval -errno Other negative errno code failure.
536
530
*/
537
- __syscall int dma_resume (const struct device * dev , uint32_t channel );
538
-
539
- static inline int z_impl_dma_resume (const struct device * dev , uint32_t channel )
531
+ static inline int dma_resume (const struct device * dev , uint32_t channel )
540
532
{
541
533
const struct dma_driver_api * api = (const struct dma_driver_api * )dev -> api ;
542
534
@@ -562,11 +554,7 @@ static inline int z_impl_dma_resume(const struct device *dev, uint32_t channel)
562
554
* @retval dma channel if successful.
563
555
* @retval Negative errno code if failure.
564
556
*/
565
- __syscall int dma_request_channel (const struct device * dev ,
566
- void * filter_param );
567
-
568
- static inline int z_impl_dma_request_channel (const struct device * dev ,
569
- void * filter_param )
557
+ static inline int dma_request_channel (const struct device * dev , void * filter_param )
570
558
{
571
559
int i = 0 ;
572
560
int channel = - EINVAL ;
@@ -607,11 +595,7 @@ static inline int z_impl_dma_request_channel(const struct device *dev,
607
595
* @param channel channel number
608
596
*
609
597
*/
610
- __syscall void dma_release_channel (const struct device * dev ,
611
- uint32_t channel );
612
-
613
- static inline void z_impl_dma_release_channel (const struct device * dev ,
614
- uint32_t channel )
598
+ static inline void dma_release_channel (const struct device * dev , uint32_t channel )
615
599
{
616
600
const struct dma_driver_api * api =
617
601
(const struct dma_driver_api * )dev -> api ;
@@ -643,11 +627,7 @@ static inline void z_impl_dma_release_channel(const struct device *dev,
643
627
* @retval Negative errno code if not support
644
628
*
645
629
*/
646
- __syscall int dma_chan_filter (const struct device * dev ,
647
- int channel , void * filter_param );
648
-
649
- static inline int z_impl_dma_chan_filter (const struct device * dev ,
650
- int channel , void * filter_param )
630
+ static inline int dma_chan_filter (const struct device * dev , int channel , void * filter_param )
651
631
{
652
632
const struct dma_driver_api * api =
653
633
(const struct dma_driver_api * )dev -> api ;
@@ -812,6 +792,4 @@ static inline uint32_t dma_burst_index(uint32_t burst)
812
792
}
813
793
#endif
814
794
815
- #include <zephyr/syscalls/dma.h>
816
-
817
795
#endif /* ZEPHYR_INCLUDE_DRIVERS_DMA_H_ */
0 commit comments