blob: 948088c8c2e3c6e6cd71141354bd8a28753209fe [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __DM_LOG_USERSPACE_H__
20#define __DM_LOG_USERSPACE_H__
Christopher Ferris48af7cb2017-02-21 12:35:09 -080021#include <linux/types.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070022#include <linux/dm-ioctl.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080024#define DM_ULOG_CTR 1
Ben Cheng655a7c02013-10-16 16:09:24 -070025#define DM_ULOG_DTR 2
26#define DM_ULOG_PRESUSPEND 3
27#define DM_ULOG_POSTSUSPEND 4
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080029#define DM_ULOG_RESUME 5
Ben Cheng655a7c02013-10-16 16:09:24 -070030#define DM_ULOG_GET_REGION_SIZE 6
31#define DM_ULOG_IS_CLEAN 7
32#define DM_ULOG_IN_SYNC 8
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080034#define DM_ULOG_FLUSH 9
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define DM_ULOG_MARK_REGION 10
36#define DM_ULOG_CLEAR_REGION 11
37#define DM_ULOG_GET_RESYNC_WORK 12
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080039#define DM_ULOG_SET_REGION_SYNC 13
Ben Cheng655a7c02013-10-16 16:09:24 -070040#define DM_ULOG_GET_SYNC_COUNT 14
41#define DM_ULOG_STATUS_INFO 15
42#define DM_ULOG_STATUS_TABLE 16
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080044#define DM_ULOG_IS_REMOTE_RECOVERING 17
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define DM_ULOG_REQUEST_MASK 0xFF
Tao Baod7db5942015-01-28 10:07:51 -080046#define DM_ULOG_REQUEST_TYPE(request_type) (DM_ULOG_REQUEST_MASK & (request_type))
Christopher Ferris38062f92014-07-09 15:33:25 -070047#define DM_ULOG_REQUEST_VERSION 3
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080049struct dm_ulog_request {
50 __u64 luid;
Tao Baod7db5942015-01-28 10:07:51 -080051 char uuid[DM_UUID_LEN];
52 char padding[3];
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080054 __u32 version;
55 __s32 error;
56 __u32 seq;
57 __u32 request_type;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080059 __u32 data_size;
Tao Baod7db5942015-01-28 10:07:51 -080060 char data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070061};
62#endif
Christopher Ferris48af7cb2017-02-21 12:35:09 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */