diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/dma.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/kernel/dma.c b/kernel/dma.c index aef0a45b7893..2020644c938a 100644 --- a/kernel/dma.c +++ b/kernel/dma.c | |||
@@ -62,6 +62,11 @@ static struct dma_chan dma_chan_busy[MAX_DMA_CHANNELS] = { | |||
62 | }; | 62 | }; |
63 | 63 | ||
64 | 64 | ||
65 | /** | ||
66 | * request_dma - request and reserve a system DMA channel | ||
67 | * @dmanr: DMA channel number | ||
68 | * @device_id: reserving device ID string, used in /proc/dma | ||
69 | */ | ||
65 | int request_dma(unsigned int dmanr, const char * device_id) | 70 | int request_dma(unsigned int dmanr, const char * device_id) |
66 | { | 71 | { |
67 | if (dmanr >= MAX_DMA_CHANNELS) | 72 | if (dmanr >= MAX_DMA_CHANNELS) |
@@ -76,7 +81,10 @@ int request_dma(unsigned int dmanr, const char * device_id) | |||
76 | return 0; | 81 | return 0; |
77 | } /* request_dma */ | 82 | } /* request_dma */ |
78 | 83 | ||
79 | 84 | /** | |
85 | * free_dma - free a reserved system DMA channel | ||
86 | * @dmanr: DMA channel number | ||
87 | */ | ||
80 | void free_dma(unsigned int dmanr) | 88 | void free_dma(unsigned int dmanr) |
81 | { | 89 | { |
82 | if (dmanr >= MAX_DMA_CHANNELS) { | 90 | if (dmanr >= MAX_DMA_CHANNELS) { |