Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 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 | *** |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 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 | *** |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef __UBLOCK_H_ |
| 20 | #define __UBLOCK_H_ |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 21 | #include <linux/types.h> |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 22 | #define UBLOCK_VERSION 0 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 24 | enum { |
| 25 | UBLOCK_INIT_IN = 0, |
| 26 | UBLOCK_INIT_OUT = 1, |
| 27 | UBLOCK_READY_IN = 2, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 29 | UBLOCK_READY_OUT = 3, |
| 30 | UBLOCK_READ_IN = 4, |
| 31 | UBLOCK_READ_OUT = 5, |
| 32 | UBLOCK_WRITE_IN = 6, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 34 | UBLOCK_WRITE_OUT = 7, |
| 35 | }; |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 36 | struct ublock_in_header { |
| 37 | __u32 seq; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 39 | __u32 opcode; |
| 40 | }; |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 41 | struct ublock_out_header { |
| 42 | __u32 seq; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 44 | __u32 opcode; |
| 45 | }; |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 46 | struct ublock_init_in { |
| 47 | __u32 version; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 49 | __u32 max_buf; |
| 50 | __u32 index; |
| 51 | }; |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 52 | struct ublock_init_out { |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 54 | __u32 version; |
| 55 | __u32 max_buf; |
| 56 | __u64 size; |
| 57 | }; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 59 | struct ublock_ready_in { |
| 60 | __u32 _unused; |
| 61 | }; |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 62 | struct ublock_ready_out { |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 64 | __u32 _unused; |
| 65 | }; |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 66 | struct ublock_read_in { |
| 67 | __u64 offset; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 69 | __u64 length; |
| 70 | }; |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 71 | struct ublock_read_out { |
| 72 | __s32 status; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 74 | __u8 data[]; |
| 75 | }; |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 76 | struct ublock_write_in { |
| 77 | __u64 offset; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 79 | __u64 length; |
| 80 | __u8 data[]; |
| 81 | }; |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 82 | struct ublock_write_out { |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 84 | __s32 status; |
| 85 | }; |
Thomas Tuttle | 1a48b58 | 2010-08-02 16:00:59 -0700 | [diff] [blame] | 86 | #endif |