blob: 59a9aab41d89c0cc13670a9035279f5c198928b3 [file] [log] [blame]
Thomas Tuttle1a48b582010-08-02 16:00:59 -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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 Tuttle1a48b582010-08-02 16:00:59 -070017 ****************************************************************************
18 ****************************************************************************/
19#ifndef __UBLOCK_H_
20#define __UBLOCK_H_
Thomas Tuttle1a48b582010-08-02 16:00:59 -070021#include <linux/types.h>
Thomas Tuttle1a48b582010-08-02 16:00:59 -070022#define UBLOCK_VERSION 0
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Thomas Tuttle1a48b582010-08-02 16:00:59 -070024enum {
25 UBLOCK_INIT_IN = 0,
26 UBLOCK_INIT_OUT = 1,
27 UBLOCK_READY_IN = 2,
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Thomas Tuttle1a48b582010-08-02 16:00:59 -070029 UBLOCK_READY_OUT = 3,
30 UBLOCK_READ_IN = 4,
31 UBLOCK_READ_OUT = 5,
32 UBLOCK_WRITE_IN = 6,
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Thomas Tuttle1a48b582010-08-02 16:00:59 -070034 UBLOCK_WRITE_OUT = 7,
35};
Thomas Tuttle1a48b582010-08-02 16:00:59 -070036struct ublock_in_header {
37 __u32 seq;
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Thomas Tuttle1a48b582010-08-02 16:00:59 -070039 __u32 opcode;
40};
Thomas Tuttle1a48b582010-08-02 16:00:59 -070041struct ublock_out_header {
42 __u32 seq;
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Thomas Tuttle1a48b582010-08-02 16:00:59 -070044 __u32 opcode;
45};
Thomas Tuttle1a48b582010-08-02 16:00:59 -070046struct ublock_init_in {
47 __u32 version;
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Thomas Tuttle1a48b582010-08-02 16:00:59 -070049 __u32 max_buf;
50 __u32 index;
51};
Thomas Tuttle1a48b582010-08-02 16:00:59 -070052struct ublock_init_out {
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Thomas Tuttle1a48b582010-08-02 16:00:59 -070054 __u32 version;
55 __u32 max_buf;
56 __u64 size;
57};
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Thomas Tuttle1a48b582010-08-02 16:00:59 -070059struct ublock_ready_in {
60 __u32 _unused;
61};
Thomas Tuttle1a48b582010-08-02 16:00:59 -070062struct ublock_ready_out {
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Thomas Tuttle1a48b582010-08-02 16:00:59 -070064 __u32 _unused;
65};
Thomas Tuttle1a48b582010-08-02 16:00:59 -070066struct ublock_read_in {
67 __u64 offset;
Ben Cheng654325d2012-03-07 21:13:49 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Thomas Tuttle1a48b582010-08-02 16:00:59 -070069 __u64 length;
70};
Thomas Tuttle1a48b582010-08-02 16:00:59 -070071struct ublock_read_out {
72 __s32 status;
Ben Cheng654325d2012-03-07 21:13:49 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Thomas Tuttle1a48b582010-08-02 16:00:59 -070074 __u8 data[];
75};
Thomas Tuttle1a48b582010-08-02 16:00:59 -070076struct ublock_write_in {
77 __u64 offset;
Ben Cheng654325d2012-03-07 21:13:49 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Thomas Tuttle1a48b582010-08-02 16:00:59 -070079 __u64 length;
80 __u8 data[];
81};
Thomas Tuttle1a48b582010-08-02 16:00:59 -070082struct ublock_write_out {
Ben Cheng654325d2012-03-07 21:13:49 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Thomas Tuttle1a48b582010-08-02 16:00:59 -070084 __s32 status;
85};
Thomas Tuttle1a48b582010-08-02 16:00:59 -070086#endif