Lines Matching +full:0 +full:x4f
29 #define B_O16(x) ((((x) & 0xff) << 8) | (((x) & 0xff) >> 8))
30 #define B_O32(x) ((((x) & 0xff) << 24) | (((x) & 0xff00) << 8) \
31 | (((x) & 0xff0000) >> 8) | (((x) & 0xff000000) >> 24))
33 #define L_ADD(x) (B_O32(x) & 0xffff) + ((B_O32(x) >> 12) & 0xffff00)
35 #define FARP(p) (((unsigned)(p & 0xffff0000) >> 12) | (p & 0xffff))
36 #define R16(v) ((v) & 0xffff)
46 return VBEExtendedInit(pInt, entityIndex, 0); in VBEInit()
81 pInt->ax = 0x4F00; in VBEExtendedInit()
84 pInt->num = 0x10; in VBEExtendedInit()
88 if ((pInt->ax & 0xff) != 0x4f) { in VBEExtendedInit()
93 switch (pInt->ax & 0xff00) { in VBEExtendedInit()
94 case 0: in VBEExtendedInit()
97 case 0x100: in VBEExtendedInit()
100 case 0x200: in VBEExtendedInit()
103 case 0x300: in VBEExtendedInit()
112 "VbeVersion is %d, OemStringPtr is 0x%08lx,\n" in VBEExtendedInit()
113 "\tOemVendorNamePtr is 0x%08lx, OemProductNamePtr is 0x%08lx,\n" in VBEExtendedInit()
114 "\tOemProductRevPtr is 0x%08lx\n", in VBEExtendedInit()
127 if (B_O16(vbe->VbeVersion) >= 0x200) { in VBEExtendedInit()
190 pVbe->pInt10->ax = 0x4F15; in vbeProbeDDC()
191 pVbe->pInt10->bx = 0; in vbeProbeDDC()
192 pVbe->pInt10->cx = 0; in vbeProbeDDC()
193 pVbe->pInt10->es = 0; in vbeProbeDDC()
194 pVbe->pInt10->di = 0; in vbeProbeDDC()
195 pVbe->pInt10->num = 0x10; in vbeProbeDDC()
199 if ((pVbe->pInt10->ax & 0xff) != 0x4f) { in vbeProbeDDC()
205 switch ((pVbe->pInt10->ax >> 8) & 0xff) { in vbeProbeDDC()
206 case 0: in vbeProbeDDC()
208 switch (pVbe->pInt10->bx & 0x3) { in vbeProbeDDC()
209 case 0: in vbeProbeDDC()
231 if (pVbe->pInt10->bx & 0x4) { in vbeProbeDDC()
241 (pVbe->pInt10->bx >> 8) & 0xff); in vbeProbeDDC()
253 {VBEOPT_NOVBE, "NoVBE", OPTV_BOOLEAN, {0}, FALSE},
254 {VBEOPT_NODDC, "NoDDC", OPTV_BOOLEAN, {0}, FALSE},
255 {-1, NULL, OPTV_NONE, {0}, FALSE},
285 memset(page, 0, sizeof(vbeInfoPtr)); in vbeReadEDID()
288 pVbe->pInt10->ax = 0x4F15; in vbeReadEDID()
289 pVbe->pInt10->bx = 0x01; in vbeReadEDID()
290 pVbe->pInt10->cx = 0; in vbeReadEDID()
291 pVbe->pInt10->dx = 0; in vbeReadEDID()
294 pVbe->pInt10->num = 0x10; in vbeReadEDID()
298 if ((pVbe->pInt10->ax & 0xff) != 0x4f) { in vbeReadEDID()
302 switch (pVbe->pInt10->ax & 0xff00) { in vbeReadEDID()
303 case 0x0: in vbeReadEDID()
308 case 0x100: in vbeReadEDID()
313 pVbe->pInt10->ax & 0xff00); in vbeReadEDID()
328 if (pVbe->version < 0x102) in vbeDoEDID()
350 memset(pVbe->memory, 0, sizeof(VbeInfoBlock)); in VBEGetVBEInfo()
363 ((char *) pVbe->memory)[0] = 'V'; in VBEGetVBEInfo()
368 pVbe->pInt10->num = 0x10; in VBEGetVBEInfo()
369 pVbe->pInt10->ax = 0x4f00; in VBEGetVBEInfo()
374 if (R16(pVbe->pInt10->ax) != 0x4f) in VBEGetVBEInfo()
378 block->VESASignature[0] = ((char *) pVbe->memory)[0]; in VBEGetVBEInfo()
390 block->Capabilities[0] = ((char *) pVbe->memory)[10]; in VBEGetVBEInfo()
397 i = 0; in VBEGetVBEInfo()
398 while (modes[i] != 0xffff) in VBEGetVBEInfo()
402 block->VideoModePtr[i] = 0xffff; in VBEGetVBEInfo()
448 D9-D10 := Reserved (must be 0) in VBESetVBEMode()
449 D11 := 0 Use current default refresh rate in VBESetVBEMode()
451 D12-13 Reserved for VBE/AF (must be 0) in VBESetVBEMode()
452 D14 := 0 Use windowed frame buffer model in VBESetVBEMode()
454 D15 := 0 Clear video memory in VBESetVBEMode()
461 pVbe->pInt10->num = 0x10; in VBESetVBEMode()
462 pVbe->pInt10->ax = 0x4f02; in VBESetVBEMode()
475 return (R16(pVbe->pInt10->ax) == 0x4f); in VBESetVBEMode()
491 pVbe->pInt10->num = 0x10; in VBEGetVBEMode()
492 pVbe->pInt10->ax = 0x4f03; in VBEGetVBEMode()
496 if (R16(pVbe->pInt10->ax) == 0x4f) { in VBEGetVBEMode()
510 memset(pVbe->memory, 0, sizeof(VbeModeInfoBlock)); in VBEGetModeInfo()
517 (mode number must be one of those returned by Function 0) in VBEGetModeInfo()
524 pVbe->pInt10->num = 0x10; in VBEGetModeInfo()
525 pVbe->pInt10->ax = 0x4f01; in VBEGetModeInfo()
530 if (R16(pVbe->pInt10->ax) != 0x4f) in VBEGetModeInfo()
589 if ((pVbe->version & 0xff00) > 0x100) { in VBESaveRestore()
595 pVbe->pInt10->num = 0x10; in VBESaveRestore()
596 pVbe->pInt10->ax = 0x4f04; in VBESaveRestore()
597 pVbe->pInt10->dx = 0; in VBESaveRestore()
598 pVbe->pInt10->cx = 0x000f; in VBESaveRestore()
600 if (R16(pVbe->pInt10->ax) != 0x4f) in VBESaveRestore()
621 pVbe->pInt10->num = 0x10; in VBESaveRestore()
622 pVbe->pInt10->ax = 0x4f04; in VBESaveRestore()
633 pVbe->pInt10->cx = 0x000f; in VBESaveRestore()
638 return (R16(pVbe->pInt10->ax) == 0x4f); in VBESaveRestore()
655 pVbe->pInt10->num = 0x10; in VBEBankSwitch()
656 pVbe->pInt10->ax = 0x4f05; in VBEBankSwitch()
661 if (R16(pVbe->pInt10->ax) != 0x4f) in VBEBankSwitch()
693 pVbe->pInt10->num = 0x10; in VBESetGetLogicalScanlineLength()
694 pVbe->pInt10->ax = 0x4f06; in VBESetGetLogicalScanlineLength()
700 if (R16(pVbe->pInt10->ax) != 0x4f) in VBESetGetLogicalScanlineLength()
718 pVbe->pInt10->num = 0x10; in VBESetDisplayStart()
719 pVbe->pInt10->ax = 0x4f07; in VBESetDisplayStart()
720 pVbe->pInt10->bx = wait_retrace ? 0x80 : 0x00; in VBESetDisplayStart()
725 if (R16(pVbe->pInt10->ax) != 0x4f) in VBESetDisplayStart()
734 pVbe->pInt10->num = 0x10; in VBEGetDisplayStart()
735 pVbe->pInt10->ax = 0x4f07; in VBEGetDisplayStart()
736 pVbe->pInt10->bx = 0x01; in VBEGetDisplayStart()
739 if (R16(pVbe->pInt10->ax) != 0x4f) in VBEGetDisplayStart()
764 pVbe->pInt10->num = 0x10; in VBESetGetDACPaletteFormat()
765 pVbe->pInt10->ax = 0x4f08; in VBESetGetDACPaletteFormat()
767 pVbe->pInt10->bx = 0x01; in VBESetGetDACPaletteFormat()
769 pVbe->pInt10->bx = (bits & 0x00ff) << 8; in VBESetGetDACPaletteFormat()
772 if (R16(pVbe->pInt10->ax) != 0x4f) in VBESetGetDACPaletteFormat()
773 return 0; in VBESetGetDACPaletteFormat()
775 return (bits != 0 ? bits : (pVbe->pInt10->bx >> 8) & 0x00ff); in VBESetGetDACPaletteFormat()
808 pVbe->pInt10->num = 0x10; in VBESetGetPaletteData()
809 pVbe->pInt10->ax = 0x4f09; in VBESetGetPaletteData()
811 pVbe->pInt10->bx = set && wait_retrace ? 0x80 : set ? 0 : 1; in VBESetGetPaletteData()
822 if (R16(pVbe->pInt10->ax) != 0x4f) in VBESetGetPaletteData()
842 AL := 0Ah Protected Mode Interface in VBEGetVBEpmi()
853 pVbe->pInt10->num = 0x10; in VBEGetVBEpmi()
854 pVbe->pInt10->ax = 0x4f0a; in VBEGetVBEpmi()
855 pVbe->pInt10->bx = 0; in VBEGetVBEpmi()
856 pVbe->pInt10->di = 0; in VBEGetVBEpmi()
859 if (R16(pVbe->pInt10->ax) != 0x4f) in VBEGetVBEpmi()
870 #if 0
876 int i = 0;
878 while (vbe->VideoModePtr[i] != 0xffff) {
897 "BIOS reported VESA mode 0x%x: x:%i y:%i bpp:%i\n",
916 return 0;
971 pVbe->pInt10->num = 0x10; in VBEGetPixelClock()
972 pVbe->pInt10->ax = 0x4f0b; in VBEGetPixelClock()
973 pVbe->pInt10->bx = 0x00; in VBEGetPixelClock()
978 if (R16(pVbe->pInt10->ax) != 0x4f) in VBEGetPixelClock()
979 return 0; in VBEGetPixelClock()
997 pVbe->pInt10->num = 0x10; in VBEDPMSSet()
998 pVbe->pInt10->ax = 0x4f10; in VBEDPMSSet()
999 pVbe->pInt10->bx = 0x01; in VBEDPMSSet()
1004 pVbe->pInt10->bx |= 0x100; in VBEDPMSSet()
1007 pVbe->pInt10->bx |= 0x200; in VBEDPMSSet()
1010 pVbe->pInt10->bx |= 0x400; in VBEDPMSSet()
1014 return (R16(pVbe->pInt10->ax) == 0x4f); in VBEDPMSSet()
1037 mode = xf86CVTMode(data->hsize, data->vsize, PANEL_HZ, 1, 0); in VBEInterpretPanelID()
1040 pScrn->monitor->hsync[0].lo = 29.37; in VBEInterpretPanelID()
1041 pScrn->monitor->hsync[0].hi = (float) mode->Clock / (float) mode->HTotal; in VBEInterpretPanelID()
1043 pScrn->monitor->vrefresh[0].lo = 56.0; in VBEInterpretPanelID()
1044 pScrn->monitor->vrefresh[0].hi = in VBEInterpretPanelID()
1048 if (pScrn->monitor->vrefresh[0].hi < 59.47) in VBEInterpretPanelID()
1049 pScrn->monitor->vrefresh[0].hi = 59.47; in VBEInterpretPanelID()
1062 pVbe->pInt10->ax = 0x4F11; in VBEReadPanelID()
1063 pVbe->pInt10->bx = 0x01; in VBEReadPanelID()
1064 pVbe->pInt10->cx = 0; in VBEReadPanelID()
1065 pVbe->pInt10->dx = 0; in VBEReadPanelID()
1068 pVbe->pInt10->num = 0x10; in VBEReadPanelID()
1072 if ((pVbe->pInt10->ax & 0xff) != 0x4f) { in VBEReadPanelID()
1077 switch (pVbe->pInt10->ax & 0xff00) { in VBEReadPanelID()
1078 case 0x0: in VBEReadPanelID()
1084 case 0x100: in VBEReadPanelID()
1090 pVbe->pInt10->ax & 0xff00); in VBEReadPanelID()