Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 2ddcca36c8bcfa251724fe342c8327451988be0d authored by Linus Torvalds on 03 May 2008, 18:59:44 UTC
Linux 2.6.26-rc1
Tip revision: 2ddcca3
scatterlist.h
#ifndef _M68K_SCATTERLIST_H
#define _M68K_SCATTERLIST_H

#include <linux/types.h>

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

	__u32 dma_address;	/* A place to hang host-specific addresses at. */
};

/* This is bogus and should go away. */
#define ISA_DMA_THRESHOLD (0x00ffffff)

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

#endif /* !(_M68K_SCATTERLIST_H) */
back to top