1 // ============================================================================================
3 // Copyright (C) 2002 Jeroen Janssen
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2 of the License, or (at your option) any later version.
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // ============================================================================================
21 // This VBE is part of the VGA Bios specific to the plex86/bochs Emulated VGA card.
22 // You can NOT drive any physical vga card with it.
24 // ============================================================================================
26 // This VBE Bios is based on information taken from :
27 // - VESA BIOS EXTENSION (VBE) Core Functions Standard Version 3.0 located at www.vesa.org
29 // ============================================================================================
33 // enable LFB support (depends upon bochs-vbe-lfb patch)
36 // disable VESA/VBE2 check in vbe info
37 //#define VBE2_NO_VESA_CHECK
39 // dynamicly generate a mode_info list
42 // enable unsupported modi in the mode_info list (ie >8bpp)
43 //#define LIST_UNSUPPORTED_MODI
47 #include "vbetables.h"
50 // The current OEM Software Revision of this VBE Bios
51 #define VBE_OEM_SOFTWARE_REV 0x0002;
53 #define VBEInfoData ((VbeInfoBlock *) 0)
55 extern char vbebios_copyright
;
56 extern char vbebios_vendor_name
;
57 extern char vbebios_product_name
;
58 extern char vbebios_product_revision
;
60 // FIXME: find out why we cannot use the dynamic list generation (due to a bug somewhere)
64 extern Bit16u vbebios_mode_list
;
68 // FIXME: 'merge' these (c) etc strings with the vgabios.c strings?
70 .ascii
"Bochs/Plex86 VBE(C) 2002 Jeroen Janssen <japj@darius.demon.nl>"
74 .ascii
"Bochs/Plex86 Developers"
77 _vbebios_product_name
:
78 .ascii
"Bochs/Plex86 VBE Adapter"
81 _vbebios_product_revision
:
86 .ascii
"Bochs VBE Display Adapter enabled"
91 _no_vbebios_info_string
:
92 .ascii
"NO Bochs VBE Support available!"
99 // FIXME: for each new mode add a statement here
100 // at least until dynamic list creation is working
103 #ifdef LIST_UNSUPPORTED_MODI
104 .word VBE_VESA_MODE_640X480X565
105 .word VBE_VESA_MODE_800X600X565
106 .word VBE_VESA_MODE_640X480X888
107 .word VBE_VESA_MODE_800X600X888
108 .word VBE_OWN_MODE_800X600X8888
109 .word VBE_OWN_MODE_1024X768X8888
112 .word VBE_VESA_MODE_640X400X8
113 .word VBE_VESA_MODE_640X480X8
114 .word VBE_VESA_MODE_800X600X4
115 .word VBE_VESA_MODE_800X600X8
116 .word VBE_VESA_MODE_1024X768X8
117 .word VBE_OWN_MODE_320X200X8
118 .word VBE_VESA_MODE_END_OF_LIST
124 #define PANIC_PORT 0x501
128 ;; the HALT macro is called with the line number of the HALT call
.
129 ;; The line number is then sent to the PANIC_PORT
, causing Bochs to
130 ;; print a BX_PANIC message
. This will normally halt the simulation
131 ;; with a message such as
"BIOS panic at rombios.c, line 4091".
132 ;; However
, users can choose to make panics non
-fatal
and continue.
139 // DISPI ioport functions
140 // FIXME: what if no VBE host side code?
141 static Bit16u
dispi_get_id()
143 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_ID
);
144 return inw(VBE_DISPI_IOPORT_DATA
);
147 static void dispi_set_id(id
)
150 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_ID
);
151 outw(VBE_DISPI_IOPORT_DATA
,id
);
154 static void dispi_set_xres(xres
)
157 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_XRES
);
158 outw(VBE_DISPI_IOPORT_DATA
,xres
);
161 static void dispi_set_yres(yres
)
164 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_YRES
);
165 outw(VBE_DISPI_IOPORT_DATA
,yres
);
168 static void dispi_set_bpp(bpp
)
171 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_BPP
);
172 outw(VBE_DISPI_IOPORT_DATA
,bpp
);
175 static Bit16u
dispi_get_enable()
177 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_ENABLE
);
178 return inw(VBE_DISPI_IOPORT_DATA
);
181 void dispi_set_enable(enable
)
184 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_ENABLE
);
185 outw(VBE_DISPI_IOPORT_DATA
,enable
);
188 static void dispi_set_bank(bank
)
191 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_BANK
);
192 outw(VBE_DISPI_IOPORT_DATA
,bank
);
195 static void dispi_set_bank_farcall()
199 je dispi_set_bank_farcall_get
201 jnz dispi_set_bank_farcall_error
203 mov ax
,# VBE_DISPI_INDEX_BANK
204 mov dx
,# VBE_DISPI_IOPORT_INDEX
207 mov dx
,# VBE_DISPI_IOPORT_DATA
210 dispi_set_bank_farcall_get
:
211 mov ax
,# VBE_DISPI_INDEX_BANK
212 mov dx
,# VBE_DISPI_IOPORT_INDEX
214 mov dx
,# VBE_DISPI_IOPORT_DATA
218 dispi_set_bank_farcall_error
:
224 static void dispi_set_x_offset(offset
)
227 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_X_OFFSET
);
228 outw(VBE_DISPI_IOPORT_DATA
,offset
);
231 static Bit16u
dispi_get_x_offset()
233 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_X_OFFSET
);
234 return inw(VBE_DISPI_IOPORT_DATA
);
237 static void dispi_set_y_offset(offset
)
240 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_Y_OFFSET
);
241 outw(VBE_DISPI_IOPORT_DATA
,offset
);
244 static Bit16u
dispi_get_y_offset()
246 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_Y_OFFSET
);
247 return inw(VBE_DISPI_IOPORT_DATA
);
250 static void dispi_set_virt_width(width
)
253 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_VIRT_WIDTH
);
254 outw(VBE_DISPI_IOPORT_DATA
,width
);
257 static Bit16u
dispi_get_virt_width()
259 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_VIRT_WIDTH
);
260 return inw(VBE_DISPI_IOPORT_DATA
);
263 static void dispi_set_virt_height(height)
266 outw(VBE_DISPI_IOPORT_INDEX,VBE_DISPI_INDEX_VIRT_HEIGHT);
267 outw(VBE_DISPI_IOPORT_DATA,height);
270 static Bit16u
dispi_get_virt_height()
272 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_VIRT_HEIGHT
);
273 return inw(VBE_DISPI_IOPORT_DATA
);
277 // ModeInfo helper function
278 static ModeInfoListItem
* mode_info_find_mode(mode
, using_lfb
)
279 Bit16u mode
; Boolean using_lfb
;
281 ModeInfoListItem
*cur_info
=&mode_info_list
;
283 while (cur_info
->mode
!= VBE_VESA_MODE_END_OF_LIST
)
285 if (cur_info
->mode
== mode
)
291 else if (cur_info
->info
.ModeAttributes
& VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE
)
309 /** Has VBE display - Returns true if VBE display detected
312 Boolean
vbe_has_vbe_display()
314 dispi_set_id(VBE_DISPI_ID1
);
316 return (dispi_get_id()==VBE_DISPI_ID1
);
319 /** VBE Init - Initialise the Vesa Bios Extension Code
321 * This function does a sanity check on the host side display code interface.
327 outw(VBE_DISPI_IOPORT_INDEX
,VBE_DISPI_INDEX_ID
);
328 outw(VBE_DISPI_IOPORT_DATA
,VBE_DISPI_ID0
);
330 dispi_id
=inw(VBE_DISPI_IOPORT_DATA
);
332 if (dispi_id
!=VBE_DISPI_ID0
)
334 //FIXME this results in a 'rombios.c' line panic, but it's actually a 'vbe.c' panic
340 printf("VBE Bios $Id$\n");
344 /** VBE Display Info - Display information on screen about the VBE
346 void vbe_display_info()
348 // Check for VBE display extension in Bochs
349 if (vbe_has_vbe_display())
354 mov si
,#_vbebios_info_string
363 mov si
,#_no_vbebios_info_string
370 /** Function 00h - Return VBE Controller Information
374 * ES:DI = Pointer to buffer in which to place VbeInfoBlock structure
375 * (VbeSignature should be VBE2 when VBE 2.0 information is desired and
376 * the info block is 512 bytes in size)
378 * AX = VBE Return Status
381 void vbe_biosfn_return_controller_information(AX
, ES
, DI
)
382 Bit16u
*AX
;Bit16u ES
;Bit16u DI
;
385 VbeInfoBlock vbe_info_block
;
390 Bit16u
*video_mode_list
;
393 ModeInfoListItem
*cur_info
=&mode_info_list
;
395 status
= read_word(ss
, AX
);
398 printf("VBE vbe_biosfn_return_vbe_info ES%x DI%x AX%x\n",ES
,DI
,status
);
402 #ifdef VBE2_NO_VESA_CHECK
404 // get vbe_info_block into local variable
405 memcpyb(ss
, &vbe_info_block
, ES
, DI
, sizeof(vbe_info_block
));
407 // check for VBE2 signature
408 if (((vbe_info_block
.VbeSignature
[0] == 'V') &&
409 (vbe_info_block
.VbeSignature
[1] == 'B') &&
410 (vbe_info_block
.VbeSignature
[2] == 'E') &&
411 (vbe_info_block
.VbeSignature
[3] == '2')) ||
413 ((vbe_info_block
.VbeSignature
[0] == 'V') &&
414 (vbe_info_block
.VbeSignature
[1] == 'E') &&
415 (vbe_info_block
.VbeSignature
[2] == 'S') &&
416 (vbe_info_block
.VbeSignature
[3] == 'A')) )
420 printf("VBE correct VESA/VBE2 signature found\n");
426 vbe_info_block
.VbeSignature
[0] = 'V';
427 vbe_info_block
.VbeSignature
[1] = 'E';
428 vbe_info_block
.VbeSignature
[2] = 'S';
429 vbe_info_block
.VbeSignature
[3] = 'A';
431 // VBE Version supported
432 vbe_info_block
.VbeVersion
= 0x0200;
435 vbe_info_block
.OemStringPtr_Seg
= 0xc000;
436 vbe_info_block
.OemStringPtr_Off
= &vbebios_copyright
;
439 vbe_info_block
.Capabilities
[0] = 0;
440 vbe_info_block
.Capabilities
[1] = 0;
441 vbe_info_block
.Capabilities
[2] = 0;
442 vbe_info_block
.Capabilities
[3] = 0;
445 // FIXME: This doesn't work correctly somehow?
446 // VBE Video Mode Pointer (dynamicly generated from the mode_info_list)
447 vbe_info_block
.VideoModePtr_Seg
= ES
;//0xc000;
448 vbe_info_block
.VideoModePtr_Off
= DI
+ 34;//&(VBEInfoData->Reserved);//&vbebios_mode_list;
450 // VBE Video Mode Pointer (staticly in rom)
451 vbe_info_block
.VideoModePtr_Seg
= 0xc000;
452 vbe_info_block
.VideoModePtr_Off
= &vbebios_mode_list
;
458 // video_mode_list=(Bit16u*)&(vbe_info_block.Reserved);
463 printf("VBE found mode %x => %x\n", cur_info
->mode
,cur_mode
);
465 // *video_mode_list=cur_info->mode;
466 vbe_info_block
.Reserved
[cur_mode
] = cur_info
->mode
;
471 } while (cur_info
->mode
!= VBE_VESA_MODE_END_OF_LIST
);
473 // Add vesa mode list terminator
474 vbe_info_block
.Reserved
[cur_mode
] = VBE_VESA_MODE_END_OF_LIST
;
479 // VBE Total Memory (in 64b blocks)
480 vbe_info_block
.TotalMemory
= VBE_TOTAL_VIDEO_MEMORY_DIV_64K
;
483 vbe_info_block
.OemSoftwareRev
= VBE_OEM_SOFTWARE_REV
;
484 vbe_info_block
.OemVendorNamePtr_Seg
= 0xc000;
485 vbe_info_block
.OemVendorNamePtr_Off
= &vbebios_vendor_name
;
486 vbe_info_block
.OemProductNamePtr_Seg
= 0xc000;
487 vbe_info_block
.OemProductNamePtr_Off
= &vbebios_product_name
;
488 vbe_info_block
.OemProductRevPtr_Seg
= 0xc000;
489 vbe_info_block
.OemProductRevPtr_Off
= &vbebios_product_revision
;
491 // copy updates in vbe_info_block back
492 memcpyb(ES
, DI
, ss
, &vbe_info_block
, sizeof(vbe_info_block
));
496 // copy updates in vbe_info_block back (VBE 1.x compatibility)
497 memcpyb(ES
, DI
, ss
, &vbe_info_block
, 256);
502 write_word(ss
, AX
, result
);
506 /** Function 01h - Return VBE Mode Information
511 * ES:DI = Pointer to buffer in which to place ModeInfoBlock structure
513 * AX = VBE Return Status
516 void vbe_biosfn_return_mode_information(AX
, CX
, ES
, DI
)
517 Bit16u
*AX
;Bit16u CX
; Bit16u ES
;Bit16u DI
;
519 Bit16u result
=0x0100;
522 ModeInfoListItem
*cur_info
;
526 printf("VBE vbe_biosfn_return_mode_information ES%x DI%x CX%x\n",ES
,DI
,CX
);
529 using_lfb
=((CX
& VBE_MODE_LINEAR_FRAME_BUFFER
) == VBE_MODE_LINEAR_FRAME_BUFFER
);
533 cur_info
= mode_info_find_mode(CX
, using_lfb
, &cur_info
);
538 printf("VBE found mode %x\n",CX
);
540 memsetb(ss
, &info
, 0, sizeof(ModeInfoBlock
));
541 memcpyb(ss
, &info
, 0xc000, &(cur_info
->info
), sizeof(ModeInfoBlockCompact
));
542 if (info
.WinAAttributes
& VBE_WINDOW_ATTRIBUTE_RELOCATABLE
) {
543 info
.WinFuncPtr
= 0xC0000000UL
;
544 *(Bit16u
*)&(info
.WinFuncPtr
) = (Bit16u
)(dispi_set_bank_farcall
);
552 printf("VBE *NOT* found mode %x\n",CX
);
559 // copy updates in mode_info_block back
560 memcpyb(ES
, DI
, ss
, &info
, sizeof(info
));
563 write_word(ss
, AX
, result
);
566 /** Function 02h - Set VBE Mode
570 * BX = Desired Mode to set
571 * ES:DI = Pointer to CRTCInfoBlock structure
573 * AX = VBE Return Status
576 void vbe_biosfn_set_mode(AX
, BX
, ES
, DI
)
577 Bit16u
*AX
;Bit16u BX
; Bit16u ES
;Bit16u DI
;
579 Bit16u ss
= get_SS();
581 ModeInfoListItem
*cur_info
;
584 using_lfb
=((BX
& VBE_MODE_LINEAR_FRAME_BUFFER
) == VBE_MODE_LINEAR_FRAME_BUFFER
);
588 //result=read_word(ss,AX);
590 // check for non vesa mode
591 if (BX
<VBE_MODE_VESA_DEFINED
)
595 dispi_set_enable(VBE_DISPI_DISABLED
);
596 // call the vgabios in order to set the video mode
597 // this allows for going back to textmode with a VBE call (some applications expect that to work)
600 biosfn_set_video_mode(mode
);
604 cur_info
= mode_info_find_mode(BX
, using_lfb
, &cur_info
);
609 printf("VBE found mode %x, setting:\n", BX
);
610 printf("\txres%x yres%x bpp%x\n",
611 cur_info
->info
.XResolution
,
612 cur_info
->info
.YResolution
,
613 cur_info
->info
.BitsPerPixel
);
615 // FIXME: this is here so we can do some testing
616 // at least until bochs host side display is up & running
617 // (we're using the 'standard' 320x200x256 vga mode as if it
620 if (cur_info
->info
.BitsPerPixel
<= 8)
622 // we have a 4bpp or 8bpp mode, preparing to set it
624 // first disable current mode (when switching between vesa modi)
625 dispi_set_enable(VBE_DISPI_DISABLED
);
627 if (cur_info
->mode
== VBE_VESA_MODE_800X600X4
)
629 biosfn_set_video_mode(0x6a);
632 dispi_set_xres(cur_info
->info
.XResolution
);
633 dispi_set_yres(cur_info
->info
.YResolution
);
634 dispi_set_bpp((cur_info
->info
.BitsPerPixel
== 8)?VBE_DISPI_BPP_8
:VBE_DISPI_BPP_4
);
636 dispi_set_enable(VBE_DISPI_ENABLED
);
638 // FIXME: store current mode in BIOS data area
643 //FIXME: new resolutions will need special code (per bpp)
648 printf("VBE *NOT* found mode %x\n" , BX
);
652 // FIXME: redirect non VBE modi to normal VGA bios operation
653 // (switch back to VGA mode
658 write_word(ss
, AX
, result
);
661 /** Function 03h - Return Current VBE Mode
666 * AX = VBE Return Status
667 * BX = Current VBE Mode
670 void vbe_biosfn_return_current_mode(AX
, BX
)
671 Bit16u
*AX
;Bit16u
*BX
;
677 printf("VBE vbe_biosfn_return_current_mode\n");
680 if(dispi_get_enable())
682 // FIXME: get current mode from BIOS data area
686 mode
=read_byte(BIOSMEM_SEG
,BIOSMEM_CURRENT_MODE
);
688 write_word(ss
, AX
, 0x4f);
689 write_word(ss
, BX
, mode
);
693 /** Function 04h - Save/Restore State
697 * DL = 00h Return Save/Restore State buffer size
700 * CX = Requested states
701 * ES:BX = Pointer to buffer (if DL <> 00h)
703 * AX = VBE Return Status
704 * BX = Number of 64-byte blocks to hold the state buffer (if DL=00h)
707 void vbe_biosfn_save_restore_state(AX
, DL
, CX
, ES
, BX
)
712 /** Function 05h - Display Window Control
716 * (16-bit) BH = 00h Set memory window
717 * = 01h Get memory window
721 * DX = Window number in video memory in window
722 * granularity units (Set Memory Window only)
724 * If this function is called while in a linear frame buffer mode,
725 * this function must fail with completion code AH=03h
728 * AX = VBE Return Status
729 * DX = Window number in window granularity units
730 * (Get Memory Window only)
732 void vbe_biosfn_display_window_control(AX
,BX
,DX
)
733 Bit16u
*AX
;Bit16u BX
;Bit16u
*DX
;
735 Bit16u ss
= get_SS();
736 Bit16u window
= read_word(ss
, DX
);
740 dispi_set_bank(window
);
745 /** Function 06h - Set/Get Logical Scan Line Length
749 * BL = 00h Set Scan Line Length in Pixels
750 * = 01h Get Scan Line Length
751 * = 02h Set Scan Line Length in Bytes
752 * = 03h Get Maximum Scan Line Length
753 * CX = If BL=00h Desired Width in Pixels
754 * If BL=02h Desired Width in Bytes
755 * (Ignored for Get Functions)
758 * AX = VBE Return Status
759 * BX = Bytes Per Scan Line
760 * CX = Actual Pixels Per Scan Line
761 * (truncated to nearest complete pixel)
762 * DX = Maximum Number of Scan Lines
764 void vbe_biosfn_set_get_logical_scan_line_length(AX
,BX
,CX
,DX
)
765 Bit16u
*AX
;Bit16u
*BX
;Bit16u
*DX
;Bit16u
*DX
;
769 Bit16u width
= read_word(ss
, CX
);
770 Bit16u cmd
= read_word(ss
, BX
);
773 if ( ((cmd
& 0xff) == 0x00) || ((cmd
& 0xff) == 0x02) )
775 // set scan line lenght in pixels(0x00) or bytes (0x00)
779 dispi_set_virt_width(width
);
780 new_width
=dispi_get_virt_width();
781 new_height
=dispi_get_virt_height();
783 if (new_width
!=width
)
786 printf("* VBE width adjusted\n");
789 // notify width adjusted
797 // FIXME: adjust for higher bpp (in bytes)
798 write_word(ss
,BX
,new_width
);
799 write_word(ss
,CX
,new_width
);
800 write_word(ss
,DX
,new_height
);
803 write_word(ss
, AX
, result
);
807 /** Function 07h - Set/Get Display Start
811 * BH = 00h Reserved and must be 00h
812 * BL = 00h Set Display Start
813 * = 01h Get Display Start
814 * = 02h Schedule Display Start (Alternate)
815 * = 03h Schedule Stereoscopic Display Start
816 * = 04h Get Scheduled Display Start Status
817 * = 05h Enable Stereoscopic Mode
818 * = 06h Disable Stereoscopic Mode
819 * = 80h Set Display Start during Vertical Retrace
820 * = 82h Set Display Start during Vertical Retrace (Alternate)
821 * = 83h Set Stereoscopic Display Start during Vertical Retrace
822 * ECX = If BL=02h/82h Display Start Address in bytes
823 * If BL=03h/83h Left Image Start Address in bytes
824 * EDX = If BL=03h/83h Right Image Start Address in bytes
825 * CX = If BL=00h/80h First Displayed Pixel In Scan Line
826 * DX = If BL=00h/80h First Displayed Scan Line
829 * AX = VBE Return Status
830 * BH = If BL=01h Reserved and will be 0
831 * CX = If BL=01h First Displayed Pixel In Scan Line
832 * If BL=04h 0 if flip has not occurred, not 0 if it has
833 * DX = If BL=01h First Displayed Scan Line
836 * BH = 00h Reserved and must be 00h
837 * BL = 00h Set Display Start
838 * = 80h Set Display Start during Vertical Retrace
839 * CX = Bits 0-15 of display start address
840 * DX = Bits 16-31 of display start address
841 * ES = Selector for memory mapped registers
843 void vbe_biosfn_set_get_display_start(AX
,BX
,CX
,DX
)
844 Bit16u
*AX
;Bit16u BX
;Bit16u CX
;Bit16u DX
;
849 // printf("VBE vbe_biosfn_set_get_display_start\n");
852 // check for set display start
853 if ((GET_BL()==0x00) || (GET_BL()==0x80))
855 // 0x80 is during vertical retrace - is also used by sdd vbetest during multibuffering
857 // printf("VBE vbe_biosfn_set_get_display_start CX%x DX%x\n",CX,DX);
860 dispi_set_x_offset(CX
);
861 dispi_set_y_offset(DX
);
865 write_word(ss
, AX
, result
);
869 /** Function 08h - Set/Get Dac Palette Format
874 * AX = VBE Return Status
876 * FIXME: incomplete API description, Input & Output
878 void vbe_biosfn_set_get_dac_palette_format(AX
)
883 /** Function 09h - Set/Get Palette Data
888 * AX = VBE Return Status
890 * FIXME: incomplete API description, Input & Output
892 void vbe_biosfn_set_get_palette_data(AX
)
896 /** Function 0Ah - Return VBE Protected Mode Interface
901 * AX = VBE Return Status
903 * FIXME: incomplete API description, Input & Output
905 void vbe_biosfn_return_protected_mode_interface(AX
)