138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/****************************************************************************
238062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ****************************************************************************
338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ***
438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ***   This header was automatically generated from a Linux kernel header
538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ***   of the same name, to make information necessary for userspace to
638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ***   call into the kernel available to libc.  It contains only constants,
738062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ***   structures, and macros generated from the original header, and thus,
838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ***   contains no copyrightable information.
938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ***
1038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ***   To edit the content of this header, modify the corresponding
1138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ***   source file (e.g. under external/kernel-headers/original/) then
1238062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ***   run bionic/libc/kernel/tools/update_all.py
1338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ***
1438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ***   Any manual change here will be lost the next time this script will
1538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ***   be run. You've been warned!
1638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ***
1738062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ****************************************************************************
1838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ****************************************************************************/
1938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#ifndef _LINUX_BCACHE_H
2038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define _LINUX_BCACHE_H
2138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#include <asm/types.h>
22d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define BITMASK(name,type,field,offset,size) static inline __u64 name(const type * k) \
23d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao{ return(k->field >> offset) & ~(~0ULL << size); } static inline void SET_ ##name(type * k, __u64 v) \
24d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao{ k->field &= ~(~(~0ULL << size) << offset); k->field |= (v & ~(~0ULL << size)) << offset; \
25d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao}
2638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
2738062f954c637861348dd8078cefb73554e6f12cChristopher Ferrisstruct bkey {
28d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 high;
29d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 low;
30d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 ptr[];
3138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
3238062f954c637861348dd8078cefb73554e6f12cChristopher Ferris};
33d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define KEY_FIELD(name,field,offset,size) BITMASK(name, struct bkey, field, offset, size)
34d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define PTR_FIELD(name,offset,size) static inline __u64 name(const struct bkey * k, unsigned i) \
35d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao{ return(k->ptr[i] >> offset) & ~(~0ULL << size); } static inline void SET_ ##name(struct bkey * k, unsigned i, __u64 v) \
36d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao{ k->ptr[i] &= ~(~(~0ULL << size) << offset); k->ptr[i] |= (v & ~(~0ULL << size)) << offset; \
37d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao}
3838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define KEY_SIZE_BITS 16
3938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
4038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define KEY_MAX_U64S 8
41d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define KEY(inode,offset,size) \
42d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao((struct bkey) {.high = (1ULL << 63) | ((__u64) (size) << 20) | (inode),.low = (offset) \
43d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao})
4438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define ZERO_KEY KEY(0, 0, 0)
4538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define MAX_KEY_INODE (~(~0 << 20))
4638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
4738062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define MAX_KEY_OFFSET (~0ULL >> 1)
4838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define MAX_KEY KEY(MAX_KEY_INODE, MAX_KEY_OFFSET, 0)
4938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define KEY_START(k) (KEY_OFFSET(k) - KEY_SIZE(k))
5038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define START_KEY(k) KEY(KEY_INODE(k), KEY_START(k), 0)
5138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
5238062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define PTR_DEV_BITS 12
5338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define PTR_CHECK_DEV ((1 << PTR_DEV_BITS) - 1)
54d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define PTR(gen,offset,dev) ((((__u64) dev) << 51) | ((__u64) offset) << 8 | gen)
55d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define bkey_copy(_dest,_src) memcpy(_dest, _src, bkey_bytes(_src))
5638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
5738062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BKEY_PAD 8
58d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define BKEY_PADDED(key) union { struct bkey key; __u64 key ##_pad[BKEY_PAD]; }
5938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BCACHE_SB_VERSION_CDEV 0
6038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BCACHE_SB_VERSION_BDEV 1
6138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
6238062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BCACHE_SB_VERSION_CDEV_WITH_UUID 3
6338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BCACHE_SB_VERSION_BDEV_WITH_OFFSET 4
6438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BCACHE_SB_MAX_VERSION 4
6538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define SB_SECTOR 8
6638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
6738062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define SB_SIZE 4096
6838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define SB_LABEL_SIZE 32
6938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define SB_JOURNAL_BUCKETS 256U
7038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define MAX_CACHES_PER_SET 8
7138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
7238062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BDEV_DATA_START_DEFAULT 16
7338062f954c637861348dd8078cefb73554e6f12cChristopher Ferrisstruct cache_sb {
74d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 csum;
75d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 offset;
76d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
77d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 version;
78d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u8 magic[16];
79d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u8 uuid[16];
80d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  union {
81d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
82d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    __u8 set_uuid[16];
83d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    __u64 set_magic;
84d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  };
85d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u8 label[SB_LABEL_SIZE];
86d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
87d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 flags;
88d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 seq;
89d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 pad[8];
90d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  union {
91d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
92d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    struct {
93d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __u64 nbuckets;
94d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __u16 block_size;
95d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __u16 bucket_size;
96d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
97d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __u16 nr_in_set;
98d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __u16 nr_this_dev;
99d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    };
100d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    struct {
101d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
102d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __u64 data_offset;
103d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    };
104d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  };
105d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 last_mount;
106d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
107d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u16 first_bucket;
108d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  union {
109d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    __u16 njournal_buckets;
110d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    __u16 keys;
111d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
112d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  };
113d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 d[SB_JOURNAL_BUCKETS];
11438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris};
11538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define CACHE_REPLACEMENT_LRU 0U
11638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
11738062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define CACHE_REPLACEMENT_FIFO 1U
11838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define CACHE_REPLACEMENT_RANDOM 2U
11938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define CACHE_MODE_WRITETHROUGH 0U
12038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define CACHE_MODE_WRITEBACK 1U
12138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
12238062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define CACHE_MODE_WRITEAROUND 2U
12338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define CACHE_MODE_NONE 3U
12438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BDEV_STATE_NONE 0U
12538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BDEV_STATE_CLEAN 1U
12638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
12738062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BDEV_STATE_DIRTY 2U
12838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BDEV_STATE_STALE 3U
12938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define JSET_MAGIC 0x245235c1a3625032ULL
13038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define PSET_MAGIC 0x6750e15f87337f91ULL
13138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
13238062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BSET_MAGIC 0x90135c78b99e07f5ULL
13338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BCACHE_JSET_VERSION_UUIDv1 1
13438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BCACHE_JSET_VERSION_UUID 1
13538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BCACHE_JSET_VERSION 1
13638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
13738062f954c637861348dd8078cefb73554e6f12cChristopher Ferrisstruct jset {
138d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 csum;
139d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 magic;
140d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 seq;
14138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
142d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 version;
143d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 keys;
144d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 last_seq;
145d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  BKEY_PADDED(uuid_bucket);
14638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
147d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  BKEY_PADDED(btree_root);
148d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u16 btree_level;
149d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u16 pad[3];
150d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 prio_bucket[MAX_CACHES_PER_SET];
15138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
152d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  union {
153d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    struct bkey start[0];
154d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    __u64 d[0];
155d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  };
15638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
15738062f954c637861348dd8078cefb73554e6f12cChristopher Ferris};
15838062f954c637861348dd8078cefb73554e6f12cChristopher Ferrisstruct prio_set {
159d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 csum;
160d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 magic;
16138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
162d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 seq;
163d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 version;
164d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 pad;
165d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 next_bucket;
16638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
167d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  struct bucket_disk {
168d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    __u16 prio;
169d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    __u8 gen;
170d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  } __attribute((packed)) data[];
17138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
17238062f954c637861348dd8078cefb73554e6f12cChristopher Ferris};
17338062f954c637861348dd8078cefb73554e6f12cChristopher Ferrisstruct uuid_entry {
174d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  union {
175d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    struct {
17638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
177d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __u8 uuid[16];
178d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __u8 label[32];
179d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __u32 first_reg;
180d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __u32 last_reg;
18138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
182d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __u32 invalidated;
183d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __u32 flags;
184d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao      __u64 sectors;
185d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    };
18638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
187d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    __u8 pad[128];
188d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  };
18938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris};
19038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BCACHE_BSET_CSUM 1
19138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
19238062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define BCACHE_BSET_VERSION 1
19338062f954c637861348dd8078cefb73554e6f12cChristopher Ferrisstruct bset {
194d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 csum;
195d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 magic;
19638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
197d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 seq;
198d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 version;
199d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 keys;
200d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  union {
20138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
202d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    struct bkey start[0];
203d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao    __u64 d[0];
204d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  };
20538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris};
20638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
20738062f954c637861348dd8078cefb73554e6f12cChristopher Ferrisstruct uuid_entry_v0 {
208d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u8 uuid[16];
209d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u8 label[32];
210d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 first_reg;
21138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
212d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 last_reg;
213d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 invalidated;
214d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 pad;
21538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris};
21638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
21738062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#endif
218