scatterlist.h 627 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4
#ifndef _ASM_PARISC_SCATTERLIST_H
#define _ASM_PARISC_SCATTERLIST_H

#include <asm/page.h>
J
Jean Delvare 已提交
5
#include <asm/types.h>
L
Linus Torvalds 已提交
6 7

struct scatterlist {
J
Jens Axboe 已提交
8 9 10
#ifdef CONFIG_DEBUG_SG
	unsigned long sg_magic;
#endif
J
Jens Axboe 已提交
11
	unsigned long page_link;
L
Linus Torvalds 已提交
12 13 14 15 16 17 18 19 20
	unsigned int offset;

	unsigned int length;

	/* an IOVA can be 64-bits on some PA-Risc platforms. */
	dma_addr_t iova;	/* I/O Virtual Address */
	__u32      iova_length; /* bytes mapped */
};

F
FUJITA Tomonori 已提交
21
#define sg_virt_addr(sg) ((unsigned long)sg_virt(sg))
L
Linus Torvalds 已提交
22 23 24 25 26 27
#define sg_dma_address(sg) ((sg)->iova)
#define sg_dma_len(sg)     ((sg)->iova_length)

#define ISA_DMA_THRESHOLD (~0UL)

#endif /* _ASM_PARISC_SCATTERLIST_H */