11a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle/****************************************************************************
21a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle ****************************************************************************
31a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle ***
41a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle ***   This header was automatically generated from a Linux kernel header
51a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle ***   of the same name, to make information necessary for userspace to
61a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle ***   call into the kernel available to libc.  It contains only constants,
71a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle ***   structures, and macros generated from the original header, and thus,
81a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle ***   contains no copyrightable information.
91a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle ***
10654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng ***   To edit the content of this header, modify the corresponding
11654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng ***   source file (e.g. under external/kernel-headers/original/) then
12654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng ***   run bionic/libc/kernel/tools/update_all.py
13654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng ***
14654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng ***   Any manual change here will be lost the next time this script will
15654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng ***   be run. You've been warned!
16654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng ***
171a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle ****************************************************************************
181a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle ****************************************************************************/
191a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle#ifndef __UBLOCK_H_
201a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle#define __UBLOCK_H_
211a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle#include <linux/types.h>
221a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle#define UBLOCK_VERSION 0
23654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
241a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttleenum {
251a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle UBLOCK_INIT_IN = 0,
261a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle UBLOCK_INIT_OUT = 1,
271a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle UBLOCK_READY_IN = 2,
28654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
291a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle UBLOCK_READY_OUT = 3,
301a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle UBLOCK_READ_IN = 4,
311a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle UBLOCK_READ_OUT = 5,
321a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle UBLOCK_WRITE_IN = 6,
33654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
341a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle UBLOCK_WRITE_OUT = 7,
351a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle};
361a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttlestruct ublock_in_header {
371a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u32 seq;
38654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
391a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u32 opcode;
401a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle};
411a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttlestruct ublock_out_header {
421a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u32 seq;
43654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
441a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u32 opcode;
451a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle};
461a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttlestruct ublock_init_in {
471a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u32 version;
48654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
491a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u32 max_buf;
501a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u32 index;
511a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle};
521a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttlestruct ublock_init_out {
53654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
541a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u32 version;
551a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u32 max_buf;
561a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u64 size;
571a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle};
58654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
591a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttlestruct ublock_ready_in {
601a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u32 _unused;
611a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle};
621a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttlestruct ublock_ready_out {
63654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
641a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u32 _unused;
651a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle};
661a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttlestruct ublock_read_in {
671a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u64 offset;
68654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
691a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u64 length;
701a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle};
711a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttlestruct ublock_read_out {
721a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __s32 status;
73654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
741a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u8 data[];
751a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle};
761a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttlestruct ublock_write_in {
771a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u64 offset;
78654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
791a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u64 length;
801a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __u8 data[];
811a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle};
821a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttlestruct ublock_write_out {
83654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
841a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle __s32 status;
851a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle};
861a48b588c6de8ae43903768adf53b32545f69986Thomas Tuttle#endif
87