Home | History | Annotate | Download | only in asm
      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  ***
     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  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef _UAPI_ASM_X86_VM86_H
     20 #define _UAPI_ASM_X86_VM86_H
     21 #include <asm/processor-flags.h>
     22 #define BIOSSEG 0x0f000
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define CPU_086 0
     25 #define CPU_186 1
     26 #define CPU_286 2
     27 #define CPU_386 3
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define CPU_486 4
     30 #define CPU_586 5
     31 #define VM86_TYPE(retval) ((retval) & 0xff)
     32 #define VM86_ARG(retval) ((retval) >> 8)
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define VM86_SIGNAL 0
     35 #define VM86_UNKNOWN 1
     36 #define VM86_INTx 2
     37 #define VM86_STI 3
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define VM86_PICRETURN 4
     40 #define VM86_TRAP 6
     41 #define VM86_PLUS_INSTALL_CHECK 0
     42 #define VM86_ENTER 1
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define VM86_ENTER_NO_BYPASS 2
     45 #define VM86_REQUEST_IRQ 3
     46 #define VM86_FREE_IRQ 4
     47 #define VM86_GET_IRQ_BITS 5
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define VM86_GET_AND_RESET_IRQ 6
     50 struct vm86_regs {
     51  long ebx;
     52  long ecx;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54  long edx;
     55  long esi;
     56  long edi;
     57  long ebp;
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59  long eax;
     60  long __null_ds;
     61  long __null_es;
     62  long __null_fs;
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64  long __null_gs;
     65  long orig_eax;
     66  long eip;
     67  unsigned short cs, __csh;
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69  long eflags;
     70  long esp;
     71  unsigned short ss, __ssh;
     72  unsigned short es, __esh;
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74  unsigned short ds, __dsh;
     75  unsigned short fs, __fsh;
     76  unsigned short gs, __gsh;
     77 };
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 struct revectored_struct {
     80  unsigned long __map[8];
     81 };
     82 struct vm86_struct {
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84  struct vm86_regs regs;
     85  unsigned long flags;
     86  unsigned long screen_bitmap;
     87  unsigned long cpu_type;
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89  struct revectored_struct int_revectored;
     90  struct revectored_struct int21_revectored;
     91 };
     92 #define VM86_SCREEN_BITMAP 0x0001
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 struct vm86plus_info_struct {
     95  unsigned long force_return_for_pic:1;
     96  unsigned long vm86dbg_active:1;
     97  unsigned long vm86dbg_TFpendig:1;
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99  unsigned long unused:28;
    100  unsigned long is_vm86pus:1;
    101  unsigned char vm86dbg_intxxtab[32];
    102 };
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 struct vm86plus_struct {
    105  struct vm86_regs regs;
    106  unsigned long flags;
    107  unsigned long screen_bitmap;
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109  unsigned long cpu_type;
    110  struct revectored_struct int_revectored;
    111  struct revectored_struct int21_revectored;
    112  struct vm86plus_info_struct vm86plus;
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114 };
    115 #endif
    116