Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
awilliam
GitHub Repository: awilliam/linux-vfio
Path: blob/master/arch/arm/mach-mxs/include/mach/dma.h
10820 views
1
/*
2
* Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation.
7
*/
8
9
#ifndef __MACH_MXS_DMA_H__
10
#define __MACH_MXS_DMA_H__
11
12
struct mxs_dma_data {
13
int chan_irq;
14
};
15
16
static inline int mxs_dma_is_apbh(struct dma_chan *chan)
17
{
18
return !strcmp(dev_name(chan->device->dev), "mxs-dma-apbh");
19
}
20
21
static inline int mxs_dma_is_apbx(struct dma_chan *chan)
22
{
23
return !strcmp(dev_name(chan->device->dev), "mxs-dma-apbx");
24
}
25
26
#endif /* __MACH_MXS_DMA_H__ */
27
28