Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 53c8ba95402be65d412a806cda3430f0e72cd107 authored by Linus Torvalds on 05 June 2008, 03:10:44 UTC
Linux 2.6.26-rc5
Tip revision: 53c8ba9
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