-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sparc: use sparc64 version of scatterlist.h
Use sparc64 version of scatterlist.h. There are three main differences: dma_addr_t replaces __u32 dma_address replaces dvma_address dma_length replaces dvma_length dma_addr_t is a u32 on sparc32. Boot tested on sparc32. Signed-off-by: Robert Reif <reif@earthlink.net> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Robert Reif
authored and
David S. Miller
committed
Dec 12, 2008
1 parent
18cdae6
commit aa83a26
Showing
7 changed files
with
43 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
#ifndef ___ASM_SPARC_SCATTERLIST_H | ||
#define ___ASM_SPARC_SCATTERLIST_H | ||
#if defined(__sparc__) && defined(__arch64__) | ||
#include <asm/scatterlist_64.h> | ||
#else | ||
#include <asm/scatterlist_32.h> | ||
#endif | ||
#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 | ||
|
||
#endif /* !(_SPARC_SCATTERLIST_H) */ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters