2009-03-04 04:28:35 +01:00
|
|
|
/****************************************************************************
|
|
|
|
****************************************************************************
|
|
|
|
***
|
|
|
|
*** This header was automatically generated from a Linux kernel header
|
|
|
|
*** of the same name, to make information necessary for userspace to
|
|
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
|
|
*** structures, and macros generated from the original header, and thus,
|
|
|
|
*** contains no copyrightable information.
|
|
|
|
***
|
2012-03-08 06:13:49 +01:00
|
|
|
*** To edit the content of this header, modify the corresponding
|
|
|
|
*** source file (e.g. under external/kernel-headers/original/) then
|
|
|
|
*** run bionic/libc/kernel/tools/update_all.py
|
|
|
|
***
|
|
|
|
*** Any manual change here will be lost the next time this script will
|
|
|
|
*** be run. You've been warned!
|
|
|
|
***
|
2009-03-04 04:28:35 +01:00
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _LINUX_VM86_H
|
|
|
|
#define _LINUX_VM86_H
|
|
|
|
#define TF_MASK 0x00000100
|
|
|
|
#define IF_MASK 0x00000200
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define IOPL_MASK 0x00003000
|
|
|
|
#define NT_MASK 0x00004000
|
|
|
|
#define VM_MASK 0
|
|
|
|
#define AC_MASK 0x00040000
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define VIF_MASK 0x00080000
|
|
|
|
#define VIP_MASK 0x00100000
|
|
|
|
#define ID_MASK 0x00200000
|
|
|
|
#define BIOSSEG 0x0f000
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define CPU_086 0
|
|
|
|
#define CPU_186 1
|
|
|
|
#define CPU_286 2
|
|
|
|
#define CPU_386 3
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define CPU_486 4
|
|
|
|
#define CPU_586 5
|
|
|
|
#define VM86_TYPE(retval) ((retval) & 0xff)
|
|
|
|
#define VM86_ARG(retval) ((retval) >> 8)
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define VM86_SIGNAL 0
|
|
|
|
#define VM86_UNKNOWN 1
|
|
|
|
#define VM86_INTx 2
|
|
|
|
#define VM86_STI 3
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define VM86_PICRETURN 4
|
|
|
|
#define VM86_TRAP 6
|
|
|
|
#define VM86_PLUS_INSTALL_CHECK 0
|
|
|
|
#define VM86_ENTER 1
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define VM86_ENTER_NO_BYPASS 2
|
|
|
|
#define VM86_REQUEST_IRQ 3
|
|
|
|
#define VM86_FREE_IRQ 4
|
|
|
|
#define VM86_GET_IRQ_BITS 5
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define VM86_GET_AND_RESET_IRQ 6
|
|
|
|
struct vm86_regs {
|
|
|
|
long ebx;
|
|
|
|
long ecx;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
long edx;
|
|
|
|
long esi;
|
|
|
|
long edi;
|
|
|
|
long ebp;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
long eax;
|
|
|
|
long __null_ds;
|
|
|
|
long __null_es;
|
|
|
|
long __null_fs;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
long __null_gs;
|
|
|
|
long orig_eax;
|
|
|
|
long eip;
|
|
|
|
unsigned short cs, __csh;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
long eflags;
|
|
|
|
long esp;
|
|
|
|
unsigned short ss, __ssh;
|
|
|
|
unsigned short es, __esh;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned short ds, __dsh;
|
|
|
|
unsigned short fs, __fsh;
|
|
|
|
unsigned short gs, __gsh;
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
struct revectored_struct {
|
|
|
|
unsigned long __map[8];
|
|
|
|
};
|
|
|
|
struct vm86_struct {
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
struct vm86_regs regs;
|
|
|
|
unsigned long flags;
|
|
|
|
unsigned long screen_bitmap;
|
|
|
|
unsigned long cpu_type;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
struct revectored_struct int_revectored;
|
|
|
|
struct revectored_struct int21_revectored;
|
|
|
|
};
|
|
|
|
#define VM86_SCREEN_BITMAP 0x0001
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
struct vm86plus_info_struct {
|
|
|
|
unsigned long force_return_for_pic:1;
|
|
|
|
unsigned long vm86dbg_active:1;
|
|
|
|
unsigned long vm86dbg_TFpendig:1;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned long unused:28;
|
|
|
|
unsigned long is_vm86pus:1;
|
|
|
|
unsigned char vm86dbg_intxxtab[32];
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
struct vm86plus_struct {
|
|
|
|
struct vm86_regs regs;
|
|
|
|
unsigned long flags;
|
|
|
|
unsigned long screen_bitmap;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned long cpu_type;
|
|
|
|
struct revectored_struct int_revectored;
|
|
|
|
struct revectored_struct int21_revectored;
|
|
|
|
struct vm86plus_info_struct vm86plus;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
};
|
|
|
|
#endif
|