My Project
Main Page
Classes
Files
File List
All
Classes
MWSg.h
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
{
16
mw_physical_addr_t address;
17
size_t
length;
18
}
mw_scatterlist_t
;
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_scatterlist_t
Definition:
MWSg.h:15
Generated by
1.8.5