]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/asm-m68knommu/scatterlist.h
[AF_RXRPC]: Add an interface to the AF_RXRPC module for the AFS filesystem to use
[mirror_ubuntu-bionic-kernel.git] / include / asm-m68knommu / scatterlist.h
CommitLineData
1da177e4
LT
1#ifndef _M68KNOMMU_SCATTERLIST_H
2#define _M68KNOMMU_SCATTERLIST_H
3
7cf27cb4
GU
4#include <linux/mm.h>
5
1da177e4
LT
6struct scatterlist {
7 struct page *page;
8 unsigned int offset;
9 dma_addr_t dma_address;
10 unsigned int length;
11};
12
f75e3b1d 13#define sg_address(sg) (page_address((sg)->page) + (sg)->offset)
7cf27cb4
GU
14#define sg_dma_address(sg) ((sg)->dma_address)
15#define sg_dma_len(sg) ((sg)->length)
16
1da177e4
LT
17#define ISA_DMA_THRESHOLD (0xffffffff)
18
19#endif /* !(_M68KNOMMU_SCATTERLIST_H) */