Skip to content

Commit

Permalink
[PATCH] m68knommu: implement scatter/gather support macros
Browse files Browse the repository at this point in the history
Implement the scattergather support macros for m68knommu targets.
Patch originally submitted by Leon Woestenberg <leonw@mailcan.com>.

Signed-off-by: Greg Ungerer <gerg@uclinux.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Greg Ungerer authored and Linus Torvalds committed Sep 13, 2005
1 parent 962d69e commit 7cf27cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/asm-m68knommu/scatterlist.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
#ifndef _M68KNOMMU_SCATTERLIST_H
#define _M68KNOMMU_SCATTERLIST_H

#include <linux/mm.h>

struct scatterlist {
struct page *page;
unsigned int offset;
dma_addr_t dma_address;
unsigned int length;
};

#define sg_address(sg) (page_address((sg)->page) + (sg)->offset
#define sg_dma_address(sg) ((sg)->dma_address)
#define sg_dma_len(sg) ((sg)->length)

#define ISA_DMA_THRESHOLD (0xffffffff)

#endif /* !(_M68KNOMMU_SCATTERLIST_H) */

0 comments on commit 7cf27cb

Please sign in to comment.