LibMWCapture  3.3.1
LibMWCapture Documentation
MWSg.h
Go to the documentation of this file.
1 // CONFIDENTIAL and PROPRIETARY software of Magewell Electronics Co., Ltd.
3 // Copyright (c) 2011-2014 Magewell Electronics Co., Ltd. (Nanjing)
4 // All rights reserved.
5 // This copyright notice MUST be reproduced on all authorized copies.
7 #ifndef __MW_SG_H__
8 #define __MW_SG_H__
9 
10 #pragma pack(push)
11 #pragma pack(1)
12 
13 typedef unsigned long long mw_physical_addr_t;
14 
15 typedef struct _mw_scatterlist_t {
17  size_t length;
19 
20 #define mw_sg_dma_address(sg) ((sg)->address)
21 #define mw_sg_dma_len(sg) ((sg)->length)
22 
23 static inline mw_scatterlist_t *mw_sg_next(mw_scatterlist_t *sg)
24 {
25  return (++sg);
26 }
27 
28 #pragma pack(pop)
29 
30 #endif /* __MW_SG_H__ */
mw_physical_addr_t address
Definition: MWSg.h:16
struct _mw_scatterlist_t mw_scatterlist_t
size_t length
Definition: MWSg.h:17
unsigned long long mw_physical_addr_t
Definition: MWSg.h:13