blob: c0881f4afe238a04f3bdc217f57246e751675bbc [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 _UAPI_LINUX_LOOP_H
20#define _UAPI_LINUX_LOOP_H
21#define LO_NAME_SIZE 64
22#define LO_KEY_SIZE 32
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24enum {
Tao Baod7db5942015-01-28 10:07:51 -080025 LO_FLAGS_READ_ONLY = 1,
26 LO_FLAGS_AUTOCLEAR = 4,
27 LO_FLAGS_PARTSCAN = 8,
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29};
30#include <asm/posix_types.h>
31#include <linux/types.h>
32struct loop_info {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 int lo_number;
35 __kernel_old_dev_t lo_device;
36 unsigned long lo_inode;
37 __kernel_old_dev_t lo_rdevice;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 int lo_offset;
40 int lo_encrypt_type;
41 int lo_encrypt_key_size;
42 int lo_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 char lo_name[LO_NAME_SIZE];
45 unsigned char lo_encrypt_key[LO_KEY_SIZE];
46 unsigned long lo_init[2];
47 char reserved[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49};
50struct loop_info64 {
Tao Baod7db5942015-01-28 10:07:51 -080051 __u64 lo_device;
52 __u64 lo_inode;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 __u64 lo_rdevice;
55 __u64 lo_offset;
56 __u64 lo_sizelimit;
57 __u32 lo_number;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 __u32 lo_encrypt_type;
60 __u32 lo_encrypt_key_size;
61 __u32 lo_flags;
62 __u8 lo_file_name[LO_NAME_SIZE];
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 __u8 lo_crypt_name[LO_NAME_SIZE];
65 __u8 lo_encrypt_key[LO_KEY_SIZE];
66 __u64 lo_init[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070067};
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define LO_CRYPT_NONE 0
70#define LO_CRYPT_XOR 1
71#define LO_CRYPT_DES 2
72#define LO_CRYPT_FISH2 3
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define LO_CRYPT_BLOW 4
75#define LO_CRYPT_CAST128 5
76#define LO_CRYPT_IDEA 6
77#define LO_CRYPT_DUMMY 9
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define LO_CRYPT_SKIPJACK 10
80#define LO_CRYPT_CRYPTOAPI 18
81#define MAX_LO_CRYPT 20
82#define LOOP_SET_FD 0x4C00
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define LOOP_CLR_FD 0x4C01
85#define LOOP_SET_STATUS 0x4C02
86#define LOOP_GET_STATUS 0x4C03
87#define LOOP_SET_STATUS64 0x4C04
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define LOOP_GET_STATUS64 0x4C05
90#define LOOP_CHANGE_FD 0x4C06
91#define LOOP_SET_CAPACITY 0x4C07
92#define LOOP_CTL_ADD 0x4C80
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define LOOP_CTL_REMOVE 0x4C81
95#define LOOP_CTL_GET_FREE 0x4C82
96#endif