11dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project/****************************************************************************
21dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project ****************************************************************************
31dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project ***
41dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project ***   This header was automatically generated from a Linux kernel header
51dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project ***   of the same name, to make information necessary for userspace to
61dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project ***   call into the kernel available to libc.  It contains only constants,
71dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project ***   structures, and macros generated from the original header, and thus,
81dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project ***   contains no copyrightable information.
91dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project ***
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 ***
171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project ****************************************************************************
181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project ****************************************************************************/
191dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project#ifndef __ARCH_DESC_DEFS_H
201dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project#define __ARCH_DESC_DEFS_H
211dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project#ifndef __ASSEMBLY__
221dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project#include <linux/types.h>
23654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectstruct desc_struct {
251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project u16 limit0;
261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project u16 base0;
271dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unsigned base1 : 8, type : 4, s : 1, dpl : 2, p : 1;
28654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
291dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unsigned limit : 4, avl : 1, l : 1, d : 1, g : 1, base2 : 8;
301dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project} __attribute__((packed));
311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectstruct n_desc_struct {
321dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unsigned int a,b;
33654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
341dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project};
351dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectenum {
361dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project GATE_INTERRUPT = 0xE,
371dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project GATE_TRAP = 0xF,
38654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project GATE_CALL = 0xC,
401dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project};
411dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectstruct gate_struct {
421dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project u16 offset_low;
43654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project u16 segment;
451dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unsigned ist : 3, zero0 : 5, type : 5, dpl : 2, p : 1;
461dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project u16 offset_middle;
471dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project u32 offset_high;
48654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
491dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project u32 zero1;
501dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project} __attribute__((packed));
511dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project#define PTR_LOW(x) ((unsigned long)(x) & 0xFFFF)
521dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project#define PTR_MIDDLE(x) (((unsigned long)(x) >> 16) & 0xFFFF)
53654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
541dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project#define PTR_HIGH(x) ((unsigned long)(x) >> 32)
551dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectenum {
561dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project DESC_TSS = 0x9,
571dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project DESC_LDT = 0x2,
58654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
591dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project};
601dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectstruct ldttss_desc {
611dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project u16 limit0;
621dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project u16 base0;
63654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
641dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unsigned base1 : 8, type : 5, dpl : 2, p : 1;
651dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unsigned limit1 : 4, zero0 : 3, g : 1, base2 : 8;
661dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project u32 base3;
671dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project u32 zero1;
68654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
691dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project} __attribute__((packed));
701dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectstruct desc_ptr {
711dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unsigned short size;
721dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unsigned long address;
73654325de026a2ca5b76b8b40e576c959d8211fdcBen Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project} __attribute__((packed)) ;
751dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project#endif
761dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project#endif
77