diff options
Diffstat (limited to 'drivers/dma/shdma.h')
-rw-r--r-- | drivers/dma/shdma.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/dma/shdma.h b/drivers/dma/shdma.h index dc56576f9fd..2b55a276dc5 100644 --- a/drivers/dma/shdma.h +++ b/drivers/dma/shdma.h | |||
@@ -23,6 +23,12 @@ | |||
23 | 23 | ||
24 | struct device; | 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 | struct sh_dmae_chan { | 32 | struct sh_dmae_chan { |
27 | dma_cookie_t completed_cookie; /* The maximum cookie completed */ | 33 | dma_cookie_t completed_cookie; /* The maximum cookie completed */ |
28 | spinlock_t desc_lock; /* Descriptor operation lock */ | 34 | spinlock_t desc_lock; /* Descriptor operation lock */ |
@@ -38,6 +44,7 @@ struct sh_dmae_chan { | |||
38 | u32 __iomem *base; | 44 | u32 __iomem *base; |
39 | char dev_id[16]; /* unique name per DMAC of channel */ | 45 | char dev_id[16]; /* unique name per DMAC of channel */ |
40 | int pm_error; | 46 | int pm_error; |
47 | enum dmae_pm_state pm_state; | ||
41 | }; | 48 | }; |
42 | 49 | ||
43 | struct sh_dmae_device { | 50 | struct sh_dmae_device { |