mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-03 17:44:54 +00:00
sparc: use asm-generic/scatterlist.h
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>
This commit is contained in:
parent
2ef2d74775
commit
a6d468d053
@ -1,27 +1,8 @@
|
|||||||
#ifndef _SPARC_SCATTERLIST_H
|
#ifndef _SPARC_SCATTERLIST_H
|
||||||
#define _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 sg_dma_len(sg) ((sg)->dma_length)
|
||||||
|
|
||||||
#define ISA_DMA_THRESHOLD (~0UL)
|
#include <asm-generic/scatterlist.h>
|
||||||
|
|
||||||
#define ARCH_HAS_SG_CHAIN
|
|
||||||
|
|
||||||
#endif /* !(_SPARC_SCATTERLIST_H) */
|
#endif /* !(_SPARC_SCATTERLIST_H) */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user