lkml.org 
[lkml]   [2008]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH bz #10388] doc: fix DMA-API function parameters
From: Randy Dunlap <randy.dunlap@oracle.com>

Fix kernel bugzilla #10388.

DMA-API.txt has wrong argument type for some functions.
It uses struct device but should use struct pci_dev.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
Documentation/DMA-API.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- lin2625-rc8-kdoc.orig/Documentation/DMA-API.txt
+++ lin2625-rc8-kdoc/Documentation/DMA-API.txt
@@ -145,7 +145,7 @@ Part Ic - DMA addressing limitations
int
dma_supported(struct device *dev, u64 mask)
int
-pci_dma_supported(struct device *dev, u64 mask)
+pci_dma_supported(struct pci_dev *hwdev, u64 mask)

Checks to see if the device can support DMA to the memory described by
mask.
@@ -189,7 +189,7 @@ dma_addr_t
dma_map_single(struct device *dev, void *cpu_addr, size_t size,
enum dma_data_direction direction)
dma_addr_t
-pci_map_single(struct device *dev, void *cpu_addr, size_t size,
+pci_map_single(struct pci_dev *hwdev, void *cpu_addr, size_t size,
int direction)

Maps a piece of processor virtual memory so it can be accessed by the

\
 
 \ /
  Last update: 2008-04-04 18:23    [W:1.055 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site