Skip to content

Commit

Permalink
sparc: use asm-generic/scatterlist.h
Browse files Browse the repository at this point in the history
sparc's scatterlist structure is identical to the generic one.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
FUJITA Tomonori authored and David S. Miller committed Feb 26, 2010
1 parent 2ef2d74 commit a6d468d
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions arch/sparc/include/asm/scatterlist.h
Original file line number Diff line number Diff line change
@@ -1,27 +1,8 @@
#ifndef _SPARC_SCATTERLIST_H
#define _SPARC_SCATTERLIST_H

#include <asm/page.h>
#include <asm/types.h>

struct scatterlist {
#ifdef CONFIG_DEBUG_SG
unsigned long sg_magic;
#endif
unsigned long page_link;
unsigned int offset;

unsigned int length;

dma_addr_t dma_address;
__u32 dma_length;
};

#define sg_dma_address(sg) ((sg)->dma_address)
#define sg_dma_len(sg) ((sg)->dma_length)

#define ISA_DMA_THRESHOLD (~0UL)

#define ARCH_HAS_SG_CHAIN
#include <asm-generic/scatterlist.h>

#endif /* !(_SPARC_SCATTERLIST_H) */

0 comments on commit a6d468d

Please sign in to comment.