Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79765
b: refs/heads/master
c: 3ebc51d
h: refs/heads/master
i:
  79763: 6d3deac
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Jan 30, 2008
1 parent d5a086c commit 2d24837
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 60 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: f28b8d608829aecd7343015a0df89f6b6e89d391
refs/heads/master: 3ebc51d7c95425c3b4667fa042576fb1c6e2ea16
34 changes: 32 additions & 2 deletions trunk/include/asm-x86/scatterlist.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
#ifndef _ASM_X86_SCATTERLIST_H
#define _ASM_X86_SCATTERLIST_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;
#ifdef CONFIG_X86_64
unsigned int dma_length;
#endif
};

#define ARCH_HAS_SG_CHAIN
#define ISA_DMA_THRESHOLD (0x00ffffff)

/*
* 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.
*/
#define sg_dma_address(sg) ((sg)->dma_address)
#ifdef CONFIG_X86_32
# include "scatterlist_32.h"
# define sg_dma_len(sg) ((sg)->length)
#else
# include "scatterlist_64.h"
# define sg_dma_len(sg) ((sg)->dma_length)
#endif

#endif
28 changes: 0 additions & 28 deletions trunk/include/asm-x86/scatterlist_32.h

This file was deleted.

29 changes: 0 additions & 29 deletions trunk/include/asm-x86/scatterlist_64.h

This file was deleted.

0 comments on commit 2d24837

Please sign in to comment.