xref: /haiku/src/tests/system/kernel/file_corruption/driver/checksum_device.h (revision 8d591ecc414660ccdc583403f8f18f56c1ba18d6)
1 /*
2  * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef CHECKSUM_DEVICE_H
6 #define CHECKSUM_DEVICE_H
7 
8 
9 #include <Drivers.h>
10 
11 #include "CheckSum.h"
12 
13 
14 enum {
15 	CHECKSUM_DEVICE_IOCTL_GET_CHECK_SUM	= B_DEVICE_OP_CODES_END + 0x666,
16 	CHECKSUM_DEVICE_IOCTL_SET_CHECK_SUM
17 };
18 
19 
20 struct checksum_device_ioctl_check_sum {
21 	uint64		blockIndex;
22 	CheckSum	checkSum;
23 };
24 
25 
26 #endif	// CHECKSUM_DEVICE_H
27