^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef _UAPI_UVESAFB_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define _UAPI_UVESAFB_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) struct v86_regs {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) __u32 ebx;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) __u32 ecx;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) __u32 edx;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) __u32 esi;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) __u32 edi;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) __u32 ebp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) __u32 eax;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) __u32 eip;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) __u32 eflags;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) __u32 esp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) __u16 cs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) __u16 ss;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) __u16 es;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) __u16 ds;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) __u16 fs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) __u16 gs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) /* Task flags */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define TF_VBEIB 0x01
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define TF_BUF_ESDI 0x02
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define TF_BUF_ESBX 0x04
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define TF_BUF_RET 0x08
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define TF_EXIT 0x10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) struct uvesafb_task {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) __u8 flags;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) int buf_len;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) struct v86_regs regs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) /* Constants for the capabilities field
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) * in vbe_ib */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #define VBE_CAP_CAN_SWITCH_DAC 0x01
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #define VBE_CAP_VGACOMPAT 0x02
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) /* The VBE Info Block */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) struct vbe_ib {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) char vbe_signature[4];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) __u16 vbe_version;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) __u32 oem_string_ptr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) __u32 capabilities;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) __u32 mode_list_ptr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) __u16 total_memory;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) __u16 oem_software_rev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) __u32 oem_vendor_name_ptr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) __u32 oem_product_name_ptr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) __u32 oem_product_rev_ptr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) __u8 reserved[222];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) char oem_data[256];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) char misc_data[512];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) } __attribute__ ((packed));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #endif /* _UAPI_UVESAFB_H */