1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /* Copyright (c) 2010-2012 Broadcom. All rights reserved. */
3 
4 #ifndef VCHIQ_PAGELIST_H
5 #define VCHIQ_PAGELIST_H
6 
7 #define PAGELIST_WRITE 0
8 #define PAGELIST_READ 1
9 #define PAGELIST_READ_WITH_FRAGMENTS 2
10 
11 struct pagelist {
12 	u32 length;
13 	u16 type;
14 	u16 offset;
15 	u32 addrs[1];	/* N.B. 12 LSBs hold the number
16 			 * of following pages at consecutive
17 			 * addresses.
18 			 */
19 };
20 
21 #endif /* VCHIQ_PAGELIST_H */
22