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