Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38003
b: refs/heads/master
c: eed34d0
h: refs/heads/master
i:
  38001: ca0535a
  37999: 32832e8
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Oct 3, 2006
1 parent f4d08c0 commit 2d47857
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d3717bdf8f08a0e1039158c8bab2c24d20f492b6
refs/heads/master: eed34d0fc5e4b89269053ed855ef714edbcf4518
4 changes: 4 additions & 0 deletions trunk/Documentation/DocBook/kernel-api.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ X!Ekernel/module.c
!Ekernel/irq/manage.c
</sect1>

<sect1><title>DMA Channels</title>
!Ekernel/dma.c
</sect1>

<sect1><title>Resources Management</title>
!Ikernel/resource.c
</sect1>
Expand Down
3 changes: 1 addition & 2 deletions trunk/include/asm-i386/mca_dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static __inline__ void mca_set_dma_io(unsigned int dmanr, unsigned int io_addr)
* @mode: mode to set
*
* The DMA controller supports several modes. The mode values you can
* set are :
* set are-
*
* %MCA_DMA_MODE_READ when reading from the DMA device.
*
Expand All @@ -190,7 +190,6 @@ static __inline__ void mca_set_dma_io(unsigned int dmanr, unsigned int io_addr)
* %MCA_DMA_MODE_IO to do DMA to or from an I/O port.
*
* %MCA_DMA_MODE_16 to do 16bit transfers.
*
*/

static __inline__ void mca_set_dma_mode(unsigned int dmanr, unsigned int mode)
Expand Down
10 changes: 9 additions & 1 deletion trunk/kernel/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ static struct dma_chan dma_chan_busy[MAX_DMA_CHANNELS] = {
};


/**
* request_dma - request and reserve a system DMA channel
* @dmanr: DMA channel number
* @device_id: reserving device ID string, used in /proc/dma
*/
int request_dma(unsigned int dmanr, const char * device_id)
{
if (dmanr >= MAX_DMA_CHANNELS)
Expand All @@ -76,7 +81,10 @@ int request_dma(unsigned int dmanr, const char * device_id)
return 0;
} /* request_dma */


/**
* free_dma - free a reserved system DMA channel
* @dmanr: DMA channel number
*/
void free_dma(unsigned int dmanr)
{
if (dmanr >= MAX_DMA_CHANNELS) {
Expand Down

0 comments on commit 2d47857

Please sign in to comment.