NetBSD/sys/arch/i386/bios/vesabiosreg.h
drochner 1719b0ab59 get some more info out of the VESA BIOS and attach subdevices for
8-bit pseudo color and text modes
still doesn't do anything useful
(It would be easy to attach a wsdisplay, but we have to cooperate with the
PCI or ISA attached VGA drivers. There are open issues.)
2002-07-10 19:15:42 +00:00

28 lines
1.0 KiB
C

/* $NetBSD: vesabiosreg.h,v 1.1 2002/07/10 19:15:43 drochner Exp $ */
struct modeinfoblock {
/* Mandatory information for all VBE revisions */
u_int16_t ModeAttributes;
u_int8_t WinAAttributes, WinBAttributes;
u_int16_t WinGranularity, WinSize, WinASegment, WinBSegment;
u_int32_t WinFuncPtr;
u_int16_t BytesPerScanLine;
/* Mandatory information for VBE 1.2 and above */
u_int16_t XResolution, YResolution;
u_int8_t XCharSize, YCharSize, NumberOfPlanes, BitsPerPixel;
u_int8_t NumberOfBanks, MemoryModel, BankSize, NumberOfImagePages;
u_int8_t Reserved1;
/* Direct Color fields
(required for direct/6 and YUV/7 memory models) */
u_int8_t RedMaskSize, RedFieldPosition;
u_int8_t GreenMaskSize, GreenFieldPosition;
u_int8_t BlueMaskSize, BlueFieldPosition;
u_int8_t RsvdMaskSize, RsvdFieldPosition;
u_int8_t DirectColorModeInfo;
/* Mandatory information for VBE 2.0 and above */
u_int32_t PhysBasePtr;
u_int32_t OffScreenMemOffset;
u_int16_t OffScreenMemSize;
u_int8_t Reserved2[206];
} __attribute__ ((packed));