~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise-security

« back to all changes in this revision

Viewing changes to drivers/dma/shdma.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
struct device;
25
25
 
 
26
enum dmae_pm_state {
 
27
        DMAE_PM_ESTABLISHED,
 
28
        DMAE_PM_BUSY,
 
29
        DMAE_PM_PENDING,
 
30
};
 
31
 
26
32
struct sh_dmae_chan {
27
33
        dma_cookie_t completed_cookie;  /* The maximum cookie completed */
28
34
        spinlock_t desc_lock;           /* Descriptor operation lock */
38
44
        u32 __iomem *base;
39
45
        char dev_id[16];                /* unique name per DMAC of channel */
40
46
        int pm_error;
 
47
        enum dmae_pm_state pm_state;
41
48
};
42
49
 
43
50
struct sh_dmae_device {
47
54
        struct list_head node;
48
55
        u32 __iomem *chan_reg;
49
56
        u16 __iomem *dmars;
 
57
        unsigned int chcr_offset;
 
58
        u32 chcr_ie_bit;
50
59
};
51
60
 
52
61
#define to_sh_chan(chan) container_of(chan, struct sh_dmae_chan, common)
53
62
#define to_sh_desc(lh) container_of(lh, struct sh_desc, node)
54
63
#define tx_to_sh_desc(tx) container_of(tx, struct sh_desc, async_tx)
 
64
#define to_sh_dev(chan) container_of(chan->common.device,\
 
65
                                     struct sh_dmae_device, common)
55
66
 
56
67
#endif  /* __DMA_SHDMA_H */