Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191742
b: refs/heads/master
c: 4d736b5
h: refs/heads/master
v: v3
  • Loading branch information
FUJITA Tomonori authored and Russell King committed May 15, 2010
1 parent bf425eb commit 88bcb0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 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: 52882173cfed4fabcc1496755000bf022d681e52
refs/heads/master: 4d736b5e1cffb716bfbad669ce6aedf454779373
20 changes: 2 additions & 18 deletions trunk/arch/arm/include/asm/scatterlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,8 @@
#include <asm/memory.h>
#include <asm/types.h>

struct scatterlist {
#ifdef CONFIG_DEBUG_SG
unsigned long sg_magic;
#endif
unsigned long page_link;
unsigned int offset; /* buffer offset */
dma_addr_t dma_address; /* dma address */
unsigned int length; /* length */
};
#include <asm-generic/scatterlist.h>

/*
* These macros should be used after a pci_map_sg call has been done
* to get bus addresses of each of the SG entries and their lengths.
* You should only work with the number of sg entries pci_map_sg
* returns, or alternatively stop on the first sg_dma_len(sg) which
* is 0.
*/
#define sg_dma_address(sg) ((sg)->dma_address)
#define sg_dma_len(sg) ((sg)->length)
#undef ARCH_HAS_SG_CHAIN

#endif /* _ASMARM_SCATTERLIST_H */

0 comments on commit 88bcb0c

Please sign in to comment.