xref: /haiku/src/add-ons/kernel/bus_managers/scsi/KernelExport_ext.h (revision 3cb015b1ee509d69c643506e8ff573808c86dcfc)
1 /*
2  * Copyright 2004-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3  * Copyright 2002/03, Thomas Kurschel. All rights reserved.
4  *
5  * Distributed under the terms of the MIT License.
6  */
7 
8 /*
9 	Functions that are missing in kernel.
10 */
11 
12 #ifndef _KERNEL_EXPORT_EXT_H
13 #define _KERNEL_EXPORT_EXT_H
14 
15 #include <KernelExport.h>
16 #include <iovec.h>
17 
18 
19 // get memory map of iovec
20 status_t get_iovec_memory_map(
21 	iovec *vec, 				// iovec to analyze
22 	size_t vec_count, 			// number of entries in vec
23 	size_t vec_offset, 			// number of bytes to skip at beginning of vec
24 	size_t len, 				// number of bytes to analyze
25 	physical_entry *map, 		// resulting memory map
26 	size_t max_entries, 		// max number of entries in map
27 	size_t *num_entries, 		// actual number of map entries used
28 	size_t *mapped_len 			// actual number of bytes described by map
29 );
30 
31 #endif
32