Skip to content

Commit eed34d0

Browse files
rddunlapLinus Torvalds
authored andcommitted
[PATCH] kernel-doc for kernel/dma.c
Add kernel-doc function headers in kernel/dma.c and use it in DocBook. Clean up kernel-doc in mca_dma.h (the colon (':') represents a section header). Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent d3717bd commit eed34d0

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎Documentation/DocBook/kernel-api.tmpl‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@ X!Ekernel/module.c
325325
!Ekernel/irq/manage.c
326326
</sect1>
327327

328+
<sect1><title>DMA Channels</title>
329+
!Ekernel/dma.c
330+
</sect1>
331+
328332
<sect1><title>Resources Management</title>
329333
!Ikernel/resource.c
330334
</sect1>

‎include/asm-i386/mca_dma.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static __inline__ void mca_set_dma_io(unsigned int dmanr, unsigned int io_addr)
181181
* @mode: mode to set
182182
*
183183
* The DMA controller supports several modes. The mode values you can
184-
* set are :
184+
* set are-
185185
*
186186
* %MCA_DMA_MODE_READ when reading from the DMA device.
187187
*
@@ -190,7 +190,6 @@ static __inline__ void mca_set_dma_io(unsigned int dmanr, unsigned int io_addr)
190190
* %MCA_DMA_MODE_IO to do DMA to or from an I/O port.
191191
*
192192
* %MCA_DMA_MODE_16 to do 16bit transfers.
193-
*
194193
*/
195194

196195
static __inline__ void mca_set_dma_mode(unsigned int dmanr, unsigned int mode)

‎kernel/dma.c‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ static struct dma_chan dma_chan_busy[MAX_DMA_CHANNELS] = {
6262
};
6363

6464

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+
*/
6570
int request_dma(unsigned int dmanr, const char * device_id)
6671
{
6772
if (dmanr >= MAX_DMA_CHANNELS)
@@ -76,7 +81,10 @@ int request_dma(unsigned int dmanr, const char * device_id)
7681
return 0;
7782
} /* request_dma */
7883

79-
84+
/**
85+
* free_dma - free a reserved system DMA channel
86+
* @dmanr: DMA channel number
87+
*/
8088
void free_dma(unsigned int dmanr)
8189
{
8290
if (dmanr >= MAX_DMA_CHANNELS) {

0 commit comments

Comments
 (0)