Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame] | 7 | #ifndef _LINUX_DM_USER_H |
| 8 | #define _LINUX_DM_USER_H |
| 9 | #include <linux/types.h> |
| 10 | #define DM_USER_REQ_MAP_READ 0 |
| 11 | #define DM_USER_REQ_MAP_WRITE 1 |
| 12 | #define DM_USER_REQ_MAP_FLUSH 2 |
| 13 | #define DM_USER_REQ_MAP_DISCARD 3 |
| 14 | #define DM_USER_REQ_MAP_SECURE_ERASE 4 |
| 15 | #define DM_USER_REQ_MAP_WRITE_SAME 5 |
| 16 | #define DM_USER_REQ_MAP_WRITE_ZEROES 6 |
| 17 | #define DM_USER_REQ_MAP_ZONE_OPEN 7 |
| 18 | #define DM_USER_REQ_MAP_ZONE_CLOSE 8 |
| 19 | #define DM_USER_REQ_MAP_ZONE_FINISH 9 |
| 20 | #define DM_USER_REQ_MAP_ZONE_APPEND 10 |
| 21 | #define DM_USER_REQ_MAP_ZONE_RESET 11 |
| 22 | #define DM_USER_REQ_MAP_ZONE_RESET_ALL 12 |
| 23 | #define DM_USER_REQ_MAP_FLAG_FAILFAST_DEV 0x00001 |
| 24 | #define DM_USER_REQ_MAP_FLAG_FAILFAST_TRANSPORT 0x00002 |
| 25 | #define DM_USER_REQ_MAP_FLAG_FAILFAST_DRIVER 0x00004 |
| 26 | #define DM_USER_REQ_MAP_FLAG_SYNC 0x00008 |
| 27 | #define DM_USER_REQ_MAP_FLAG_META 0x00010 |
| 28 | #define DM_USER_REQ_MAP_FLAG_PRIO 0x00020 |
| 29 | #define DM_USER_REQ_MAP_FLAG_NOMERGE 0x00040 |
| 30 | #define DM_USER_REQ_MAP_FLAG_IDLE 0x00080 |
| 31 | #define DM_USER_REQ_MAP_FLAG_INTEGRITY 0x00100 |
| 32 | #define DM_USER_REQ_MAP_FLAG_FUA 0x00200 |
| 33 | #define DM_USER_REQ_MAP_FLAG_PREFLUSH 0x00400 |
| 34 | #define DM_USER_REQ_MAP_FLAG_RAHEAD 0x00800 |
| 35 | #define DM_USER_REQ_MAP_FLAG_BACKGROUND 0x01000 |
| 36 | #define DM_USER_REQ_MAP_FLAG_NOWAIT 0x02000 |
| 37 | #define DM_USER_REQ_MAP_FLAG_CGROUP_PUNT 0x04000 |
| 38 | #define DM_USER_REQ_MAP_FLAG_NOUNMAP 0x08000 |
| 39 | #define DM_USER_REQ_MAP_FLAG_HIPRI 0x10000 |
| 40 | #define DM_USER_REQ_MAP_FLAG_DRV 0x20000 |
| 41 | #define DM_USER_REQ_MAP_FLAG_SWAP 0x40000 |
| 42 | #define DM_USER_RESP_SUCCESS 0 |
| 43 | #define DM_USER_RESP_ERROR 1 |
| 44 | #define DM_USER_RESP_UNSUPPORTED 2 |
| 45 | struct dm_user_message { |
| 46 | __u64 seq; |
| 47 | __u64 type; |
| 48 | __u64 flags; |
| 49 | __u64 sector; |
| 50 | __u64 len; |
| 51 | __u8 buf[]; |
| 52 | }; |
| 53 | #endif |